]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Tidy up ChangeLog formatting.
[grub2.git] / ChangeLog
1 2014-09-15 Khem Raj <raj.khem@gmail.com>
2
3 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
4 _BSD_SOURCE to avoid warnings under glibc 2.20+.
5
6 2014-09-08 Michael Chang <mchang@suse.com>
7
8 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
9 check; comparing &data->extent against addresses in the region it
10 points to is unpredictable.
11
12 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
13
14 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
15
16 * configure.ac: Remove -m64 from checks for -mcmodel=large and
17 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
18 already in TARGET_CFLAGS at this point, and they produce incorrect
19 results when building for x32.
20 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
21 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
22 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
23 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
24
25 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
26
27 * configure.ac: Remove several unnecessary semicolons.
28
29 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
30
31 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
32 Initialise pend to pacify GCC.
33
34 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
35
36 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
37 gettext_printf).
38
39 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * grub-core/term/at_keyboard.c: Retry probing keyboard if
42 scancode setup failed.
43
44 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
47
48 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
49
50 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
51 safety to avoid triggerring VirtualBox bug.
52
53 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
54
55 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
56
57 Fixes hang on virtualbox.
58
59 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
60
61 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
62 kernels whose paths contain regex metacharacters.
63 * util/grub.d/10_kfreebsd.in: Likewise.
64 * util/grub.d/10_linux.in: Likewise.
65 * util/grub.d/20_linux_xen.in: Likewise.
66
67 Reported by: Heimo Stranner.
68
69 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
70
71 * docs/grub-dev.texi (Finding your way around): The build system no
72 longer uses AutoGen directly.
73
74 2014-06-21 Роман Пехов <roman_pekhov>
75
76 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
77
78 2014-06-21 Glenn Washburn <development@efficientek.com>
79
80 * util/grub-install.c: Fix handling of --disk-module.
81
82 2014-06-21 Stephane Rochoy <sheda>
83
84 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
85 EFI system table.
86
87 2014-06-21 Stephane Rochoy <sheda>
88
89 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
90 EFI system table physical address.
91
92 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
93
94 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
95
96 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
99
100 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
103 check.
104
105 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
108
109 Reported by: Yves Blusseau <blusseau@zetam.org>.
110
111 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
112
113 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
114 GDT in conventional memory.
115
116 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
117
118 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
119 UUID. Other parts of grub-mkconfig tolerate these, they were
120 previously allowed here up to commit
121 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
122 practice when the system has active LVM snapshots.
123 Fixes Ubuntu bug #1287436.
124
125 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
126
127 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
128 "logical_volumes" block a little more accurately.
129
130 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
133
134 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
137 pulled from libgcc.
138
139 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
140
141 Replace few instances of memcmp/memcpy in the code that should be
142 grub_memcmp/grub_memcpy.
143
144 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
147 device names.
148
149 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
150
151 btrfs: fix get_root key comparison failures due to endianness
152
153 * grub-core/fs/btrfs.c (get_root): Convert
154 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
155
156 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
157
158 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
159
160 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
161 no longer to be forgiving of trailing spaces on grub-probe output
162 lines, which among other things means that util/grub.d/10_linux.in
163 no longer detects LVM. To fix this, make grub-probe's output
164 delimiting more consistent. As a bonus, this improves the coverage
165 of the -0 option.
166
167 Fixes Debian bug #735935.
168
169 * grub-core/disk/cryptodisk.c
170 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
171 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
172 Likewise.
173 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
174 Update prototype.
175 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
176 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
177 probe_mods): Adjust for extra user-data arguments.
178 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
179 probe_abstraction): Use configured delimiter. Update callers.
180
181 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
182
183 * util/grub-probe,c (options): Make -0 work again (broken by
184 conversion to argp).
185 (main): Simplify logic.
186
187 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
188
189 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
190
191 2014-03-26 Fu Wei <fu.wei@linaro.org>
192
193 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
194
195 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
198 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
199
200 Suggested by: Markus Müller.
201
202 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
205 if E820 failed to return any regions.
206
207 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
208
209 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
210 tables for low memory calculations.
211
212 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
215 location to 640K.
216
217 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
220 region.
221
222 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
225 exclusively.
226
227 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
228
229 Add bootpath parser for open firmware.
230
231 It enables net boot even when there is no bootp/dhcp server.
232
233 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
234 and call it at grub_ieee1275_net_config_real.
235 * grub-core/kern/ieee1275/init.c: Add bootpath to
236 grub_ieee1275_net_config.
237 * include/grub/ieee1275/ieee1275.h: Likewise.
238
239
240 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
241
242 Add grub_env_set_net_property function.
243
244 * grub-core/net/bootp.c: Remove set_env_limn_ro.
245 * grub-core/net/net.c: Add grub_env_set_net_property.
246 * include/grub/net.h: Likewise.
247
248 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
251
252 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
255
256 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
259 7 seconds to recover if last poweroff was bad.
260
261 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/disk/ahci.c: Properly handle transactions with no
264 transferred data.
265
266 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
267
268 * grub-core/disk/ahci.c: Add safety cleanups.
269
270 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
273 slots to avoid pointing to uninited area.
274
275 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
278 enabling busmaster for the end.
279
280 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * util/grub-mkfont.c: Downgrade warnings about unhandled features
283 to debug.
284
285 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
288
289 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
290
291 * .gitignore: add missing files and .exe variants.
292
293 2014-01-26 Mike Gilbert <floppym@gentoo.org>
294
295 grub-install: support for partitioned partx loop devices.
296
297 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
298 /dev/loopX as being the parent of /dev/loopXpY.
299
300 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
303 Ensure that pointers are inited to NULL and that pointers are not
304 accessed after free.
305
306 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
307
308 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
309 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
310 * include/grub/emu/misc.h: ... and here.
311 * include/grub/err.h: ... and here.
312 * util/import_gcry.py: ... and here (in files g10lib.h).
313
314 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
315
316 * util/grub-mkimage.c: Make prefix argument mandatory.
317
318 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
319
320 Fix several translatable strings.
321
322 Suggested by: D. Prévot.
323
324 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * util/grub-install.c: List available targets.
327
328 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
329
330 * util/grub-install.c (write_to_disk): Add an info message.
331
332 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
333
334 * Makefile.am: Allow adding extra files to generated Windows ZIP
335 archive by setting GRUB_WINDOWS_EXTRA_DIST.
336
337 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
338
339 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
340 Show detected font path in summary.
341
342 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
343
344 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
345 interval gradually.
346 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
347 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
348 * grub-core/net/tftp.c (tftp_open): Likewise.
349 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
350
351 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
352
353 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
354 infinite loops.
355
356 In net/net.c there is a while (1) that only exits if there is a stop
357 condition and more then 10 packages or if there is no package received.
358
359 If GRUB is idle and enter in this loop, the only condition to leave is
360 if it doesn't have incoming packages. In a network with heavy traffic
361 this never happens.
362
363 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
364
365 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
366 EPERM when modifying kern.geom.debugflags. It is only a problem for
367 such things as installing GRUB to the MBR, in which case there'll be
368 an error later anyway, not for opening files during tests.
369
370 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
371
372 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
373 instead of MOD_FILES.
374 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
375 both with and without .exe.
376 * grub-core/genemuinitheader.sh: Same.
377
378 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
379
380 * util/grub-install.c: Fix a typo.
381
382 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
383
384 * grub-core/normal/main.c (read_config_file): Buffer config file.
385 Reduces boot time.
386
387 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
388
389 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
390 symbolic link to directory. It fails in Msys shell on Windows 2003.
391
392 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * Makefile.am (default_payload.elf): Add modules
395 multiboot cbmemc linux16 gzio echo help.
396
397 2014-01-18 Mike Gilbert <floppym@gentoo.org>
398
399 * Makefile.util.def: Link grub-ofpathname with zfs libs.
400
401 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
404 conflicts.
405
406 Reported by: Andrey Borzenkov.
407
408 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
409
410 * include/grub/misc.h: Move macros for compiler features to ...
411 * include/grub/compiler.h: ... new file.
412 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
413 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
414 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
415 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
416 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
417 * grub-core/video/capture.c: Include <grub/misc.h>.
418 * include/grub/command.h: Include <grub/misc.h>.
419 * include/grub/dl.h: Include <grub/misc.h>.
420 * include/grub/procfs.h: Include <grub/misc.h>.
421
422 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
423
424 * configure.ac: Add support for BUILD_EXEEXT and use it ...
425 * Makefile.am: ... here.
426 * Makefile.util.def: ... and here.
427 * grub-core/Makefile.am: ... and here.
428
429 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
430
431 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
432 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
433
434 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * grub-core/term/terminfo.c: Recognize keys F1-F12.
437
438 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
439
440 * configure.ac: Add support for BUILD_LDFLAGS.
441 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
442 * grub-core/Makefile.am: ... and here.
443 * INSTALL: Mention BUILD_LDFLAGS.
444
445 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
448
449 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
452 and has no //.
453
454 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * NEWS: Add few missing entries.
457
458 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
459
460 * util/grub.d/00_header.in (make_timeout): Use && rather than test
461 -a.
462 * util/grub.d/10_windows.in: Likewise.
463 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
464 than test -o.
465 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
466 rather than test -o.
467
468 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
469
470 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
471 redundant preprocessor conditional.
472
473 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
474
475 * Makefile.util.def (grub-macbless): Change mansection to 8.
476
477 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
478
479 * grub-core/loader/arm64/linux.c: correctly set device path end length.
480
481 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
482
483 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
484 arm64 to comply with EFI specification. Also use grubaa64.efi for
485 consistency.
486 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
487
488 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
489
490 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
491 on MinGW-64 when compiling for 32 bits.
492
493 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
494
495 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
496
497 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * NEWS: Add few missing entries. Correct existing ones.
500
501 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
502
503 Don't abort() on unavailable coreboot tables if not running on coreboot.
504
505 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
506
507 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
508 on mingw.
509
510 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
511
512 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
513 mention of it from 2.02.
514
515 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
518
519 As these functions are used on pre-ARMv6 CPUs as well we don't want
520 to make assembler assume that architecture is higher than default one.
521
522 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
523
524 * NEWS: First draft of 2.02 entry.
525
526 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
527
528 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
529 * docs/grub.texi (Getting the source code): Likewise.
530
531 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
532
533 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
534 detection.
535
536 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * configure.ac: Set version to 2.02~beta2.
539
540 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
543
544 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
545
546 * util/grub-probe.c: Improve help message and simplify list handling.
547
548 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
549
550 Fix buffer overflow in grub_efi_print_device_path.
551
552 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
553
554 Show SATA device path.
555
556 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
557
558 Revert grub-file usage in grub-mkconfig.
559
560 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
561
562 Make newly-created files other than grub.cfg world-readable.
563
564 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
565
566 * util/grub.d/00_header.in: Improve compatibility with old config.
567
568 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
569
570 Make rijndael.c respect aliasing rules.
571
572 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
573
574 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
575
576 Make grub_util_device_is_mapped_stat available in grub-emu core.
577
578 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
579
580 Add -Qn to TARGET_CFLAGS if it's supported.
581 Fixes compilation on cygwin.
582
583 Reported by: Andrey Borzenkov.
584 Suggested by: Andrey Borzenkov.
585
586 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
587
588 Save TARGET_CC version in modinfo.sh.
589
590 Suggested by: Andrey Borzenkov.
591
592 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
593
594 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
595 follow the same algorithm to avoid method mismatch. Don't assume
596 DMRAID- UUID to mean full disk but instead check that mapping is linear.
597
598 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
599
600 Declare GRUB_EFI_VENDOR_APPLE_GUID.
601
602 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
603
604 Dump type and vendor specific data when printing device path.
605
606 2013-12-23 Colin Watson <cjwatson@debian.org>
607
608 Update some documentation to refer to Git rather than Bazaar.
609
610 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
611 than Bazaar.
612 * po/README: Likewise. Fix spelling mistake.
613
614 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
615
616 Don't distribute config.h.
617
618 * Makefile.am (platform_HEADERS): Move to ...
619 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
620 failure when building from a distributed tarball.
621
622 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
623
624 * configure.ac: Fix spelling.
625 * grub-core/commands/parttool.c: Fix grammar.
626 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
627 Embedding Partition".
628
629 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
630
631 ARM64 support for grub-mkrescue.
632
633 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
634
635 Install modinfo.sh to keep build information around.
636
637 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
638
639 * grub-core/modinfo.sh.in: Add build config information.
640
641 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
642
643 ARM64 grub-file and grub-mkconfig support.
644
645 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Remove leftover options defines.
648
649 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
652
653 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * grub-core/loader/arm64/linux.c: Add missing bracket.
656
657 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
658
659 Add arm64-efi recognition to grub-file.
660
661 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
662
663 Fix ia64-efi recognition in grub-file.
664
665 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
666
667 Recognize raspberry pi kernel in grub-file.
668
669 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
670
671 Enable cache on ARM U-Boot port.
672
673 Without it the port is reidiculously slow.
674
675 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
676
677 Fix ARM cache maintainance.
678
679 More code was converted from ASM to C for easier handling.
680
681 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
682
683 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
684 algorithm on v5.
685
686 Suggested by: Leif Lindholm.
687
688 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
689
690 * util/grub-mkconfig.in: Fix Xen platform conditions.
691
692 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
693
694 * util/grub-mkrescue.c: Split single help message string in several
695 strings used in previous shell version.
696
697 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
698
699 Add arm64 Linux loader.
700
701 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
702
703 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
704
705 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
706
707 Add module loading and parsing boot time checkpoints.
708
709 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
712 platforms.
713
714 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
715
716 * util/grub-mkconfig.in: Skip non-executable files.
717
718 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
719
720 Workaround buggy timer in raspberry pie by using our own timer
721 implementation.
722
723 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
724
725 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
726 Increase to 16 MiB to allow loading the whole memdisk.
727
728 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
729
730 Fix ARM Linux Loader on non-FDT platforms.
731
732 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
733
734 * configure.ac: Choose link format based on host_os on emu.
735
736 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
737
738 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
739
740 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * grub-core/kern/emu/main.c: Build fix for emu.
743
744 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Build fixes for argp.h with older gcc.
747
748 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
751 in strings.
752
753 Suggested by: David Prévot.
754
755 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
756
757 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
758
759 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
760
761 Enable -Wformat=2 if it's supported.
762
763 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
764
765 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
766 -Wmissing-declarations if supported.
767
768 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
769
770 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
771 u32 as both HFS and HFS+ have 32-bit inodes.
772
773 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * include/grub/misc.h (grub_strtol): Fix overflow.
776
777 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
778
779 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
780 as return type in both conditionals.
781
782 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
785 to use uint8_t for color.
786
787 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * util/misc.c (grub_util_get_image_size): Check for overflow.
790
791 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
794 for size.
795
796 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
799 for pointer difference.
800
801 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * util/import_gcry.py: Skip sample keys.
804
805 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
806
807 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
808
809 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * configure.ac: Remove duplicate warning arguments.
812
813 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Add missing static qualifiers.
816
817 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
818
819 Add missing includes.
820
821 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
822
823 Inline printf templates when possible to enable format checking.
824
825 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
826
827 * include/grub/crypto.h: Don't discard const attribute.
828
829 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
832 was intended.
833
834 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
835
836 * grub-core/lib/crypto.c: Don't discard const attribute.
837
838 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * grub-core/lib/disk.c: Fix potential overflow.
841
842 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
843
844 * grub-core/lib/arg.c: Don't discard const attribute.
845
846 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * grub-core/kern/dl.c: Don't discard const attribute.
849
850 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * grub-core/kern/disk.c: Fix potential overflow.
853
854 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * conf/Makefile.common: Don't include non-existing directory
857 grub-core/lib/libgcrypt-grub/include.
858
859 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Clarify several translatable messages.
862
863 2013-12-21 David Prévot <david@tilapin.org>
864
865 Correct some translatable strings.
866
867 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
868
869 * util/grub-mkrescue.c: Rephrase mkrescue description.
870
871 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
872 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
873
874 Clarify several translatable messages.
875
876 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
877
878 Be more verbose about some configure failures.
879
880 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
881
882 Fix various build problems on GNU/Hurd.
883
884 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
885 !defined (__GNU__).
886 (xgetcwd): Likewise.
887 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
888 [__GNU__]: Add prototype.
889 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
890 long int using %ld rather than %d.
891
892 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * util/grub-install.c: Inform user about install platform.
895
896 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
897
898 * configure.ac: Set version to 2.02~beta1.
899
900 2013-12-18 Allen Pais <allen.pais@oracle.com>
901 2013-12-18 Bob Picco <bob.picco@oracle.com>
902
903 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
904
905 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
906
907 Make grub_zlib_decompress handle incomplete chunks.
908
909 Fixes squash4.
910
911 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
914 on i386-multiboot.
915
916 2013-12-18 Aleš Nesrsta <starous@volny.cz>
917
918 * grub-core/disk/usbms.c: Retry on unknown errors.
919 Reuse the same tag on retries.
920
921 2013-12-18 Aleš Nesrsta <starous@volny.cz>
922
923 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
924
925 Avoid confusing them with already completed transfers.
926
927 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
928
929 Remove xen VFB.
930
931 Due to XEN bug it prevents Linux boot. Remove it at least, until
932 workaround is found.
933
934 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * po/exclude.pot: Add 2 missing excludes.
937
938 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
939
940 Add missing license section in macbless.mod and macho.mod.
941
942 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Allow compilation without thumb-interwork as long as no thumb is
945 involved or only thumb2 is used.
946
947 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
948
949 Use -Wl,--no-relax rather than -mno-relax for uniformity.
950
951 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * INSTALL: Update comment as to why sparc64 clang isn't usable.
954
955 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
956
957 Add __attribute__ ((sysv_abi)) only if it's really needed.
958
959 Some compilers don't support it.
960
961 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
964
965 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Remove -Wold-style-definition.
968
969 Not very useful and interaction of it with regexp depends on GCC
970 version.
971
972 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
973
974 Make grub_util_get_windows_path_real static.
975
976 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
977
978 * grub-core/commands/fileXX.c: Silence cast-align.
979 * grub-core/loader/i386/xen_fileXX.c: Likewise.
980
981 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
984 rather than LL suffix.
985
986 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
989
990 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * grub-core/loader/arm/linux.c: Use common initrd functions.
993
994 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
995
996 Decrease number of strings to translate.
997
998 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1001
1002 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 Mark strings for translation and add remaining ones to exclude list.
1005
1006 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 * util/grub-file.c (main): Fix sizeof usage.
1009
1010 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1011
1012 Silence spurious warning.
1013
1014 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 Remove check_nt_hiberfil as it's been superseeded by file command.
1017
1018 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1021
1022 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 Implement syslinux parser.
1025
1026 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1029
1030 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 Support cpuid --pae.
1033
1034 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 Use AT keyboard on Yeeloong 3A.
1037
1038 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 Add Yeeloong 3A reboot and halt.
1041
1042 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 Add Radeon Yeeloong 3A support.
1045
1046 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 Add bonito 3A support.
1049
1050 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1053
1054 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1057
1058 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * grub-core/loader/macho.c: Fix compilation on non-i386.
1061
1062 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 Add missing format_arg attribute to check that printf with translated
1065 messages has proper arguments.
1066
1067 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 Use grub_xasprintf to format translated error messages containing
1070 64-bit quantity.
1071
1072 2013-12-17 Jon McCune <jonmccune@google.com>
1073
1074 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1075
1076 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 Unify message for unsupported relocation.
1079
1080 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 Mark miscompile error for translation.
1083
1084 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Use %I64 and not %ll when using OS printf if compiling for windows.
1087
1088 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Update Mac code to match new register_efi prototype.
1091
1092 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Implement better integration with Mac firmware.
1095
1096 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1099 load_addr.
1100
1101 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 Include serial module in default_payload.elf.
1104
1105 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 Add explicit thumb interwork bx in asm files.
1108
1109 Shouldn't matter for armv >= 5 but let's be safe.
1110
1111 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 Implement Truecrypt ISO loader.
1114
1115 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1118
1119 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 Implement grub_file tool and use it to implement generating of config
1122 in separate root.
1123
1124 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 Change to v1 xen grants.
1127
1128 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1131
1132 GRUB relied on %ebx being preserved across hypercall which isn't true.
1133
1134 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1137
1138 GRUB relied on %rdi being preserved across hypercall which isn't true.
1139
1140 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 Implement XEN VFB support.
1143
1144 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 Remove grub_bios_interrupt on coreboot.
1147
1148 It's not used currently and cannot be used safely currently.
1149
1150 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 Update exclude.pot and mark few strings for translation.
1153
1154 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1157
1158 Reported by: Jon McCune
1159
1160 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1161
1162 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1163 Add verbose information which firmware directories were tried.
1164
1165 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1166
1167 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1168 function to optionally redirect all three standard descriptors.
1169 Redefine grub_util_exec, grub_util_exec_redirect and
1170 grub_util_exec_redirect_null to use it.
1171 * include/grub/emu/exec.h: Define it.
1172 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1173 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1174 Use grub_util_exec_redirect_all to redirect error to NULL.
1175
1176 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * grub-core/tests/sleep_test.c: Silence spurious warning.
1179
1180 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1183 linker trying to "fixup" the code.
1184
1185 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1188
1189 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 Add support for converting PE+ to Elf64.
1192
1193 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1196
1197 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 Remove practice of assigning random const pointers to device id.
1200
1201 This is not required as cache code already checks driver id as well.
1202
1203 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1206 with mingw.
1207
1208 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1211 mingw or cygwin as API already matches.
1212
1213 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1216
1217 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1220 not on long.
1221
1222 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 Handle X86_64_PC64 relocation.
1225
1226 Those are generated by some cygwin compilers.
1227
1228 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 Determine the need for mingw-related stubs at compile time rather than
1231 using not very significant $target_os.
1232
1233 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1236 may not work with ELF.
1237
1238 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Use unix functions for temporary files and special files on cygwin.
1241
1242 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Define functions explicitly rather than using --defsym in tests
1245 whenever possible. Respect locality in remaining cases.
1246
1247 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1250
1251 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1252
1253 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1254 unlikely errors when getting EFI variables and make exhaustive search
1255 for all BootNNNN variables to find matching one.
1256
1257 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1258
1259 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1260
1261 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 New functional test for sleep function.
1264
1265 This test allows to check sleep without qemu. Keep qemu version as
1266 well as functional test won't notice if all clocks are going too fast
1267 or too slow.
1268
1269 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 Add explicit sysv_abi on amd64 asm routines.
1272
1273 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1276 num_table_entries.
1277
1278 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1281 functions.
1282
1283 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1286 appropriate.
1287
1288 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1291
1292 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1295 appropriate.
1296
1297 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1300
1301 In case of quick removal of loopback and adding another one it may
1302 get same ID, confusing the cache system.
1303
1304 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1307 appropriate.
1308
1309 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1312 than converting to long.
1313
1314 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1317
1318 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1321 than almost useless pointer.
1322
1323 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 Add gcc_struct to all packed structures when compiling with mingw.
1326
1327 Just "packed" doesn't always pack the way we expect.
1328
1329 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1332
1333 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * util/grub-pe2elf.c: Fix handling of .bss.
1336
1337 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Implement windows flavour of EFI install routines.
1340
1341 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1344
1345 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 Change grub_install_register_efi interface to pass GRUB device.
1348
1349 This allows grub_install_register_efi to request partition info
1350 directly.
1351
1352 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1355
1356 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 Do not use TCHAR string functions as they are not available on cygwin.
1359
1360 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 Workaround windows bug when querying EFI system partition parameters.
1363
1364 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1367 by using bitfields.
1368
1369 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1372
1373 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 Make i386-* other than i386-pc compileable under cygwin.
1376
1377 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 Fix definition of grub_efi_hard_drive_device_path. Take care that
1380 existing code would work even if by some reason bogus definition is
1381 used by EFI implementations.
1382
1383 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1386
1387 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1390 invocation.
1391
1392 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * util/config.c: Remove trailing newline from distributor in simple
1395 parsing.
1396
1397 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * include/grub/efi/api.h: Rename protocol and interface to avoid
1400 conflict.
1401
1402 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1403
1404 * .gitignore: add .exe variants. add missing files. remove few outdated
1405 entries.
1406
1407 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/osdep/exec.c: Use unix version on cygwin.
1410
1411 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 Implement multiboot2 EFI BS specification.
1414
1415 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1418 Crash happened only in some cases like a string starting at the
1419 half of the screen of same length.
1420
1421 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1424 with EFI counterpart.
1425
1426 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 Propagate the EFI commits to x86-efi specific parts.
1429
1430 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1433
1434 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 Introduce grub_efi_packed_guid and use it where alignment is not
1437 guaranteed.
1438
1439 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1442 unaligned u16 rather than u8[2].
1443
1444 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1447 for relocation range.
1448
1449 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1452 non-function pcrel21b relocation. It happens with .text.unlikely
1453 section.
1454
1455 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1456
1457 * make MAX_USABLE_ADDRESS platform-specific
1458 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1459
1460 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1461
1462 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1463
1464 2013-12-09 Jon McCune <jonmccune@google.com>
1465
1466 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1467 in grub-install and grub-bios-setup for x86 BIOS targets.
1468
1469 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 Add missing compile and link options for sparc64-emu.
1472
1473 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 Implement sparc64 trampolines (needed for sparc64-emu).
1476
1477 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1480 range of R_SPARC_HI22.
1481 Implement R_SPARC_LM22.
1482
1483 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/kern/powerpc/dl_helper.c (grub_arch_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 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1492 on ia64 as __clear_cache is a dummy on ia64.
1493
1494 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1497 Do not explicitly check for symbol table as it's already checked in
1498 platform-independent layer.
1499
1500 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1501
1502 * util/grub-mkconfig.in: Add missing newline to output.
1503
1504 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1507 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1508
1509 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1512 compilation with GCC <= 4.2.
1513 * grub-core/kern/emu/argp_common.c: Likewise.
1514
1515 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1518 right platform rather than leaking to sparc64-emu.
1519
1520 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1523 But ensure that the variables in question are indeed unsigned.
1524
1525 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1528
1529 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 Remove grub_memalign on emu.
1532
1533 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1536 truncate incomplete lines but instead flushes them.
1537
1538 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1541 and implement windows variant.
1542
1543 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 Fix mips-emu compilation.
1546
1547 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * configure.ac: Check for freetype library usability.
1550
1551 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 Make arm-emu work.
1554
1555 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1558
1559 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1560
1561 * docs/grub.texi (Environment): Update color_normal and color_highlight
1562 defaults (light-gray instead of white).
1563
1564 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1565
1566 * grub-core/normal/main.c (INIT): Set default color to light-gray
1567 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1568 and apparently BIOS defaults.
1569
1570 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 Transform -C option to grub-mkstandalone to --core-compress available
1573 in all grub-install flavours.
1574
1575 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 Merge GRUBFS and GRUB_FS variables.
1578
1579 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1580
1581 Revert commit 69ca97c820, it caused failures when using OS device name
1582 in grub-install. Instead just strip off parenthesis in grub-install
1583 if (hdX) was passed.
1584
1585 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1586
1587 * util/grub-install.c (push_partmap_module): Add helper to convert
1588 partmap names to module names and use it in probe_mods(). Fixes
1589 failure to find partmap modules in diskfilter case.
1590
1591 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * configure.ac: Make unifont mandatory on coreboot.
1594
1595 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * configure.ac: Skip unifont 6.3 pcf and bdf.
1598
1599 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * Makefile.am: Remove partial font files if generation failed.
1602
1603 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1604
1605 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1606 strings.
1607 * include/grub/util/misc.h: Define it ...
1608 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1609
1610 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1611
1612 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1613 ${grub_probe}.
1614
1615 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 Don't add -mlong-calls when compiling with clang.
1618
1619 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * configure.ac: Fix a typo.
1622
1623 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Revamp relocation handling.
1626
1627 Move more code to common dl.c. Add missing veneers for arm and arm64.
1628 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1629
1630 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1633
1634 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1635
1636 * INSTALL: Raise minimum python version to 2.6.
1637 * gentpl.py: Use python3-style print function.
1638
1639 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * util/grub-install.c: Mention Boot* variable.
1642
1643 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1644
1645 * grub-core/osdep/linux/hostdisk.c
1646 (grub_util_find_partition_start_os): Initialise start to avoid
1647 spurious compiler warning.
1648
1649 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1650
1651 On Linux, read partition start offsets from sysfs if possible, to
1652 cope with block device drivers that don't implement HDIO_GETGEO.
1653 Fixes Ubuntu bug #1237519.
1654
1655 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1656 function.
1657 (sysfs_partition_start): Likewise.
1658 (grub_util_find_partition_start_os): Try sysfs_partition_start
1659 before HDIO_GETGEO.
1660
1661 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1662
1663 * grub-core/kern/fdt.c: Update struct size when adding node.
1664
1665 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Handle unaligned .bss on sparc64.
1668
1669 Current code improperly assumes that both __bss_start and _end are
1670 aligned to 8-bytes. Eliminating this assumption and explicitly align
1671 modules.
1672
1673 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1676 so it doesn't land in the middle of loaded image.
1677
1678 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * configure.ac: Move all warning options that may be absent in
1681 gcc >= 3.1 to optional.
1682
1683 Note: while this allows to compile with older GCC, official requirements
1684 remain the same and no support for older GCC.
1685
1686 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1687
1688 Copying the themes directory in grub-shell isn't
1689 parallel-test-friendly and breaks on the second test when the source
1690 directory is read-only (as in "make distcheck"). Instead, add a
1691 hidden --themes-directory option to grub-mkrescue et al, and use it
1692 in grub-shell.
1693
1694 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1697 as it's no longer necessarry.
1698
1699 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * configure.ac: Allow compilation with older GCC for ARM.
1702
1703 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1706 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1707 ppc.
1708
1709 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1712
1713 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 Pass font config to config.h and not by TARGET_CFLAGS as adding
1716 arguments doesn't work if TARGET_CFLAGS is specified on command
1717 line.
1718
1719 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * configure.ac: Add -Wvla if compiler supports it.
1722
1723 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1726 Remove variable length arrays.
1727 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1728
1729 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1732
1733 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1734
1735 * include/grub/types.h: Declare all byteswaps as inline functions
1736 except compile-time ones.
1737
1738 Solves variable shadowing in constructions like
1739 cpu_to_le (le_to_cpu(x) + 1).
1740
1741 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1744
1745 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1746
1747 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1748 minutes.
1749
1750 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1753 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1754
1755 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1756
1757 * grub-core/Makefile.core.def (setjmp): Distribute
1758 lib/arm64/setjmp.S.
1759
1760 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1761
1762 Add a new timeout_style environment variable and a corresponding
1763 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1764 controls hidden-timeout handling more simply than the previous
1765 arrangements, and pressing any hotkeys associated with menu entries
1766 during the hidden timeout will now boot the corresponding menu entry
1767 immediately.
1768
1769 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1770 generates a warning, and if it shows the menu it will do so as if
1771 the second timeout were not present. Other combinations are
1772 translated into reasonable equivalents.
1773
1774 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1775
1776 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * util/config.c: Add missing pointer adjustment.
1779 Reported by: qwertial
1780
1781 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1782
1783 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1784 directly, not via `cpu' link, to fix libgrub.pp generation.
1785
1786 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1787
1788 New port arm64-efi.
1789
1790 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1791
1792 * docs/grub.texi (sleep): Document exit codes.
1793
1794 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 Ensure that -mno-unaligned-access or some equivalent option is used.
1797
1798 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1801 -march=armv3.
1802
1803 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1806
1807 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1808
1809 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1810 builds, since we don't have an EPS version of font_char_metrics.png.
1811 Add leading dot to image extension per the Texinfo documentation.
1812
1813 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1814
1815 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1816 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1817 * util/grub-gen-widthspec.c: Likewise.
1818 * util/grub-mkfont.c: Likewise.
1819
1820 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1821
1822 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1823 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1824 failed to install on (hdX).
1825 * util/grub-setup.c (get_device_name): Remove, not needed after
1826 above change.
1827
1828 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1831
1832 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/grub-fstest.c: Remove variable length arrays.
1835
1836 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1839
1840 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1843 computing crc32 rather than handling with md fundtions directly.
1844
1845 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1848 checking fwstart.img rather than md fundtions directly.
1849
1850 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * util/grub-mkrescue.c (main): Check that fread succeeded.
1853
1854 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * conf/Makefile.common: Remove -mexplicit-relocs and
1857 -DUSE_ASCII_FALLBACK on yeeloong.
1858
1859 -DUSE_ASCII_FALLBACK is already added by font snippets.
1860 -mexplicit-relocs isn't needed is compiler/assemblera are
1861 configured properly.
1862 If they're not we shouldn't attempt to fix it by ourselves.
1863 Binary compare between before and after shows no difference.
1864
1865 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1868 sources in dependencies directly.
1869
1870 This was the only instance of "library" in core config. A bug was
1871 reported that -fno-stack-protector wasn't passed to it. Instead of
1872 figuring out why it failed just remove this construction used
1873 needlessly.
1874
1875 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1878 fgets succeeded.
1879
1880 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1881
1882 * docs/grub.texi (ls): Fix command description in case of a device name
1883 passed as argument.
1884
1885 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 Eliminate variable length arrays in grub_vsnprintf_real.
1888
1889 A bit tricky because this function has to continue to work without
1890 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1891 but make all stack references use 32-bit offset rather than 8-bit one.
1892 So split va_args preparsing to separate function and put the prealloc
1893 into the caller.
1894
1895 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1898 Fixes build for windows.
1899
1900 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * gentpl.py: Don't generate platform-dependent conditionals for
1903 platform-independent targets.
1904
1905 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1906
1907 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1908 references to mdadm from otherwise generic code.
1909 (grub_util_exec_pipe): Likewise.
1910 (grub_util_exec_pipe_stderr): Likewise.
1911 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1912 This function calls vgs, not mdadm; adjust variable names
1913 accordingly.
1914
1915 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1916
1917 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1918 of Autogen. The Autogen definitions files remain intact as they
1919 offer a useful abstraction.
1920
1921 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1922
1923 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1924 into no-ops, and use it in programs that copy files but do not need
1925 to take special care to sync writes (grub-mknetdir, grub-rescue,
1926 grub-mkstandalone).
1927
1928 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1929
1930 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1931 than hardcoding /usr/local/bin/xorriso.
1932
1933 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 Add PCI command activation to all PCI drivers as required for coreboot
1936 and maybe some other firmwares.
1937
1938 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1941 and non-Apple variants of efiemu compile.
1942
1943 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1944
1945 * configure.ac: Add explicit check for linking format of
1946 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1947 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1948 hardcoding linking format.
1949
1950 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1953 and not pkgdatadir.
1954
1955 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1956 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 Add a --locale-directory option to grub-install and related tools.
1959
1960 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1961 --locale-directory option.
1962 (enum grub_install_options): Add
1963 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1964 * util/grub-install-common.c (grub_install_help_filter): Handle
1965 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1966 (grub_install_parse): Likewise.
1967 (get_localedir): New function to check for a user-provided option
1968 before trying grub_util_get_localedir.
1969 (copy_locales): Use get_localedir rather than
1970 grub_util_get_localedir. Handle differing locale directory layouts.
1971 (grub_install_copy_files): Likewise.
1972
1973 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1974
1975 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1976 Don't rely on PATH_MAX.
1977
1978 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1979
1980 * grub-core/genmoddep.awk: Use more portable && rather than and.
1981
1982 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1985 an object after data. While it doesn't seem right solution, it
1986 works well enough and OSX isn't main compilation platform.
1987
1988 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1991 While it doesn't seem right solution, it works well enough and
1992 OSX isn't main compilation platform.
1993
1994 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * configure.ac: Add -static to LDFLAGS when using apple linker to
1997 prevent it from pulling in dynamic linker.
1998
1999 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 Apple assembly doesn't handle symbol arithmetic well. So define an
2002 offset symbol in boot.S and use it.
2003
2004 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 Apple assembly doesn't handle symbol arithmetic well. So instead
2007 of getting addres of kernel_sector + 4 define kernel_sector_high.
2008 It also makes code more readable.
2009
2010 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 With Apple assembly in .macro environvemnt you have to use $$ instead
2013 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2014 to $$x on Apple and to $x on everything else.
2015
2016 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2019 OBJCONV.
2020
2021 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2024 and non-Apple. This instruction is shorter and faster,
2025 so no reason not to use it on both.
2026
2027 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2030 .text when compiling for Apple.
2031
2032 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2035
2036 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2039 %dx restore the probe worked on non-existant drive. Reorganize the
2040 code a little bit to free 2 bytes necessary for push/pop.
2041
2042 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2045 Add missing cast to silence warning.
2046
2047 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2048
2049 * util/grub-install.c (update_nvram): Support --no-nvram flag
2050 for EFI targets.
2051
2052 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2055
2056 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * util/garbage-gen.c: Add missing include of sys/time.h.
2059
2060 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 Don't add -mflush-func if it's not supported by compiler.
2063
2064 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 Move common BIOS/coreboot memory map declarations to
2067 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2068
2069 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2070
2071 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2072
2073 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * INSTALL: Document why older clang versions aren't appropriate.
2076
2077 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * INSTALL: Document about clang for mips.
2080
2081 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2084 clang.
2085
2086 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 Add *-xen to the list of grub-install-common platforms.
2089
2090 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2093 3 last commits.
2094
2095 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2098
2099 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2102 with -mcmodel=large.
2103
2104 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2105
2106 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2107 range-checking for 32-bit quantities.
2108
2109 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 * configure.ac: Compile with -fPIC when compiling with clang on
2112 mips.
2113
2114 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2117 when compiling with clang.
2118
2119 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2120
2121 clang emits calls to abort () under some unknown conditions.
2122 Export abort () when compiling with clang.
2123
2124 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * docs/grub-dev.texi: Document stack and heap sizes.
2127
2128 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * include/grub/i386/pc/memory.h: Decrease
2131 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2132 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2133 The binary doesn't change (checked). It's more to better reflect actual
2134 usage.
2135
2136 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2139 at compile time that enough of scratch size is available.
2140
2141 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2144 Previously we misaligned stack by 8 in startup.S and compensated
2145 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2146 right behaviour is to align stack in startup.S and keep it aligned
2147 in callwrap.S. startup.S part was committed few commits before. This
2148 takes care of callwrap.S.
2149 Reported by: Gary Lin.
2150
2151 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2154 .data and .bss. May happen if compiler and assembly use different
2155 alignment.
2156
2157 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2160 way.
2161
2162 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Add support for a new magic symbol _gp_disp on mips to handle PIC
2165 binaries.
2166
2167 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2170
2171 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2174 when rest of GRUB is compiled for hisher stepping. Instead use
2175 .set mips3/.set mips1 around cache and sync opcodes.
2176
2177 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2180 do essentially the same thing, do it in similar way.
2181
2182 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2183
2184 * util/grub-mkrescue.c (main): If a source directory is not
2185 specified, read platform-specific files from subdirectories of
2186 pkglibdir, not pkgdatadir.
2187
2188 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2189
2190 * grub-core/normal/progress.c: Remove unused file.
2191
2192 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2195 array.
2196
2197 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2200 than grub.cfg.
2201
2202 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * coreboot.cfg: Add missing file.
2205
2206 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2209
2210 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2211
2212 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2213 selectively skipping systems.
2214
2215 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2216
2217 * Makefile.util.def (grub-mkimage): Add
2218 grub-core/osdep/aros/config.c to extra_dist.
2219 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2220 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2221 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2222 grub-core/gnulib-no-gets.diff.
2223
2224 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 Add automated filesystem checking based on scripts I've used now for
2227 quite some time locally. Most of the test require root so they are
2228 skipped when run without necessarry privelegies.
2229
2230 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2231
2232 * util/grub-install.c (main): Adjust info messages to match
2233 installed paths of grub-bios-setup and grub-sparc64-setup.
2234
2235 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2236
2237 * util/grub-install-common.c (copy_locales): Consistently use
2238 grub_util_get_localedir () rather than LOCALEDIR.
2239 (grub_install_copy_files): Likewise.
2240
2241 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2242
2243 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2244 16-byte boundary, as required by the x86-64 ABI, before calling
2245 grub_main. In some cases, GCC emits code that assumes this
2246 alignment, which crashes if not aligned. The EFI firmware is also
2247 entitled to assume that stack alignment without checking.
2248
2249 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2250
2251 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2252 4k page boundaries as expected by firmware rather than 1k
2253 boundaries.
2254 (grub_mmap_malign_and_register): Likewise.
2255
2256 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2259 fragmentation 512M is enough.
2260
2261 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2264 pointer to 32K. This is the size of cache element which is the most
2265 common allocation >1K. This way the pointer is always around blocks
2266 of 32K and so we keep performance while decreasing fragmentation.
2267
2268 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2271 current memory when allocating large chunks. This significantly
2272 decreases memory fragmentation.
2273
2274 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2275
2276 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2277 but for symmetry).
2278 * tests/lzocompress_test.in: Skip if lzop is not installed.
2279 * tests/xzcompress_test.in: Skip if xz is not installed.
2280
2281 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2282
2283 * util/grub-mkrescue.c (main): Fix typo.
2284
2285 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2286
2287 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2288 clock frequency to 200 MHz,
2289
2290 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2293
2294 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2297 Load config file from (cbfsdisk)/etc/grub.cfg.
2298
2299 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * util/grub-install-common.c (grub_install_copy_files): Fix module
2302 destination directory.
2303
2304 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2305
2306 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2307 files have not been built.
2308
2309 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2310
2311 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2312 Handle errors from mkstemp.
2313 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2314
2315 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2318 on primary master on pseries.
2319
2320 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2323 already loaded. This saves memory needed for tests,
2324
2325 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2328 work again.
2329
2330 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2333 work again.
2334
2335 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2338 master since with some combinations of qemu and firmware only primary
2339 IDE channel is available.
2340
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2344 low-memory platforms where we don't have enough memory for them.
2345 * grub-core/tests/videotest_checksum.c: Likewise.
2346
2347 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2350 already loaded. This saves memory needed for tests,
2351
2352 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 Fix handling of install lists.
2355
2356 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2359
2360 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2363 the devices before accessing them.
2364
2365 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2368 as file argument.
2369
2370 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2373
2374 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2377 (grub_file_close): Free file->name.
2378
2379 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2382 (grub_load_public_key): Likewise.
2383 (grub_verify_signature_real): Likewise.
2384 (grub_cmd_verify_signature): Likewise.
2385
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2389 memory leak.
2390
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2394 (grub_longjmp): Restore r31.
2395 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2396
2397 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2400 modules to be in line with make_image_abs.
2401
2402 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2405
2406 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2407
2408 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2409
2410 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2411
2412 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2415 to leave some memory to firmware.
2416
2417 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2420 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2421 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2422 Load gfxmenu.
2423
2424 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2427 now needs full arguments.
2428
2429 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 * util/grub-mkrescue.c (main): Add trailing \n in
2432 .disk_label.contentDetails to be in line with previous shell script.
2433
2434 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2437
2438 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * util/grub-install-common.c (grub_install_parse): Recognize
2441 --compress=none like shell script did.
2442
2443 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * include/grub/misc.h: Replace check for __sparc64__ with one for
2446 __sparc__ as __sparc64__ isn't actually defined.
2447
2448 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2451 counterpart of fixing the naming of escc ports.
2452
2453 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * util/grub-install-common.c (platforms): Fix the order of entries and
2456 remove useless field val.
2457
2458 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * util/grub-install.c: Add new option --no-bootsector to skip
2461 installing of bootsector. Accept --grub-setup=/bin/true as
2462 backwards-compatible synonym.
2463
2464 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2465
2466 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2467 order of qsort arguments (number of elements vs. element size).
2468
2469 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2472 the function of these files exceeds what can be sanely handled in shell
2473 in posix-comaptible way. Also writing it in C extends the functionality
2474 to non-UNIX-like OS and minimal environments.
2475
2476 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2479 compiling to thumb2.
2480 * grub-core/kern/arm/cache_armv7.S: Likewise.
2481 * grub-core/lib/arm/setjmp.S: Likewise.
2482
2483 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2484
2485 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2486 in grub_uboot_syscall
2487
2488 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 Decrease stack usage in lexer.
2491
2492 We have only 92K of stack and using over 4K per frame is wasteful
2493
2494 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2495 as macros so that compiler would remove useless structure on stack.
2496 Better solution would be to fix flex not to put this structure on
2497 the stack but flex is external program.
2498
2499 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 Decrease stack usage in signature verification.
2502
2503 We have only 92K of stack and using over 4K per frame is wasteful
2504
2505 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2506 rather than stack.
2507 (grub_verify_signature_real): Likewise.
2508
2509 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 Decrease stack usage in mdraid 0.9x.
2512
2513 We have only 92K of stack and using over 4K per frame is wasteful
2514
2515 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2516 rather than stack.
2517
2518 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 Decrease stack usage in BtrFS.
2521
2522 We have only 92K of stack and using over 4K per frame is wasteful
2523
2524 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2525 rather than stack.
2526
2527 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 Decrease stack usage in JFS.
2530
2531 We have only 92K of stack and using over 4K per frame is wasteful
2532
2533 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2534 stack. Note: this function is recursive.
2535 (grub_jfs_read_inode): Read only part we care about.
2536
2537 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2538
2539 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2540 handling
2541
2542 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2543
2544 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2545
2546 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2547
2548 * docs/grub.texi (Environment): Document cmdpath.
2549
2550 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2551
2552 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2553 Remove "unused" attribute from arguments, they are used.
2554
2555 2013-11-15 Colin Watson <cjwatson@debian.org>
2556
2557 * .gitignore: Only ignore grub-mk* at the top level.
2558
2559 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2560
2561 * util/grub-reboot.in (usage): Fix a typo.
2562
2563 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 Replace libgcc version of ctz with our own.
2566
2567 On upcoming arm64 port libgcc ctz* are not usable in standalone
2568 environment. Since we need ctz* for this case and implementation is
2569 in C we may as well use it on all concerned platforms.
2570
2571 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * configure.ac: Probe for linking format rather than guessing it based
2574 on target_os.
2575
2576 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2579 "1" prior to handoff.
2580
2581 Reported by: M A Young.
2582
2583 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2586 \0 to all files.
2587
2588 Reported by: M A Young.
2589
2590 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2593 compilation on NetBSD.
2594
2595 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * acinclude.m4: Don't add -P on initial nm test.
2598
2599 Note: even though this patch postdates Andrey's it bears 14 Nov as
2600 date due to timezone difference.
2601
2602 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2603
2604 * grub-core/Makefile.core.def (signature_test): Add missing
2605 tests/signatures.h.
2606
2607 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2608
2609 * util/grub-install_header: Set localedir here, since this file is
2610 where it's used.
2611 * util/grub-install.in: Remove setting of localedir.
2612 * util/grub-mkrescue.in: Likewise.
2613
2614 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2617
2618 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * configure.ac: Move nm checks to the end.
2621 Call grub_PROG_NM_WORKS.
2622 * acinclude.m4: New check grub_PROG_NM_WORKS.
2623 Use $TARGET_CFLAGS -c when compiling test binary.
2624
2625 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2626
2627 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2628 unused variables.
2629
2630 2013-11-14 Matthew Garrett <mjg@redhat.com>
2631
2632 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2633 cmdpath to firmware directory.
2634
2635 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2638 at the start of second iteration.
2639
2640 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2643
2644 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * Makefile.am (default_payload.elf): New target for easier coreboot
2647 build.
2648
2649 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2652 clang (not necessarry with -no-integrated-as).
2653 * include/grub/symbol.h [__arm__]: Likewise.
2654
2655 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * configure.ac: Use -no-integrated-as on arm with clang.
2658 * INSTALL: Mention ARM compilation with clang.
2659
2660 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2663 -mthumb-interwork.
2664
2665 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2666
2667 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2668 code for indirect block handling.
2669
2670 Saves 185 bytes on compressed image.
2671
2672 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2673
2674 Fix make clean.
2675
2676 * Makefile.am: Remove build-grub-* in make clean.
2677
2678 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2679
2680 New files to gitignore.
2681
2682 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2683 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2684
2685 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2686
2687 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2688
2689 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2690
2691 * .gitignore: fix rules for .dep* and add *.a post git migration
2692
2693 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2694
2695 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2696 to match INSTALL.
2697
2698 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2699
2700 * grub-core/kern/misc.c: Don't redirect divisions in the
2701 GRUB_UTIL case.
2702 * include/grub/misc.h: Likewise.
2703
2704 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2705
2706 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2707 systems that require checking the return value of write.
2708
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2710
2711 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2712 efibootmgr quiet when --debug is not used, rather than when it is.
2713
2714 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2715
2716 * gentpl.py (define_macro_for_platform_dependencies): Remove
2717 first (and thus unused) of two definitions for this function.
2718 (platform_dependencies): Likewise.
2719
2720 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2721
2722 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2723 functions, we only need to check this for the target, not the host.
2724 * configure.ac (grub_apple_cc): Likewise.
2725
2726 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2729 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2730 asm to stay in arm even if surrounding is thumb.
2731
2732 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2735 helper functions are needed for thumb.
2736
2737 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2740 level / 3 division explicitly unsigned. Saves few bytes.
2741
2742 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2745
2746 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2749 division.
2750
2751 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2754 grub_uboot_boot_data to asm part.
2755
2756 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2759 literal load.
2760 (grub_uboot_syscall): Save/restore r9 and align stack.
2761
2762 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2765
2766 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2769 occurencies with END.
2770
2771 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2772
2773 * util/grub-editenv.c (help_filter, argp): Document how to delete
2774 the whole environment block.
2775 Reported by Dan Jacobson. Fixes Debian bug #726265.
2776
2777 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2778
2779 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2780 sectioning.
2781
2782 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2783
2784 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2785 increment/decrement.
2786
2787 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2790 compiling with clang.
2791
2792 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2795 ".".
2796
2797 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 Redirect all divisions to grub_divmod64.
2800
2801 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2804
2805 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 Add missing includes of loader.h.
2808
2809 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * configure.ac: Allow disabling themes.
2812
2813 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2814
2815 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2816
2817 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2820 until it becomes operational.
2821
2822 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/Makefile.core.def (legacy_password_test): Disable
2825 on platforms where no legacycfg is compiled.
2826 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2827 load legacy_password_test.
2828
2829 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2830
2831 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2832
2833 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2836
2837 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2840 strict-aliasing warning.
2841 (fsync): Silence cast warning.
2842
2843 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/commands/verify.c: Remove variable length arrays.
2846 Load gcry_dsa/gcry_rsa automatically.
2847
2848 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/tests/signature_test.c: New test.
2851
2852 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2855 API.
2856
2857 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2860 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2861
2862 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2865
2866 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/fs/proc.c: Allow \0 in proc files.
2869
2870 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2873
2874 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2877
2878 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/fs/ext2.c: Remove variable length arrays.
2881
2882 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2885 length arrays.
2886
2887 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2890 * grub-core/disk/cryptodisk.c: Likewise.
2891 * grub-core/disk/geli.c: Likewise.
2892 * grub-core/disk/luks.c: Likewise.
2893
2894 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * grub-core/tests/legacy_password_test.c: New test.
2897 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2898
2899 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2902
2903 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/tests/pbkdf2_test.c: New test.
2906
2907 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2910
2911 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * grub-core/io/lzopio.c: Remove variable length arrays.
2914
2915 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * include/grub/crypto.h: Add maximums on hash size and cipher block
2918 size.
2919
2920 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2923
2924 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/tests/xnu_uuid_test.c: New test.
2927
2928 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2931 covers it).
2932
2933 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/commands/hashsum.c: Remove variable length arrays.
2936
2937 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2940 condition.
2941 * tests/grub_func_test.in: Increase memory allocation.
2942
2943 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2946 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2947 sys/mount.h.
2948
2949 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2952 (grub_util_get_fd_size_os): ...this.
2953 (grub_hostdisk_flush_initial_buffer): New empty function.
2954
2955 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2958 without --defined-only.
2959
2960 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2963 rip-relative addressing in prologue.
2964
2965 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2968 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2969
2970 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2973 Add missing semicolon.
2974
2975 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2978
2979 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * configure.ac: Check for lzma.h for enabling liblzma and allow
2982 manual disabling.
2983
2984 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 Add missing includes of loader.h.
2987
2988 2013-11-11 Fam Zheng <famcool@gmail.com>
2989
2990 * util/grub.d/30_os-prober.in: Add minix entry.
2991
2992 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2995 right buffer for temporary load.
2996
2997 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3000
3001 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3004 payload.
3005
3006 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3009 not Types.h.
3010 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3011 environment.
3012 (LzmaDec_InitDicAndState): Make static.
3013
3014 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3017
3018 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3021
3022 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3023
3024 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 * docs/grub-dev.texi: Replace bzr references with git ones.
3027
3028 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3029
3030 * docs/grub.texi (Simple configuration): Remove reference to
3031 grub-reboot from saved default entry description - grub-default
3032 does not use it anymore.
3033
3034 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3037 compiled with.
3038
3039 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3040
3041 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3042
3043 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 Fix grub_machine_fini bitrot.
3046
3047 Reported by: Glenn Washburn.
3048
3049 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3052
3053 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3056 -DELF.
3057 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3058 instead of ELF*.
3059
3060 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3063 Add -march=core2 when testing compile of efiemu64.
3064
3065 Thanks Andrey Borzenkov for spotting this.
3066
3067 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3070 XEN PV environment and load kernels.
3071
3072 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3075 * grub-core/loader/multiboot_mbi2.c: Likewise.
3076
3077 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3080 handling.
3081
3082 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3085
3086 Tested by: Denis 'GNUtoo' Carikli.
3087
3088 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3091
3092 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3095 Use to get rounded angle rather than truncated.
3096
3097 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * grub-core/term/serial.c: Add option for enabling/disabling
3100 RTS/CTS flow control.
3101
3102 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3105 divisions.
3106
3107 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3110 Use grub_fatal rather than divide by zero.
3111 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3112
3113 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3116 truncate.
3117 (grub_fixed_fsf_divide): Likewise.
3118
3119 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3122 division by-zero and senseless negative divisions.
3123
3124 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3127 division by-zero and senseless negative divisions.
3128 (circprog_set_property): Don't accept negative num_ticks.
3129
3130 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3133 division by-zero and senseless negative divisions.
3134
3135 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * configure.ac: Use elf_*_fbsd on kfreebsd.
3138
3139 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/tests/div_test.c: New test.
3142
3143 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3144
3145 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3146 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3147 * grub-core/gfxmenu/view.c: Likewise.
3148 * grub-core/video/fb/video_fb.c: Introduce new functions:
3149 grub_video_set_area_status, grub_video_get_area_status,
3150 grub_video_set_region, grub_video_get_region.
3151 * grub-core/video/bochs.c: Likewise.
3152 * grub-core/video/capture.c: Likewise.
3153 * grub-core/video/video.c: Likewise.
3154 * grub-core/video/cirrus.c: Likewise.
3155 * grub-core/video/efi_gop.c: Likewise.
3156 * grub-core/video/efi_uga.c: Likewise.
3157 * grub-core/video/emu/sdl.c: Likewise.
3158 * grub-core/video/radeon_fuloong2e.c: Likewise.
3159 * grub-core/video/sis315pro.c: Likewise.
3160 * grub-core/video/sm712.c: Likewise.
3161 * grub-core/video/i386/pc/vbe.c: Likewise.
3162 * grub-core/video/i386/pc/vga.c: Likewise.
3163 * grub-core/video/ieee1275.c: Likewise.
3164 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3165 * include/grub/video.h: Likewise.
3166 * include/grub/video_fb.h: Likewise.
3167 * include/grub/fbfill.h: Updated render_target structure.
3168 grub_video_rect_t viewport, region, area
3169 int area_offset_x, area_offset_y, area_enabled
3170 * include/grub/gui.h: New helper function
3171 grub_video_bounds_inside_region.
3172 * docs/grub-dev.texi: Added information about new functions.
3173
3174 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3177 for alignment.
3178
3179 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3182 missing attribute.
3183 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3184
3185 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3188 simple division on arm and ia64.
3189
3190 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3193 link with libgcc.
3194
3195 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3198
3199 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3202 prefix symbol, not @.
3203
3204 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * INSTALL: Add note about older gcc and clang.
3207
3208 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3211
3212 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3215 NULL pointer dereference.
3216
3217 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3220 clang.
3221
3222 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3225 warnings.
3226
3227 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3230 function.
3231 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3232 * grub-core/disk/geli.c (ascii2hex): Likewise.
3233
3234 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * configure.ac: Run linker tests without -Werror.
3237 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3238 Change all occurences of -static-libgcc resp -lgcc to
3239 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3240
3241 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3244
3245 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 Allow compiling with clang (not really supported though).
3248
3249 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3250 unconditionally.
3251 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3252 Add -mrtd -mregparm=3 on i386 when not using clang.
3253 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3254
3255 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3258 bindings.
3259 * grub-core/lib/reed_solomon.c: Likewise.
3260 * include/grub/i386/gdb.h: Likewise.
3261 * include/grub/i386/pc/int.h: Likewise.
3262 * include/grub/i386/pc/pxe.h: Likewise.
3263 * include/grub/ieee1275/ieee1275.h: Likewise.
3264
3265 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 Import libgcrypt 1.5.3.
3268
3269 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * configure.ac: Don't add -Wcast-align on x86.
3272
3273 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * configure.ac: Add -freg-struct-return on all platforms that
3276 support it.
3277
3278 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * acinclude.m4: Use -Werror on parameter tests.
3281 * configure.ac: Likewise.
3282
3283 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3286
3287 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * configure.ac: Check that -malign-loops works rather than assuming that
3290 either -falign-loops or -malign-loops work.
3291
3292 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3295
3296 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * configure.ac: Prevent cflags leaking to subsequent tests by always
3299 resetting cflags to target_cflags in target tests.
3300
3301 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3304 function.
3305
3306 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3309
3310 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3313
3314 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/normal/cmdline.c (grub_cmdline_get):
3317 Remove nested functions.
3318
3319 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * tests/test_sha512sum.in: Make it work on emu.
3322
3323 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3326 functions.
3327 (grub_bidi_line_logical_to_visual): Likewise.
3328
3329 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 Remove vestiges of -Wunsafe-loop-optimisations.
3332
3333 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3334 -Wno-unsafe-loop-optimisations.
3335 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3336 pragma.
3337 * grub-core/io/gzio.c: Likewise.
3338 * grub-core/script/parser.y: Likewise.
3339 * grub-core/script/yylex.l: Likewise.
3340 * util/grub-mkfont.c: Likewise.
3341
3342 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 * util/grub-mkfont.c (process_cursive): Remove nested function.
3345
3346 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3347
3348 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3349 (grub_boot_time): Likewise.
3350
3351 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 * include/grub/symbol.h (FUNCTION): Use @function rather than
3354 "function".
3355 (VARIABLE): Likewise.
3356
3357 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3360
3361 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3362
3363 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3364 (parse_dhcp_vendor): Likewise.
3365
3366 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3369
3370 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3373 Define after defining type and not before.
3374
3375 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3378 type.
3379 (grub_gcm_decrypt): Likewise.
3380 (algo_decrypt): Likewise.
3381 (grub_zfs_decrypt_real): Transform error type.
3382
3383 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3386
3387 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3390 (grub_usbms_cbi_reset): Likewise.
3391 (grub_usbms_bo_reset): Likewise.
3392 (grub_usbms_reset): Likewise.
3393 (grub_usbms_attach): Likewise.
3394 (grub_usbms_transfer_cbi): Likewise.
3395
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3399 "checksum = checksum;".
3400
3401 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3404 entry_type.
3405
3406 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3409 BIOS disk check.
3410
3411 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3414 type.
3415 (grub_ehci_fini_hw): Likewise.
3416 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3417
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3421 return grub_usb_err_t for cosistency. All users updated.
3422
3423 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3426 assigning to itself.
3427
3428 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3429 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3430
3431 Issue separate DNS queries for ipv4 and ipv6
3432
3433 Adding multiple questions on a single DNS query is not supportted by
3434 most DNS servers. This patch issues two separate DNS queries
3435 sequentially for ipv4 and then for ipv6.
3436
3437 Fixes: https://savannah.gnu.org/bugs/?39710
3438
3439 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3440 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3441 * (grub_net_dns_lookup): Now using separated dns packages.
3442 * (grub_cmd_nslookup): Add error condition.
3443 * (grub_cmd_list_dns): Print DNS option.
3444 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3445 --prefer-ipv4, and --prefer-ipv6.
3446 * include/grub/net.h (grub_dns_option_t): New enum.
3447 * (grub_net_network_level_address): option added.
3448
3449 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3450
3451 * grub-core/video/fb/video_fb.c: Merge two blit functions
3452 into one.
3453
3454 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * grub-core/term/terminfo.c: Add sequences for home and end.
3457
3458 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3461 graphics console.
3462
3463 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3466 add mode 0x12.
3467
3468 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3471 e-mail by Per Öberg.
3472
3473 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3476 name.
3477
3478 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3479
3480 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3481 emu platforms.
3482 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3483
3484 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * docs/grub.texi: Document usage of menuentry id.
3487
3488 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3491
3492 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3493
3494 * grub-core/commands/i386/nthibr.c: New command.
3495
3496 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3499
3500 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3503 coordinate.
3504
3505 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 Support GRUB_DISABLE_SUBMENU config.
3508
3509 Inspired by patch from Prarit Bhargava.
3510
3511 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * docs/grub.texi: Mention RSA support.
3514
3515 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/commands/verify.c: Add RSA support.
3518
3519 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3522 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3523 device is known to be ATAPI.
3524
3525 2013-11-03 Mike Frysinger <vapier>
3526
3527 * configure.ac: Don't add target-prefix.
3528
3529 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3532 variables.
3533
3534 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3537 if language is English.
3538
3539 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3542
3543 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * configure.ac: Don't add -m32/-m64 on emu.
3546
3547 2013-11-02 neil
3548
3549 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3550 broken linux headers.
3551
3552 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3555
3556 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3559 Reed-Solomon recovery if more than half of redundancy info is 0.
3560
3561 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * util/grub-mount.c: Handle symlinks to directories.
3564
3565 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3568 find_file recursively for symlink.
3569
3570 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * tests/util/grub-shell.in: Copy themes.
3573
3574 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3577
3578 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * configure.ac: Use 0x8000 for address instead of 8000.
3581
3582 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3585 signature.
3586
3587 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3590 variable.
3591
3592 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3595
3596 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3599 file_progress_read_hook.
3600 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3601
3602 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3605 and double.
3606
3607 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3610
3611 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 Rewrite blocklist functions in order to get progress when
3614 reading large extents and decrease amount of blocklist hook calls.
3615
3616 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3619 of SI suffixes.
3620
3621 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 Support --base-clock for serial command to handle weird cards with
3624 non-standard base clock.
3625
3626 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3629 strncpy.
3630 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3631 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3632 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3633 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3634 + strcpy rather than strncpy.
3635
3636 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3639 (check_pool_label): Likewise. Fixes overflow.
3640 (nvlist_find_value): Fix comparison.
3641
3642 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3645 more appropriate functions.
3646
3647 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3650 realloc.
3651
3652 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3655
3656 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3659 on core size.
3660
3661 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3664
3665 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3668 (initialize_tables): reset tl and td to NULL after freeing.
3669
3670 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3673
3674 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3677 of supported tags.
3678
3679 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3682
3683 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3686 quirks.
3687
3688 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3691 a page in protected space.
3692
3693 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3696 allocate space for zero-sized modules.
3697
3698 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3701
3702 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3703
3704 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3705
3706 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3709 safeguards. Fixes a crash with i386/pc/console.c.
3710
3711 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3714 and grub_hostfs_init.
3715
3716 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3719 windows method on other platforms without good stat as well.
3720
3721 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3724
3725 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 Make / in btrfs refer to real root, not the default volume.
3728 Modify mkrelpath to work even if device is mounted with subvolid option.
3729
3730 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3731
3732 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3733 extra_dist.
3734 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3735 extra_dist.
3736
3737 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3740 fails.
3741
3742 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3743
3744 * docs/autoiso.cfg: New file.
3745
3746 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3749 COND_GRUB_PE2ELF conditions.
3750
3751 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3754 "vnd", "rd" and "fd" disks.
3755
3756 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 Move grub_disk_write out of kernel into disk.mod.
3759
3760 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3763 handling.
3764
3765 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/kern/misc.c (grub_abort): Make static
3768
3769 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3772 transform invalid unicode codepoints.
3773
3774 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3777 \0 checking.
3778
3779 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3782
3783 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 Consolidate cpuid code.
3786
3787 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 Move cpuid code to cpuid.h and TSC code to tsc.c.
3790
3791 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3792
3793 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3794
3795 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3796
3797 * util/grub-mkconfig.in: Replace $0 with $self.
3798 * util/grub-reboot.in: Likewise.
3799 * util/grub-set-default.in: Likewise.
3800
3801 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3802
3803 * docs/osdetect.cfg: New file.
3804
3805 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3806
3807 * tests/util/grub-shell.in: Add new --debug option.
3808
3809 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3810
3811 * tests/test_unset.in: New test.
3812
3813 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3814
3815 * tests/test_sha512sum.in: New test.
3816
3817 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3820 * include/grub/misc.h: Remove strncat.
3821 * grub-core/lib/posix_wrap/string.h: Likewise.
3822
3823 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3826 Try to handle more than 0xFFFF packets.
3827 Reported by: Bernhard Übelacker <bernhardu>.
3828 He also spotted few overflows in first version of this patch.
3829
3830 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3831
3832 * tests/date_unit_test.c: New test.
3833
3834 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3837 of first three years after start of validity of unixtime.
3838
3839 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3842 division as the one making more sense.
3843 (update_screen): Likewise.
3844 (complete): Likewise.
3845
3846 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3849
3850 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 Make char and string width grub_size_t rather than grub_ssize_t.
3853
3854 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3857 unsigned.
3858 (grub_history_replace): Likewise.
3859
3860 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3863 appropriate.
3864
3865 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3868 appropriate.
3869
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3873 Use unsigned divisions rather than signed variants.
3874
3875 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3878 unsigned arithmetics.
3879 Add missing break.
3880
3881 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3884
3885 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3888 rather than signed one.
3889 (recovery): Likewise.
3890
3891 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3894
3895 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3898 than signed.
3899
3900 2013-10-25 Jon McCune <jonmccune@google.com>
3901
3902 * docs/grub.texi: Cleanup security documentation around signatures.
3903
3904 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3907
3908 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3911 than int.
3912
3913 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3916 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3917 functions when compiling for kernel.
3918
3919 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3922 unsigned long long when using %llu.
3923
3924 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3927 terminal after updating progress.
3928
3929 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3932 argument. We don't disable Gate A20 in this code.
3933
3934 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3937 Conceptually based on change in branch "vbe-on-coreboot".
3938
3939 2013-10-24 Robert Millan <rmh@gnu.org>
3940
3941 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3942 numeric constants with their symbolic equivalent.
3943 Taken from branch "vbe-on-coreboot".
3944
3945 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3948
3949 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3952 divmod64 for offset division.
3953
3954 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3955
3956 Rename .bzrignore to .gitignore. Add "*.o" rule.
3957
3958 * .bzrignore: Renamed to...
3959 * .gitignore: ...this.
3960
3961 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3962
3963 Add new progress module that displays the load progress of files.
3964
3965 * grub-core/lib/progress.c: New file.
3966 * grub-core/Makefile.core.def (progress): New module.
3967 * grub-core/kern/file.c (grub_file_open): File name added.
3968 * (grub_file_read): Progress hook added.
3969 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3970 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3971 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3972 * include/grub/file.h (struct grub_file): Add progress module members.
3973 * include/grub/term.h (struct grub_term_output): Likewise.
3974 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3975 Terminal velocity added.
3976 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3977 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3978 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3979 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3980 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3981 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3982 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3983 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3984 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3985 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3986 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3987 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3988
3989 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 Verify signatures of signatures unless --skip-sig is specified.
3992
3993 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3996 \0 checking.
3997
3998 Saves 70 bytes on compressed image.
3999
4000 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4003 check.
4004
4005 Saves 10 bytes on compressed image.
4006
4007 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * grub-core/kern/misc.c (grub_isprint): Move to ...
4010 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4011
4012 Saves 20 bytes on compressed image due to remving exporting.
4013
4014 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4017
4018 Saves 5 bytes on compressed image.
4019
4020 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4023 function get_utf8.
4024
4025 Saves 379 bytes on compressed image.
4026
4027 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4028
4029 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4030
4031 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4034
4035 Saves 40 bytes on compressed image.
4036
4037 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4040 mask rather than 64-bit type.
4041
4042 Saves 20 bytes on compressed image.
4043
4044 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4047 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4048
4049 Saves 273 bytes on compressed image.
4050
4051 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4054 variable length arrays.
4055
4056 Saves 50 bytes on compressed image.
4057
4058 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4061
4062 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/fs/ufs.c: Remove variable length arrays.
4065
4066 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4069
4070 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/fs/zfs.c: Remove variable length arrays.
4073 Reduces zfs.mod by 160 bytes (208 compressed).
4074
4075 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4078
4079 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/net/arp.c: Remove variable length arrays.
4082 * grub-core/net/bootp.c: Likewise.
4083 * grub-core/net/dns.c: Likewise.
4084 * grub-core/net/icmp6.c: Likewise.
4085 * grub-core/net/net.c: Likewise.
4086
4087 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/ntfs.c: Remove variable length arrays.
4090 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4091 compressed).
4092
4093 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/fs/hfs.c: Remove variable length arrays.
4096 Reduces hfs.mod by 8 bytes (52 compressed).
4097
4098 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 * grub-core/fs/udf.c: Remove variable length arrays.
4101 Increases udf.mod by 128 bytes (but decreases by 13 when
4102 compressed).
4103
4104 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/fs/iso9660.c: Remove variable length arrays.
4107 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4108 compressed).
4109
4110 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4113 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4114 compressed).
4115
4116 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/fs/xfs.c: Remove variable length arrays.
4119 Reduces xfs.mod by 40 bytes (43 compressed).
4120
4121 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * grub-core/fs/fshelp.c: Remove variable length arrays.
4124 Reduces fshelp.mod by 116 bytes (23 compressed).
4125
4126 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * grub-core/normal/completion.c: Remove variable length arrays.
4129 * grub-core/normal/menu_entry.c: Likewise.
4130
4131 Reduces normal.mod by 496 bytes.
4132
4133 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4136 by 356 bytes (158 compressed).
4137
4138 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4141 by 364 bytes (169 compressed).
4142
4143 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4146 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4147 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4148
4149 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4152 bitmasks to small structures of size chosen to fit in registers.
4153
4154 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * conf/Makefile.common: Use -freg-struct-return on i386. This
4157 decreases code size and improves performance.
4158
4159 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4162
4163 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4166 "(null)" string.
4167 Simplify expressions to save around 256 bytes in kernel.img.
4168 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4169
4170 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4173 Use GRUB_UTIL_FD_O_* rather than O_*.
4174
4175 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 Add haiku-specific functions.
4178
4179 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4182
4183 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Move stat () and device mode checking into OS-dependent files as
4186 long as performance doesn't suffer.
4187
4188 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 Split make_system_path_relative_to_its_root into separate file
4191 relpath.c from getroot.c as it's common between unix and haiku
4192 but otherwise haiku doesn't use any functions from unix getroot.c.
4193
4194 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4197 New function.
4198 (grub_util_is_special_file): Likewise.
4199
4200 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4203 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4204
4205 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4208 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4209
4210 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4213 (load_image): Likewise.
4214
4215 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * util/grub-render-label.c: Move backend part to ...
4218 * util/render-label.c: ... here.
4219
4220 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4223 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4224
4225 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4228
4229 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4232 CD-ROM in case when it's declared as having subpartitions.
4233
4234 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 Don't add -lm on haiku.
4237
4238 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4239 and empty on haiku.
4240 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4241 -lm.
4242
4243 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 * configure.ac: Use -melf_*_haiku as target on haiku.
4246
4247 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * Makefile.util.def: Add util/setup.c to extra_dist.
4250
4251 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4254 unknown types through.
4255
4256 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4259 (grub_util_check_char_device): Likewise.
4260 * include/grub/emu/getroot.h: Likewise.
4261
4262 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4265 memset rather than inline static function.
4266
4267 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4270 not doing embedded decompressor.
4271
4272 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4275 shadowing.
4276 * grub-core/kern/disk.c: Likewise.
4277 * grub-core/kern/misc.c: Likewise.
4278 * include/grub/parser.h: Likewise.
4279 * include/grub/script_sh.h: Likewise.
4280 * include/grub/zfs/zfs.h: Likewise.
4281
4282 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4285
4286 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4289 defined before trying to use it.
4290
4291 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4294 warning.
4295
4296 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4299 Use __unused__ rather than __used__ on gcc < 3.2.
4300
4301 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4304 gcc < 4.0.
4305 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4306
4307 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4310
4311 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4314 * include/grub/emu/misc.h: Likewise.
4315
4316 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4319 cur_color.
4320
4321 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4322
4323 * grub-core/tests/checksums.h: Regenerated due to progress bar
4324 get_minimal_size changes.
4325
4326 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4327
4328 Added `tr' command support.
4329
4330 * grub-core/commands/tr.c: New file.
4331 * grub-core/Makefile.core.def: Build rules for new module.
4332
4333 * tests/grub_cmd_tr.in: New test.
4334 * Makefile.util.def: Build rules for new test.
4335
4336 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4337
4338 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4339
4340 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4341
4342 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4343 * docs/gurb.texi: Likewise.
4344
4345 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4346
4347 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4348 Pixmap highlighted section with east and west slices was displayed
4349 incorrectly due to negative width of the central slice.
4350
4351 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4352
4353 * docs/grub.texi: Graphical options information update.
4354 Removed outdated. Updated current. Inserted missed.
4355
4356 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 * docs/grub.texi: Mention few new platform-specific commands.
4359
4360 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4363 currently used so this doesn't really have any effect.
4364 Reported by: Douglas Ray <dougray>
4365
4366 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4369 compilation but prevents gcc from displaying messages in non-Latin
4370 alphabets.
4371 * conf/Makefile.common: Likewise.
4372
4373 2013-10-16 Hiroyuki YAMAMORI
4374
4375 Handle Japanese special keys.
4376 Reported by: Hiroyuki YAMAMORI.
4377 Codes supplied by: Hiroyuki YAMAMORI.
4378
4379 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4380
4381 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4382
4383 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4384
4385 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4386 * docs/grub.texi: Likewise.
4387
4388 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4391 value in case of incomplete read.
4392 (grub_util_fd_write): Likewise.
4393
4394 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4397
4398 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * util/grub-editenv.c (create_envblk_file): More from here ...
4401 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4402
4403 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4406 canonicalize file name before doing the rest.
4407
4408 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4411 mingw32.
4412
4413 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 Define grub_util_is_directory/regular/special_file and
4416 use OS-dependent versions rather than to rely on stat().
4417
4418 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * util/grub-mkimage.c: Move backend part to ...
4421 * util/mkimage.c: ... here.
4422
4423 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4424
4425 Allow compilation with mingw64 albeit with warnings due to lack of
4426 %llx/%llu.
4427
4428 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4429 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4430 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4431 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4432 on mingw64.
4433 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4434
4435 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436
4437 Remove leftover references to some of the system headers.
4438
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4442 read.
4443
4444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4447 of strerror.
4448
4449 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 Split out blocklist retrieving from setup.c to
4452 grub-core/osdep/blocklist.c and add windows implementation since
4453 generic version doesn't work on NTFS on Windows due to aggressive
4454 unflushable cache.
4455
4456 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4459 files.
4460
4461 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4464 Cut tailing newline. Remove arbitrary limitation. Always use
4465 grub_util_tchar_to_utf8.
4466
4467 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4470 * tests/printf_unit_test.c (printf_test): Add %% tests.
4471 Reported by: Paulo Flabiano Smorigo.
4472
4473 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4474
4475 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4476 implement fsync.
4477
4478 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4481 use nvlist_lookup_string and don't use nvlist_print.
4482
4483 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4486 closedir to handle filename charset translation.
4487
4488 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * include/grub/emu/hostdisk.h: Move file operations to
4491 * include/grub/emu/hostfile.h: ... here.
4492
4493 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4496 unicode path.
4497
4498 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4501
4502 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4505 and remove export.h.
4506
4507 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/kern/emu/error.c: Removed.
4510 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4511 explicitly as it's already in libgnu.a.
4512
4513 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4514
4515 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4516 config-util.h include.
4517
4518 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 Split emunet into platform-dependent and GRUB-binding parts. Keep
4521 platform-dependent part in kernel for easy access to OS functions.
4522
4523 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4524
4525 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4526 open/read/write.
4527
4528 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/osdep/windows/emuconsole.c: New file.
4531
4532 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4533
4534 * conf/Makefile.extra-dist: Add osdep/*/init.c
4535
4536 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4539
4540 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 * util/grub-probe.c (probe): Separate different drives in hint-str
4543 by spaces and not newlines.
4544 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4545
4546 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4547
4548 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4549 Handle CD-ROMs.
4550
4551 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 Pass-through unknown E820 types. It required reorganisation of mmap
4554 module.
4555
4556 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4557
4558 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4559
4560 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4563 fseeko.
4564
4565 2013-10-14 qwertial <qwertial>
4566
4567 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4568
4569 2013-10-14 Jon McCune <jonmccune@google.com>
4570
4571 * docs/grub.texi: Document new signatures possibility.
4572
4573 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4576
4577 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4580 missing prototype.
4581 (grub_util_tchar_to_utf8): Likewise.
4582
4583 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4586 * grub-core/kern/emu/main.c: Add missing include.
4587 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4588 Don't call grub_util_init_nls.
4589 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4590 Likewise.
4591
4592 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4595 stat.
4596
4597 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4600
4601 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4604
4605 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 Add a wrapper for fopen. On unix-like systems just pass-through. On
4608 windows use unicode version.
4609
4610 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 Move set_program_name and init_nls to host_init. On windows
4613 fix in this fuction console and argument charset as well.
4614
4615 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4616
4617 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4618 GRUB_ENABLE_CRYPTODISK.
4619
4620 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4621 GRUB_ENABLE_CRYPTODISK.
4622 * util/grub-mkconfig_lib.in: Likewise.
4623
4624 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4625
4626 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4627
4628 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4629
4630 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4631 error when enabling debug.
4632
4633 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4634
4635 * configure.ac: Use -melf_*_obsd on openbsd.
4636
4637 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4640
4641 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 * include/grub/misc.h: Use gnu_printf rather than printf as format
4644 template since our functions are independent of libc.
4645
4646 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 * util/grub-setup.c (setup): Move copying of partition table as
4649 futher up as possible to avoid possible overwrite by floppy routines.
4650
4651 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4652
4653 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4654
4655 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4656
4657 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4658 * docs/grub.texi: Likewise.
4659
4660 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4663 it's mostly unused. Move vestiges to the callers.
4664
4665 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4666
4667 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4668 version of salt and hash. Use grub_snprintf rather than snprintf.
4669
4670 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * docs/grub.texi: Fix problem with braces.
4673
4674 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4675
4676 * conf/Makefile.extra-dist: Fix extra-dist list.
4677 * grub-core/Makefile.core.def: Likewise.
4678
4679 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 * docs/grub.texi: Document disk names used on Windows and AROS.
4682
4683 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4686 with AROS devs.
4687 * grub-core/osdep/aros/hostdisk.c: Likewise.
4688
4689 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 Avoid including hostfile.h when not necessarry as it pulls
4692 in OS-specific headers which may redefine generic names
4693 like "far".
4694
4695 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4696
4697 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4698 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4699 scrollbar_bottom_pad
4700 * docs/grub.texi: Likewise.
4701
4702 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4703
4704 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4705
4706 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4709
4710 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4713 Removed.
4714 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4715 Made static.
4716
4717 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4720 leftover.
4721
4722 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 Move OS-specific driver configuration to grub_util_fd_open. This
4725 moves OS-dependent parts from kern/emu/hostdisk.c to
4726 grub-core/osdep/*/hostdisk.c.
4727
4728 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * util/grub-mkimage.c (generate_image): Use size_t instead of
4731 grub_size_t.
4732 * util/grub-mkimagexx.c (locate_sections): Likewise.
4733 (load_image): Likewise.
4734
4735 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4738 size_t.
4739 (grub_util_write_image): Likewise.
4740
4741 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4744 get random when no RNG is available.
4745 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4746
4747 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4748
4749 * include/grub/util/lvm.h: Removed.
4750
4751 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4754 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4755
4756 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4759
4760 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4763
4764 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * grub-core/net/drivers/emu/emunet.c: Move to ..
4767 * grub-core/osdep/linux/emunet.c: ..here.
4768
4769 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * util/ieee1275/ofpath.c: Move to ...
4772 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4773 * grub-core/osdep/basic/ofpath.c: ..here.
4774
4775 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Move password-querying (util-version) routines to grub-core/osdep.
4778
4779 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 Move sleep routines to grub-core/osdep.
4782
4783 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 Move OS-dependent files to grub-core/osdep and document it.
4786
4787 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4790 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4791
4792 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4795
4796 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * util/misc.c: Remove leftover inclusion of malloc.h.
4799
4800 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * include/grub/setjmp.h: Remove leftover GRUBOF.
4803
4804 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * util/raid.c: Fold into ...
4807 * util/getroot_linux.c: ... here. Make all functions static.
4808
4809 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4812 macros to GRUB ones.
4813
4814 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4815
4816 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4817 occasional bug. If there are too many boot entries or too low
4818 scrollbar height then we need to use another formula to calculate
4819 the position and size of the scrollbar thumb.
4820
4821 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4824
4825 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4826
4827 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4828 * docs/grub.texi: Likewise.
4829
4830 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4831
4832 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4833 viewport.
4834
4835 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4836
4837 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4838 minimal width calculations.
4839
4840 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * docs/grub.texi: Update note on colors on emu console.
4843
4844 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4847 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4848 it's FS and not GRUB limitation.
4849
4850 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4853
4854 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4857
4858 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4859
4860 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4861 kernels by version order.
4862
4863 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4866
4867 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 Add AROS hostdisk and getroot routines.
4870
4871 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 Make cryptodisk and diskfilter probe data retrievable programmatically
4874 and not just printable.
4875
4876 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 Split random retrieving code into separate files.
4879
4880 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4883 R_ARM_V4BX.
4884
4885 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4888 condition.
4889 * grub-core/tests/fake_input.c: Likewise.
4890 * grub-core/tests/cmdline_cat_test.c: Likewise.
4891
4892 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 * grub-core/video/capture.c: Do not do finalization when .fini
4895 is called as there is explicit capture_end.
4896
4897 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4900 changing windows to avoid crash.
4901
4902 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4905
4906 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * po/exclude.pot: Add several strings to exclude.
4909
4910 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4913
4914 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4917 ./util/grub-gen-asciih.c to exclude list.
4918
4919 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4922 and don't mark error strings for translation.
4923
4924 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4927 properly in case of missing block size.
4928
4929 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * grub-core/lib/arm/setjmp.S: Add missing license section.
4932
4933 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * po/swiss.sed: Add replacement for key names and for term computer.
4936
4937 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4938
4939 * grub-core/gfxmenu/theme_loader.c: New global options for the
4940 theme background image handling. desktop-image-scale-method,
4941 desktop-image-h-align, desktop-image-v-align.
4942 * grub-core/gfxmenu/view.c: Likewise.
4943 * include/gfxmenu_view.h: Likewise.
4944 * include/bitmap_scale.h: Proportional scale functions introduced.
4945 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4946 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4947 cases of unexpected input variables for scale functions.
4948 * docs/grub.texi: Updated documentation for new options.
4949
4950 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4953
4954 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4955
4956 * grub-core/tests/checksums.h: Corrected due to changes in
4957 bilinear interpolation function.
4958
4959 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4960
4961 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4962 to eliminate artefacts in bilinear interpolation.
4963
4964 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * grub-core/video/readers/tga.c: Support paletted tga.
4967
4968 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4971 incorrect cbcr setting when in color mode.
4972
4973 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 * grub-core/video/readers/png.c: Support paletted images and clean up
4976 greyscale support.
4977
4978 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4981 usage of wrong table which resulted in mishandling of 4-byte
4982 sequences.
4983
4984 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/term/terminfo.c: Add Home and End key sequences.
4987
4988 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4991 Fix formula for computing total number of bytes.
4992
4993 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4996 image processing, fix big-endian and support grayscale.
4997
4998 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5001 Correctly will with maximum transparency when using index color.
5002
5003 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 * grub-core/video/readers/png.c: Support grayscale
5006
5007 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5008
5009 * grub-core/video/readers/jpeg.c: Support grayscale.
5010
5011 2013-09-26 Jon McCune <jonmccune@google.com>
5012
5013 * grub-core/commands/loadenv.c: Support skipping signature check
5014 and variable names filtering.
5015
5016 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5019 * grub-core/kern/emu/hostfs.c: Likewise.
5020 * util/getroot_unix.c: Likewise.
5021
5022 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5025 Migrate all explicit defines to this new one.
5026
5027 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5030 grub_util_fd_strerror when using grub_util_fd_*.
5031 (grub_util_fd_open_device): Likewise.
5032 (grub_util_biosdisk_read): Likewise.
5033 (grub_util_biosdisk_write): Likewise.
5034 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5035 (grub_util_fd_strerror): Likewise.
5036 (grub_util_fd_sync): Likewise.
5037 (grub_util_fd_close): Likewise.
5038 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5039 (grub_util_fd_close): Likewise.
5040 (grub_util_fd_strerror): Likewise.
5041 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5042 function proto rather than macro.
5043 (grub_util_fd_sync): Likewise.
5044 (grub_util_fd_open): Likewise.
5045 (grub_util_fd_strerror): New proto.
5046
5047 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5050 platforms on which it doesn't work.
5051
5052 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5055 stat immediately to where it's used.
5056
5057 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * util/getroot.c (grub_util_check_block_device): Move to ...
5060 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5061 * util/getroot.c (grub_util_check_char_device): Move to ...
5062 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5063
5064 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5067 disk closing logic.
5068
5069 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5070
5071 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5072
5073 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5074
5075 * docs/grub.texi (File name syntax): Document ZFS filenames
5076 (/volume@snapshot/...).
5077
5078 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5081 Always return full path. Fixes a problem with mkrelpath.
5082
5083 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5084
5085 * util/grub-install.in: Add GPT PReP support.
5086 * util/grub-probe.c (probe): Support GPT partition type.
5087 (main): Support -t gpt_parttype.
5088
5089 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5090
5091 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5092
5093 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5094
5095 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5096
5097 2013-09-23 Tim Hardeck <thardeck>
5098
5099 * util/grub.d/10_hurd.in: Filter out character for the class.
5100 * util/grub.d/10_kfreebsd.in: Likewise.
5101 * util/grub.d/10_linux.in: Likewise.
5102 * util/grub.d/20_linux_xen.in: Likewise.
5103
5104 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5105
5106 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5107 "changed".
5108
5109 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5110
5111 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5112 boot partition.
5113
5114 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5117 doesn't use posix_wrap. Keep literal -fno-builtin however.
5118
5119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5122
5123 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5124 2013-09-23 neil
5125
5126 * configure.ac: Do not enable -Wmissing-noreturn as its
5127 usefulness is limited and creates problems on some OS notably with
5128 code generated by bison.
5129
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5131 2013-09-23 neil
5132
5133 * configure.ac: Do not explicitly enable -Waddress as it's not
5134 supported by all gcc and when it is, it's already enabled by -Wall.
5135
5136 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5139 desactivated use of EDID at all.
5140
5141 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 2013-09-23 neil
5143
5144 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5145 video if no text is available.
5146
5147 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5148 2013-09-23 neil
5149
5150 * configure.ac: Substitute TARGET_RANLIB.
5151
5152 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5153 2013-09-23 neil
5154
5155 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5156
5157 Based on patches from AROS.
5158
5159 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5160 2013-09-23 neil
5161
5162 * grub-core/Makefile.am: Override STRIP and RANLIB.
5163 * configure.ac: compute TARGET_RANLIB.
5164 * INSTALL: Document TARGET_RANLIB
5165
5166 Based on patches from AROS.
5167
5168 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5171 that floppies are unpartitioned.
5172
5173 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5176 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5177
5178 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5181 less nice but more portable.
5182 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5183
5184 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5187 for cheat_fd.
5188 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5189 functions.
5190 (grub_cryptodisk_cheat_insert): Likewise.
5191 (grub_cryptodisk_close): Likewise.
5192
5193 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5196 Use windows path for DEFAULT_DIRECTORY.
5197
5198 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5201 difference was likely just gcc version, not anything mingw-related.
5202
5203 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 Use Winapi on both cygwin and mingw32 to share more code between both.
5206
5207 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5208
5209 * util/grub-install.in: Add --grub-editenv option.
5210 * util/grub-install_header (grub_compress_file): Explicitly check for
5211 plain file to avoid cp error.
5212
5213 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5214
5215 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5216 names; fix LVM driver name (lvm, not lv).
5217 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5218 names.
5219
5220 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5223 files rather than one file with loads of #if's.
5224 * util/getroot.c: Likewise.
5225
5226 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5229
5230 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5231
5232 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5233 GNU/Hurd to the list of checked PRNG.
5234
5235 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5238
5239 2013-09-21 Ales Nesrsta <starous@volny.cz>
5240
5241 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5242
5243 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5246 * grub-core/disk/lvm.c: Add LVM UUIDs.
5247 * util/getroot.c: Use LVM UUIDs whenever possible.
5248
5249 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5250
5251 * docs/grub.texi (Networking commands): Add documentation for
5252 network related commands.
5253
5254 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5257 to determine if device is handled by devmapper.
5258 (convert_system_partition_to_system_disk): Likewise.
5259 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5260 already done in grub_util_open_dm.
5261
5262 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5263
5264 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5265 Clean up stack manipulation (sync_caches_armv*)
5266
5267 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 * util/lvm.c: Remove since unused. Remove remaining references.
5270
5271 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 Handle the case of partitioned LVM properly.
5274
5275 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5276 Stop on meeting LVM, mpath or DMRAID.
5277 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5278 (read_device_map): Likewise.
5279 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5280 device is full disk rather than erroring out on LVM and similar cases.
5281
5282 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5285
5286 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5287
5288 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5289 4K before the end.
5290 Reported by: Leif Lindholm
5291
5292 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5293 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5296 codes.
5297
5298 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5299
5300 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5301 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5302
5303 2013-09-18 Douglas Ray <dougray@cpan.org>
5304
5305 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5306 as secure.
5307
5308 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5309
5310 * docs/grub.texi: Fix broken link.
5311
5312 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5313
5314 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5315 to break endless loop.
5316
5317 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5318
5319 * util/grub-fstest.c: Fix several printf formats.
5320 * util/grub-mkimage.c: Likewise.
5321 * util/grub-mkimagexx.c: Likewise.
5322 * util/grub-script-check.c: Likewise.
5323
5324 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5327 error.
5328
5329 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5332
5333 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5336 removed in current versions cygwin_conv_*.
5337
5338 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * configure.ac: Disable efiemu runtime on cygwin.
5341
5342 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5345 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5346
5347 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5350 error message.
5351
5352 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5355 windows variant.
5356 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5357 data.
5358
5359 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5362 when on x86 and not cygwin.
5363 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5364 -Wl,-melf_x86_64.
5365
5366 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * configure.ac: Set CPP to build one when checkoing for freetype for
5369 build.
5370
5371 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5372
5373 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5374 [!GRUB_BUILD]: Remove has_argument.
5375
5376 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5379 Replace with a dummy.
5380
5381 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * configure.ac: Don't change host_os from mingw to cygwin.
5384
5385 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 * configure.ac: Change target_os from windows to cygwin.
5388
5389 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5392
5393 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5394 (build-grub-gen-asciih): Likewise.
5395 (build-grub-gen-widthspec): Likewise.
5396 * Makefile.util.def (grub-pe2elf): Remove.
5397 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5398 * configure.ac: Separate tests for build.
5399 Move ./build-grub-pe2elf to grub-core.
5400 Fix typo.
5401 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5402 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5403 defined.
5404 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5405 constants.
5406 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5407 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5408 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5409
5410 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5413 mingw32 as well based on grub_util_get_disk_size.
5414 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5415 grub_util_get_fd_size.
5416 (sync): Removed.
5417 (fsync): Moved to ...
5418 * grub-core/kern/emu/misc.c (fsync): ... here.
5419
5420 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * include/grub/mm.h (grub_extend_alloc): Remove.
5423 * grub-core/loader/i386/pc/plan9.c: Use own version of
5424 grub_extend_alloc with appropriate types.
5425
5426 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5429
5430 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5433
5434 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 Fix dependencies on cygwin.
5437
5438 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5439 dependencies when used and defined.
5440 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5441
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5445 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5446
5447 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5450 implementation available to cause compile-time rather than runtime
5451 error.
5452
5453 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 * util/grub-fstest.c: Don't check for symlinks on windows.
5456
5457 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * INSTALL: Mention unavailability of man pages when cross-compiling.
5460
5461 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5464 and gcry_log_bug.
5465 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5466
5467 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * INSTALL: Document cross-compilation.
5470 * acinclude.m4: Determine whether nm support -P and --defined-only.
5471 * configure.ac: Add TARGET_ to all variables pertaining to target
5472 that don't have it yet.
5473 * gentpl.py: Likewise.
5474 * grub-core/Makefile.am: Likewise.
5475 * grub-core/genmod.sh.in: Likewise.
5476 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5477 as well.
5478
5479 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5480
5481 * configure.ac: Remove -Wempty-body. It's not essential and needs
5482 recent gcc.
5483
5484 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5485
5486 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5487 * util/getroot.c: Likewise.
5488
5489 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * grub-core/disk/ahci.c: Add needed explicit cast.
5492 * grub-core/lib/backtrace.c: Likewise.
5493 * grub-core/net/ip.c: Likewise.
5494 * grub-core/net/tcp.c: Likewise.
5495 * grub-core/net/udp.c: Likewise.
5496
5497 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5500
5501 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 * util/import_gcry.py: Add final newline in visibility.h.
5504
5505 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 * conf/Makefile.common: Fix typo.
5508
5509 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5512
5513 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * Makefile.am (widthspec.h): Fix typo.
5516 * util/grub-gen-widthspec.c: Likewise.
5517
5518 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 Move ascii.h and widthspec.h generation to a separate build-time-only
5521 tool.
5522
5523 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5524
5525 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5526 Always fill bootdisk info and improve check for NetBSD disklabel.
5527
5528 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * conf/Makefile.extra-dist: Add util/bin2h.c.
5531 Reported by: floppym.
5532
5533 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5536
5537 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5538
5539 * configure.ac: Disable unifont and starfield if no freetype was found.
5540
5541 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5544 on NetBSD and OpenBSD.
5545
5546 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5547
5548 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5549
5550 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5551
5552 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5553 reduced. Inheritant options are processed during the theme loading.
5554
5555 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5556
5557 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5558
5559 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5560
5561 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5562
5563 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5564
5565 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5566 using qemu.
5567
5568 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5569
5570 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5571 remove-potcdate.sed.
5572
5573 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5574
5575 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5576 unused attribute from pull argument.
5577
5578 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5579
5580 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5581 memory leak.
5582
5583 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5584
5585 * util/getroot.c (pull_lvm_by_command): add --separator option
5586 to vgs call to disable padding of output to 10 characters.
5587
5588 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5591 here ...
5592 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5593 here.
5594
5595 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5598 length.
5599
5600 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5603 full Canadian cross. Tested with build=x86_64, host=arm,
5604 target=ppc-ieee1275.
5605
5606 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * configure.ac: Error if no $BUILD_CC could be found.
5609 Reported by: DevHC.
5610
5611 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5614 i386-multiboot.
5615
5616 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5619 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5620
5621 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5622
5623 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5624 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5625 falling back to the partition device, otherwise a later call to this
5626 function may fail spuriously.
5627 Reported by Axel Beckert. Fixes Debian bug #708614.
5628
5629 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5630
5631 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5632
5633 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5634
5635 Prevent shadowing of stdlib's devname(3) on BSD.
5636
5637 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5638 and devlast to diskname and disklast, respectively.
5639
5640 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5641
5642 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5643
5644 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5645
5646 * docs/grub.texi: Introduce terminal window position options:
5647 terminal-left: terminal window's left position
5648 terminal-top: terminal window's top position
5649 terminal-width: terminal window's width
5650 terminal-height: terminal window's height
5651 terminal-border: terminal window's border width
5652 * grub-core/gfxmenu/theme-loader.c: Likewise.
5653 * include/grub/gfxmenu_view.h: Likewise.
5654 * po/exlude.pot: Likewise.
5655 * grub-core/gfxmenu/view.c: Likewise.
5656 Also updated minimal window size.
5657 Also terminal_sanity_check function has been introduced.
5658 * grub-core/tests/checksums.h: Update (terminal window height
5659 is adjusted now for low resolution screen)
5660
5661 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5664 position).
5665
5666 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 * po/exclude.pot: Add few recent exceptions.
5669
5670 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5671
5672 * tests/grub_func_test.in: Add unicode.pf2.
5673
5674 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5677 standard rather than noral color, in line with other terminals.
5678
5679 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5682 analysis.
5683
5684 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5687
5688 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5691 inappropriate printf.
5692
5693 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5694
5695 * .bzrignore: Remove grub-core/lib/dtc-grub,
5696 grub-core/Makefile.libfdt.def
5697 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5698
5699 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * include/grub/video.h (grub_video_register): Keep double-linked as
5702 well as single-linked invariants.
5703 Reported by: qwertial.
5704
5705 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * grub-core/commands/nativedisk.c (get_uuid): Handle
5708 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5709
5710 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5711
5712 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5713 maximum of NW, N, NE heights instead of N's height and maximum of
5714 NW, W, SW widths instead of W's width. (So the box will be always
5715 correctly drawn)
5716
5717 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5718
5719 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5720 Fix misuse of variable count.
5721
5722 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5723 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5724 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 New ports to arm-uboot and arm-efi.
5727 Mostly by Leif Lindholm with some additions from
5728 Francesco Lavra and cleanup by Vladimir Serbinenko.
5729
5730 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5733 and not before.
5734 Reported by: Leon Drugi.
5735
5736 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5739 Reported by: Paulo Flabiano Smorigo.
5740
5741 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5742
5743 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5744
5745 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5746
5747 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5748
5749 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5752
5753 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5754
5755 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5756
5757 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5758
5759 * grub-core/net/bootp.c: Export net_* variables.
5760 * grub-core/net/net.c: Likewise.
5761
5762 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5765
5766 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5769
5770 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5773
5774 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5777
5778 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5779
5780 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5781 <= 0.
5782
5783 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5784
5785 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5786 functions.
5787
5788 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5789
5790 * grub-core/fs/zfs/zfs_lz4.c: New file.
5791 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5792
5793 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5794
5795 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5796
5797 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5798
5799 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5800 (check_pool_label): Likewise.
5801 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5802
5803 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5804
5805 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5806
5807 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5808
5809 * docs/grub.texi (Commands): Document postition parameters
5810 for menuentry command.
5811
5812 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5813
5814 * util/grub-mknetdir.in: Remove stray line from help output.
5815
5816 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 Remove early sm712 init as there is no reason for it (the "watchdog"
5819 effect was due to wrong GPIO map).
5820
5821 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * grub-core/commands/pcidump.c: Remove static variables.
5824
5825 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5828
5829 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * configure.ac: Move delimiter after the infos.
5832
5833 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5836
5837 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5840 not filling whole 8x16 space.
5841
5842 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5845
5846 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * configure.ac: Indicate which liblzma is used if any.
5849
5850 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5851 2013-06-21 Craig Sanders <savannah@taz.net.au>
5852
5853 * util/grub-reboot.in: Document submenu usage.
5854
5855 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5856
5857 * .bzrignore: Update with a number of new test-related files.
5858
5859 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5860
5861 * util/grub-script-check.c: Fail on scripts containing no
5862 commands, to guard against corrupted grub-mkconfig setups that
5863 produce no useful output.
5864 * tests/grub_script_no_commands.in: New test.
5865 * Makefile.util.def (grub_script_no_commands): Add.
5866 Reported by Hans Putter. Fixes Debian bug #713886.
5867
5868 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5869
5870 * grub-core/disk/diskfilter.c: Forgot to remove comment
5871 from previous commit.
5872
5873 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5874
5875 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5876 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5877
5878 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5879
5880 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5881
5882 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5883
5884 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5885 rescan diskfilter devices until nothing new is found.
5886
5887 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5890
5891 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 Don't try to detect cbfs on *-emu.
5894
5895 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5898
5899 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 Add support for processed coreboot payload chainloading.
5902
5903 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 Enable coreboot information commands even when not loaded as
5906 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5907
5908 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 Support for cbfs. Also factor out the part which is common
5911 for all archives to a separate module. This splits tar from cpio
5912 as they are very different but keeps cpio, cpio_be, odc and newc
5913 together since they're very similar.
5914
5915 2013-06-15 David Michael <fedora.dm0@gmail.com>
5916
5917 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5918 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5919
5920 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * tests/grub_script_eval.in: Really add the eval test.
5923
5924 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 Move flavour-specific parts out of common cpio.c file and
5927 rename remaining to cpio_common.c
5928
5929 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5930
5931 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5932 off new function grub_script_execute_new_scope. Change callers to use
5933 either of them as appropriate.
5934 * grub-core/commands/eval.c: New command eval.
5935 * docs/grub.texi (Commands): Document it.
5936
5937 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5938
5939 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5940 to fetch values when listing.
5941
5942 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5943
5944 Fix make dist on non-pc.
5945
5946 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5947
5948 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5949 without a device name.
5950
5951 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 Remove enable_executable_check as it's not needed anymore.
5954 Reported by: dougray.
5955
5956 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5959 ambigouos RAID before discovering RAIDs on top of it.
5960 Reported by: bodom.
5961
5962 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 Fix typo (failback vs fallback).
5965
5966 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5967
5968 * util/grub.d/30_os-prober.in: Add support for probing EFI
5969 System Partition (as of os-prober 1.58).
5970
5971 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * configure.ac: Add yet another path to unifont. For parabola.
5974
5975 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5976
5977 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5978 handling to copy the killed characters to the kill buffer as
5979 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5980 stored as char. Eliminates UCS4 truncation and corruption
5981 observed when killing characters with Ctrl-u and yanking them
5982 back with Ctrl-y.
5983
5984 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 Detach optional parts of gfxterm and integrate in with coreboot init.
5987
5988 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5989
5990 Move blit and fill dispatcher to appropriate files to decrease export
5991 and relocation overhead.
5992
5993 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5994
5995 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5996 functions.
5997
5998 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * grub-core/Makefile.am: Fix compilation problem with some
6001 automake versions.
6002
6003 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6006
6007 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6010 automake versions.
6011
6012 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6015 SSDT.
6016
6017 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6018
6019 * grub-core/partmap/dfly.c: New partition map.
6020
6021 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6024 checking.
6025 Reported by: Francesco Lavra.
6026
6027 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6028
6029 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6030 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6031 false conditions.
6032 * conf/Makefile.common: define dist_grubconf_DATA
6033
6034 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6035
6036 Progressively skip menu elements on small terminals rather
6037 than crashing.
6038
6039 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6042 to avoid losing last column.
6043
6044 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * po/exclude.pot: Add missing string "%C".
6047
6048 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6051 after the test.
6052
6053 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * util/grub-install.in: Gettextize "Not found" message.
6056
6057 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 Fix distfiles list.
6060 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6061
6062 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6063
6064 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6065 present.
6066 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6067
6068 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6071
6072 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6075 attribute since structure is not necessarily aligned.
6076
6077 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6078
6079 * docs/grub.texi (Device syntax): Clarify description of network
6080 drives.
6081
6082 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6085 for vasprintf presence.
6086
6087 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * util/grub-install.in: Handle efibootmgr presence check.
6090 Reported by: Leif Lindholm.
6091
6092 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6095 new strings to translate.
6096
6097 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6100 yet another string (pun intended) to translate.
6101
6102 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * po/POTFILES-shell.in: Autogenerate it.
6105
6106 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6109
6110 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6113 misnomer.
6114
6115 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6116
6117 * docs/grub.texi (Network): Add description of net_default_interface,
6118 net_default_ip and net_default_mac. Rewrite variables description
6119 to emphasize that they are per-interface.
6120
6121 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 New test: cmdline and cat.
6124
6125 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * grub-core/commands/cat.c: Show UTF-8 characters.
6128
6129 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * conf/Makefile.common: Poison float and double on non-emu.
6132
6133 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * configure.ac: Don't disable extended registers on emu.
6136
6137 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 * configure.ac: Don't use extended registers on x86_64.
6140 Reported by: Peter Jones.
6141
6142 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * grub-core/term/efi/console.c: Fix compile error.
6145
6146 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Compressed HFS+ support.
6149
6150 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6153 pixel".
6154
6155 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 Menu color test.
6158
6159 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/tests/setjmp_test.c: New test.
6162
6163 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 New variables 'net_default_*' to determine MAC/IP of default interface.
6166
6167 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * tests/gettext_strings_test.in: A test to check for strings not
6170 marked for translation.
6171
6172 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * autogen.sh: Exclude unused libgcrypt files from translation.
6175
6176 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 Simplify few strings.
6179
6180 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 Mark few forgotten strings for translation.
6183
6184 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6187 rather than printf.
6188
6189 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6192 rather than printf.
6193 * grub-core/video/readers/tga.c: Likewise.
6194
6195 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * tests/priority_queue_unit_test.cc: New test.
6198
6199 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6202 than printf.
6203
6204 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6205
6206 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6207 variable for one time boot menu entry.
6208
6209 2013-05-05 Bean <bean123ch@gmail.com>
6210
6211 * grub-core/commands/testspeed.c: New command testspeed.
6212
6213 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 Factor-out human-size printing.
6216
6217 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6218
6219 Agglomerate more mallocs to speed-up gfxterm.
6220
6221 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 Speed-up gfxterm by slightly agglomerating mallocs.
6224
6225 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 More video checks.
6228
6229 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 Speed-up gfxterm by saving intermediate results in index+alpha
6232 format.
6233
6234 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6237 test.
6238
6239 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6242 line of timeout as it may contain the rest of long line.
6243
6244 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 * grub-core/normal/main.c: Fix freed memory dereference.
6247
6248 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 Fix several memory leaks.
6251
6252 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6255
6256 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6259
6260 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 Fix test -a and -o precedence.
6263 Reported by: adrian15.
6264
6265 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6268
6269 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6270
6271 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6272 and add it as source to functional_test module.
6273
6274 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6277
6278 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 New series of tests for gfxterm and gfxmenu.
6281
6282 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6285 the theme path relative to $prefix/themes.
6286
6287 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6290 Fix order bug.
6291 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6292
6293 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6296 descriptor.
6297
6298 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6301 grub_gfxmenu_timeout_notifications.
6302 (grub_gfxmenu_view_destroy): Likewise.
6303
6304 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6307
6308 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 Several fixes to ieee1275 and big-endian video.
6311
6312 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 Add missing exports on mips.
6315
6316 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6319 if no unifont is found.
6320 Restore original keyboard.
6321
6322 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6325 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6326
6327 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 First automated video test (running videotest and comparing results)
6330
6331 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6334 instead of 2 to have full RGB/CMY test pattern.
6335
6336 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Add few more tests.
6339
6340 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6343 ARCS. All users updated.
6344
6345 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6348
6349 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6352
6353 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6356 Reported by: qwertial.
6357
6358 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6359
6360 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6361 with syntax "XXX deg"/"XXX °".
6362
6363 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 Make PCI init in i386-qemu port more robust.
6366
6367 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6368
6369 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6370 cached view is reused.
6371 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6372 open boot menus.
6373
6374 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 Unify more code in grub-install_header.
6377
6378 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 Add few new tests.
6381
6382 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 Enforce disabling of firmware disk drivers when native drivers kick in.
6385
6386 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 * grub-core/commands/nativedisk.c: Customize the list of modules on
6389 platform. Don't try to search for disks already using native drivers.
6390
6391 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6394 platforms.
6395
6396 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6399 handling of variables containing backslash.
6400
6401 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6404 dereference.
6405 Reported by: qwertial.
6406
6407 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6410
6411 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6414 dereference.
6415 Reported by: qwertial.
6416
6417 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6420
6421 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6424
6425 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 New command `nativedisk'.
6428
6429 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6432 * grub-core/loader/i386/bsd.c: Likewise.
6433
6434 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6437
6438 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6441 grub_get_unaligned16 rather than shifts.
6442
6443 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * grub-core/kern/file.c: Use const char * rather than casting to
6446 non-const.
6447
6448 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 * grub-core/commands/probe.c: Add missing grub_device_close.
6451
6452 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * INSTALL: Document linguas.sh.
6455
6456 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 Remove POTFILES.in and regenerate it in autogen.sh.
6459
6460 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 Move --directory/--override-directorry to grub-install_header and unify.
6463
6464 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * grub-core/term/morse.c: Macroify dih and dah.
6467
6468 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6469
6470 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6471
6472 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/term/ns8250.c: Systematically probe ports by writing
6475 to SR before using them.
6476
6477 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6478
6479 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6480 disks.
6481 (check_sas): Get sas_adress info.
6482
6483 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6486 ports.
6487
6488 2013-04-27 Leon Drugi <eyak>
6489
6490 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6491 BSS clearing.
6492
6493 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 Core compression test.
6496
6497 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Implement grub_machine_get_bootlocation for ARC.
6500
6501 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 Improve AHCI detection and command issuing.
6504
6505 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 Fix pseries test.
6508
6509 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 Make 'make check' work on emu.
6512
6513 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 Replace libcurses with our own vt100 handling for the ease of testing
6516 and decreasing prerequisites.
6517
6518 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6521
6522 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6525 compile when not needed.
6526
6527 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * tests/pseries_test.in: New test.
6530
6531 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 Add test to check that different boot mediums work.
6534
6535 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6538 ofw limited ISO support.
6539
6540 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * configure.ac: Fix loongson conditional.
6543
6544 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 Enable mipsel-arc.
6547
6548 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 Add serial on ARC platform.
6551
6552 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6555 commit.
6556
6557 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 * tests/partmap_test.in: Add missing double semicolon.
6560
6561 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * util/grub-mkrescue.in: Fix loongson filename.
6564
6565 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * util/grub-mkrescue.in: Move all files that don't have a location
6568 set in stone under /boot/grub. Use ISO hard links rather than copies
6569 to save some space.
6570
6571 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6574 bogus SLOF values.
6575
6576 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 Make check work on mips-arc.
6579
6580 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6581
6582 * util/grub-mkrescue.in: Alias sashARCS as sash.
6583
6584 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6587 it's serial.
6588
6589 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * util/grub-install.in: Fix target fo qemu_mips.
6592 Fix extension on EFI.
6593
6594 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6597 in front of chosen entry to mark it even if highlighting is lost.
6598
6599 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6602 gfxpayload=keep if cbfb is active.
6603
6604 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6607
6608 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 Add missing video ids to coreboot and ieee1275 video.
6611
6612 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * util/grub-mkrescue.in: Add mips-arc support.
6615
6616 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6619
6620 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Move mips-arc link address. Previous link address was chosen
6623 in belief that RAM on SGI platforms grows down while in fact it
6624 grows up from an unusual base.
6625
6626 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6629 Fix a type which prevented CD-ROM and floppy boot.
6630
6631 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 Support coreboot framebuffer.
6634
6635 * grub-core/video/i386/coreboot/cbfb.c: New file.
6636
6637 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6640 detecting too small regions.
6641
6642 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6645
6646 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6649 Remove dprintf.
6650 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6651
6652 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6655 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6656 * grub-core/loader/powerpc/ieee1275/linux.c
6657 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6658
6659 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6662 Look for /boot-rom as well as /rom/boot-rom.
6663
6664 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6667 handling when creating text_layer failed.
6668 * grub-core/video/video.c (grub_video_create_render_target):
6669 Set result to 0 on error.
6670 (grub_video_delete_render_target): Do not dereference NULL.
6671
6672 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6675 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6676 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6677 (grub_linux_load64): Mask out 2 high bits.
6678
6679 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6680
6681 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6682 more place.
6683
6684 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Add support for pseries and other bootinfo machines to grub-mkrescue.
6687
6688 Tested by: Paulo Flabiano Smorigo.
6689
6690 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * util/grub-mkrescue.in: Add GPT for EFI boot.
6693
6694 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6697 It improves performance in qemu.
6698
6699 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * build-aux/snippet: Add missing gnulib files.
6702
6703 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6704
6705 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6706
6707 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6708
6709 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6710
6711 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6712 2013-04-15 Peter Jones <pjones@redhat.com>
6713
6714 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6715 sectors.
6716 Based on patch by Peter Jones.
6717
6718 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 Fix DMRAID partition handling.
6721
6722 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * tests/grub_cmd_date.in: Skip on sparc64.
6725
6726 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6729 firmware error messages.
6730
6731 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6734 source and destination differ.
6735
6736 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6739 detection.
6740
6741 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6744 match config-util.h to avoid warnings and increase compatibility.
6745
6746 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6747 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 Add option to compress files on install/image creation.
6750
6751 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * docs/grub-dev.texi: Rearrange menu to match the section order.
6754 Reported by: Bryan Hundven.
6755
6756 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6759
6760 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 Move GRUB out of system area when using xorriso 1.2.9 or later.
6763
6764 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * tests/grub_cmd_date.in: Add missing exit 1.
6767
6768 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * tests/partmap_test.in: Skip on sparc64.
6771
6772 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 Support grub-shell on sparc64.
6775
6776 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 Support mkrescue on sparc64.
6779
6780 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6783 Needed on OpenBIOS due to incomplete device tree.
6784
6785 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6788 would be otherwise excluded.
6789
6790 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6793 Inline name defines used only once.
6794
6795 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 Fix memory leaks in ofnet.
6798 Reported by: Francesco Lavra.
6799
6800 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * docs/man/grub-glue-efi.h2m: Add missing file.
6803
6804 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6807
6808 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 Better support Apple Intel Macs on CD.
6811
6812 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 Replace stpcpy with grub_stpcpy in tools.
6815
6816 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 Handle Japanese special keys.
6819 Reported by: Hiroyuki YAMAMORI.
6820 Codes supplied by: Hiroyuki YAMAMORI.
6821
6822 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * util/grub-mkimage.c: Document memdisk implying --prefix.
6825
6826 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6829 much we can do about it anyway.
6830
6831 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6832
6833 Fix handling of split transfers.
6834
6835 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * grub-core/net/http.c: Fix bad free.
6838
6839 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6842 than buffer size.
6843
6844 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6847
6848 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 * tests/util/grub-shell.in: Fix it on powerpc.
6851
6852 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 Turn off QEMU ACPI-way since new releases don't have shutdown port
6855 anymore.
6856
6857 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * docs/grub.texi: Update coreboot status info.
6860
6861 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * tests/grub_cmd_date.in: New test for datetime.
6864
6865 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6866
6867 * tests/partmap_test.in: Fix missing qemudisk setting.
6868
6869 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 Support i386-ieee1275 grub-mkrescue and make check on it.
6872
6873 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6876 feature for it.
6877
6878 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6881 GRUB_CMDLINE_XEN_DEFAULT.
6882 Reported by: Marc Warne (GigaTux) <gigatux>
6883
6884 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 Import new gnulib.
6887
6888 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 Use ACPI shutdown intests as traditional port was removed.
6891
6892 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6893
6894 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6895 distinction.
6896
6897 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6900 Fix few warining messages and leaks while on it.
6901
6902 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6903
6904 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6905 links under grub-core/lib/libgcrypt-grub/mpi.
6906
6907 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 Fix ia64-efi image generation on big-endian machines. Deduplicate
6910 some code while on it.
6911 Reported by: Leif Lindholm.
6912
6913 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6914
6915 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6916 as extra_dist.
6917
6918 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6919
6920 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6921
6922 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6923
6924 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6925 texinfo-5.1.
6926
6927 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 * grub-core/normal/term.c: Few more fixes for menu entry editor
6930 rendering.
6931 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6932
6933 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * grub-core/normal/term.c: Few more fixes for menu entry editor
6936 rendering.
6937 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6938
6939 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6940
6941 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6942 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6943
6944 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6945
6946 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6947 instead of hardcoding grub.mo.
6948
6949 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6950
6951 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6952
6953 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6954
6955 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6956 grub-core/disk/geli.c.
6957
6958 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 * util/grub-mkfont.c: Prefer enum to #define.
6961
6962 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6965
6966 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6967
6968 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6969
6970 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6973
6974 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6977
6978 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 * include/grub/bsdlabel.h: Use enums.
6981
6982 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 Move GRUB_CHAR_BIT to types.h.
6985
6986 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6987
6988 * docs/grub.texi: Document more user commands.
6989
6990 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6991
6992 * docs/grub.texi: Document menuentry --id option.
6993
6994 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6995
6996 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6997
6998 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 Unify file copying setup across different install scripts. Add
7001 options for performing partial install.
7002
7003 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7004 2013-04-04 Peter Jones <pjones@redhat.com>
7005
7006 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7007
7008 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 Use TSC as a possible time source on i386-ieee1275.
7011
7012 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7015 Init err.
7016
7017 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * util/grub-setup.c (setup): Handle some corner cases.
7020
7021 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7024
7025 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7026
7027 * grub-core/commands/verify.c: Save verified file to avoid it being
7028 tampered with after verification was done.
7029
7030 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7033 reported width by one to compensate for curesor algorithm problem.
7034
7035 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 Fix screen corruption in menu entry editor and simplify the code
7038 flow while on it.
7039
7040 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7041
7042 * util/grub-mount.c (fuse_init): Return error if fuse_main
7043 failed.
7044
7045 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7046
7047 * include/grub/elf.h: Add missing ARM relocation codes and fix
7048 existing ones.
7049
7050 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7051
7052 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7053
7054 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7055 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7058 into account when calculating radius.
7059
7060 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7061
7062 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7063
7064 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7065
7066 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7067
7068 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7069
7070 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7071 missing closing bracket.
7072
7073 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7074
7075 * INSTALL: Mention xorriso requirement.
7076
7077 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7078
7079 * grub-core/commands/verify.c: Fix hash algorithms values for
7080 the first three hashes - they start with 1, not with 0.
7081
7082 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7085 Try terminating EFI services several times due to quirks in some
7086 implementations.
7087
7088 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7089
7090 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7091 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7092 BankField extended opcodes.
7093 (get_sleep_type): Add minimal scope handling (just enough to
7094 handle setting the scope to the root path).
7095 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7096 * include/grub/acpi.h: Add enumeration values for Event, Device,
7097 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7098
7099 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7100
7101 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7102 memory leak.
7103
7104 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * grub-core/disk/ahci.c: Give more time for AHCI request.
7107
7108 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7111 command.
7112
7113 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7114
7115 Replace the region at 0 from coreboot tables to available in BSD
7116 memory map.
7117
7118 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7121 non-BIOS platforms.
7122
7123 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7124
7125 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7126 platforms.
7127
7128 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7131 handling of multi-device filesystems.
7132
7133 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7136 platforms.
7137
7138 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 Add new 'proc' filesystem framework and put luks_script into it.
7141
7142 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7145 and qemu.
7146
7147 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7150
7151 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 Add ability to generate newc additions on runtime.
7154
7155 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7158 description.
7159
7160 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7161
7162 * po/POTFILES.in: Regenerate.
7163
7164 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * grub-core/commands/verify.c (hashes): Add several hashes
7167 from the spec.
7168
7169 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7170
7171 Slight improve in USB-related boot-time checkpoints.
7172
7173 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7174
7175 * grub-core/commands/boottime.c: Fix copyright header.
7176
7177 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7178
7179 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7180 coreboot tables content. Support for cbmemc.
7181
7182 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 Fix a conflict between ports structures with 2 controllers of
7185 same kind.
7186
7187 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * include/grub/boottime.h: Add missing file.
7190
7191 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 Initialize USB ports in parallel to speed-up boot.
7194
7195 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 Fix USB devices not being detected when requested
7198 due to delayed attach.
7199
7200 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 Implement boot time analysis framework.
7203
7204 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 Remove get_endpoint_descriptor and change all functions needing
7207 descriptor to just receive it as argument rather than endpoint
7208 address.
7209
7210 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7211
7212 Better estimate the maximum USB transfer size.
7213
7214 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 Resend a packet if we got the wrong buffer in status.
7217
7218 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7221 multiplication rather than division.
7222
7223 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7226 than divisions.
7227
7228 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7231 operations to have intended shifts and not divisions.
7232
7233 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7236 intended shifts rather than division.
7237
7238 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7241 computation for some years before epoch. Avode confusing division
7242 while on it.
7243
7244 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/video/i386/pc/vbe.c
7247 (grub_video_vbe_print_adapter_specific_info): Replace division by
7248 shifts.
7249
7250 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 Adjust types in gdb module to have intended unsigned shifts rather than
7253 signed divisions.
7254
7255 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7258 maximum size is 4G - 1 on hfs
7259
7260 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7263
7264 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7267 function.
7268
7269 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7270
7271 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7272 causing gcc error with gcc 4.7.1.
7273
7274 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7275
7276 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7277 dereference null pointer. While the code is technically correct, gcc
7278 may eliminate a null check if pointer is already dereferenced.
7279
7280 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7281
7282 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7283 OOM check.
7284 * grub-core/normal/term.c (read_terminal_list): Likewise.
7285
7286 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 Lift up core size limits on some platforms. Fix potential memory
7289 corruption with big core on small memory systems. Document remaining
7290 limits.
7291
7292 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7295 gotoxy to 0,0.
7296
7297 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 Remove all trampoline support. Add -Wtrampolines when
7300 present. Remove symbols used for trampolines to make
7301 link fail if trampolines are present.
7302
7303 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7306 append out of its parent.
7307
7308 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7311 parent.
7312
7313 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7316 all vars to a macro. All users updated.
7317
7318 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7321 i386-ieee1275.
7322
7323 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7326
7327 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7330
7331 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 Move to more hookless approach in IEEE1275 devices handling.
7334
7335 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * grub-core/kern/term.c (grub_term_normal_color),
7338 (grub_term_highlight_color): Add back lost defaults.
7339
7340 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 Make elfload not use hooks. Opt for flags and iterators instead.
7343
7344 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7347 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7348
7349 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7352
7353 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7356 hook pass-through parameter. All users updated and unnested.
7357
7358 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7361 out of its parent.
7362
7363 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/fs/hfs.c: Remove nested functions.
7366
7367 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7370 the context through.
7371 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7372
7373 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * util/grub-editenv.c (list_variables): Move print_var out of its
7376 parent.
7377
7378 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7381 function.
7382
7383 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * grub-core/gentrigtables.c: Make tables const.
7386
7387 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 Remove nested functions from videoinfo iterators.
7390
7391 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7392
7393 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7394 for 64-bit platforms.
7395
7396 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7399 a FOR_CHILDREN macro.
7400
7401 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7404 platform from firmware path.
7405
7406 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 Enable linux16 on non-BIOS systems for i.a. memtest.
7409
7410 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7411 correctly.
7412 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7413
7414 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7417 Fix end of table condition.
7418
7419 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7422 out of its parent.
7423
7424 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 * grub-core/fs/jfs.c: Remove nested functions.
7427
7428 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 * grub-core/fs/minix.c: Remove nested functions.
7431
7432 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 * grub-core/fs/iso9660.c: Remove nested functions.
7435
7436 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7439 of parent function.
7440
7441 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * util/grub-fstest.c: Remove nested functions.
7444
7445 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * grub-core/loader/machoXX.c: Remove nested functions.
7448
7449 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7450
7451 Remove nested functions from disk and file read hooks.
7452
7453 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7454 (struct grub_disk): Add read_hook_data member.
7455 * include/grub/file.h (struct grub_file): Likewise.
7456 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7457 argument.
7458
7459 Update all callers.
7460
7461 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7462
7463 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7464 Fix off by one error in enumerating extended partitions.
7465
7466 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7467
7468 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7469 memory leak if device name is not found.
7470
7471 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7472
7473 * grub-core/normal/menu_entry.c (update_screen): remove
7474 unused variable `off' which caused scroll down arrow to be always shown.
7475
7476 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7477
7478 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7479 access to unallocated memory.
7480
7481 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7482
7483 * Makefile.util.def: Add partmap/msdos.c to common library.
7484 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7485 * grub-core/disk/ldm.c: Check for existence of
7486 GRUB_PC_PARTITION_TYPE_LDM.
7487
7488 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7491 sizes and display sector size.
7492
7493 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 Implement new command cmosdump.
7496
7497 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7498
7499 Support Openfirmware disks with non-512B sectors.
7500
7501 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7502 size of the disk.
7503 * (grub_ofdisk_get_block_size): New function.
7504 * (grub_ofdisk_prepare): Use the correct block size.
7505 * (grub_ofdisk_read): Likewise.
7506 * (grub_ofdisk_write): Likewise.
7507 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7508 New proto.
7509
7510 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7513
7514 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7517 on first error.
7518
7519 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7522 freeing it.
7523
7524 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 Implement USBDebug (full USB stack variant).
7527
7528 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7531 unless they have unexpected values.
7532
7533 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7536 grub_print_error.
7537
7538 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7541 zero-out of port structure.
7542
7543 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7546 of extended attributes.
7547
7548 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7549
7550 * util/grub-install.in: change misleading comment about
7551 device.map creation
7552
7553 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7556 when menu highlight color isn't set.
7557
7558 2013-01-27 C. Masloch <pushbx@38.de>
7559
7560 Improve FreeDOS direct loading support compatibility.
7561
7562 * include/grub/i386/relocator.h (grub_relocator16_state):
7563 New member ebp.
7564 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7565 variable.
7566 (grub_relocator16_boot): Handle %ebp.
7567 * grub-core/lib/i386/relocator16.S: Likewise.
7568 * grub-core/loader/i386/pc/freedos.c:
7569 Load BPB to pass kernel which partition to load from.
7570 Check that kernel file is not too large.
7571 Set register dl to BIOS unit number as well.
7572
7573 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7574
7575 * util/grub-reboot.in (usage): Document the need for
7576 GRUB_DEFAULT=saved.
7577 * util/grub-set-default.in (usage): Likewise.
7578 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7579
7580 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7583 than defining WORDS_BIGENDIAN manually.
7584
7585 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7588 invariants.
7589
7590 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7591
7592 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7593 nested.
7594 (blit_comb: add_device_width): Likewise.
7595
7596 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7597
7598 Remove nested functions from USB iterators.
7599
7600 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7601 (grub_usb_controller_iterate_hook_t): Likewise.
7602 (grub_usb_iterate): Add hook_data argument.
7603 (grub_usb_controller_iterate): Likewise.
7604 (struct grub_usb_controller_dev.iterate): Likewise.
7605
7606 Update all implementations and callers.
7607
7608 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7611 margin when not needed.
7612
7613 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 Make color variables global instead of it being per-terminal.
7616
7617 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7620 asterisk.
7621
7622 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7623
7624 Fix powerpc and sparc64 build failures caused by un-nesting memory
7625 map iterators.
7626
7627 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7628
7629 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7630 parameter declarations.
7631
7632 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7635
7636 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 Improve spkmomdem reliability by adding a separator between bytes.
7639
7640 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7641
7642 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7643 an Acer registration utility with several sightings in the wild.
7644 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7645
7646 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7647
7648 Remove nested functions from filesystem directory iterators.
7649
7650 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7651 (struct grub_fs.dir): Add hook_data argument.
7652
7653 Update all implementations and callers.
7654
7655 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7656
7657 * docs/grub.texi (Multi-boot manual config): Fix typo for
7658 "recommended".
7659
7660 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7661
7662 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7663 until after its use in generate_image.
7664
7665 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7666
7667 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7668 initrd size to addr_min, since the initrd will be allocated after
7669 this address.
7670
7671 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7672
7673 * conf/Makefile.common: Fix autogen rules to pass definition
7674 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7675
7676 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7677
7678 * include/grub/elf.h: Update ARM definitions based on binutils.
7679
7680 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7681
7682 Split long USB transfers into short ones.
7683
7684 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7685
7686 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7687 is interrupted by ESC.
7688
7689 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * util/grub-script-check.c (main): Uniform the error message.
7692
7693 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7694
7695 Remove nested functions from ELF iterators.
7696
7697 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7698
7699 Remove nested functions from device iterators.
7700
7701 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7702 (grub_arc_iterate_devs): Add hook_data argument.
7703 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7704 (struct grub_ata_dev.iterate): Add hook_data argument.
7705 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7706 (grub_device_iterate): Add hook_data argument.
7707 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7708 (struct grub_disk_dev.iterate): Add hook_data argument.
7709 (grub_disk_dev_iterate): Likewise.
7710 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7711 Likewise.
7712 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7713 Likewise.
7714 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7715 type.
7716 (struct grub_partition_map.iterate): Add hook_data argument.
7717 (grub_partition_iterate): Likewise.
7718 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7719 (struct grub_scsi_dev.iterate): Add hook_data argument.
7720
7721 Update all callers.
7722
7723 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7724
7725 Fix typos for "developer" and "development".
7726
7727 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Add license header to spkmodem-recv.c.
7730
7731 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 Rewrite spkmodem to use PIT for timing. Double the speed.
7734
7735 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 Add new command pcidump.
7738
7739 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 New terminal outputs using serial: morse and spkmodem.
7742
7743 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 Improve bidi handling in entry editor.
7746
7747 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7750 argument to prevent name collision.
7751
7752 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7753
7754 Remove nested functions from script reading and parsing.
7755
7756 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7757 getline_data argument, passed to getline.
7758 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7759 getline_data argument, passed to grub_parser_split_cmdline.
7760 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7761 lexerstate->getline_data to lexerstate->getline.
7762 (grub_script_lexer_init): Add getline_data argument, saved in
7763 lexerstate->getline_data.
7764 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7765 argument, passed to grub_script_parse.
7766 * grub-core/script/script.c (grub_script_parse): Add getline_data
7767 argument, passed to grub_script_lexer_init.
7768 * include/grub/parser.h (grub_parser_split_cmdline): Update
7769 prototype. Update all callers to pass appropriate getline data.
7770 (struct grub_parser.parse_line): Likewise.
7771 (grub_rescue_parse_line): Likewise.
7772 * include/grub/reader.h (grub_reader_getline_t): Add void *
7773 argument.
7774 * include/grub/script_sh.h (struct grub_lexer_param): Add
7775 getline_data member.
7776 (grub_script_parse): Update prototype. Update all callers to pass
7777 appropriate getline data.
7778 (grub_script_lexer_init): Likewise.
7779 (grub_normal_parse_line): Likewise.
7780
7781 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7782 data argument.
7783 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7784 static instead of nested. Rename to ...
7785 (grub_parser_execute_getline): ... this.
7786 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7787 data argument.
7788 * grub-core/normal/main.c (read_config_file: getline): Make static
7789 instead of nested. Rename to ...
7790 (read_config_file_getline): ... this.
7791 (grub_normal_read_line): Add unused data argument.
7792 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7793 getline): Make static instead of nested. Rename to ...
7794 (grub_script_execute_sourcecode_getline): ... this.
7795 * util/grub-script-check.c (main: get_config_line): Make static
7796 instead of nested.
7797
7798 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7799
7800 Remove nested functions from memory map iterators.
7801
7802 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7803 argument, passed to hook.
7804 * grub-core/kern/i386/coreboot/mmap.c
7805 (grub_linuxbios_table_iterate): Likewise.
7806 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7807 instead of nested.
7808 (grub_machine_mmap_iterate): Add hook_data argument.
7809 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7810 Add hook_data argument, passed to hook.
7811 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7812 Likewise.
7813 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7814 Likewise.
7815 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7816 Likewise.
7817 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7818 Likewise.
7819 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7820 Likewise.
7821 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7822 Likewise.
7823 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7824 (grub_machine_mmap_iterate): Likewise.
7825 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7826 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7827 prototype.
7828 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7829 Remove NESTED_FUNC_ATTR from here and from all users.
7830 (grub_mmap_iterate): Update prototype.
7831 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7832 pass appropriate hook data.
7833 (grub_machine_mmap_iterate): Likewise.
7834
7835 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7836 static instead of nested.
7837 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7838 Rename to ...
7839 (lsmmap_hook): ... this.
7840 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7841 Likewise.
7842 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7843 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7844 heap_init): Likewise.
7845 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7846 Rename to ...
7847 (mmap_iterate_hook): ... this.
7848 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7849 Likewise.
7850 * grub-core/lib/ieee1275/relocator.c
7851 (grub_relocator_firmware_get_max_events: count): Likewise.
7852 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7853 to ...
7854 (grub_relocator_firmware_fill_events_iter): ... this.
7855 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7856 hook): Likewise. Rename to ...
7857 (grub_relocator_alloc_chunk_align_iter): ... this.
7858 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7859 Rename to ...
7860 (generate_e820_mmap_iter): ... this.
7861 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7862 Rename to ...
7863 (count_hook): ... this.
7864 (grub_linux_boot: hook): Likewise. Rename to ...
7865 (grub_linux_boot_mmap_find): ... this.
7866 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7867 (grub_linux_boot_mmap_fill): ... this.
7868 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7869 hook): Likewise. Rename to ...
7870 (grub_fill_multiboot_mmap_iter): ... this.
7871 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7872 hook): Likewise. Rename to ...
7873 (count_hook): ... this.
7874 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7875 hook): Likewise. Rename to ...
7876 (grub_fill_multiboot_mmap_iter): ... this.
7877 * grub-core/loader/powerpc/ieee1275/linux.c
7878 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7879 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7880 Likewise. Rename to ...
7881 (alloc_phys_choose): ... this.
7882 (determine_phys_base: get_physbase): Likewise.
7883 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7884 find_hook): Likewise.
7885 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7886 (malloc_hook: count_hook): Likewise.
7887 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7888 Likewise. Rename to ...
7889 (lower_hook): ... this.
7890 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7891 (upper_hook): ... this.
7892 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7893 (post64_hook): ... this.
7894 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7895 Likewise. Rename to ...
7896 (lower_hook): ... this.
7897 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7898 (upper_hook): ... this.
7899 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7900 (grub_mmap_iterate: fill_hook): Likewise.
7901 (fill_mask): Pass addr and mask within a single struct.
7902 (grub_cmd_badram: hook): Make static instead of nested. Rename
7903 to ...
7904 (badram_iter): ... this.
7905 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7906 (cutmem_iter): ... this.
7907
7908 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7911 delimit path in strings using quotes.
7912 * util/getroot.c (grub_guess_root_devices): Likewise.
7913 (grub_make_system_path_relative_to_its_root): Likewise.
7914 * util/grub-probe.c (probe): Likewise.
7915 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7916 (xrealpath): Likewise.
7917
7918 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7919
7920 Fix compilation with older compilers.
7921
7922 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7923 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7924 declarations.
7925 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7926 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7927 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7928 identifier with b.
7929 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7930 * include/grub/crypto.h: Add type defines.
7931 * util/import_gcrypth.sed: Remove duplicate type defines.
7932
7933 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 New command list_trusted.
7936
7937 * grub-core/commands/verify.c (grub_cmd_list): New function.
7938
7939 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7940
7941 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7942 info message.
7943
7944 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7945
7946 Remove nested functions from PCI iterators.
7947
7948 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7949 passed to hook. Update all callers to pass appropriate hook data.
7950 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7951 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7952 Remove NESTED_FUNC_ATTR from here and from all users.
7953 (grub_pci_iterate): Update prototype.
7954 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7955 instead of nested. Rename to ...
7956 (grub_cs5536_find_iter): ... this.
7957 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7958 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7959 Likewise.
7960 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7961 Likewise.
7962 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7963 Likewise.
7964 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7965 Likewise.
7966 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7967 * grub-core/video/radeon_fuloong2e.c
7968 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7969 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7970 find_card): Likewise.
7971 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7972 Likewise.
7973
7974 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 * grub-core/commands/verify.c: Mark messages for translating.
7977
7978 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7981 fatal.
7982
7983 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7986 fatal.
7987
7988 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7989
7990 * autogen.sh: Do not try to delete nonexistant files.
7991 * util/import_gcrypth.sed: Add some missing header removals.
7992
7993 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7994
7995 Clean up dangling references to grub-setup.
7996 Fixes Ubuntu bug #1082045.
7997
7998 * docs/grub.texi (Images): Refer generally to grub-install rather
7999 than directly to grub-setup.
8000 (Installing GRUB using grub-install): Remove direct reference to
8001 grub-setup.
8002 (Device map) Likewise.
8003 (Invoking grub-install): Likewise.
8004 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8005 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8006 * util/grub-install.in (usage): Likewise.
8007
8008 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8009 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8010 grub-setup.
8011 * configure.ac: Remove grub_setup output variable.
8012
8013 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8014 to grub-bios-setup.
8015 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8016 grub-setup to grub-sparc64-setup.
8017
8018 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 Import gcrypt public-key cryptography and implement signature checking.
8021
8022 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8023
8024 * grub-core/fs/ntfs.c: Ue more appropriate types.
8025 * grub-core/fs/ntfscomp.c: Likewise.
8026 * include/grub/ntfs.h: Likewise.
8027
8028 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 Support Apple FAT binaries on non-Apple platforms.
8031
8032 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8033 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8034 Likewise.
8035 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8036 Apple FAT binaries.
8037
8038 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8041 sector devices.
8042
8043 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8044
8045 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8046 explicitly zeroing elements.
8047 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8048 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8049 of elements in a structure already allocated using grub_zalloc.
8050 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8051
8052 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8053
8054 * docs/grub.texi (grub_cpu): New subsection.
8055 (grub_platform): Likewise.
8056
8057 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8060
8061 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8064 divisions.
8065
8066 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8069 * grub-core/fs/ntfscomp.c: Likewise.
8070 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8071 (grub_ntfs_comp): Likewise.
8072
8073 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8076 Rename to ...
8077 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8078 of groups_per_block. All users updated.
8079
8080 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8083 grub_error properly.
8084 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8085 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8086
8087 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8090 always in /boot/zfs.
8091 Reported by: Yuta Satoh.
8092
8093 2013-01-03 Yuta Satoh <nigoro>
8094
8095 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8096 ${grub_probe}
8097
8098 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * configure.ac: Extend -Wno-trampolines to host.
8101
8102 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8105 entry->len = 0.
8106
8107 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8108
8109 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8110 (Invoking grub-script-check): Likewise.
8111
8112 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8113
8114 * docs/grub.texi (Invoking grub-mount): New section.
8115 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8116
8117 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8118
8119 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8120 test failures, so that a failing unit test correctly causes 'make
8121 check' to fail.
8122
8123 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8124
8125 Fix failing printf test.
8126
8127 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8128 '$' in the correct order when collecting type information.
8129
8130 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8131
8132 * docs/grub.texi (configfile): Explain environment variable
8133 handling.
8134 (source): New section.
8135 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8136
8137 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8138
8139 Remove several trivially-unnecessary uses of nested functions.
8140
8141 * grub-core/commands/i386/pc/sendkey.c
8142 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8143 instead of nested.
8144 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8145 Rename to ...
8146 (legacy_file_getline): ... this.
8147 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8148 Likewise.
8149 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8150 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8151 to ...
8152 (probe_dummy_iter): ... this.
8153 * grub-core/kern/i386/coreboot/mmap.c
8154 (grub_linuxbios_table_iterate: check_signature): Likewise.
8155 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8156 check_varstate): Likewise. Mark inline.
8157 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8158 an additional parameter.
8159 (find_long: fnd_long): Likewise. Pass two additional parameters.
8160 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8161 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8162 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8163 Likewise. Rename to ...
8164 (grub_cmos_find_port_iter): ... this.
8165 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8166 Rename to ...
8167 (find_rtc_iter): ... this.
8168
8169 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8170 function directly into the function body, since it is only called
8171 once.
8172
8173 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8174
8175 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8176 __attribute__ ((unused)).
8177 * grub-core/video/bochs.c (find_card): Likewise.
8178 * grub-core/video/cirrus.c (find_card): Likewise.
8179 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8180 * grub-core/video/sis315pro.c (find_card): Likewise.
8181 * grub-core/video/sm712.c (find_card): Likewise.
8182
8183 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8184
8185 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8186 Fixes Savannah bug #37821.
8187
8188 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8189
8190 Apply program name transformations at build-time rather than at
8191 run-time. Fixes Debian bug #696465.
8192
8193 * acinclude.m4 (grub_TRANSFORM): New macro.
8194 * configure.ac: Create output variables with transformed names for
8195 most programs.
8196 * util/bash-completion.d/grub-completion.bash.in: Use
8197 pre-transformed variables for program names.
8198 * util/grub-install.in: Likewise.
8199 * util/grub-kbdcomp.in: Likewise.
8200 * util/grub-mkconfig.in: Likewise.
8201 * util/grub-mkconfig_lib.in: Likewise.
8202 * util/grub-mknetdir.in: Likewise.
8203 * util/grub-mkrescue.in: Likewise.
8204 * util/grub-mkstandalone.in: Likewise.
8205 * util/grub-reboot.in: Likewise.
8206 * util/grub-set-default.in: Likewise.
8207 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8208 * tests/util/grub-shell-tester.in: Remove unused assignment.
8209 * tests/util/grub-shell.in: Likewise.
8210 * util/grub.d/00_header.in: Likewise.
8211
8212 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8213
8214 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8215
8216 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8217 HAVE_RAW_DECL_GETS.
8218 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8219
8220 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8221
8222 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8223 Reported by: Eriks Latosheks <foresterlv>.
8224
8225 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * docs/grub.texi (Network): Update instructions on generating netboot
8228 image.
8229
8230 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8233 around device name if necessarry.
8234
8235 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8236
8237 * util/grub-install.in: Follow the symbolic link parameter added
8238 to the file command.
8239
8240 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8241
8242 * util/grub-install.in: Remove stale TODO.
8243
8244 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8245
8246 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8247 dynamic allocation for the bootpath buffer.
8248
8249 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8250
8251 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8252 window too small.
8253
8254 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8257 argument rather than font name. All users updated.
8258 (grub_gfxterm_set_window): Likewise.
8259
8260 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8261
8262 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8263 from working.
8264
8265 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * util/getroot.c (convert_system_partition_to_system_disk): Support
8268 nbd disks.
8269
8270 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8273 infinite loop on corrupted FS.
8274
8275 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 Fix big-endian mtime.
8278
8279 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8280 together sec and usec.
8281 (grub_ufs_dir): Use correct byteswapping for UFS time.
8282
8283 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 Support big-endian UFS1.
8286
8287 * Makefile.util.def (libgrubmods): Add ufs_be.c
8288 * grub-core/Makefile.core.def (ufs1_be): New module.
8289 * grub-core/fs/ufs_be.c: New file.
8290 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8291 the file.
8292
8293 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8294
8295 * include/grub/types.h: Fix functionality unaffecting typo in
8296 GRUB_TARGET_WORDSIZE conditional macro.
8297
8298 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8299
8300 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8301
8302 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8303
8304 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8305 that /netbsd appears first (when it exists).
8306
8307 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8308
8309 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8310 Fixes Savannah bug #37558.
8311
8312 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8313
8314 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8315 description of extract_entries_configfile.
8316
8317 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8318
8319 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8320 preferred_address.
8321 (grub_cmd_linux): Likewise.
8322 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8323 preferred_lifetime. Update all users.
8324
8325 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8326
8327 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8328 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8329
8330 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8331
8332 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8333 errors from grub-probe to /dev/null, not stdout.
8334
8335 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8338 sector 1.
8339
8340 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8341
8342 * util/grub-install.in: Make the error message if $source_dir
8343 doesn't exist more useful.
8344
8345 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8346
8347 Fix grub-emu build on FreeBSD.
8348
8349 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8350 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8351 headers on Linux.
8352 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8353 implementation is currently Linux-specific.
8354 * util/getroot.c (exec_pipe): Define only on Linux or when either
8355 libzfs or libnvpair is unavailable.
8356 (find_root_devices_from_poolname): Remove unused path variable.
8357
8358 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8359
8360 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8361 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8362 should fit before end == 63.
8363
8364 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8365
8366 * util/grub-setup.c (write_rootdev): Remove unused core_img
8367 parameter. Update all callers.
8368 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8369 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8370 GRUB_SETUP_BIOS.
8371
8372 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8375 (grub_add_tab): New function.
8376 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8377 * util/grub.d/10_illumos.in: Likewise.
8378 * util/grub.d/10_kfreebsd.in: Likewise.
8379 * util/grub.d/10_linux.in: Likewise.
8380 * util/grub.d/10_netbsd.in: Likewise.
8381 * util/grub.d/10_windows.in: Likewise.
8382 * util/grub.d/10_xnu.in: Likewise.
8383 * util/grub.d/20_linux_xen.in: Likewise.
8384 * util/grub.d/30_os-prober.in: Likewise.
8385
8386 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8389 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8390 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8391 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8392 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8393 ieee1275-nocursor.
8394 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8395 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8396
8397 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8400 le-conversion.
8401 Reported by: BURETTE, Bernard.
8402
8403 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8404
8405 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8406 from comment.
8407
8408 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8409
8410 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8411 IEEE1275 machines. Fixes powerpc-emu compilation.
8412 * include/grub/terminfo.h: Likewise.
8413
8414 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8417 a const pointer.
8418 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8419 const pointer.
8420 (efiemu_set_variable): Make vendor_guid a const pointer.
8421
8422 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 Don't require grub-mkconfig_lib to generate manpages for programs.
8425
8426 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8427 dependencies, don't add grub-mkconfig_lib.
8428 (program): Pass empty adddeps.
8429 (script): Pass grub-mkconfig_lib as adddeps.
8430
8431 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8434 * util/getroot.c (grub_find_device): Likewise.
8435 (get_mdadm_uuid): Likewise.
8436 (grub_util_is_imsm): Likewise.
8437 (grub_util_pull_device): Likewise.
8438 * util/grub-probe.c (probe): Likewise.
8439
8440 2012-09-10 Benoit Gschwind <gschwind>
8441
8442 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8443 (devs): Add devpath_8.
8444
8445 2012-09-08 Peter Jones <pjones@redhat.com>
8446
8447 * grub-core/Makefile.core.def (efifwsetup): New module.
8448 * grub-core/commands/efi/efifwsetup.c: New file.
8449 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8450 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8451 New define.
8452 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8453
8454 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8455
8456 * configure.ac: Add SuSe path.
8457
8458 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8459
8460 * NEWS: Fix typo.
8461
8462 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8463
8464 * util/import_gcry.py: Sort cipher_files, to make build system
8465 generation more deterministic.
8466
8467 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8470 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8471 (grub_set_datetime): Likewise.
8472
8473 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8476 warnings.
8477
8478 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8481
8482 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8485
8486 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8487
8488 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8489 required for checkouts from bzr, but it may be useful for users or
8490 distributors wishing to update translations against a tarball
8491 distribution, and it can be helpful for the tarball to be a superset
8492 of what's in bzr.
8493
8494 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8495
8496 * Makefile.am (EXTRA_DIST): Add
8497 grub-core/tests/boot/linux.init-mips.S,
8498 grub-core/tests/boot/linux.init-ppc.S, and
8499 grub-core/tests/boot/linux-ppc.cfg.
8500
8501 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8502
8503 * grub-core/mmap/mips/loongson: Remove empty directory.
8504
8505 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8506
8507 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8508 gone.
8509
8510 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8511
8512 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8513 grub-sparc64-setup.
8514
8515 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8516
8517 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8518
8519 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8520
8521 * po/POTFILES.in: Regenerated.
8522
8523 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8524
8525 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8526 (NetBSD): New subsection.
8527
8528 2012-07-22 Ales Nesrsta <starous@volny.cz>
8529
8530 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8531 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8532
8533 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8536 * util/grub.d/10_hurd.in: Add missing quoting.
8537 * util/grub.d/10_illumos.in: Likewise.
8538 * util/grub.d/10_kfreebsd.in: Likewise.
8539 * util/grub.d/10_linux.in: Likewise.
8540 * util/grub.d/20_linux_xen.in: Likewise.
8541
8542 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8543
8544 New command `lsefi'.
8545
8546 * grub-core/Makefile.core.def (lsefi): New module.
8547 * grub-core/commands/efi/lsefi.c: New file.
8548 * include/grub/efi/api.h: Add more GUIDs.
8549
8550 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8553 (grub_bsd_elf32_hook): Likewise.
8554 (grub_bsd_elf64_size_hook): Likewise.
8555 (grub_bsd_elf64_hook): Likewise.
8556 (grub_bsd_load_elf): Likewise.
8557
8558 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8561 if hash function is unavailable.
8562 (dec_stream_header): Likewise.
8563
8564 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8565
8566 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8567 filter state.
8568
8569 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 Fix coreboot compilation.
8572
8573 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8574 (grub_vga_text_init_real): ... this.
8575 (grub_vga_text_fini): Rename to ...
8576 (grub_vga_text_fini_real): ... this.
8577
8578 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8581
8582 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 * grub-core/lib/legacy_parse.c: Support clear and testload.
8585
8586 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8589
8590 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8591
8592 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8593
8594 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * grub-core/net/tftp.c (ack): Fix endianness problem.
8597 (tftp_receive): Likewise.
8598 Reported by: Michael Davidsaver.
8599
8600 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8601
8602 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8603
8604 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8607 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8608 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8609
8610 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8611
8612 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8613 efi_mmap_size.
8614 Reported by: Stuart Hayes.
8615
8616 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8619
8620 * grub-core/Makefile.core.def (mda_text): New module.
8621 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8622 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8623 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8624 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8625 here.
8626 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8627 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8628 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8629 here.
8630 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8631 to ..
8632 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8633 ... here
8634 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8635 here.
8636 * grub-core/term/i386/vga_common.c: Removed.
8637 * include/grub/i386/vga_common.h: Likewise.
8638 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8639 (grub_vga_cr_bw_read): Likewise.
8640 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8641 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8642 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8643 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8644 grub_vga_cr_read/grub_vga_cr_write.
8645 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8646
8647 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * configure.ac: Bump version to 2.00.
8650 * grub-core/normal/main.c (features): Add feature_200_final.
8651
8652 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8653 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8654
8655 * NEWS: Fix unclarity and language mistakes.
8656
8657 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8660 additional size to 3 pages.
8661 Reported by: Stuart Hayes.
8662
8663 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * NEWS: Add 2.00 entry.
8666
8667 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8670 put explicit "/" for empty path.
8671 (wildcard_expand): Improve dprintf.
8672
8673 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8676 it's equal to currnode. This can happen with "" symlink.
8677
8678 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8679
8680 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8681 echo shell command by printf command.
8682
8683 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8684
8685 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8686 the value returned by firmware is the maximal position, not diumension.
8687 (grub_terminfo_output_state): Use a more sane fallback.
8688
8689 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8692
8693 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8696 frequency to 150 MHz.
8697
8698 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 Apple fixes.
8701
8702 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8703 __APPLE_
8704 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8705 definition.
8706 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8707
8708 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 Handle slash in HFS label.
8711
8712 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8713 (grub_hfs_dir): Tanslate slash.
8714 (grub_hfs_label): Don't translate slash.
8715
8716 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8717
8718 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8719 network protocol listing since it introduces problematic dependency on
8720 net module.
8721
8722 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8725
8726 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 Init video early on yeeloong to avoid being rebooted by watchdog.
8729
8730 * grub-core/Makefile.am (gensm712): New target.
8731 (sm712_start.S): Likewise.
8732 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8733 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8734 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8735 description.
8736 * include/grub/vga.h: Move registry definitions to...
8737 * include/grub/vgaregs.h: ... here.
8738
8739 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8742 signedness.
8743
8744 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8747 platforms with firmware disk drivers in the core.
8748
8749 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8752 informative verbose message.
8753 (read_lv): Handle 64-bit segment size.
8754
8755 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8758
8759 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8762 character but still remove trainling spaces.
8763 (grub_fat_label): Ignore archive flag.
8764
8765 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8768 cast between linux_kernel_header and linux_kernel_params.
8769
8770 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8773 type for size.
8774 (grub_raid6_recover_func_t): Likewise.
8775 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8776 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8777
8778 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8781
8782 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8783
8784 Fix overflow.
8785
8786 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8787 [__NetBSD__]: Add explicit cast before bitshift.
8788
8789 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 * configure.ac: Bump to 2.00~rc1.
8792
8793 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8796 half of $a0.
8797
8798 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8799 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8800
8801 * docs/grub.texi: Fix search syntax.
8802 (Multi-boot manual config): Put msdos rather than GPT example.
8803 Grammar corrections.
8804
8805 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8808
8809 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8812
8813 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8816 message on double free. Put the value of magic in case of mismatch.
8817
8818 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 Speed-up video on yeeloong.
8821
8822 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8823 add cached_ptr.
8824 (grub_video_sm712_video_fini): Unmap cached_ptr.
8825 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8826 (grub_video_sm712_set_active_render_target): Removed.
8827 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8828 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8829 sync caches.
8830
8831 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 Avoid flushing the same line multiple times on loongson.
8834
8835 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8836 Step in 32 bytes and not 1 byte.
8837 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8838 Likewise.
8839
8840 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8843 subvolumes.
8844
8845 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 Implement flow control for http.
8848
8849 * grub-core/net/http.c (parse_line): Handle response 206.
8850 (http_receive): Stall if too many packets are in the queue.
8851 (http_establish): Fix range header.
8852 (http_seek): Fix double free.
8853 (http_close): Likewise.
8854 (http_packets_pulled): New function.
8855 (grub_http_protocol): Set http_seek
8856 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8857 (ack_real): Set window depending on i_stall.
8858 (grub_net_send_tcp_packet): Likewise.
8859 (grub_net_tcp_stall): New function.
8860 (grub_net_tcp_unstall): Likewise.
8861 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8862 (grub_net_tcp_unstall): Likewise.
8863
8864 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8867
8868 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8871
8872 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * tests/util/grub-shell.in: Fix a typo.
8875
8876 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 Implement flow control for tftp.
8879
8880 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8881 packets but stop only if stop condition is satisfied.
8882 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8883 `stall' instead of `eof' as stop condition.
8884 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8885 (http_err): Likewise.
8886 * grub-core/net/tftp.c (ack): Replace the first argument with data
8887 instead of socket.
8888 (tftp_receive): Stall if too many packets are in wait queue.
8889 (tftp_packets_pulled): New function.
8890 (grub_tftp_protocol): Set packets_pulled.
8891 * include/grub/net.h (grub_net_packets): New field count.
8892 (grub_net_put_packet): Increment count.
8893 (grub_net_remove_packet): Likewise.
8894 (grub_net_app_protocol): New field `packets_pulled'.
8895 (grub_net): New field `stall'.
8896
8897 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8900 sync part to handle them.
8901
8902 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8905 * grub-core/net/drivers/ieee1275/ofnet.c
8906 (grub_ieee1275_net_config_real): Likewise.
8907
8908 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8911 the direct route for server/gateway.
8912
8913 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8916 IP address to server name since we may not hame the DNS.
8917
8918 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8921 freeing random buffer on failure.
8922 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8923
8924 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8927
8928 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8931 reserved bytes.
8932 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8933 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8934 Handle malloc error correctly.
8935
8936 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8937
8938 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8939 blocks.
8940
8941 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8944 increment.
8945
8946 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8947
8948 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8949 none is explicitly specified.
8950
8951 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8952
8953 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8954 while reallocating.
8955
8956 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 Respect netmask from bootp/dhcp.
8959
8960 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8961 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8962 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8963 into ...
8964 (grub_net_add_ipv4_local): ... this.
8965 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8966 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8967 (grub_net_add_ipv4_local): New proto.
8968
8969 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8970
8971 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8972 determining EFI memory map size.
8973
8974 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8975
8976 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8977
8978 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8981 when looking for partition separator.
8982
8983 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8986 Escape commas.
8987
8988 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 Restructure FAT driver to avoid hook in label reading as it hits a
8991 GCC bug.
8992
8993 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8994 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8995 (grub_fat_iterate_dir): Split into ...
8996 (grub_fat_iterate_init): ... this, ...
8997 (grub_fat_iterate_fini): ... this, ...
8998 (grub_fat_iterate_dir_next): ... and this. All users updated.
8999
9000 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9003 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9004 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9005 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9006 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9007 New fields last_key and last_key_time.
9008 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9009 extended key-esc into extended key-extended key.
9010
9011 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9012
9013 Avoid unnecessary memcpy of whole video buffer.
9014
9015 * grub-core/video/fb/video_fb.c (dirty): New struct.
9016 (framebuffer): Add members current_dirty and previous_dirty.
9017 (dirty): New function.
9018 (grub_video_fb_fill_rect): Update dirty.
9019 (common_blitter): Likewise.
9020 (grub_video_fb_scroll): Likewise.
9021 (doublebuf_blit_update_screen): Copy only dirty part.
9022 (doublebuf_pageflipping_update_screen): Likewise.
9023 (grub_video_fb_doublebuf_blit_init): Init dirty.
9024 (doublebuf_pageflipping_init): Likewise.
9025 (grub_video_fb_setup): Likewise.
9026
9027 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9030 poll rate.
9031
9032 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 Fix wildcard regexp dot and other special characters handling.
9035 Reported by: Robert Mabee.
9036
9037 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9038 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9039 (split_path): Trigger expansion on '?'.
9040 (unescape): New function.
9041 (wildcard_expand): Unescape parts copied without globbing.
9042 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9043 (grub_script_arglist_to_argv): Don't unescape expansions.
9044
9045 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * include/grub/net.h (grub_net_card): New member txbufsize.
9048 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9049 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9050 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9051 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9052 txbufsize.
9053 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9054 compatible property to check for macs. Set
9055 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9056 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9057 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9058 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9059 (send_card_buffer): Use txbuf.
9060 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9061 nested function out of the parent while on it.
9062
9063 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9066 presence check.
9067 (grub_ieee1275_net_config_real): Fix config pointer.
9068
9069 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9070
9071 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9072 filename parsing to non-block devices.
9073
9074 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9077
9078 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9081 All users updated.
9082
9083 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9086 UUID search command even if hints probing failed.
9087
9088 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * po/POTFILES.in: Regenerated.
9091
9092 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 Speed-up video on fuloong.
9095
9096 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9097 New function.
9098 (grub_pci_device_unmap_range): Handle non-cached address.
9099 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9100 add direct_ptr.
9101 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9102 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9103 (grub_video_sis315pro_set_active_render_target): Removed.
9104 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9105 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9106 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9107 sync caches.
9108 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9109 New proto.
9110
9111 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * docs/grub.texi (Multi-boot manual config): New section.
9114
9115 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 Avoid slow read-back from VRAM.
9118
9119 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9120 Move from here ...
9121 * grub-core/video/fb/video_fb.c
9122 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9123 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9124 (front_target): Remove front_target. Add pages.
9125 (grub_video_fb_init): Skip setting front_pages.
9126 (grub_video_fb_fini): Likewise.
9127 (doublebuf_blit_update_screen): Use pages.
9128 (grub_video_fb_doublebuf_blit_init): Likewise.
9129 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9130 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9131 (grub_video_fb_setup): Prefer doublebuffing.
9132
9133 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9136 gzio.
9137
9138 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 Add loongson tests.
9141
9142 * tests/util/grub-shell.in: Handle loongson.
9143 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9144 drivers.
9145 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9146 Reboot instead of shutdown if REBOOT is defined.
9147
9148 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9151 sized ports since unlike on real hardware qemu supports only 32-bit
9152 regs.
9153
9154 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9157 * util/grub-mkrescue.in: Handle loongson.
9158
9159 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9162 Set is_part appropriately.
9163 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9164 names. Canonicalize partition without full disk.
9165
9166 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 Revert usb-quiesce since it's wrong.
9169
9170 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9171 (grub_ofdisk_init): Don't do quiesce.
9172
9173 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9176 PowerMac workaround to Xserves as well.
9177 Information supplied by: Benjamin Herrenschmidt.
9178
9179 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 Don't assume that beginning address is also the entry point on ppc.
9182
9183 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9184 (grub_linux_boot): Use linux_entry.
9185 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9186 (grub_linux_load64): Likewise.
9187
9188 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9191
9192 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9195 needlessly lose the console.
9196
9197 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9200 space.
9201
9202 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9205 than current grub_get_rtc() not implemented when booted with
9206 coreboot without TSC.
9207
9208 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9209 Add machine/time.h to kernel headers on loongson.
9210 * grub-core/Makefile.core.def (kernel): Remove
9211 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9212 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9213 (grub_get_rtc): Likewise.
9214 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9215 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9216 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9217 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9218 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9219 rather than installing known non-working time source.
9220 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9221 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9222 * include/grub/time.h: Don't include machine/time.h.
9223 * include/grub/efi/time.h: Removed.
9224 * include/grub/i386/efi/time.h: Likewise.
9225 * include/grub/i386/ieee1275/time.h: Likewise.
9226 * include/grub/powerpc/ieee1275/time.h: Likewise.
9227 * include/grub/sparc64/ieee1275/time.h: Likewise.
9228 * include/grub/x86_64/efi/time.h: Likewise.
9229
9230 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 Remove dot on i and j when combining with above diacritics.
9233
9234 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9235 value.
9236 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9237 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9238 with dotless variants when any combining above is present.
9239
9240 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9243 text and not binary.
9244
9245 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 Stop polling as soon as we have the packet we were waiting for.
9248
9249 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9250 All users updated.
9251 * grub-core/net/arp.c (have_pending): New var.
9252 (pending_req): Likewise.
9253 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9254 stop indicator.
9255 (grub_net_arp_receive): Set have_pending.
9256 * grub-core/net/dns.c (recv_data): New field stop.
9257 (recv_hook): Set stop.
9258 (grub_net_dns_lookup): Init stop and use as stop condition.
9259 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9260 condition.
9261 * grub-core/net/net.c (grub_net_poll_cards): New argument
9262 stop_condition. Stop when it goes true.
9263 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9264 indicator.
9265 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9266
9267 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 Keep TX and RX buffers on EFI rather than always allocate new ones.
9270
9271 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9272 card. All users updated.
9273 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9274 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9275 (get_card_packet): Likewise.
9276 (grub_efinet_findcards): Init new fields.
9277
9278 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9281 compilation error on sparc64.
9282
9283 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 Use ITC on IA64 rather than broken routine based on daytime.
9286
9287 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9288 ia64.
9289 (grub_get_rtc) [__ia64__]: Likewise.
9290 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9291 (get_itc): New function.
9292 (grub_rtc_get_time_ms): Likewise.
9293 (grub_machine_init): Calibrate ITC.
9294 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9295 Keep only on non-ia64. Don't export since it's broken and used only
9296 if TSC is unavailable.
9297
9298 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9301 even if it's used.
9302 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9303 Skip if parent is unused.
9304
9305 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9308
9309 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 Fix wildcard escaping.
9312
9313 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9314 * grub-core/script/execute.c (wildcard_escape): .. to here.
9315 Don't escape dot.
9316 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9317 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9318 Don't escape dot.
9319 * grub-core/script/execute.c (gettext_append): Always escape.
9320 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9321 * grub-core/script/yylex.l: Don't cut away the escaping.
9322 * tests/grub_script_echo1.in: Add tests with wildcard.
9323
9324 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9327 (ftdi_hw_configure): Likewise.
9328 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9329 define.
9330 (real_config): Handle 1.5 stop bits.
9331 (pl2303_hw_configure): Likewise.
9332
9333 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9334
9335 * Makefile.am: Add ppc linux bootcheck.
9336 * grub-core/tests/boot/linux-ppc.cfg: New file.
9337 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9338
9339 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * tests/grub_script_expansion.in: Skip network protocols.
9342
9343 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9346
9347 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9350 --rom-directory.
9351 Add -graft-points.
9352
9353 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 ESCC serial driver for conducting sautomated tests in qemu.
9356 Not tested on real hardware.
9357
9358 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9359 * grub-core/term/ieee1275/escc.c: New file.
9360 * grub-core/Makefile.core.def (escc): New module.
9361
9362 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9363
9364 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9365 invalid on error.
9366 (serial_hw_fetch): Don't read invalid handle.
9367 (serial_hw_put): Don't write into invalid handle.
9368
9369 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Add a 1.5 stop bits value.
9372
9373 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9374 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9375 GRUB_SERIAL_STOP_BITS_1_5.
9376
9377 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9380 value rather than let it uninited.
9381
9382 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 * grub-core/commands/wildcard.c (+check_file): New function.
9385 (wildcard_expand): Don't expand to non-existing files, expand with
9386 suffix and not attempt to expand if not needed.
9387
9388 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9389
9390 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9391 out of partitions containing other partitions.
9392
9393 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9396 on some qemu versions with GRUB.
9397
9398 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9399 define.
9400 (grub_openbsd_bootarg_pcibios): New struct.
9401 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9402 Add PCIINFO.
9403
9404 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 * tests/util/grub-shell.in: Trim firmware output on EFI.
9407
9408 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9411 and coreboot since it's already in kernel.
9412
9413 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9416 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9417 to here. New return value start. All users updated.
9418 Recursively scan linear mappings.
9419 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9420 proto.
9421 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9422 Use grub_util_get_dm_node_linear_info.
9423 * util/getroot.c (convert_system_partition_to_system_disk): Use
9424 grub_util_info rather than grub_dprintf.
9425 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9426
9427 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9430
9431 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9432 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9433
9434 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * include/grub/types.h (grub_set_unaligned64): New function.
9437 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9438 (setup): Likewise.
9439
9440 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9443 (grub_ofdisk_fini): Quiesce USB devices.
9444
9445 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9448 caches.
9449
9450 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9453
9454 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * grub-core/disk/pata.c (grub_pata_pio_read)
9457 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9458 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9459
9460 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 Extend automated tests to qemu-mips.
9463
9464 * Makefile.am: reorganise tests and enable qemu-mips.
9465 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9466 * grub-core/tests/boot/linux.init-mips.S: New file.
9467 * tests/partmap_test.in: Handle ata0 disks.
9468 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9469 non-pc i386.
9470
9471 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9474 ia64.
9475 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9476 quotes while on it.
9477
9478 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9481 (grub_halt): Likewise.
9482 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9483
9484 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/term/serial.c (grub_serial_register)
9487 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9488 the behaviour in line with x86 platforms.
9489
9490 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9493 (grub_ata_strncpy): Likewise.
9494 (grub_ata_identify): Add missing byteswaps.
9495
9496 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9499 byte-swap.
9500 (screen_read_char): Likewise.
9501 (grub_vga_text_cls): Likewise.
9502
9503 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9506 filenames.
9507 (make_file_path): Likewise.
9508
9509 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9512 machines.
9513 Tested by: Paulo Flabiano Smorigo.
9514 Crucial information about API supplied by: Coleen <Last name unknown>.
9515 Reviewed by: Coleen <Last name unknown>.
9516
9517 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * util/grub-mkimage.c: Disable -Wcast-align.
9520
9521 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9524 as they are fatal.
9525
9526 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9529
9530 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * util/grub-probe.c (escape_of_path): Fix double free.
9533
9534 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * grub-core/commands/videoinfo.c (hook): Show pitch.
9537
9538 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9541
9542 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9545 (probe): Add ieee1275 to OFW devices.
9546
9547 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9550
9551 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 Handle IBM OFW path.
9554
9555 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9556 available.
9557 (of_path_of_scsi): Handle vdevice.
9558
9559 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9562 Allocate in multiples of 16 to avoid adding a few bytes free region the
9563 windows bugs upon.
9564
9565 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9566
9567 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9568 Allocate in multiples of 16 to avoid adding a few bytes free region the
9569 windows bugs upon.
9570 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9571
9572 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9575 resolutions.
9576 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9577 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9578
9579 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9580
9581 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9582
9583 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9586 resulted in \\ at the end of the line.
9587
9588 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9591 (grub_parser_cmdline_state): Likewise.
9592 (grub_parser_split_cmdline): Likewise.
9593
9594 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9597 /dev/root and /dev/dm-*.
9598
9599 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9602 fix partially stale display.
9603
9604 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9607 substraction.
9608
9609 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9612 Fix MBR remapping workaround.
9613 (grub_util_biosdisk_read) [__linux__]: Likewise.
9614
9615 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9618
9619 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * configure.ac: Bump to beta6.
9622
9623 2012-05-31 Christer Weinigel <christer@weinigel.se>
9624
9625 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9626
9627 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9630 (grub_cmd_linux): Likewise.
9631
9632 2012-05-31 Christer Weinigel <christer@weinigel.se>
9633
9634 Fix EHCI low-speed.
9635
9636 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9637 (GRUB_EHCI_MULT_TWO): Likewise.
9638 (GRUB_EHCI_MULT_THREE): Likewise.
9639 (GRUB_EHCI_CMASK_MASK): New enum value.
9640 (GRUB_EHCI_SMASK_MASK): Likewise.
9641 (GRUB_EHCI_CMASK_OFF): Likewise.
9642 (GRUB_EHCI_SMASK_OFF): Likewise.
9643 (grub_ehci_pci_iter): Enable periodic schedule.
9644 (grub_ehci_parse_notrun): Likewise.
9645 (grub_ehci_restore_hw): Likewise.
9646 (grub_ehci_setup_qh): Set flags for low speed transfers.
9647 (grub_ehci_find_qh): Use periodic list for low speed.
9648 (grub_ehci_setup_transfer): Check periodic queue as well.
9649 (grub_ehci_check_transfer): Likewise.
9650 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9651
9652 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9653
9654 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9655 parameter is used.
9656
9657 2012-05-31 Peter Jones <pjones@redhat.com>
9658
9659 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9660 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9661 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9662
9663 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9666 uninited variable. Allocate at least setup_sects.
9667
9668 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9669
9670 Fix handling of EFI with big memory maps.
9671
9672 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9673 (real_mode_mem): Likewise.
9674 (real_mode_target): Likewise.
9675 (real_mode_pages): Likewise.
9676 (prot_mode_pages): Likewise.
9677 (linux_params): New var.
9678 (linux_cmdline): Likewise.
9679 (free_pages): Don't set real mode variables.
9680 (allocate_pages): Don't allocate real mode memory.
9681 (grub_e820_add_region): Remove the limit.
9682 (grub_linux_boot): Allocate and copy real mode memory.
9683 (grub_linux_unload): Free linux_cmdline.
9684 (grub_cmd_linux): Use temporary storage for parameters.
9685 (grub_cmd_initrd): Likewise.
9686 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9687 (linux_kernel_params): Make it 1K big.
9688
9689 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 * Makefile.util.def: Remove -Wno-format.
9692 * grub-core/Makefile.core.def: Likewise.
9693
9694 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 * tests/cmp_unit_test.c: Add missing failure message.
9697 * tests/example_unit_test.c: Likewise.
9698 * tests/printf_unit_test.c: Likewise.
9699
9700 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9703 relaxation of protective MBR requirements.
9704
9705 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * configure.ac: Add condition for COND_HOST_XNU.
9708 * Makefile.util.def (10_xnu): New script.
9709 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9710
9711 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9714 objconv bug.
9715
9716 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9719 Binary on other platforms stays identical.
9720
9721 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9724 Apple.
9725
9726 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9729
9730 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9733 rather than defining size_t ourselves to avoid conflict.
9734
9735 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9738 initialisation to avoid __bzero reference.
9739
9740 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9743 version.
9744 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9745 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9746 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9747 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9748 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9749
9750 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9753 * grub-core/kern/misc.c: Likewise.
9754 * grub-core/loader/i386/xnu.c: Likewise.
9755 * include/grub/i386/tsc.h: Likewise.
9756 * include/grub/symbol.h: Likewise.
9757
9758 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9761 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9762 on older compiler.
9763
9764 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9767 Implement Apple flavour.
9768 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9769
9770 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9773 (memmove) [__APPLE__]: Likewise.
9774 (memcpy) [__APPLE__]: Likewise.
9775 (memset) [__APPLE__]: Likewise.
9776 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9777 (memmove) [__APPLE__]: Likewise.
9778 (memcpy) [__APPLE__]: Likewise.
9779 (memset) [__APPLE__]: Likewise.
9780
9781 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9784 dependency discard.
9785
9786 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/normal/main.c (read_config_file): Provide config_file and
9789 config_directory.
9790 * util/grub.d/41_custom.in: Use config_directoy when available.
9791
9792 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9795 (grub_bfs_dir): Likewise.
9796
9797 2012-05-27 Peter Jones <pjones@redhat.com>
9798
9799 The old code gives arguments to a printf function which can't work
9800 correctly, and the compiler complains.
9801
9802 * grub-core/tests/example_functional_test.c (example_test): Add
9803 missing text.
9804 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9805 * include/grub/test.h (grub_test_assert_helper): New declaration.
9806 (grub_test_assert): Use grub_test_assert_helper.
9807
9808 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9811 (exfctest): ... this to avoid overlong filenames.
9812 All users updated.
9813
9814 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 Handle "." and ".." on squashfs.
9817
9818 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9819 Make inode numbers into stack.
9820 (grub_squash_read_symlink): Use stack.
9821 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9822 (make_root_node): Fill stack.
9823 (grub_squash_open): Use stack.
9824
9825 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9828 freeing.
9829
9830 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9833 stderr on test calls.
9834
9835 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9836
9837 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9838
9839 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9842
9843 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9846 "..".
9847
9848 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9851 (grub_hfsplus_iterate_dir): Add "." and "..".
9852
9853 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9856 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9857
9858 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9861 (find_path): Handle "." and "..".
9862
9863 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9866 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9867 (grub_affs_iterate_dir): Handle hardlinks.
9868
9869 2012-05-26 Matthew Garrett <mjg@redhat.com>
9870
9871 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9872 (grub_efi_console_fini): Likewise.
9873 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9874 (grub_video_gop_fill_mode_info): Rename to ...
9875 (grub_video_gop_fill_real_mode_info): ... this.
9876 (grub_video_gop_fill_mode_info): New function.
9877 (grub_video_gop_setup): Setup double framebuffer.
9878 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9879 Free offscreen.
9880 (grub_video_gop_swap_buffers): Copy framebuffer.
9881 (grub_video_gop_fini): Free offscreen buffer.
9882 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9883 New enum.
9884 (grub_efi_gop_blt_pixel): New struct.
9885
9886 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * gentpl.py: Remove error disabling for objconv.
9889
9890 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * configure.ac: Remove -Wunitialized as it's not available on older
9893 compilers.
9894
9895 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 Fix extent overflow comparator.
9898
9899 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9900 (grub_hfsplus_read_block): Set type.
9901 (grub_hfsplus_cmp_extkey): Compare type.
9902
9903 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9904
9905 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9906
9907 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9910 than 0.
9911
9912 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9915 (dejavu_bold_14.pf2): New target.
9916
9917 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * configure.ac: Fix djvu font detection.
9920
9921 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9924 ext* instead of ext2.
9925
9926 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9929 name with \0.
9930
9931 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9932
9933 * docs/grub-dev.texi: Remove dot from .png.
9934
9935 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9938 protective entry in any slot.
9939 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9940 if protective entry is found in any slot.
9941
9942 Protective entry in non-first slot make no sense but is a widespread
9943 brain damage.
9944
9945 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9948
9949 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9952 with old reiserfs.
9953 (grub_reiserfs_open): Don't free root.
9954
9955 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9958 after freeing for safety.
9959
9960 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9963 Reported by: Jordan Uggla.
9964
9965 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9966
9967 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9968 actual implementation. Specifically, clarify that the grub menu will
9969 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9970 passed.
9971
9972 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9973
9974 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9975 of r0.
9976
9977 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 Remove unjustified hard dependency of normal.mod on gfxterm.
9980
9981 * include/grub/term.h (grub_term_output): New member fullscreen.
9982 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9983 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9984 (grub_gfxterm): Set .fullscreen.
9985 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9986 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9987
9988 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9991 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9992 Mention case-insensitive AFFS, SFS and JFS.
9993
9994 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9997
9998 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10001 a bad FS.
10002
10003 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10006 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10007
10008 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10011 (grub_jfs_mount): Fill caseins.
10012 (grub_jfs_find_file): Respect caseins.
10013
10014 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10017 through UTF-16.
10018
10019 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10022 New argument origpath. All users updated.
10023
10024 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10027 (read_attr): Ensure that we read start of possibly compressed block.
10028
10029 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10032 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10033 All users updated.
10034
10035 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10038 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10039 (dejavu.pf2): Replace with ...
10040 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10041 this.
10042
10043 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * util/grub.d/20_linux_xen.in: Add missing line.
10046
10047 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10050 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10051 (grub_utf16_to_utf8): Likewise.
10052
10053 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10056 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10057 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10058 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10060 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10061
10062 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10065 a bad FS.
10066
10067 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10068
10069 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10070 (grub_udf_read_symlink): Handle read_string failure.
10071
10072 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10075 comment.
10076
10077 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 Fix handling of UDF symlinks.
10080
10081 * grub-core/fs/udf.c (read_string): New argument outbuf.
10082 All users updated.
10083 (grub_ufs_read_symlink): Rename to ...
10084 (grub_udf_read_symlink): ... this. All users updated.
10085 Handle symlinks with more than one component.
10086
10087 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10090 symlinks. Replace leading colon with a slash.
10091
10092 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10095 filename.
10096
10097 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10100 match in inner node.
10101
10102 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10105 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10106 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10107 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10108 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10109 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10110 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10111 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10112 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10113
10114 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 Use grub-probe and not cmp to check that disk is empty.
10117
10118 * util/grub-install.in: Use grub-probe for zero-check.
10119 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10120 (probe): Handle PRINT_ZERO_CHECK.
10121 (argp_parser): Handle -t zero_check.
10122
10123 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 Flush block cache on adding disk to device map.
10126
10127 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10128 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10129 adding.
10130 (read_device_map): Likewise.
10131 (open_device): Flush on opening.
10132
10133 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10136 (handle_symlink): Fix off-by-one error.
10137 Canonicalize the target.
10138 (grub_cpio_dir): Canonicalize the name.
10139 Fix memory leak.
10140 Set directory.
10141 (grub_cpio_open): Canonicalize the name.
10142
10143 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10146 handling.
10147
10148 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10151 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10152
10153 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10156 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10157 All users updated.
10158
10159 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10162 counterpart.
10163
10164 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 Fix UFS1 big file support.
10167
10168 * grub-core/fs/ufs.c (INODE): Removed.
10169 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10170 64-bit.
10171 (INODE_MODE): Simplify.
10172 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10173 (grub_ufs_lookup_symlink): Don't use INODE.
10174
10175 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10178
10179 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10180 (grub_minix_data): Replace log_block_size with block_size.
10181 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10182 (grub_minix_mount): Fill block_size.
10183
10184 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * configure.ac: Bump to beta5.
10187
10188 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 Fix wrapped HFS+ handling.
10191
10192 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10193 blocks_start. All users updated.
10194 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10195 wrapping offset.
10196 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10197
10198 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Fix long symlinks on reiserfs.
10201
10202 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10203 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10204 (grub_reiserfs_iterate_dir): Save size for non-directories.
10205 (grub_reiserfs_open): Don't reread stat block as we already know the
10206 size.
10207 (grub_reiserfs_read): Split into...
10208 (grub_reiserfs_read_real): ... and ...
10209 (grub_reiserfs_read): ...this.
10210
10211 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10212
10213 Fix non-indexed JFS.
10214
10215 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10216 (grub_jfs_data): New field namecomponentlen.
10217 (grub_jfs_mount): Fill namecomponentlen.
10218 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10219
10220 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10221
10222 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10223 * tests/grub_script_echo1.in: Add tests.
10224
10225 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * util/grub-install.in: Ignore empty devicetree directory.
10228
10229 2012-05-08 Bean <bean123ch@gmail.com>
10230
10231 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10232 All users updated.
10233 (free_rsm): Free header as well.
10234 (free_old_fragments): Fix memory leak.
10235 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10236 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10237 (destroy_pq): Likewise.
10238 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10239
10240 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10243 resulting hash as a precaution.
10244
10245 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10248 '_' in variable names.
10249 * grub-core/net/net.c (grub_net_network_level_interface_register):
10250 Likewise.
10251
10252 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 Fix AFFS with non-512B blocks.
10255
10256 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10257 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10258 (grub_affs_data): Replace blocksize with log_blocksize.
10259 (grub_affs_read_block): Fix non-512B blocks.
10260 (grub_affs_read_symlink): Likewise.
10261 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10262 (grub_affs_read): Fix non-512B blocks.
10263 (grub_affs_label): Likewise.
10264 (grub_affs_mtime): Likewise.
10265 (grub_affs_mount): Fix block detection routine.
10266
10267 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 Add filesystem mtime to AFFS.
10270
10271 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10272 (aftime2ctime): New function.
10273 (grub_affs_dir): Use aftime2ctime.
10274 (grub_affs_label): Fix return value.
10275 (grub_affs_mtime): New function.
10276 (grub_affs_fs): Add mtime.
10277
10278 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10279
10280 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10281 UTF-8.
10282
10283 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10286 UTF-8.
10287
10288 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10291
10292 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10295 flags.
10296 (FLAGS_CASE_SENSITIVE): New enum value.
10297 (cache_entry): New struct.
10298 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10299 cache_size and cache.
10300 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10301 Add log_blocksize and fshelp_flags.
10302 (grub_sfs_read_extent): Handle non-512 blocks.
10303 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10304 (grub_sfs_read_file): Handle non-512 blocks.
10305 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10306 fshelp_flags.
10307 (grub_sfs_read_symlink): Handle non-512 blocks.
10308 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10309 (grub_sfs_dir): Free cache.
10310 (grub_sfs_close): Likewise.
10311
10312 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10315 filesystems.
10316
10317 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10318
10319 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10320
10321 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10324
10325 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10328 (grub_sfs_read_extent): Likewise.
10329 (grub_sfs_read_block): Likewise.
10330 (grub_sfs_mount): Likewise.
10331 (grub_sfs_iterate_dir): Likewise.
10332 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10333 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10334
10335 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 Fix errors on compressed NTFS with 512B clusters.
10338
10339 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10340 types.
10341 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10342 not 0.
10343 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10344 Relax check for inline extents.
10345 (ntfscomp): Return correct -1 on error and not 0.
10346
10347 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10348
10349 * util/grub-install.in: Fix handling of prefix containing spaces.
10350
10351 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10354 (grub_squash_read_data): Fix offset byte-swapping.
10355
10356 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10359 per common usage and preffered in several parts of code.
10360 (grub_memcmp): Likewise.
10361 (grub_strncmp): Likewise.
10362 * include/grub/misc.h (grub_strcasecmp): Likewise.
10363 (grub_strncasecmp): Likewise.
10364 * Makefile.util.def (cmp_test): New test.
10365 (grub_script_strcmp): Likewise.
10366 * tests/cmp_unit_test.c: New file.
10367 * tests/grub_script_strcmp.in: Likewise.
10368 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10369
10370 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 * include/grub/pci.h: Move enums into no-asm part.
10373
10374 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10377
10378 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10379
10380 * util/getroot.c (find_hurd_root_device): Try to make error message
10381 and comments to translators clearer.
10382
10383 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10386
10387 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10390 btrfs.
10391
10392 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 * docs/grub.cfg: Update.
10395
10396 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * docs/grub.texi (PXE): Remove not present variables.
10399
10400 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * grub-core/net/net.c (defserver_set_env): New function.
10403 (defserver_get_env): Likewise.
10404 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10405
10406 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10409 entries.
10410
10411 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10414 * grub-core/kern/emu/hostdisk.c: Likewise.
10415
10416 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10417
10418 Handle hurd userspace partitions.
10419
10420 * util/getroot.c (find_hurd_root_device): New function.
10421 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10422
10423 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10426 names.
10427 Reported by: Bastian Blank.
10428
10429 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10432 crossing page boundary.
10433
10434 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10435
10436 Fix B-tree search in BFS, especially in presence of non-ASCII
10437 characters.
10438
10439 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10440 (find_in_b_tree): Use standard bsearch + btree algorithm.
10441
10442 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10445 and so on.
10446
10447 2012-05-03 Matthew Garrett <mjg@redhat.com>
10448 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10449
10450 Suspend broadcom cards in order to stop their DMA.
10451
10452 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10453 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10454 (pci): Don't build on x86 EFI.
10455 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10456 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10457 New function.
10458 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10459 stop_broadcom if running on EFI.
10460 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10461 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10462 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10463 (grub_pci_find_capability): New proto.
10464
10465 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * docs/grub.texi: Remove dot from the extension as it apparently
10468 doesn't work with some makeinfo versions.
10469
10470 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10473 with GRUB expectance.
10474
10475 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10478
10479 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10480
10481 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10482 zero after directory block since last entry may be not 0-terminated if
10483 it ends on block boundary. Use continue instead of if spanning whole
10484 loop.
10485
10486 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10487
10488 Support 4K sectors UDF inline files.
10489
10490 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10491 (grub_udf_extended_file_entry): Likewise.
10492 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10493 All users updated.
10494 (get_fshelp_size): New function.
10495 (grub_udf_read_icb): Read whole block.
10496 (grub_udf_iterate_dir): Likewise.
10497 (grub_udf_dir): Likewise.
10498 (grub_udf_open): Likewise.
10499
10500 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10503
10504 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10507 inline symlinks in addition to workaround.
10508
10509 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10512
10513 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10516
10517 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10520
10521 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 Fix reiserfs big seek times.
10524
10525 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10526 exact. All users updated.
10527 (grub_reiserfs_read): Use nearest btree search for seeking.
10528 Fix return value on error.
10529
10530 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10533 entries.
10534 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10535 * docs/grub.texi: Update menuentry description.
10536
10537 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10540 crash when embedding onto filesystem.
10541
10542 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10545 name.
10546
10547 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10550
10551 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10554 commit.
10555
10556 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10557 2012-05-01 Bean <bean123ch@gmail.com>
10558
10559 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10560
10561 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10562
10563 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10564 Special behaviour for len = 0 to read whole file isn't used anywhere and
10565 can cause buffer ovewrflows in several places.
10566
10567 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10570
10571 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10572
10573 Handle RAIDZ on non-512B sectors.
10574
10575 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10576 max_children_ashift.
10577 (fill_vdev_info_real): Fill max_children_ashift.
10578 (read_device): Use max_children_ashift.
10579
10580 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10583
10584 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10587 disk names.
10588 * docs/grub.texi: Update device.map parts.
10589
10590 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 Don't scan into non-diskfilter devices having diskfilter names.
10593
10594 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10595 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10596 handling.
10597 (scan_disk_hook): New function.
10598
10599 2012-04-29 Bean <bean123ch@gmail.com>
10600
10601 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10602 allocation.
10603
10604 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10605
10606 * configure.ac: Detect starfield theme font path
10607 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10608
10609 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10612 geometry on serial consoles.
10613
10614 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10615
10616 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10617 because of network consoles.
10618
10619 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10622 handling.
10623
10624 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10625
10626 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10627 falls on Q syndrom.
10628
10629 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10630
10631 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10632 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10633
10634 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10637 Allocate at lest 8192 for temporary buffer as required for lzo.
10638
10639 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10642 to cluster_bits, since it's already added in.
10643 (grub_fat_read_data): Likewise.
10644
10645 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10648 as long as cluster size is multiple of 512 bytes.
10649
10650 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * util/grub-mkrescue.in: Fix locale directory.
10653
10654 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/kern/emu/hostdisk.c (map): Make static.
10657
10658 2012-04-23 Bean <bean123ch@gmail.com>
10659
10660 * util/grub-fstest.c (fstest): Add missing break.
10661
10662 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10663
10664 Fix hurd build.
10665
10666 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10667 not define nr variable.
10668 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10669 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10670 grub_find_device): Do not define.
10671
10672 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 Fix kfreebsd compile and behaviour.
10675
10676 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10677 format-security.
10678 * util/getroot.c: Fix wait.h include.
10679 (grub_guess_root_devices): Error if grub_find_device fails.
10680 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10681 (grub_util_get_dev_abstraction): Likewise.
10682 (grub_util_pull_device): Likewise.
10683 (grub_util_get_grub_dev): Likewise.
10684 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10685
10686 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 Fix and unify wholedisk detection.
10689
10690 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10691 is_part. All users updated.
10692 (device_is_wholedisk): Removed.
10693 (grub_util_biosdisk_get_grub_dev): Use is_part.
10694
10695 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10698 mode.
10699
10700 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * configure.ac: Bump to beta4.
10703
10704 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10707 --fs-uuid --set UUID syntax.
10708
10709 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10712 disunification.
10713
10714 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10717
10718 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10719
10720 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10721
10722 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10723
10724 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10725
10726 2012-04-18 Bean <bean123ch@gmail.com>
10727
10728 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10729 place.
10730
10731 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10734 users updated.
10735 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10736 corresponding to GRUB partitions.
10737 (grub_util_biosdisk_write): Likewise.
10738
10739 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 Scan mdraid before LVM.
10742
10743 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10744 (grub_diskfilter_register_front): ... this.
10745 (grub_diskfilter_register_back): New function.
10746 All users of grub_diskfilter_register updated.
10747
10748 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 * util/grub-install.in: Fix an automatic target detection bug.
10751
10752 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * util/grub-install.in: New option --efi-directory.
10755
10756 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10759 boot services if we have no other choice.
10760
10761 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10764 document it.
10765 * tests/util/grub-shell.in: Update to --directory.
10766
10767 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10770
10771 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10774 (grub_minix_read_file): Likewise.
10775 (grub_minix_read_inode): Likewise.
10776 (grub_minix_find_file): Likewise.
10777 (grub_minix_dir): Likewise.
10778
10779 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 * util/grub-setup.c (setup): Fix partition handling and blocklist
10782 check.
10783
10784 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10787 redundant buggy overlap check.
10788
10789 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10792 and grub-mknetdir.
10793
10794 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10797 kh.loadflags on pre-2.00 kernels.
10798
10799 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10800
10801 Terminate UNDI and PXE before launching the payload to avoid problems
10802 with DMA.
10803
10804 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10805 (grub_loader_flags): ... this. All users updated.
10806 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10807 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10808 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10809 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10810 function.
10811 (grub_pxe_restore): Likewise.
10812 (fini_hnd): New var.
10813 (GRUB_MOD_INIT): Register shutdown hook.
10814 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10815 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10816 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10817 (grub_loader_set): Rename second argument to flags.
10818
10819 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10822 written bytes.
10823 (grub_get_num_of_utf8_bytes): New function.
10824 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10825 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10826 executing it.
10827 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10828 (grub_ucs4_to_utf8): Change return type.
10829
10830 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10833 warning.
10834 * grub-core/fs/bfs.c (hop_level): Likewise.
10835 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10836
10837 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10838
10839 * grub-core/lib/adler32.c: Recode due to license unclearness.
10840
10841 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10844 (test_header): Likewise.
10845
10846 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10847
10848 Fix --help formatting.
10849
10850 * util/grub-mkconfig_lib.in (print_option_help): New function.
10851 (grub_fmt): Likewise.
10852 * util/grub-install.in: Use print_option_help and grub_fmt.
10853 * util/grub-kbdcomp.in: Likewise.
10854 * util/grub-mkconfig.in: Likewise.
10855 * util/grub-mknetdir.in: Likewise.
10856 * util/grub-mkrescue.in: Likewise.
10857 * util/grub-mkstandalone.in: Likewise.
10858 * util/grub-reboot.in: Likewise.
10859 * util/grub-set-default.in: Likewise.
10860 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10861
10862 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * linguas.sh: Remove autogenerated *.po.
10865
10866 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * po/README: Move language fetcing to ...
10869 * linguas.sh: ... here.
10870 * po/README: Point to linguas.sh.
10871
10872 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * po/README: Exclude ko.po due to disclaimer problems.
10875
10876 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10879 len = 0.
10880 (grub_gettext_translate_real): Handle 0th string.
10881 (grub_gettext_translate): Ensure that "" isn't translated.
10882
10883 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10886 TRANSLATORS comment.
10887 (grub_diskfilter_print_partmap): Propagate changing of error into
10888 warning.
10889
10890 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10893 to uint64_t to prevent overflow.
10894 (grub_diskfilter_lv): Increase start_extent and extent_count
10895 to uint64_t to prevent overflow.
10896
10897 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 * configure.ac: Increase version.
10900
10901 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10904
10905 * po/Rules-translit: New file.
10906 * po/arabic.sed: Likewise.
10907 * po/cyrillic.sed: Likewise.
10908 * po/greek.sed: Likewise.
10909 * po/hebrew.sed: Likewise.
10910 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10911 * po/Makefile.in.in: Add extra_dist4.
10912
10913 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10916
10917 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10918 modify names. Introduce MODE_BIGENDIAN.
10919 * grub-core/fs/minix_be.c: New file.
10920 * grub-core/fs/minix2_be.c: Likewise
10921 * grub-core/fs/minix3_be.c: Likewise.
10922 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10923 minix3_be.
10924 * grub-core/Makefile.core.def (minix_be): New module.
10925 (minix2_be): Likewise.
10926 (minix3_be): Likewise.
10927
10928 2012-04-01 Felix <email@hamburg.de>
10929
10930 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10931 (devs): Add MBP 2011.
10932
10933 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10936
10937 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * grub-core/normal/cmdline.c (print_completion): New field
10940 prompt_len.
10941 (grub_cmdline_get): Handle width properly.
10942
10943 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10946
10947 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10948
10949 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10950 after 29th of February.
10951
10952 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 Fix exfat endianness handling.
10955
10956 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10957 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10958 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10959 Byte-swap utf16 when necessary.
10960 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10961
10962 2012-03-31 Anton Blanchard <anton@samba.org>
10963 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10964
10965 Fix btrfs endianness handling.
10966
10967 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10968 (lower_bound): Make root uint64_t. Use root in le.
10969 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10970 (find_path): Fix template key init.
10971 (grub_btrfs_dir): Fix mtime byteswap.
10972 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10973
10974 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10977 recursion_depth. Break infinite resursions. All users updated.
10978
10979 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10980
10981 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10982 after free.
10983 Reported by: Peter Jones.
10984
10985 2012-03-31 Anton Blanchard <anton@samba.org>
10986
10987 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10988 8 bit values.
10989
10990 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10991
10992 * util/grub-install.in: Fix nvram call for PreP.
10993
10994 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10997 the error when some elements are missing into a warning.
10998
10999 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11002
11003 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11004
11005 * docs/grub.texi (Invoking grub-probe): New section.
11006 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11007
11008 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 Fix tab and wide character handling in editor and menu.
11011
11012 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11013 agglomerate control characters with combining marks.
11014 (bidi_line_wrap): Allow break on tab.
11015 (grub_unicode_get_comb_start): New function.
11016 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11017 and tab correctly.
11018 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11019 with a space.
11020 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11021 fixed_tab_size. All users updated.
11022 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11023 (grub_term_getcharwidth): Handle \t.
11024 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11025 and copy.
11026
11027 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11028
11029 Handle big-endian mdraid.
11030
11031 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11032 * grub-core/Makefile.core.def (mdraid09_be): New module.
11033 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11034 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11035 * grub-core/disk/mdraid_linux_be.c: New file.
11036
11037 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11040
11041 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11044 missing quotes which caused confusion among translators.
11045
11046 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 * util/grub-mkconfig_lib.in: Fix typo.
11049
11050 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11053 spaces.
11054 * tests/grub_script_leading_whitespace.in: New file.
11055 * Makefile.util.def (grub_script_leading_whitespace): New test.
11056
11057 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11058
11059 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11060 to work.
11061
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11065 starts with control character.
11066
11067 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11070 overflow.
11071 (grub_gdb_outbuf): Likewise.
11072
11073 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11076 zero terminator. Fixes a crash.
11077
11078 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11081 beyond 4 GiB.
11082 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11083 images independently of preffered adderss field.
11084
11085 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11088 * grub-core/commands/regexp.c: Likewise.
11089 * grub-core/loader/i386/linux.c: Likewise.
11090 * grub-core/partmap/msdos.c: Likewise.
11091 * grub-core/script/execute.c: Likewise.
11092 * grub-core/term/gfxterm.c: Likewise.
11093
11094 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 Add variable parsing in $"..." and fix several mismatches with bash.
11097
11098 * Makefile.util.def (grub_script_gettext): New test.
11099 * grub-core/script/execute.c (parse_string): New function.
11100 (gettext_append): Likewise.
11101 (grub_script_arglist_to_argv): Use gettext_append.
11102 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11103 * tests/grub_script_gettext.in: New file.
11104
11105 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11106
11107 Fix handling of leading spaces in scripts.
11108
11109 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11110 spaces.
11111 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11112 other than skipping \r. All users updated.
11113 * tests/grub_script_echo1.in: Add space-related tests.
11114 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11115
11116 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11119
11120 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * configure.ac: Bump up the version to beta2.
11123
11124 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11125
11126 Fix gettext reload bugs (e.g. inability to disable gettext
11127 once enabled).
11128
11129 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11130 main_context and secondary_context. All functions updated.
11131 (grub_gettext_translate): Rename to ...
11132 (grub_gettext_translate_real): ... this. Return NULL on failed
11133 translate.
11134 (grub_gettext_translate): Handle secondary context.
11135 (grub_gettext_delete_list): Close file and zero-out the context.
11136 (grub_mofile_open): Don't call grub_gettext_delete_list.
11137 Don't close file.
11138 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11139 if locale="" to avoid pointless error message.
11140 (grub_gettext_env_write_lang): Update lang even if load fails.
11141 Handle secondary context.
11142 (grub_gettext_reread_prefix): New function.
11143 (read_main): Likewise.
11144 (read_secondary): Likewise.
11145 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11146 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11147 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11148 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11149
11150 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 * configure.ac: Decrease warning level to avoid spurious warnings and
11153 to be able to compile with GCC 4.2.
11154 * Makefile.util.def: Remove -Wno-error=logical-op.
11155
11156 2012-03-10 William Bittner <william.bittner@gmail.com>
11157
11158 * util/import_unicode.py: Add missing brackets around string for
11159 python 3 support.
11160
11161 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 Fix efi chainloader on network root.
11164
11165 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11166 network devices.
11167 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11168 New function.
11169
11170 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11173 unused show_text member.
11174 * docs/grub.texi: Document "text" property.
11175
11176 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11179 in dprintf.
11180
11181 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 Fix IMSM handling on Fedora.
11184
11185 * util/getroot.c (grub_util_is_imsm): New function.
11186 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11187
11188 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11189
11190 * Makefile.am: Strip gold section.
11191 * conf/Makefile.common: Likewise.
11192 * gentpl.py: Likewise.
11193 * grub-core/Makefile.core.def: Likewise.
11194 * grub-core/genmod.sh.in: Likewise.
11195
11196 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11199 * util/grub.d/20_linux_xen.in: Likewise.
11200 Based on Debian patch.
11201
11202 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * util/grub.d/10_linux.in: Fix syntax error resulting in
11205 Richard Laager's patch.
11206 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11207
11208 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11211 dependencies.
11212
11213 2012-03-10 Richard Laager <rlaager@wiktel.com>
11214
11215 * util/grub.d/10_linux.in: Fix ZFS root passing.
11216
11217 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11218
11219 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11220 * grub-core/commands/xnu_uuid.c: Likewise.
11221 * grub-core/loader/efi/appleloader.c: Likewise.
11222 * grub-core/script/execute.c: Likewise.
11223 * grub-core/script/main.c: Likewise.
11224 * util/grub-mkfont.c: Likewise.
11225
11226 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 * util/grub-mkfont.c (options): Use more appropriate "select" that
11229 "set" for face index.
11230
11231 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11232
11233 * util/grub-editenv.c (options): Gettextize command summaries.
11234
11235 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11236
11237 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11238 "out of memory" error messagge.
11239
11240 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11243 of diskfilter for diskfilter on diskfilter support.
11244
11245 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11246
11247 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11248
11249 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11250
11251 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11252 themes/starfield.
11253
11254 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11257
11258 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11261
11262 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11265 of error message.
11266
11267 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11270
11271 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11274 message.
11275 * util/grub-install.in: Fix and gettextize error message.
11276
11277 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11278
11279 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11280 Gettextize.
11281 * util/grub-mount.c (options): Likewise.
11282
11283 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11286 gettextize.
11287 * grub-core/commands/search_wrap.c (options): Likewise.
11288
11289 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11290
11291 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11292
11293 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11294
11295 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11296 size calculation.
11297 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11298 none is known.
11299
11300 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11301
11302 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11303 "temporary" since it's used in identifier and is limited in space.
11304
11305 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * po/POTFILES.in: Regenerate. Include *.h since they contain
11308 translatable strings as well.
11309
11310 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11313 byte-swap on big-endian.
11314 Reported by: Lennart Sorensen
11315
11316 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11319 (allocate_pages): Improve dprintf.
11320 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11321 code32_start. Fill code32_start and kernel_alignment in params.
11322 (grub_cmd_initrd): Use prot_init_space.
11323
11324 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11325
11326 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11327
11328 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * util/grub-install.in: Add missing dot at the end of sentence.
11331
11332 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11333
11334 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11335 * grub-core/commands/videotest.c: Likewise.
11336 * grub-core/loader/i386/linux.c: Likewise.
11337
11338 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11341 sentence.
11342 Reported by: Milo Casagrande.
11343
11344 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11347 * grub-core/commands/gptsync.c: Likewise.
11348 * grub-core/commands/hashsum.c: Likewise.
11349 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11350 * grub-core/commands/legacycfg.c: Likewise.
11351 * grub-core/io/gzio.c: Likewise.
11352 * grub-core/net/net.c: Likewise.
11353 * grub-core/term/gfxterm.c: Likewise.
11354 * grub-core/term/terminfo.c: Likewise.
11355 * grub-core/tests/test_blockarg.c: Likewise.
11356 * grub-core/video/video.c: Likewise.
11357 * util/grub-install.in: Likewise.
11358 * util/grub-mkfont.c: Likewise.
11359
11360 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11363
11364 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * grub-core/commands/search_wrap.c (options): Fix a typo.
11367 Reported by: David Prévot.
11368
11369 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11372 description.
11373
11374 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11375
11376 * util/grub-script-check.c (main): Fix a syntax error message which was
11377 unclear.
11378
11379 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11382
11383 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11386 messages.
11387
11388 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11391 without argument.
11392 * util/grub-mount.c (options): Likewise.
11393
11394 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11395
11396 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11397
11398 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11399
11400 * grub-core/net/http.c: Add TRANSLATORS comments.
11401 * grub-core/normal/cmdline.c: Likewise.
11402 * grub-core/normal/misc.c: Likewise.
11403 * grub-core/partmap/msdos.c: Likewise.
11404 * grub-core/parttool/msdospart.c: Likewise.
11405 * grub-core/script/execute.c: Likewise.
11406 * grub-core/script/main.c: Likewise.
11407 * grub-core/term/terminfo.c: Likewise.
11408 * grub-core/video/bitmap.c: Likewise.
11409 * util/grub-install.in: Likewise.
11410 * util/grub-mkimage.c: Likewise.
11411 * util/grub-mklayout.c: Likewise.
11412 * util/grub-setup.c: Likewise.
11413
11414 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11417 with similar messages in grub-fstest.
11418
11419 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 * util/grub-install.in: Unify "option requires an argument" message
11422 with similar messages in other files.
11423 * util/grub-mkconfig.in: Likewise.
11424
11425 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11426
11427 * util/grub-set-default.in: Replace printf with gettext_printf (the
11428 string in in question is already translated from grub-reboot)
11429
11430 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11431
11432 * configure.ac: Bump up the version to beta1.
11433
11434 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11437 case when min_align = 0.
11438
11439 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11442 and fix a case when line_start overflows.
11443
11444 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 * util/grub-reboot.in (usage): Mention id posibility.
11447 * util/grub-set-default.in (usage): Likewise.
11448
11449 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11452 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11453 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11454 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11455 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11456 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11457 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11458
11459 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * grub-core/commands/menuentry.c (options): Remove
11462 GRUB_ARG_OPTION_REPEATABLE.
11463 Reported by: Andreas Vogel
11464
11465 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11466
11467 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11468
11469 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11470
11471 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11472 error.
11473
11474 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 Use sort -V by the idea of Georgi Georgiev.
11477
11478 * util/grub-mkconfig_lib.in (version_sort): New function.
11479 (version_test_numeric): Use version_sort.
11480
11481 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 Use submenus in grub-mkconfig.
11484
11485 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11486 * util/grub-mkconfig_lib.in (grub_quote): New function.
11487 (gettext_printf): Use gettext and not gettext_quoted to fix several
11488 messages.
11489 * util/grub.d/10_hurd.in: Use submenus.
11490 * util/grub.d/10_kfreebsd.in: Likewise.
11491 * util/grub.d/10_linux.in: Likewise.
11492 * util/grub.d/10_netbsd.in: Likewise.
11493 * util/grub.d/20_linux_xen.in: Likewise.
11494 * util/grub.d/30_os-prober.in: Likewise.
11495 * util/grub.d/10_illumos.in: Add missing quoting.
11496 * util/grub.d/10_windows.in: Likewise.
11497
11498 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 Fix menu title instability bug.
11501
11502 * grub-core/commands/menuentry.c (options): New option --id.
11503 (grub_normal_add_menu_entry): New argument id. All users updated.
11504 (grub_cmd_menuentry): Handle --id.
11505 (grub_menu_init): Accept unknown arguments.
11506 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11507 feature_menuentry_options.
11508 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11509 saved_entry.
11510 (get_entry_number): Match with id as well.
11511 * include/grub/menu.h (grub_menu_entry): New member id.
11512 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11513 * util/grub.d/00_header.in: Define menuentry_id_option.
11514 * util/grub.d/10_hurd.in: Define id.
11515 * util/grub.d/10_illumos.in: Likewise.
11516 * util/grub.d/10_kfreebsd.in: Likewise.
11517 * util/grub.d/10_linux.in: Likewise.
11518 * util/grub.d/10_netbsd.in: Likewise.
11519 * util/grub.d/10_windows.in: Likewise.
11520 * util/grub.d/20_linux_xen.in: Likewise.
11521 * util/grub.d/30_os-prober.in: Likewise.
11522
11523 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11526 "scope" with "body".
11527
11528 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11531 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11532 prot_size and prot_file_size.
11533
11534 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11537 All users updated. If easily=1 require raid-5/-6 to be full.
11538 (is_node_readable): Likewise.
11539 (scan_devices): Scan incomplete but readable LVs at the end.
11540 (grub_diskfilter_memberlist): Pull missing devices.
11541 (insert_array): Skip scanning until device is complete or scan is
11542 done otherwise.
11543 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11544 check.
11545 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11546 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11547
11548 2012-03-03 Matthew Garrett <mjg@redhat.com>
11549 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 Avoid EFI boot services when loading Linux.
11552
11553 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11554 avoid_efi_bootservices. All users updated.
11555 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11556 argument avoid_efi_bootservices. All users updated.
11557 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11558 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11559 align, min_align, relocatable, prefered_address. All users updated.
11560 Allocate avoiding boot services if kernel is relocatable.
11561 (grub_cmd_linux): Check if kernel is relocatable.
11562 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11563 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11564 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11565 avoid_efi_boot_services.
11566 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11567 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11568 (linux_kernel_params): Likewise.
11569
11570 2012-03-03 Matthew Garrett <mjg@redhat.com>
11571 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 Use EDID on EFI.
11574
11575 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11576 datasize_out.
11577 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11578 modes. Set gop_handle.
11579 (grub_video_gop_get_edid): New function.
11580 (grub_gop_get_preferred_mode): Likewise.
11581 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11582 (grub_video_efi_gop_adapter): Set .get_edid.
11583 * include/grub/efi/edid.h: New file.
11584 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11585
11586 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11587
11588 * util/grub-install.in: Load efivars unconditionally.
11589
11590 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11591
11592 * po/Rules-piglatin: Change suffix from .po-update-en to
11593 .po-update-en-piglatin.
11594
11595 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 Add a pig farm.
11598
11599 * po/piglatin.sed: New file.
11600 * po/en@piglatin.header: Likewise.
11601 * po/Rules-piglatin: Likewise.
11602 * po/README: Add en@piglatin to autogenerated languages.
11603
11604 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11607 "Command for ...".
11608 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11609 "Check" since we don't check anything.
11610 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11611 is 64-bit one.
11612 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11613 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11614 (grub_md_sha512_real): Likewise.
11615
11616 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11617
11618 * grub-core/commands/gptsync.c: Fix typographic quoting.
11619 * grub-core/commands/ieee1275/suspend.c: Likewise.
11620 * grub-core/commands/parttool.c: Likewise.
11621 * grub-core/commands/search_wrap.c: Likewise.
11622 * grub-core/commands/videoinfo.c: Likewise.
11623 * grub-core/gfxmenu/gui_label.c: Likewise.
11624 * grub-core/hello/hello.c: Likewise.
11625 * grub-core/kern/emu/main.c: Likewise.
11626 * grub-core/net/net.c: Likewise.
11627 * grub-core/normal/menu.c: Likewise.
11628 * grub-core/normal/menu_text.c: Likewise.
11629 * grub-core/normal/misc.c: Likewise.
11630 * util/grub-editenv.c: Likewise.
11631 * util/grub-install.in: Likewise.
11632 * util/grub-kbdcomp.in: Likewise.
11633 * util/grub-mkconfig.in: Likewise.
11634 * util/grub-mknetdir.in: Likewise.
11635 * util/grub-mkrescue.in: Likewise.
11636 * util/grub-mkstandalone.in: Likewise.
11637 * util/grub-reboot.in: Likewise.
11638 * util/grub-set-default.in: Likewise.
11639 * util/grub-setup.c: Likewise.
11640 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11641
11642 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11643
11644 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11645 * grub-core/commands/keystatus.c: Likewise.
11646 * grub-core/commands/loadenv.c: Likewise.
11647 * grub-core/commands/probe.c: Likewise.
11648 * grub-core/commands/regexp.c: Likewise.
11649 * grub-core/commands/true.c: Likewise.
11650 * grub-core/commands/videoinfo.c: Likewise.
11651 * grub-core/disk/cryptodisk.c: Likewise.
11652 * grub-core/disk/ldm.c: Likewise.
11653 * grub-core/disk/loopback.c: Likewise.
11654 * grub-core/disk/luks.c: Likewise.
11655 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11656 * grub-core/kern/disk.c: Likewise.
11657 * grub-core/kern/emu/hostdisk.c: Likewise.
11658
11659 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11660
11661 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11662 * util/grub-install.in: Add missing quote in the comment.
11663
11664 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11665
11666 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11667 * grub-core/commands/lsmmap.c: Likewise.
11668 * grub-core/commands/minicmd.c: Likewise.
11669 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11670 * grub-core/commands/regexp.c: Likewise.
11671 * grub-core/gdb/gdb.c: Likewise.
11672 * grub-core/term/gfxterm.c: Likewise.
11673 * util/grub-mkconfig.in: Likewise.
11674 * util/grub-mkfont.c: Likewise.
11675 * util/grub-mklayout.c: Likewise.
11676 * util/grub-mknetdir.in: Likewise.
11677 * util/grub-mkrescue.in: Likewise.
11678 * util/grub.d/30_os-prober.in: Likewise.
11679
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11683 with "Direct color" and "Packed" with "Packed pixel".
11684 (grub_cmd_videoinfo): Simplify legend.
11685
11686 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11689 absolutely unclear error message.
11690
11691 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * util/grub-mkstandalone.in: Remove confusing leftover print.
11694
11695 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11698 comments.
11699 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11700 (GRUB_MOD_INIT): Likewise.
11701 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11702 VGA mode.
11703 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11704 comments.
11705 * util/grub-install.in (usage): Likewise.
11706 Spell ID in whole letters.
11707 Add missing ending dot.
11708 Quote variables.
11709 * util/grub-reboot.in: Fix capitalisation.
11710 * util/grub-set-default.in: Likewise.
11711
11712 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11713
11714 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11715 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11716 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11717 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11718 Disable -Werror for -Wdeprecated-declarations.
11719 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11720 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11721 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11722 (grub_util_get_grub_dev): Make luks handling dependent on
11723 HAVE_DEVICE_MAPPER and not __linux__.
11724 (get_win32_path): Fix format security.
11725 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11726 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11727 Don't try grub_find_zpool_from_dir.
11728 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11729 #ifdef-out paresdir.
11730
11731 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 * util/grub-pe2elf.c (usage): Add missing noreturn.
11734 (write_section_data): Rename name to shname to avoid shadowing.
11735 (write_symbol_table): Rename name to symname to avoid shadowing.
11736 Fix write_reloc_section call.
11737
11738 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11741 to ensure that it's after the last byte of .text.
11742
11743 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 * util/ieee1275/ofpath.c (my_isdigit): New function.
11746 (trailing_digits): Use my_isdigit.
11747 (strip_trailing_digits): Likewise.
11748
11749 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11752 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11753
11754 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11755
11756 * grub-core/kern/i386/pc/startup.S: Define __start.
11757
11758 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11761 strip already transforms he format.
11762
11763 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11766
11767 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * util/grub-install.in: Add missing gettext init.
11770 * util/grub-kbdcomp.in: Likewise.
11771 * util/grub-mkconfig.in: Likewise.
11772 * util/grub-mknetdir.in: Likewise.
11773 * util/grub-mkrescue.in: Likewise.
11774 * util/grub-mkstandalone.in: Likewise.
11775 * util/grub-reboot.in: Likewise.
11776 * util/grub-set-default.in: Likewise.
11777 * util/grub.d/00_header.in: Likewise.
11778 * util/grub.d/10_hurd.in: Likewise.
11779 * util/grub.d/10_windows.in: Likewise.
11780 * util/grub.d/30_os-prober.in: Likewise.
11781 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11782
11783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11784
11785 * po/Rules-swiss: Fix header comment.
11786
11787 2012-02-29 Andreas Vogel <anvoit>
11788
11789 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11790 resulted in leak of arguments.
11791
11792 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11793
11794 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11795 reed_solomon_size const definition instead of computing it since
11796 Apple assembler doesn't support the later.
11797
11798 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11799
11800 * gentpl.py (kernel): Rewrite Apple part.
11801
11802 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11803
11804 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11805
11806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11809 ELF section gap.
11810 (load_image): Likewise.
11811
11812 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * configure.ac: Fix a typo in previous commit.
11815
11816 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 Don't add -Wl,-N on Apple platform.
11819
11820 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11821 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11822
11823 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 * grub-core/Makefile.core.def (lzma_decompress): Use
11826 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11827
11828 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * grub-core/genmod.sh.in: Rewrite the Apple part.
11831
11832 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11833
11834 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11835 comparison.
11836
11837 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 * acinclude.m4 (grub_CHECK_PIC): New test.
11840 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11841
11842 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11845 to avoid the warning.
11846
11847 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11850 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11851 after. All users updated.
11852
11853 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 Use the common size routine in hostfs so we can read disks as well.
11856
11857 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11858 (grub_util_get_fd_size): ... this. Return size in bytes.
11859 All users updated.
11860 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11861 grub_util_get_fd_size.
11862
11863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11866 Add blocksize retrieval.
11867
11868 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11869
11870 * configure.ac: Restore CFLAGS after efiemu check.
11871
11872 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11873
11874 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11875 Apple bug.
11876
11877 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11878
11879 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11880
11881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11882
11883 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11884 (grub_cmd_halt): Likewise.
11885
11886 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11889 for local arithmetics.
11890 Break %sp init into 2 instructions.
11891 Add 0 byte at the end.
11892
11893 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11894
11895 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11896 before loops.
11897
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11901 for context.
11902
11903 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * grub-core/disk/ldm.c (make_vg): Init part.name.
11906 (grub_ldm_detect): Silence spurious warning.
11907 (grub_util_is_ldm): Likewise.
11908
11909 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11910
11911 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11912 sane value to avoid a spurious warning.
11913
11914 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915
11916 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11917 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11918
11919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11922 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11923
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11927 hardcoding the relevant info.
11928
11929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11932 missing const qualifiers.
11933 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11934
11935 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * util/getroot.c [__APPLE__]: Add missing includes.
11938 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11939
11940 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11943
11944 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11947 avoid conflicts.
11948
11949 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11952
11953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11956 and grub_file_close call.
11957
11958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 Add LZSS Mach-O support (needed for new xnu kernelcache).
11961
11962 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11963 * grub-core/loader/lzss.c: New file.
11964 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11965 on Mach-O open failure.
11966 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11967 Don't free cmdsXX in uncompressedXX is set.
11968 (grub_macho_file): Init new fields.
11969 New argument is_64bit. All users updated.
11970 Handle compressed. Error out if no suitable architecture is found.
11971 Don't close file.
11972 (grub_macho_open): New argument is_64bit. All users updated.
11973 * grub-core/loader/macho32.c: Add defines for new fields.
11974 * grub-core/loader/macho64.c: Likewise.
11975 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11976 (grub_macho_parse): Handle compressed.
11977 Defer actual processing if compressed.
11978 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11979 "filename". All users updated.
11980 (grub_macho_size): New argument "filename". All users updated.
11981 (grub_macho_get_entry_point): Likewise.
11982 (grub_macho_load): Handle compressed.
11983 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11984 (GRUB_MACHO_LZSS_OFFSET): New define.
11985 (grub_decompress_lzss): New proto.
11986 * include/grub/machoload.h (grub_macho_file): New fields to handle
11987 compressed.
11988 (grub_macho_contains_macho64): Remove proto.
11989 (grub_macho_contains_macho32): Likewise.
11990 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11991
11992 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11995
11996 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 Fix make dist.
11999
12000 * Makefile.am (starfield_theme_files): New var.
12001 (starfield_DATA): Use starfield_theme_files.
12002 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12003 Add bootcheck-related files.
12004 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12005 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12006 and font_char_metrics.txt.
12007 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12008 (setjmp): Add lib/ia64/longjmp.S.
12009 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12010 * po/POTFILES.in: Regenerate.
12011 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12012 DISTFILES.common.extra1.
12013 * util/devicemap.c: Removed.
12014 * grub-core/lib/i386/relocator_backward.S: Likewise.
12015 * util/import_gcry.py: Remove unused files. Add extra_dist for
12016 ChangeLog.
12017
12018 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12019
12020 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12021 grub_gettext_delete_list before changing grub_gettext_max to avoid
12022 running out of array bounds.
12023
12024 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12027 grub_vga_text_init/grub_vga_text_fini.
12028
12029 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12032
12033 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * configure.ac: Bump to 2.00~beta0.
12036
12037 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12040 missing initialisation.
12041
12042 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12043
12044 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12045
12046 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 Support v2 xnu boot arguments.
12049
12050 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12051 New argument fsbfreq_out.
12052 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12053 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12054 be used.
12055 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12056 darwin_version.
12057 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12058 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12059 (grub_xnu_boot_params): Rename to ...
12060 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12061 (grub_xnu_boot_params_v2): New struct.
12062
12063 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12066 zeroing of CRC field before computing CRC.
12067
12068 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12071 Change order of allocations to decrease fragmentation.
12072
12073 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12074
12075 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12076
12077 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12078
12079 Use write-combining MTRR to speed up video with buggy BIOSes.
12080
12081 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12082 (cpuid): New define.
12083 (rdmsr): Likewise.
12084 (wrmsr): Likewise.
12085 (mtrr_base): Likewise.
12086 (mtrr_mask): Likewise.
12087 (grub_vbe_enable_mtrr_entry): New function.
12088 (grub_vbe_enable_mtrr): Likewise.
12089 (grub_vbe_disable_mtrr): Likewise.
12090 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12091 control off to BIOS.
12092 (grub_video_vbe_init): Fill mtrr.
12093 (grub_video_vbe_fini): Disable mtrr.
12094 (grub_video_vbe_get_info_and_fini): Likewise.
12095 (grub_video_vbe_setup): Enable mtrr.
12096
12097 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12098
12099 * include/grub/partition.h (grub_partition_map): Change prototype of
12100 embed to take a maximum value for nsectors.
12101 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12102 * include/grub/fs.h (grub_fs): Likewise.
12103 * grub-core/partmap/msdos.c (embed_signatures): New array.
12104 (pc_partition_map_embed): Check for and avoid sectors matching any
12105 of the signatures in embed_signatures, up to max_nsectors.
12106 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12107 returned sector map to max_nsectors.
12108 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12109 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12110 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12111 * util/grub-setup.c (setup): Allow for the embedding area being
12112 split into multiple blocklists. Tell dest_partmap->embed the
12113 maximum number of sectors we care about.
12114
12115 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12118 Specify blocklist_install and reserver_first_sector for all fs.
12119 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12120 blocklists.
12121
12122 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12123
12124 * util/grub-install.in: Clarify strings.
12125 Fix source dir check.
12126
12127 2012-02-27 Richard Laager <rlaager@wiktel.com>
12128
12129 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12130 "zfs" and "fuse.zfs" as synonyms.
12131
12132 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * configure.ac: Put platform and target_cpu substitutions back since
12135 they are used for directories.
12136
12137 2012-02-27 Richard Laager <rlaager@wiktel.com>
12138 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12139
12140 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12141 * util/grub.d/20_linux_xen.in: Likewise.
12142
12143 2012-02-27 Richard Laager <rlaager@wiktel.com>
12144
12145 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12146 with full paths.
12147
12148 2012-02-27 Richard Laager <rlaager@wiktel.com>
12149
12150 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12151 unescape.
12152
12153 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12154
12155 Don't use insecure popen in getroot.
12156
12157 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12158 (exec_pipe): ... here.
12159 (find_root_devices_from_poolname): Use exec_pipe.
12160
12161 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 Remove platform and target_cpu replacement.
12164
12165 * configure.ac: Remove platform and target_cpu substitutions.
12166 * tests/util/grub-shell.in: Use modinfo.
12167 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12168 explicitly.
12169
12170 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 Autodetect platform in grub-install but allow override.
12173
12174 * util/grub-install.in: Autodetect platform. Support --target and
12175 --directory. Read platform from modinfo.sh.
12176
12177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 Support btrfs multi-volume probe.
12180
12181 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12182 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12183 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12184 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12185 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12186 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12187 grub_find_root_devices_from_btrfs if on btrfs.
12188
12189 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 Remove any awareness of *.c util files about target.
12192
12193 * Makefile.util.def (grub-setup): Split to ...
12194 (grub-bios-setup): ... and this.
12195 (grub-sparc64-setup): ... and this.
12196 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12197 * docs/man/grub-setup.h2m: Split into ...
12198 * docs/man/grub-sparc64-setup.h2m: ... this.
12199 * docs/man/grub-bios-setup.h2m: ... and this.
12200 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12201 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12202 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12203 (grub_target_addr_t): Remove.
12204 (grub_target_size_t): Remove.
12205 (grub_target_ssize_t): Remove.
12206 * util/grub-install.in: Use new grub-*-setup.
12207 * util/grub-mkimagexx.c (Elf_Word): New define.
12208 (Elf_Half): Likewise.
12209 (Elf_Section): Likewise.
12210 (ELF_ST_TYPE): Likewise.
12211 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12212 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12213
12214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12215
12216 Replace grub_target_addr with more appropriate types.
12217
12218 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12219 grub_target_addr with grub_addr.
12220 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12221 grub_target_addr with grub_port.
12222 (grub_cmd_write): Likewise.
12223 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12224 grub_target_addr with grub_addr.
12225 (grub_cmd_write): Likewise.
12226 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12227
12228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12231 const qualifier for vendor_guid.
12232
12233 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12236 const qualifier.
12237 (efiemu_memequal): Likewise.
12238 (find_variable): Likewise.
12239
12240 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 Fix missing console prototype on qemu-mips.
12243
12244 * include/grub/mips/qemu_mips/console.h: New file.
12245
12246 2012-02-27 Matthew Garrett <mjg@redhat.com>
12247 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12248
12249 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12250 * include/grub/efi/efi.h: Likewise.
12251 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12252 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12253 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12254 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12255 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12256 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12257
12258 2012-02-27 Matthew Garrett <mjg@redhat.com>
12259
12260 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12261
12262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12265 error.
12266
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 * configure.ac: Remove inappropriate use of program_transform_name
12270 on grubdir and bootdir but allow explicit specification of those
12271 variables.
12272
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 * util/grub-mknetdir.in (grub_prefix): Removed.
12276 (subdir): Use @bootdirname@ and @grubdirname@.
12277
12278 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12279
12280 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12281
12282 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 * po/POTFILES.in: Regenerated.
12285
12286 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12287
12288 Remove improper use of program_transform_name on pkglibrootdir.
12289
12290 * configure.ac (pkglibrootdir): Removed.
12291 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12292 * util/grub-mkimage.c: Likewise.
12293
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12297 warning.
12298
12299 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 * util/grub-install.in: Use file identifier if no UUID is available
12302 or user explicitly prompted for it.
12303
12304 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12305
12306 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12307 (freebsd_get_zfs): New function.
12308 (grub_freebsd_boot): Pass zfs UUID.
12309 (grub_cmd_freebsd): Set zfs UUID.
12310
12311 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12312
12313 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12314 pkglibrootdir.
12315
12316 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12317
12318 Add configure flag to control libzfs integration.
12319
12320 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12321
12322 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12325 device.
12326 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12327 small devices.
12328
12329 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12332 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12333 be used on non-modules.
12334
12335 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12336 Rename to grub_boot_init.
12337 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12338 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12339 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12340 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12341 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12342 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12343 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12344 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12345 includes.
12346 (grub_machine_init): Remove empty inits.
12347 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12348 includes.
12349 (grub_machine_init): Remove empty inits.
12350 * grub-core/term/arc/console.c: Remove explicit proto.
12351 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12352 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12353 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12354 grub_at_keyboard_fini.
12355 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12356 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12357 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12358 grub_gfxterm_fini.
12359 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12360 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12361 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12362 grub_vgatext_fini.
12363 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12364 * grub-core/term/serial.c (GRUB_MOD_INIT)
12365 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12366 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12367 grub_serial_fini.
12368 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12369 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12370 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12371 grub_terminfo_fini.
12372 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12373 (GRUB_MOD_FINI): Likewise.
12374 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12375 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12376 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12377 grub_video_radeon_fuloong2e_fini.
12378 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12379 [LOONGSON]: Rename to grub_video_sis315pro_init.
12380 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12381 grub_video_sis315pro_fini.
12382 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12383 [LOONGSON]: Rename to grub_video_sm712_init.
12384 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12385 grub_video_sm712_fini.
12386 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12387 (grub_at_keyboard_fini): Likewise.
12388 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12389 Don't declare grub_{modname}_init.
12390 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12391 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12392 New proto.
12393 (grub_keylayouts_fini) [!EMU]: Likewise.
12394 * include/grub/serial.h (grub_serial_init) [!EMU]:
12395 New proto.
12396 (grub_serial_fini) [!EMU]: Likewise.
12397 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12398 New proto.
12399 (grub_terminfo_fini) [!EMU]: Likewise.
12400 * include/grub/video.h (grub_font_init) [!EMU]:
12401 New proto.
12402 (grub_font_fini) [!EMU]: Likewise.
12403 (grub_gfxterm_init) [!EMU]: Likewise.
12404 (grub_gfxterm_fini) [!EMU]: Likewise.
12405 (grub_video_sm712_init) [!EMU]: Likewise.
12406 (grub_video_sm712_fini) [!EMU]: Likewise.
12407 (grub_video_sis315pro_init) [!EMU]: Likewise.
12408 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12409 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12410 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12411
12412 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 Make nand a prefix for nand devices.
12415
12416 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12417
12418 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12421 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12422
12423 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 * include/grub/env.h (grub_env_find): Remove prototype.
12426 * grub-core/kern/env.c (grub_env_find): Make static.
12427 (grub_env_set): Remove useless set.
12428
12429 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12430
12431 * grub-core/kern/i386/realmode.S: Remove useless align.
12432
12433 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 * include/grub/dl.h (grub_dl_load_file): Don't export.
12436
12437 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12438
12439 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12440 grub_dprintf.
12441
12442 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12443
12444 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12445 grub_errors.
12446 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12447 not reloading whole superblock but only the part which is really needed.
12448 Remove useless grub_errors.
12449 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12450 grub_errors.
12451
12452 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 Don't export grub_get_rtc.
12455
12456 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12457 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12458
12459 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12460
12461 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12462
12463 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12466 argument since it can be deduced from diskfilter. All users updated.
12467
12468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12469
12470 Remove prio_list.
12471
12472 * include/grub/list.h (grub_prio_list): Removed.
12473 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12474 GRUB_COMMAND_PRIO_MASK.
12475 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12476 GRUB_COMMAND_FLAG_ACTIVE.
12477 (grub_prio_list_insert): Removed.
12478 (grub_prio_list_remove): Likewise.
12479 (GRUB_AS_PRIO_LIST): Likewise.
12480 (GRUB_AS_PRIO_LIST_P): Likewise.
12481 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12482 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12483 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12484 * grub-core/kern/command.c (grub_register_command_prio): Inline
12485 the prio_list code.
12486 (grub_unregister_command): Likewise.
12487
12488 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 Fix interrupt mixup from previous commit.
12491
12492 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12493 (grub_realidt): New var.
12494 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12495 Load idt.
12496 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12497 New declaration.
12498 (grub_relocator16_boot): Set grub_relocator16_idt.
12499 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12500 (LOCAL(realidt)): ... this.
12501 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12502 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12503 (grub_realidt): New variable.
12504
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12508 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12509 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12510 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12511 Gettextize.
12512 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12513 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12514 * po/POTFILES.in: Regenerate.
12515
12516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12519 errors.
12520
12521 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12522
12523 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12524 \0.
12525 (add_length): Likewise.
12526
12527 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12528 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12529
12530 GDB serial and backtrace support.
12531
12532 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12533 (prot_to_real): Likewise.
12534 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12535 * grub-core/Makefile.core.def (backtrace): New module.
12536 (gdb): Likewise.
12537 * grub-core/gdb/cstub.c: New file.
12538 * grub-core/gdb/gdb.c: Likewise.
12539 * grub-core/gdb/i386/idt.c: Likewise.
12540 * grub-core/gdb/i386/machdep.S: Likewise.
12541 * grub-core/gdb/i386/signal.c: Likewise.
12542 * grub-core/lib/i386/backtrace.c: Likewise.
12543 * grub-core/lib/backtrace.c: Likewise.
12544 * include/grub/backtrace.h: Likewise.
12545 * include/grub/gdb.h: Likewise.
12546 * include/grub/i386/gdb.h: Likewise.
12547
12548 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12549
12550 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12551 New function.
12552 (add_length): Likewise.
12553 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12554 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12555 proto.
12556 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12557 __argp_get_display_len.
12558
12559 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 $"..." support in scripts.
12562
12563 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12564 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12565 * grub-core/script/yylex.l: Likewise.
12566 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12567 value.
12568
12569 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * gentpl.py: Remove obsolete pkglib_DATA handling.
12572
12573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12576 mailing list.
12577
12578 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12579 * util/grub-kbdcomp.in: Likewise.
12580 * util/grub-mkconfig.in: Likewise.
12581 * util/grub-mkconfig_lib.in: Likewise.
12582 * util/grub-mknetdir.in: Likewise.
12583 * util/grub-mkrescue.in: Likewise.
12584 * util/grub-mkstandalone.in: Likewise.
12585 * util/grub-reboot.in: Likewise.
12586 * util/grub-set-default.in: Likewise.
12587 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12588
12589 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 Remove GRUB_PREFIX.
12592
12593 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12594 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12595 used for backward compatibility.
12596
12597 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 Add new all_video module.
12600
12601 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12602 * grub-core/Makefile.core.def (all_video): New module.
12603 * grub-core/genmoddep.awk: Generate dependency of all_video from
12604 video.lst.
12605 * grub-core/lib/fake_module.c: New file.
12606 * grub-core/normal/main.c (features): Add feature_all_video_module.
12607 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12608 don't do explicit search again.
12609 insmod all_video in load_video if available.
12610
12611 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 Another round of string clarification and adding TRANSLATORS comments.
12614
12615 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12616
12617 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12618
12619 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12622 to grub_ssize_t.
12623 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12624 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12625
12626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12629 trailing newline implicitly. All users updated.
12630
12631 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12632
12633 Implement serial on IEEE1275 and EFI.
12634
12635 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12636 on emu. Mention arc and emu as the only platforms without serial
12637 support.
12638 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12639 ieee1275 platforms.
12640 * grub-core/term/efi/serial.c: New file.
12641 * grub-core/term/ieee1275/serial.c: Likewise.
12642 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12643 specification if no ns8250 driver is available.
12644 (grub_cmd_serial): Likewise.
12645 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12646 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12647 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12648 (grub_efi_parity_type_t): New type.
12649 (grub_efi_stop_bits_t): Likewise.
12650 (grub_efi_serial_io_interface): New struct.
12651 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12652 available for all interfaces.
12653 Add EFI and IEEE1275 fields.
12654 (grub_ofserial_init): New proto.
12655 (grub_efiserial_init): Likeiwse.
12656 * util/grub.d/00_header.in: Don't check for the presence of serial
12657 module.
12658
12659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12662 name as if it was an alias.
12663
12664 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12665
12666 * grub-core/commands/lsacpi.c (options): Fix typo.
12667
12668 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 Convert grub-emu to argp.
12671
12672 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12673 emu.
12674 * util/argp_common.c: Rename to ...
12675 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12676 Add missing includes.
12677 * grub-core/kern/emu/main.c: Convert to argp.
12678 * po/POTFILES.in: Regenerate.
12679 * util/grub-install.in (usage): Make first letter lowcase in messages
12680 for uniformity.
12681 * util/grub-setup.c (options): Likewise.
12682
12683 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12686 Put back accidently commented-out code.
12687
12688 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12691 loop check using Brent algorithm.
12692 (grub_hfsplus_btree_search): Likewise.
12693
12694 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12695
12696 * util/grub-install.in: Fix usage of wrong device for PreP install.
12697
12698 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12699
12700 * conf/Makefile.common (CFLAGS_GNULIB): Add
12701 -Wno-unsafe-loop-optimizations.
12702 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12703 on tools.
12704 * grub-core/commands/legacycfg.c: Add pragma to skip
12705 -Wunsafe-loop-optimizations.
12706 (check_password_md5_real): Fix loop counter type.
12707 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12708 reading.
12709 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12710 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12711 loop condition.
12712 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12713 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12714 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12715 condition.
12716 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12717 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12718 avoid possible infinite loops.
12719 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12720 and -Wunsafe-loop-optimizations.
12721 * grub-core/script/yylex.l: Likewise.
12722 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12723 (print_glyphs): Avoid infinite loops.
12724 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12725
12726 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12727
12728 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12729 to avoid infinite loop.
12730 (disp_acpi_rsdt_table): Likewise.
12731
12732 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * grub-core/font/font.c (grub_font_load): Add support for default
12735 path for fonts ($prefix/fonts).
12736 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12737 for checking if string is a path.
12738 * grub-core/normal/main.c (features): Add feature_default_font_path.
12739 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12740 * util/grub.d/00_header.in: Use default directory if possible.
12741 * util/grub-install.in: Install unicode.pf2.
12742
12743 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12744
12745 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12746 * po/Rules-swiss: New file.
12747 * po/swiss.sed: Likewise.
12748
12749 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 * grub-core/fs/btrfs.c (find_device): Fix typos.
12752 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12753 * util/grub-mkrelpath.c (argp_parser): Likewise.
12754 Reported by: Yuri Chornoivan.
12755
12756 2012-02-23 Dalet Omega <daletomega@gmail.com>
12757
12758 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12759 for usual informative messages.
12760
12761 2012-02-23 Dalet Omega <daletomega@gmail.com>
12762
12763 Starfield theme.
12764
12765 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12766 * conf/Makefile.common: Define starfielddir.
12767 * configure.ac: Configure starfield.
12768 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12769 * themes/starfield/README: Likewise.
12770 * themes/starfield/blob_w.png: Likewise.
12771 * themes/starfield/boot_menu_c.png: Likewise.
12772 * themes/starfield/boot_menu_e.png: Likewise.
12773 * themes/starfield/boot_menu_n.png: Likewise.
12774 * themes/starfield/boot_menu_ne.png: Likewise.
12775 * themes/starfield/boot_menu_nw.png: Likewise.
12776 * themes/starfield/boot_menu_s.png: Likewise.
12777 * themes/starfield/boot_menu_se.png: Likewise.
12778 * themes/starfield/boot_menu_sw.png: Likewise.
12779 * themes/starfield/boot_menu_w.png: Likewise.
12780 * themes/starfield/slider_c.png: Likewise.
12781 * themes/starfield/slider_n.png: Likewise.
12782 * themes/starfield/slider_s.png: Likewise.
12783 * themes/starfield/src/blob_nw.xcf: Likewise.
12784 * themes/starfield/src/bootmenu/: Likewise.
12785 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12786 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12787 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12788 * themes/starfield/src/slider_c.xcf: Likewise.
12789 * themes/starfield/src/slider_n.xcf: Likewise.
12790 * themes/starfield/src/slider_s.xcf: Likewise.
12791 * themes/starfield/src/terminalbox/: Likewise.
12792 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12793 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12794 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12795 * themes/starfield/starfield.png: Likewise.
12796 * themes/starfield/terminal_box_c.png: Likewise.
12797 * themes/starfield/terminal_box_e.png: Likewise.
12798 * themes/starfield/terminal_box_n.png: Likewise.
12799 * themes/starfield/terminal_box_ne.png: Likewise.
12800 * themes/starfield/terminal_box_nw.png: Likewise.
12801 * themes/starfield/terminal_box_s.png: Likewise.
12802 * themes/starfield/terminal_box_se.png: Likewise.
12803 * themes/starfield/terminal_box_sw.png: Likewise.
12804 * themes/starfield/terminal_box_w.png: Likewise.
12805 * themes/starfield/theme.txt: Likewise.
12806
12807 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12808
12809 * util/grub.d/00_header.in: Add missing export theme.
12810
12811 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12814 already included.
12815 Reported by: Eren D.
12816
12817 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12818
12819 * conf/Makefile.common (grubdatadir): Removed.
12820 (Makefile.am): Move eveything grubdata to pkgdata.
12821
12822 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 * grub-core/commands/acpihalt.c (get_sleep_type):
12825 Remove unused variable.
12826
12827 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12828
12829 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12830 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12831 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12832 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12833 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12834 i18n with gettext no-op.
12835 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12836 GRUB_ACPI_OPCODE_STRING_CONST.
12837 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12838 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12839
12840 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * po/POTFILES.in: Regenerate.
12843
12844 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12845
12846 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12847 -Wno-error=missing-noreturn.
12848
12849 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12850
12851 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12852 condition to avoid possibly infinite loops.
12853 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12854 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12855
12856 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12857
12858 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12859 condition to avoid possibly infinite loops.
12860
12861 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12864 on show_error.
12865
12866 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12869
12870 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12873
12874 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * util/bin2h.c (usage): Add missing attribute noreturn.
12877
12878 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12879
12880 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12881 if the size isn't divisible by 512.
12882
12883 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 Make list_push and list_remove functions rather than inline functions
12886 to decrease size and avoid aliasing violations.
12887
12888 * include/grub/list.h (grub_list_push): Move to ...
12889 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12890 * include/grub/list.h (grub_list_remove): Move to ...
12891 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12892
12893 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12896 and -Wunused-result.
12897
12898 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12901 Reported by: Seth Goldberg
12902
12903 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12906
12907 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12908
12909 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12910 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12911 command line.
12912 * docs/grub.texi (Simple configuration): Document
12913 GRUB_CMDLINE_GNUMACH.
12914
12915 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * conf/Makefile.common (platform_SCRIPTS): New variable.
12918 (platform_PROGRAMS): Likewise.
12919 * gentpl.py: Mark *,module and *.image for install.
12920 * grub-core/gdb_grub.in: Add a notice of expected environment.
12921 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12922 (gmodule.pl): Likewise.
12923
12924 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 Replace grub_checkkey with grub_getkey_noblock.
12927
12928 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12929 (grub_getkey_noblock): ... this. All users updated.
12930
12931 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * grub-core/kern/emu/console.c: Move to ...
12934 * grub-core/term/emu/console.c: ...here.
12935 (grub_ncurses_getkey): Fix return value if no key is detected.
12936
12937 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12938
12939 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12940 (grub_unit_test_fini): Likewise.
12941 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12942
12943 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * include/grub/test.h (GRUB_UNIT_TEST)
12946
12947 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12950 Better error handling.
12951 (grub_script_return): Likewise.
12952 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12953
12954 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12957 rimplicit redifinition.
12958
12959 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12962 GRUB.
12963
12964 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12967 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12968 prompt here.
12969
12970 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12973 as GRUB_ERR_BUG. Don't malloc if no device is available.
12974
12975 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12978 Mark calling with invalid term as GRUB_ERR_BUG.
12979
12980 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12983 packets rather than raising an error.
12984
12985 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12988 in if.
12989
12990 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12993 diagnostic to dprintf.
12994 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12995
12996 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12999 device name.
13000
13001 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13004 (grub_ntfs_iterate_dir): Likewise.
13005
13006 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 Efiemu stylistic fixes and gettext.
13009
13010 * grub-core/efiemu/i386/loadcore32.c
13011 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13012 * grub-core/efiemu/i386/loadcore64.c
13013 (grub_arch_efiemu_relocate_symbols64): Likewise.
13014 * grub-core/efiemu/i386/pc/cfgtables.c
13015 (grub_machine_efiemu_init_tables): Likewise.
13016 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13017 (grub_efiemu_loadcore_initXX): Add a filename argument.
13018 All users updated.
13019 Improved error message.
13020 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13021 Add a filename argument.
13022 All users updated.
13023 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13024 Reclassify double relocation as GRUB_ERR_BUG.
13025
13026 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13027
13028 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13029 handling.
13030
13031 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13034 on partition.
13035
13036 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13039
13040 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 Improve string. Gettextize.
13043
13044 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13047 utils.
13048 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13049
13050 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13053 [GRUB_UTIL]: New function.
13054 (insert_array) [GRUB_UTIL]: Store partmaps.
13055 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13056 partmaps.
13057 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13058 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13059 (probe_abstraction): Print diskfilter and not raid.
13060 Reported by: Lennart Sorensen
13061
13062 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13065 * util/grub-mkimagexx.c (MASK3): New define.
13066 (add_value_to_slot_20b): Use MASK3.
13067 (add_value_to_slot_21): Likewise.
13068 (relocate_addresses): Fix format specification.
13069 (load_image): Explicitly init symtab_section.
13070
13071 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13074 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13075
13076 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13077
13078 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13079 on powerpc.
13080 Reported by: Lennart Sorensen
13081
13082 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * gentpl.py: Add missing license header.
13085 * docs/grub.texi: Update copyright year.
13086
13087 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13088
13089 Source grub-mkconfig_lib from the build directory at build time.
13090 Suggested by: Vladimir Serbinenko.
13091
13092 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13093 * util/grub-install.in: Define pkgdatadir if not already set, and source
13094 grub-mkconfig_lib from there.
13095 * util/grub-kbdcomp.in: Likewise.
13096 * util/grub-mkconfig.in: Likewise.
13097 * util/grub-mknetdir.in: Likewise.
13098 * util/grub-mkrescue.in: Likewise.
13099 * util/grub-mkstandalone.in: Likewise.
13100 * util/grub-reboot.in: Likewise.
13101 * util/grub-set-default.in: Likewise.
13102 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13103
13104 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 Increase warning level.
13107
13108 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13109 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13110 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13111 (TARGET_CFLAGS): Likewise.
13112 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13113 * grub-core/Makefile.core.def (decompressor_xz): Add
13114 -Wno-unreachable-code.
13115 (normal): Add -Wno-redundant-decls.
13116 (xzio): Add -Wno-unreachable-code.
13117 (lzopio): Add -Wno-redundant-decls -Wno-error.
13118 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13119 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13120 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13121 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13122 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13123 * grub-core/kern/i386/coreboot/init.c: Add exception to
13124 -Wsuggest-attribute=noreturn.
13125 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13126 * grub-core/kern/ia64/dl_helper.c: Likewise.
13127 * grub-core/kern/mips/dl.c: Likewise.
13128 * grub-core/kern/sparc64/dl.c: Likewise.
13129 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13130 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13131 (memcmp): Likewise.
13132 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13133 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13134 * grub-core/loader/mips/linux.c: Likewise.
13135 * grub-core/loader/multiboot_elfxx.c: Likewise.
13136 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13137 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13138 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13139 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13140 fixme.
13141 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13142 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13143 Fix prototype.
13144
13145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13148 address.
13149
13150 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13153 Avoid improper use of strings.
13154 (grub_cmd_legacy_initrdnounzip): Likewise.
13155
13156 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13159 attribute.
13160 (grub_util_info): Likewise.
13161 (grub_util_error): Likewise.
13162
13163 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13166 * util/grub-fstest.c (fstest): Likewise.
13167
13168 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13169
13170 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13171 (grub_md_sha512_real): Likewise.
13172 (grub_util_get_geli_uuid): Likewise.
13173 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13174 (grub_util_biosdisk_open): Fix format specification.
13175 Respect format security.
13176 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13177 (xrealloc): Likewise.
13178 (xasprintf): Likewise.
13179
13180 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * util/import_gcry.py: Include grub/crypto.h in init.c.
13183
13184 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13187 (generate_image): Make prefix a const char *.
13188 Fix format specifications. Respect format security.
13189 Avoid void * arithmetics.
13190 Avoid shadowing.
13191 (argp_parser): Remove unused variable. Respect format security.
13192 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13193 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13194 (count_funcs): Remove unused variable.
13195 (relocate_addresses): Fix format specification.
13196 Disable x86-64 with elf32. Remove unused variables.
13197 (add_fixup_entry): Avoid shadowing.
13198 (make_reloc_section): Fix format specification.
13199 Use assert.
13200 (locate_sections): Fix format specifications.
13201 (load_image): Avoid shadowing.
13202
13203 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13206 Fix format specifications. Respect format security.
13207 Don't translate already translated grub_errmsg.
13208 (argp_parser): Remove unused variable
13209
13210 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13211
13212 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13213
13214 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13217 (main): Likewise. Use xmalloc. Respect format security.
13218
13219 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13222 a const char *.
13223 (argp_parser): Remove unused variable.
13224
13225 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13228 (add_pixel): Make static.
13229 (add_font): Likewise.
13230 (write_string_section): Make name and str a const char *.
13231 (write_be16_section): Make name a const char *.
13232 (print_glyphs): Make static.
13233 (write_font_ascii_bitmap): Likewise.
13234 (write_font_width_spec): Likewise.
13235 (write_font_pf2): Likewise.
13236 (argp_parser): Remove unused variable.
13237 Respect format security.
13238 (main): Avoid shadowing. Respect format security.
13239
13240 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13241
13242 * util/grub-editenv.c (argp_parser): Make static.
13243 (create_envblk_file): Use xmalloc.
13244 (open_envblk_file): Likewise.
13245 Resepect format security.
13246 (set_variables): Respect format security.
13247
13248 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13249
13250 * util/getroot.c (grub_find_device): Respect format security.
13251 (get_mdadm_uuid): Remove unused variable.
13252 (grub_util_pull_device): Dont call gettext on already translated
13253 grub_errmsg.
13254 (find_system_device): Remove unused variable.
13255 (grub_util_get_grub_dev): Likewise.
13256 (grub_make_system_path_relative_to_its_root): Respect format security.
13257
13258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 * util/grub-fstest.c (execute_command): Make first argument
13261 a const char *.
13262 (read_file): Avoid shadowing.
13263 Reuse underlying error message if device open fails.
13264 (cmd_cmp): Respect format security.
13265 (root): Make const char *.
13266 (fstest): Remove args argument and use global copy.
13267 Respect format security.
13268 (argp_parser): Make static.
13269 (main): Make default_root const char *.
13270
13271 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * util/grub-mount.c (root): Make const char *.
13274 (execute_command): Make first argument a const char *.
13275 (fuse_init): Respect format security.
13276 (argp_parser): Make static. Remove unused variable.
13277 (main): Make default_root a const char *.
13278 Respect format security.
13279
13280 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13281
13282 * util/grub-probe.c (probe): Don't call gettext on already translated
13283 grub_errmsg.
13284 Remove unused variables.
13285 (argp_parser): Remove unused variable.
13286
13287 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 * util/grub-script-check.c (argp_parser): Remove unused variable.
13290 (main): Rename read to curread to avoid shadowing.
13291
13292 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 * util/misc.c (grub_util_write_image_at): Fix format specification.
13295 (grub_util_write_image): Likewise.
13296 (grub_script_execute_argument_to_string): Removed (unused).
13297 (grub_script_execute_menuentry): Likewise.
13298 (grub_putchar): Likewise.
13299
13300 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13301
13302 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13303 (FUNCTION) [GRUB_UTIL]: Likewise.
13304 (VARIABLE) [GRUB_UTIL]: Likewise.
13305
13306 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13307
13308 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13309 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13310
13311 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13314 buffer.
13315
13316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13317
13318 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13319 (LzmaEnc_SaveState): Removed (unused).
13320 (LzmaEnc_RestoreState): Likewise.
13321 (LzmaEnc_InitPriceTables): Made static.
13322 (LzmaEnc_Construct): Likewise.
13323 (LzmaEnc_FreeLits): Likewise.
13324 (LzmaEnc_Destruct): Likewise.
13325 (LzmaEnc_Init): Likewise.
13326 (LzmaEnc_InitPrices): Likewise.
13327 (LzmaEnc_Finish): Likewise.
13328 (LzmaEnc_PrepareForLzma2): Removed (unused).
13329 (LzmaEnc_MemPrepare): Likewise.
13330 (LzmaEnc_GetNumAvailableBytes): Likewise.
13331 (LzmaEnc_GetCurBuf): Likewise.
13332 (LzmaEnc_CodeOneMemBlock): Likewise.
13333
13334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13337 (grub_util_ldm_embed): Likewise.
13338
13339 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 * util/grub-editenv.c (print_var): Rename name to varname to
13342 avoid shadowing.
13343 (main): Rename index to curindex to avoid shadowing.
13344 Make filename a const char *.
13345
13346 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13349 to arg_getline to avoid shadowing.
13350
13351 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13352
13353 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13354 disk_ to avoid shadowing.
13355
13356 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13357
13358 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13359 curindex to avoid shadowing.
13360 Make static.
13361 (MatchFinder_GetNumAvailableBytes): Make static.
13362
13363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13366 avoid shadowing.
13367
13368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13371 argument from encrypt to do_encrypt to avoid shadowing.
13372
13373 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13376 incorrect nesting of #if's.
13377
13378 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13381 checks which are always false on some platforms.
13382 (grub_cmd_lsacpi): Likewise.
13383 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13384 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13385 Likewise.
13386
13387 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13390 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13391
13392 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13395 re_dfa_t to avoid breaking alignment invariants.
13396 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13397 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13398
13399 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13402 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13403
13404 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13405
13406 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13407 Fix declaration.
13408
13409 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13410
13411 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13412 conserve alignment invariants.
13413 (grub_ehci_ehcc_read16): Likewise.
13414 (grub_ehci_oper_read32): Likewise.
13415 (grub_ehci_oper_write32): Likewise.
13416 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13417 Conserve alignment invariants.
13418
13419 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13422 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13423 declarations.
13424
13425 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13428 Remove unused variable.
13429
13430 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13433 Remove set in if.
13434
13435 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 * include/grub/net.h: Remove double declarations.
13438
13439 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 Remove "payload" command in ia64 Linux loader since I couldn't
13442 find any evidence of it being used for anything.
13443 Replace "relocate" command with an environment variable
13444
13445 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13446 fields.
13447 (ia64_boot_payload): Removed.
13448 (last_payload): Likewise.
13449 (RELOCATE_OFF): Likewise.
13450 (RELOCATE_ON): Likewise.
13451 (RELOCATE_FORCE): Likewise.
13452 (relocate): Likewise.
13453 (free_pages): Don't free payloads.
13454 (grub_load_elf64): Use common error messages.
13455 Use "linux_relocate" variable.
13456 Increase the space after boot_params.
13457 (grub_cmd_payload): Removed.
13458 (grub_cmd_relocate): Likewise.
13459 (grub_cmd_fpswa): Improve messages.
13460 (cmd_payload): Removed.
13461 (cmd_relocate): Likewise.
13462 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13463 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13464
13465 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13466
13467 Convert UHCI to DMA framework.
13468
13469 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13470 (grub_uhci_pci_iter): Fill new members
13471 (grub_alloc_td): Use P2V and V2P functions.
13472 (grub_free_queue): Likewise.
13473 (grub_alloc_qh): Likewise.
13474 (grub_uhci_setup_transfer): Likewise.
13475 (grub_uhci_check_transfer): Likewise.
13476
13477 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13480 Remove assignment in if while on it.
13481
13482 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13483
13484 * util/grub-mkstandalone.in: Fix modules directory.
13485
13486 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13489 on i386-pc target.
13490 (argp_parser): Accept "auto" as compression specification.
13491
13492 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 Fix `help' with unloaded modules.
13495
13496 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13497 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13498 (grub_dyncmd_dispatcher): Small stylistic fix.
13499 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13500 explicit help is requested.
13501
13502 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13503
13504 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13505 Explicitly init restart while on it.
13506
13507 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13510 uninited variable.
13511
13512 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 * util/grub-mknetdir.in: Use . rather than source for POSIX
13515 compatibility.
13516
13517 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13520
13521 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13524 variable.
13525
13526 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13527
13528 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13529 without quotes.
13530
13531 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13532
13533 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13534
13535 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13536
13537 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13538 iteration of partitions.
13539
13540 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 Improve gettext support. Stylistic fixes and error handling fixes while
13543 on it.
13544
13545 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13546
13547 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13548 part. Instead setup the correct stack in RM.
13549 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13550 for stack.
13551 * include/grub/i386/relocator_private.h: New file.
13552
13553 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13556 argument.
13557 * util/grub-fstest.c (options): Add missing DEVICE part.
13558
13559 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 Clarify and unify messages.
13562
13563 * grub-core/commands/hashsum.c (options): Unify messages.
13564 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13565 literal-only message as translatable.
13566 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13567 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13568 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13569 commands.
13570 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13571 key, not the key used to unlock. Clarify what it's used for.
13572 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13573 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13574 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13575 * util/grub-editenv.c (options): Unify "verbose" message.
13576 * util/grub-fstest.c (read_file): Unify error message.
13577 (fstest): Add quotes around commands.
13578 (options): Unify "verbose" message.
13579 * util/grub-install.in: Add quotes around variable name.
13580 * util/grub-kbdcomp.in: Unify error message.
13581 * util/grub-mkfont.c (main): Likewise.
13582 * util/grub-mkrescue.in: Likewise.
13583 * util/grub-mklayout.c (options): Unify "verbose" message.
13584 * util/grub-mkstandalone.in: Unify help and verbose messages.
13585 * util/grub-mount.c (options): Unify "verbose" message.
13586 * util/grub-probe.c (options): Likewise.
13587 * util/grub-script-check.c (options): Likewise.
13588 * util/grub-setup.c (setup): Unify no-terminator message.
13589 (options): Use DEVICE and not DEV.
13590 Unify "verbose" message.
13591 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13592
13593 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 Improve and unify messages.
13596
13597 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13598 name. All users updated.
13599 Print filename in error.
13600 (read_device_map): Print filename in error.
13601 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13602 (grub_util_get_os_disk): Likewise.
13603 (grub_util_biosdisk_get_grub_dev): Likewise.
13604 (grub_util_check_block_device): Likewise.
13605 (grub_util_check_char_device): Likewise.
13606 (grub_make_system_path_relative_to_its_root): Likewise.
13607 * util/grub-editenv.c (create_envblk_file): Likewise.
13608 (open_envblk_file): Likewise.
13609 (write_envblk): Likewise.
13610 * util/grub-fstest.c (cmd_cp): Likewise.
13611 (cmd_cat): Likewise.
13612 (cmd_cmp): Likewise.
13613 * util/grub-menulst2cfg.c (main): Likewise.
13614 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13615 (write_font_width_spec): Likewise.
13616 (write_font_pf2): Likewise.
13617 * util/grub-mkimage.c (generate_image): New argument outname.
13618 All users updated.
13619 Remove unreacheable message.
13620 (options): Unify messages.
13621 (help_filter): Likewise.
13622 * util/grub-mklayout.c (usage): Removed (unused).
13623 (main): Print filename in error.
13624 * util/grub-mkrescue.in: Fix wrong quoting.
13625 * util/grub-setup.c (setup): Print filename in error.
13626 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13627 (check_sas): Likewise.
13628 * util/misc.c (grub_util_get_fp_size): Removed.
13629 (grub_util_get_image_size): Print filename in error.
13630 (grub_util_read_at): Removed.
13631 (grub_util_read_image): Print filename in error.
13632 (grub_util_load_image): Likewise.
13633 (grub_util_write_image_at): New argument filename. All users updated.
13634 Print filename in error.
13635 (grub_util_write_image): New argument filename. All users updated.
13636 Print filename in error.
13637 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13638 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13639
13640 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/Makefile.core.def (pxechain): New module.
13643 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13644 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13645 function.
13646 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13647 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13648
13649 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13650
13651 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13652 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13653 * include/grub/err.h (grub_error_saved): New struct.
13654 (grub_errmsg): Make array size explicit.
13655 * include/grub/misc.h (grub_error_save): New function.
13656 (grub_error_load): Likewise.
13657 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13658 (grub_error_push): Update `errno' member name.
13659 (grub_error_pop): Likewise
13660 * grub-core/net/tftp.c (tftp_data): New member save_err.
13661 (tftp_receive): Save error.
13662 (tftp_open): Restore error.
13663
13664 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13667 to real mode down to execute A20-related code in protected mode as
13668 intended.
13669
13670 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13671
13672 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13673 NULL when the argument `level' has an unexpected value.
13674
13675 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 Move platform-dependent files from $prefix to $prefix/$platform.
13678
13679 * config.h.in (GRUB_TARGET_CPU): New definition.
13680 (GRUB_PLATFORM): Likewise.
13681 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13682 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13683 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13684 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13685 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13686 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13687 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13688 * grub-core/normal/term.c (read_terminal_list): Likewise.
13689 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13690 $prefix/locale.
13691 (grub_gettext_init_ext): Likewise.
13692 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13693 grub_platform.
13694 * util/grub-install.in: Update directories.
13695 * util/grub-mknetdir.in: Likewise.
13696 * util/grub-mkrescue.in: Likewise.
13697
13698 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13699
13700 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13701 grub_error framework. All users updated.
13702
13703 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13706 lists (by always binsearching), improve caching (cache strings
13707 used for binsearch, not only results), improve
13708 maintainability (by using more structured binary search) and correct
13709 error handling.
13710
13711 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 * grub-core/script/execute.c (grub_script_return): Fix warning.
13714
13715 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * grub-core/script/execute.c (grub_script_return): Fix potential
13718 NULL-dereference.
13719 Reported by: Jim Meyering.
13720
13721 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * po/POTFILES.in: Regenerate.
13724 * util/grub-install.in: Gettextize the strings missed in first pass.
13725
13726 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * Makefile.util.def (grub-mkdevicemap): Removed.
13729 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13730 * include/grub/util/deviceiter.h: Removed.
13731 * util/deviceiter.c: Likewise.
13732 * util/getroot.c (grub_util_get_os_disk): New function.
13733 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13734 replacement for EFI.
13735 * util/grub-mkdevicemap.c: Removed.
13736 * util/grub-probe.c (probe): Handle PRINT_DISK.
13737 (argp_parser): Handle -t disk.
13738
13739 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13740
13741 * util/grub-mkfont.c: Migrate to argp.
13742 * util/grub-mklayout.c: Likewise.
13743 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13744 * util/grub-mkrelpath.c: Likewise.
13745 * util/grub-probe.c: Likewise.
13746 * util/grub-script-check.c: Likewise.
13747
13748 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 * util/grub-reboot.in: Add missing datarootdir.
13751 Add missing newline.
13752 * util/grub-set-default.in: Add missing datarootdir.
13753 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13754 * util/grub-mkrescue.in: Likewise.
13755
13756 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13757
13758 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13759
13760 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 * util/grub-kbdcomp.in: Add decent help and gettextize.
13763 * docs/man/grub-kbdcomp.h2m: New file.
13764
13765 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 Migrate grub-mkimage.c to argp.
13768
13769 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13770 (grub-setup): Likewise.
13771 * util/grub-setup.c (print_version): Move to ...
13772 * util/argp_common.c (print_version): ... here.
13773 * util/grub-setup.c (argp_program_version_hook): Move to ...
13774 * util/argp_common.c (argp_program_version_hook): ... here.
13775 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13776 safety.
13777 * util/grub-mkimage.c (main): Migrate to argp.
13778
13779 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * util/grub-mkrescue.in: Use same message as
13782 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13783 for better translations.
13784
13785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13788 options with generic grub-mkrescue.in with the goal of future
13789 merge.
13790
13791 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * grub-core/kern/mm.c: Add missing include of i18n.h
13794 * grub-core/lib/relocator.c: Likewise.
13795
13796 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13799 error.
13800 (allocate_pages): Check return value.
13801 Replace fatal with error.
13802 (grub_linux_boot): Replace printf with dprintf.
13803 Check find_mmap_size return value.
13804 Replace fatal with error.
13805 Don't call grub_machine_fini.
13806 (grub_load_elf64): Replace printf with dprintf.
13807 (grub_cmd_linux): Likewise.
13808 (grub_cmd_initrd): Likewise.
13809 (grub_cmd_payload): Likewise.
13810
13811 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13814 message.
13815 * grub-core/video/radeon_fuloong2e.c
13816 (grub_video_radeon_fuloong2e_setup): Likewise.
13817 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13818 * grub-core/video/video.c (grub_video_set_mode): Don't override
13819 standard out of memory message.
13820
13821 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13822
13823 NetBSD disk wedge support.
13824
13825 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13826 [__NetBSD__]: Handle NetBSD disk wedges.
13827 * util/getroot.c (convert_system_partition_to_system_disk)
13828 [__NetBSD__]: Likewise.
13829
13830 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13831
13832 * util/grub-mkconfig.in: Use umask rather than chmod to create
13833 grub.cfg.new to avoid insecure grub.cfg.
13834
13835 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13836
13837 * grub-core/commands/ls.c: Gettextize.
13838 * grub-core/commands/setpci.c: Likewise.
13839 * grub-core/commands/videotest.c: Likewise.
13840 * grub-core/disk/geli.c: Likewise.
13841 * grub-core/kern/mm.c: Likewise.
13842 * grub-core/lib/relocator.c: Likewise.
13843 * grub-core/loader/efi/appleloader.c: Likewise.
13844 * grub-core/loader/i386/xnu.c: Likewise.
13845 * grub-core/loader/ia64/efi/linux.c: Likewise.
13846 * grub-core/loader/xnu.c: Likewise.
13847 * grub-core/net/dns.c: Likewise.
13848 * grub-core/net/net.c: Likewise.
13849 * grub-core/script/lexer.c: Likewise.
13850 * grub-core/script/parser.y: Likewise.
13851 * grub-core/script/yylex.l: Likewise.
13852 * util/getroot.c: Likewise.
13853 * util/grub-setup.c: Likewise.
13854
13855 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13858 number.
13859
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13863
13864 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13867 macro.
13868 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13869 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13870
13871 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13872
13873 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13874 * util/grub-install.in: Gettextize.
13875 * util/grub-mkconfig.in: Likewise.
13876 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13877 if not available.
13878 (grub_warn): Gettextize.
13879 * util/grub-mknetdir.in: Gettextize.
13880 * util/grub-mkrescue.in: Likewise.
13881 * util/grub-mkstandalone.in: Likewise.
13882 * util/grub-reboot.in: Likewise.
13883 * util/grub-set-default.in: Likewise.
13884 * util/grub.d/00_header.in: Likewise.
13885 * util/grub.d/10_hurd.in: Likewise.
13886 * util/grub.d/10_kfreebsd.in: Likewise.
13887 * util/grub.d/10_linux.in: Likewise.
13888 * util/grub.d/10_netbsd.in: Likewise.
13889 * util/grub.d/10_windows.in: Likewise.
13890 * util/grub.d/20_linux_xen.in: Likewise.
13891 * util/grub.d/30_os-prober.in: Likewise.
13892 * po/POTFILES-shell.in: Regenerate.
13893
13894 2012-02-03 Richard Laager <rlaager@wiktel.com>
13895
13896 * util/grub-mkimage.c (main): Fix format-security warning.
13897 * util/grub-mkrelpath.c (main): Likewise.
13898 * util/grub-probe.c (main): Likewise.
13899
13900 2012-02-03 Richard Laager <rlaager@wiktel.com>
13901
13902 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13903 failure.
13904 Put back lost PRINT_DRIVE.
13905
13906 2012-02-03 Richard Laager <rlaager@wiktel.com>
13907
13908 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13909 (grub_guess_root_devices): Replace strlen with sizeof.
13910 Avoid crash.
13911 (find_root_devices_from_poolname): Remove unused variable.
13912 Handle raidzN.
13913
13914 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 Support install on multi-device filesystems.
13917
13918 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13919 (grub_guess_root_devices): ...this. Return char **. All users updated.
13920 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13921 Removed.
13922 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13923 (find_root_devices_from_poolname): ... here.
13924 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13925 Support zfs-fuse.
13926 (grub_guess_root_device): Rename to ...
13927 (grub_guess_root_devices): ... this. Return char **. All users updated.
13928 * util/grub-install.in: Handle multi-device filesystems.
13929 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13930 argument. All users updated.
13931 Handle multi-device filesystems.
13932 Use 'delim' as separator.
13933 Remove device check to allow filesystems on file.
13934 (main): Support -0 argument. Handle multi-device.
13935 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13936 Fix a cross-device check while on it.
13937 (arguments): Remove root_dev.
13938 (argp_parser): Remove -r.
13939 (main): Remove root_dev.
13940
13941 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13944
13945 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13948 symbol.
13949 Reported by: NODA, Kai <nodakai>.
13950
13951 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 Fix ehci on amd64.
13954
13955 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13956 pointers.
13957 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13958 (grub_ehci_setup_qh): Likewise.
13959 (grub_ehci_find_qh): Likewise.
13960 (grub_ehci_transaction): Likewise.
13961 (grub_ehci_setup_transfer): Likewise.
13962 (grub_ehci_check_transfer): Likewise.
13963 (grub_ehci_portstatus): Likewise.
13964 (grub_ehci_detect_dev): Likewise.
13965 (grub_ehci_transfer_controller_data): New field td_last_phys.
13966 (grub_ehci_setup_transfer): Fill td_last_phys.
13967 (grub_ehci_check_transfer): Use td_last_phys.
13968
13969 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13970
13971 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13972 if no submenu is present.
13973
13974 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13975
13976 CBI support.
13977
13978 * include/grub/usb.h (grub_usbms_protocol_t): New values
13979 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13980 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13981 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13982 (grub_usbms_dev): Add subclass, protocol and intrpt.
13983 Remove in_maxsz and out_maxsz.
13984 (grub_usbms_reset): Rename to ...
13985 (grub_usbms_bo_reset): .. this.
13986 (grub_usbms_cbi_cmd): New function.
13987 (grub_usbms_cbi_reset): Likewise.
13988 (grub_usbms_reset): Likewise.
13989 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13990 (grub_usbms_transfer): Rename to ...
13991 (grub_usbms_transfer_bo): ... this.
13992 (grub_usbms_transfer_cbi): Likewise.
13993 (grub_usbms_transfer): Likewise.
13994
13995 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13996 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13999 the support for the CS5536 modification thereos and few bugfixes.
14000
14001 * grub-core/Makefile.core.def (ehci): New module.
14002 * grub-core/bus/usb/ehci.c: New file.
14003 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14004 port and hubaddr. All users updated.
14005 Save port and hubaddr into dev structure.
14006 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14007 define.
14008 * include/grub/pci.h (grub_dma_phys2virt): New function.
14009 (grub_dma_virt2phys): Likewise.
14010 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14011
14012 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14013
14014 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14015 check as some mkfs implementations omit it.
14016
14017 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14020
14021 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14024 Add new member volname2.
14025 (grub_jfs_label): Use volname2 if available.
14026
14027 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14028
14029 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14030 over last_mounted as seen in image generated by mkfs.nilfs2.
14031 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14032
14033 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14036 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14037 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14038
14039 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14040
14041 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14042 over the sector.
14043
14044 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14045
14046 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14047 subvolume name (by removing a bogus and useless check).
14048
14049 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14050
14051 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14052 sizeof while on it.
14053
14054 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14057 (grub_scsi_read_capacity10): ... this.
14058 (grub_scsi_read_capacity16): New function.
14059 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14060 0xffffffff.
14061 Fix off-by-one error.
14062 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14063 64-bit unsigned.
14064 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14065 (grub_scsi_read_capacity10): ... this.
14066 (grub_scsi_read_capacity_data): Rename to ...
14067 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14068 (grub_scsi_read_capacity16): New struct.
14069 (grub_scsi_read_capacity16_data): Likewise.
14070 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14071 grub_scsi_cmd_read_capacity10.
14072 New command grub_scsi_cmd_read_capacity16.
14073
14074 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 SCSI >2TiB support.
14077
14078 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14079 (grub_scsi_write16): Likewise.
14080 (grub_scsi_read): Use read16 when necessary.
14081 (grub_scsi_write): Likewise.
14082 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14083 (grub_scsi_write16): Likewise.
14084 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14085
14086 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14087
14088 SCSI write support (for usbms mainly).
14089
14090 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14091 a const pointer.
14092 (grub_scsi_write): Implement.
14093 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14094
14095 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14096
14097 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14098 variable.
14099
14100 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14101
14102 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14103
14104 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14105
14106 * po/POTFILES.in: Regenerate.
14107
14108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14111 with grub_printf to avoid unnecessary fatal failure.
14112
14113 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14116 (INT_MAX): Likewise.
14117 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14118 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14119 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14120 (strcpy): Likewise.
14121 (strstr): Likewise.
14122 (strchr): Likewise.
14123 (strncpy): Likewise.
14124 (strcat): Likewise.
14125 (strncat): Likewise.
14126 (strcoll): Likewise.
14127 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14128 (GRUB_INT_MAX): Likewise.
14129
14130 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14133 unexpected error.
14134 (optimize_utf8): Likewise.
14135 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14136
14137 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14138
14139 * grub-core/boot/i386/pc/lnxboot.S: Use
14140 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14141 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14142 location.
14143 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14144 definition.
14145 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14146
14147 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14150 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14151 now to avoid double free.
14152 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14153 hostdisk.
14154 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14155 * util/grub-probe.c (escape_of_path): Always return a new copy.
14156 (print_full_name): Escape path.
14157 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14158 Fix hints on abstractions.
14159
14160 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14163 Don't add "root" line if no compatibility hont is available.
14164 Suggested by: Seth Goldberg.
14165
14166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14169 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14170 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14171 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14172
14173 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14176
14177 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14178
14179 * util/grub-pe2elf.c (ehdr): Make static.
14180 (shdr): Likewise.
14181 (num_sections): Likewise.
14182 (offset): Likewise.
14183
14184 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 Eliminate ofpath limits and possible overflows.
14187
14188 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14189 (OF_PATH_MAX): Removed.
14190 (MAX_DISK_CAT): New const.
14191 (find_obppath): Use allocated rather than preallocated buffer.
14192 Return result. Argument of_path removed. All users updated.
14193 Add missing fdstat.
14194 (xrealpath): New function.
14195 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14196 Allocate rather than use preallocated buffer. All users updated.
14197 (__of_path_common): Use allocated rather than preallocatecd buffer.
14198 Return result. Argument of_path removed. All users updated.
14199 (vendor_is_ATA): Read only needed part form the file.
14200 (check_sas): Allocate depending on contents rather than fixed.
14201 (main) [STANDALONE]: Handle NULL result.
14202
14203 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14204
14205 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14206
14207 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 Cryptodisk write support.
14210
14211 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14212 (grub_cryptodisk_decrypt): Moved logic to ...
14213 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14214 (grub_cryptodisk_write): Implement.
14215 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14216 (grub_util_fd_write): ... this. Make global.
14217 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14218
14219 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 * include/grub/list.h (grub_list_remove): Don't crash if element is
14222 removed twice.
14223
14224 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 Rename ofconsole to console.
14227
14228 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14229 as sysnonym to console.
14230 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14231 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14232 Rename grub_ofconsole_ to grub_console_. All users updated
14233 (grub_console_term_output): Rename "ofconsole" to "console".
14234 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14235 as "console".
14236
14237 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14240 handling.
14241 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14242 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14243 GRUB_DISK_DEVICE_FILE_ID.
14244
14245 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14246
14247 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14248 and improve performance.
14249
14250 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14251
14252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14253 missing ieee1275/ prefix on whole disk.
14254
14255 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14256
14257 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14258 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14259
14260 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14261
14262 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14263
14264 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14265
14266 Merge common RAID and LVM logic to an abstract diskfilter.
14267 Add LDM support using the same framework.
14268
14269 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14270 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14271 (libgrubmods): Remove grub-core/disk/raid.c and
14272 grub-core/partmap/gpt.c.
14273 * grub-core/Makefile.core.def (ldm): New module.
14274 (raid): Renamed to diskfilter. All users updated.
14275 * grub-core/disk/raid.c: Moved to ...
14276 * grub-core/disk/diskfilter.c: ... here.
14277 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14278 (lv_num): New var.
14279 (find_array): Renamed to ...
14280 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14281 (grub_is_array_readable): Renamed to ...
14282 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14283 (insert_array): New argument id.
14284 (is_node_readable): New function.
14285 (scan_device): Rename to ...
14286 (scan_disk): .. this. Restrict to one disk.
14287 (scan_devices): New function.
14288 (grub_diskfilter_iterate): Support multi-LV.
14289 Skip invisible and nameless LVs.
14290 (grub_diskfilter_memberlist): Support multi-LV.
14291 (grub_diskfilter_read_node): New function.
14292 (grub_raid_read): Most of logic moved to ...
14293 (read_segment): ... here
14294 (read_lv): New function.
14295 (grub_diskfilter_get_vg_by_uuid): New function.
14296 (grub_diskfilter_make_raid): Likewise.
14297 * grub-core/disk/ldm.c: New file.
14298 * grub-core/disk/lvm.c (vg_list): Removed.
14299 (lv_count): Likewise.
14300 (scan_depth): Likewise.
14301 (is_lv_readable): Likewise.
14302 (grub_lvm_getvalue): Advance pointer past the number.
14303 (find_lv): Removed.
14304 (do_lvm_scan): Refactored into ...
14305 (grub_lvm_detect): ... this. Support raid.
14306 (grub_lvm_iterate): Removed.
14307 (grub_lvm_memberlist): Likewise.
14308 (grub_lvm_open): Likewise.
14309 (grub_lvm_close): Likewise.
14310 (read_lv): Likewise.
14311 (read_node): Likewise.
14312 (is_node_readable): Likewise.
14313 (is_lv_readable): Likewise.
14314 (grub_lvm_read): Likewise.
14315 (grub_lvm_write): Likewise.
14316 (grub_lvm_dev): Use diskfilter
14317 (GRUB_MOD_INIT): Likewise.
14318 (GRUB_MOD_FINI): Likewise.
14319 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14320 new interface.
14321 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14322 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14323 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14324 grub_diskfilter_read_node.
14325 Fix a bug with xor.
14326 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14327 grub_diskfilter_read_node.
14328 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14329 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14330 (grub_disk_dev_iterate): Move from here...
14331 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14332 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14333 Make global.
14334 (grub_hostdisk_find_partition_start): Likewise.
14335 (grub_hostdisk_os_dev_to_grub_drive): New function.
14336 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14337 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14338 * util/getroot.c (make_device_name): ... here.
14339 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14340 Move to ...
14341 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14342 * grub-core/kern/emu/hostdisk.c
14343 (convert_system_partition_to_system_disk): Move to ...
14344 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14345 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14346 * util/getroot.c (device_is_wholedisk): ... here.
14347 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14348 * util/getroot.c (find_system_device): ... here.
14349 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14350 Move to ...
14351 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14352 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14353 Move to ...
14354 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14355 Handle LDM.
14356 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14357 Move to ...
14358 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14359 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14360 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14361 DISKFILTER.
14362 * include/grub/raid.h: Renamed to ...
14363 * include/grub/diskfilter.h: ... this.
14364 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14365 (GRUB_RAID_LAYOUT_*): Make into array.
14366 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14367 (grub_diskfilter_vg): New struct.
14368 (grub_diskfilter_pv_id): Likewise.
14369 (grub_raid_member): Removed.
14370 (grub_raid_array): Likewise.
14371 (grub_diskfilter_pv): New struct.
14372 (grub_diskfilter_lv): Likewise.
14373 (grub_diskfilter_segment): Likewise.
14374 (grub_diskfilter_node): Likewise.
14375 (grub_diskfilter_get_vg_by_uuid): New proto.
14376 (grub_raid_register): Inline.
14377 (grub_diskfilter_unregister): Likewise.
14378 (grub_diskfilter_make_raid): New proto.
14379 (grub_diskfilter_vg_register): Likewise.
14380 (grub_diskfilter_read_node): Likewise.
14381 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14382 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14383 (grub_util_is_ldm): Likewise.
14384 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14385 (grub_hostdisk_find_partition_start): Likewise.
14386 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14387 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14388 New definition.
14389 (grub_gpt_partition_map_iterate): New proto.
14390 * include/grub/lvm.h (grub_lvm_vg): Removed.
14391 (grub_lvm_pv): Likewise.
14392 (grub_lvm_lv): Likewise.
14393 (grub_lvm_segment): Likewise.
14394 (grub_lvm_node): Likewise.
14395 * util/getroot.c [...]
14396 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14397 (probe_abstraction): Likewise.
14398 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14399 (main): Remove dead logic.
14400
14401 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14402
14403 Simplify root device discover and don't fail when trying to open
14404 incorrect devices.
14405
14406 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14407 function.
14408 (get_diskname_from_path): Likewise.
14409 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14410 of iterating.
14411
14412 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14413
14414 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14415
14416 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14419 pastthe end.
14420
14421 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14422
14423 * util/grub-install.in: Add missing \.
14424 Reported by: gentoofan
14425
14426 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14427
14428 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14429 (direct_read): Use correct compressed size.
14430 (grub_squash_read_data): Likewise.
14431
14432 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14433
14434 * docs/grub.texi (Platform limitations): New section.
14435 (Platform-specific operations): Likewise.
14436 * docs/grub-dev.texi (Porting): Likewise.
14437
14438 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14439
14440 IEEE1275 disk write support.
14441
14442 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14443 const void *.
14444 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14445 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14446 and seek loginc to ...
14447 (grub_ofdisk_prepare): ... here.
14448 (grub_ofdisk_write): Implement.
14449
14450 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 ARC disk write support.
14453
14454 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14455 (reopen): New argument writable. All users updated.
14456 Handle required access mode.
14457 (grub_arcdisk_write): Implement.
14458 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14459 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14460
14461 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14462
14463 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14464 (read_sblock): Don't attempt to read superblocks outside the disk size.
14465
14466 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14469 first superblock to find the second one when possible.
14470
14471 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 * util/grub-install.in: Fix an ARC bug.
14474 Print a warning if no platform-specific setup is available.
14475
14476 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 Use static allocation rather than scratch pointer in reed_solomon.
14479 It decreases its size significantly and avoids a variable in .text.
14480
14481 * grub-core/lib/reed_solomon.c (scratch): Removed.
14482 (chosenstat): New const or static array.
14483 (sigma): Likewise.
14484 (errpot): Likewise.
14485 (errpos): Likewise.
14486 (sy): Likewise.
14487 (mstat): Likewise.
14488 (errvals): Likewise.
14489 (eqstat): Likewise.
14490 (pol_evaluate): Replace x with log_x argument. All users updated.
14491 (syndroms): Removed.
14492 (gauss_solve): Use statically allocated arrays.
14493 (rs_recover): Likewise.
14494 Calculate syndroms directly.
14495 (decode_block): Use statically allocated arrays.
14496 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14497 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14498
14499 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 Eliminate fixed limit on reed solomon decoder length.
14502
14503 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14504 rather than hardcoding the address.
14505 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14506 no_reed_solomon_length.
14507 Move gate_a20 to no-reed-solomon part.
14508 Don't force a particular size of no reed-solomon part.
14509 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14510 Removed.
14511 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14512 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14513
14514 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/commands/wildcard.c (match_files): Handle filenames
14517 without explicit device.
14518 (wildcard_expand): Don't add explicit device if not already present.
14519 * tests/grub_script_echo1.in: Add a new expansion test.
14520
14521 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14522
14523 Replace single-linked with double-linked lists. It results in more
14524 compact and more efficient code.
14525
14526 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14527 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14528 (grub_list_remove): Moved from here ...
14529 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14530 (grub_prio_list_insert): Set prev.
14531 * include/grub/list.h (grub_list): Add prev. All users updated.
14532
14533 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 Handle newer autotools. Add some missing quotes while on it.
14536
14537 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14538 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14539 (pkgdata_DATA): ... here.
14540 * Makefile.util.def (update-grub_lib): Removed.
14541 * conf/Makefile.common (pkglib_DATA): Removed.
14542 (pkglib_SCRIPTS): Likewise.
14543 (pkgdata_DATA): New variable.
14544 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14545 needed.
14546 Add missing quotes.
14547 Remove unused variable while on it.
14548 * tests/util/grub-shell.in: Likewise.
14549 * util/grub-install.in: Likewise.
14550 * util/grub-mkconfig.in: Likewise.
14551 * util/grub-mknetdir.in: Likewise.
14552 * util/grub-mkrescue.in: Likewise.
14553 * util/grub-mkstandalone.in: Likewise.
14554 * util/grub.d/00_header.in: Likewise.
14555 * util/grub.d/10_hurd.in: Likewise.
14556 * util/grub.d/10_illumos.in: Likewise.
14557 * util/grub.d/10_kfreebsd.in: Likewise.
14558 * util/grub.d/10_linux.in: Likewise.
14559 * util/grub.d/10_netbsd.in: Likewise.
14560 * util/grub.d/10_windows.in: Likewise.
14561 * util/grub.d/20_linux_xen.in: Likewise.
14562 * util/grub.d/30_os-prober.in: Likewise.
14563 * util/update-grub_lib.in: Removed.
14564
14565 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14566
14567 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14568 a workaround for intel problem.
14569
14570 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14571 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14572 2012-01-23 pfsmorigo
14573
14574 * util/grub-install.in: Support dd'in into PreP partition.
14575 * util/grub-probe.c (probe): Support discovering partition type.
14576 (main): Support -t msdos_parttype.
14577
14578 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14581 infinite recursion using counter.
14582 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14583 init to skip it if the magic check fails.
14584 (dec_stream_header): Init s->crc32.
14585
14586 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14587 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14588 2012-01-22 Richard Laager <rlaager@wiktel.com>
14589
14590 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14591 All users updated.
14592 (find_bestub): Determine correct size.
14593 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14594 (scan_disk): Align the size down.
14595 Call check pool before find_bestub to have ashift.
14596
14597 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14600 dprintf in no-malloc zone.
14601
14602 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14603
14604 * configure.ac: Add back in test for limits.h.
14605
14606 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 Support 4K-sector NTFS.
14609
14610 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14611 (grub_ntfs_data): Remove blocksize.
14612 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14613 Remove data argument. All users updated.
14614
14615 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14616
14617 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14618 being in .text to avoid dprel references.
14619 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14620 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14621 (grub_arch_highmemsize): Likewise.
14622 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14623 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14624 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14625
14626 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14627
14628 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14629
14630 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14631 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14632
14633 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14636 GRUB_UTIL.
14637 (grub_set_datetime_cmos): Likewise.
14638
14639 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 Make XZ compression parameters dependent on target and not host CPU.
14642
14643 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14644 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14645
14646 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14649 set but not used variable.
14650
14651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14652
14653 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14654 created when no uuid support is compiled into mkfs.reiser.
14655
14656 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14657
14658 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14659 (utf8_to_macroman): Do the opposite.
14660 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14661
14662 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14663
14664 * configure.ac: Refise build qemu_mips w/o unifont.
14665
14666 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 Eliminate grub_min/grub_max prone to overflow usage.
14669
14670 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14671 (poll_nonroot_hub): Likewise.
14672 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14673 (grub_affs_label): Likewise.
14674 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14675 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14676 (grub_hfs_label): Likewise.
14677 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14678 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14679 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14680 (zap_leaf_array_get): Likewise.
14681 (dnode_get_path): Likewise.
14682 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14683 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14684 * grub-core/script/execute.c (grub_script_break): Likewise.
14685 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14686 grub_max.
14687 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14688 * include/grub/misc.h (grub_min): Removed.
14689 (grub_max): Likewise.
14690
14691 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14692
14693 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14694 direct.inode = 0.
14695
14696 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14697
14698 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14699
14700 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14701
14702 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14703
14704 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14705
14706 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14707 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14708
14709 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14712 rather than a hack for grub_strncasemap.
14713
14714 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14715
14716 Support multiple initrds
14717 Note: part of this was accidently committed in r3739.
14718
14719 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14720 initrd.
14721 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14722 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14723 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14724 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14725 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14726
14727 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14730 disks with unknown size.
14731 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14732
14733 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14734
14735 Remove defines pertaining to arbitrary limits not affecting GRUB
14736 anymore.
14737
14738 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14739 (EXT2_MAX_SYMLINKCNT): Likewise.
14740 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14741 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14742 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14743 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14744 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14745 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14746 (DN_MAX_OBJECT_SHIFT): Likewise.
14747 (DN_MAX_OFFSET_SHIFT): Likewise.
14748 (DN_MAX_OBJECT): Likewise.
14749 (DNODES_PER_LEVEL_SHIFT): Likewise.
14750 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14751 (SPA_MAXBLOCKSIZE): Likewise.
14752 (SPA_BLOCKSIZES): Likewise.
14753 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14754 (MZAP_MAX_BLKSZ): Likewise.
14755
14756 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14757
14758 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14759 handle NULL appropriately.
14760 Remove MIN.
14761
14762 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 Fix efiemu.
14765
14766 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14767 cpu/types.h.
14768 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14769 * configure.ac: Fix efiemu check.
14770
14771 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14772
14773 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14774 grub_probe.
14775 Reported by: adamwill
14776
14777 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14778
14779 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14780
14781 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14782
14783 Fix handling of wide characters in gfxterm.
14784
14785 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14786 (clear_char): Likewise.
14787 (paint_char): Skip code == NULL chars.
14788 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14789
14790 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 * grub-core/normal/charset.c: Move comment to right place.
14793
14794 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14795
14796 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14797 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14798 (grub_affs_mount): Revert the correct version checking.
14799
14800 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 * docs/grub.texi (Unicode): Mention several other unsupported features.
14803
14804 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14805
14806 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14807 case statements as compile-time one.
14808 (direct_read): Prevent spurious warnings.
14809 (grub_squash_read_data): Likewise.
14810
14811 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14812
14813 Various squash4 fixes and LZO and XZ support.
14814
14815 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14816 Add xzembed source files.
14817 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14818 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14819 (grub_squash_inode): New subtype long_dir.
14820 (SQUASH_TYPE_LONG_DIR): New inode type.
14821 (COMPRESSION): New enum.
14822 (XZBUFSIZ): New const.
14823 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14824 (read_chunk): Use data->decompress.
14825 (zlib_decompress): New function.
14826 (lzo_decompress): Likewise.
14827 (xz_decompress): Likewise.
14828 (squash_mount): Set new data fields.
14829 (grub_squash_iterate_dir): Handle long dir.
14830 (squash_unmount): Free xzdec and xzbuf.
14831 (grub_squash_open): Check ino type.
14832 (direct_read): Stylistic fixes. Use data->decompress.
14833 (grub_squash_read_data): Likewise.
14834 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14835 (get_byte): Likewise.
14836 (grub_zlib_disk_read): Removed.
14837 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14838 (GRUB_POSIX_BOOL_DEFINED): New define.
14839 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14840 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14841 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14842 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14843
14844 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14845
14846 Don't override more informative errors.
14847
14848 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14849 * grub-core/font/font.c (open_section): Likewise.
14850 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14851 filename. Don't override errors.
14852 (grub_cmd_openbsd_ramdisk): Don't override errors.
14853 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14854 (grub_cmd_initrd): Likewise.
14855 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14856 (grub_cmd_initrd): Likewise.
14857 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14858 (grub_cmd_linux): Likewise.
14859 (grub_cmd_initrd): Likewise.
14860 (grub_cmd_payload): Likewise.
14861 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14862 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14863 (grub_cmd_module): Likewise.
14864 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14865 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14866 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14867 (grub_cmd_xnu_mkext): Likewise.
14868 (grub_cmd_xnu_ramdisk): Likewise.
14869 (grub_xnu_check_os_bundle_required): Likewise.
14870 (grub_xnu_load_kext_from_dir): Likewise.
14871 (grub_cmd_xnu_kextdir): Likewise.
14872 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14873
14874 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14877 as 1024 in block size field. Found on one of my test images.
14878 Small optimisation while on it.
14879
14880 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14883 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14884 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14885 performance fixes while on it.
14886 (grub_sfs_close): Fix memory leak while on it.
14887 (grub_sfs_label): Convert Latin1 to UTF-8.
14888
14889 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14892 space to avoid overflows.
14893 (grub_hfs_label): Convert from macroman to UTF-8.
14894
14895 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14898
14899 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14900
14901 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14902
14903 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14904
14905 * unicode: Import Unicode 6.0 data.
14906
14907 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14910 outside of range.
14911
14912 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14913
14914 Avoid cutting in the middle of UTF-8 character.
14915
14916 * include/grub/charset.h (grub_getend): New function.
14917 * grub-core/script/function.c (grub_script_function_find): Use
14918 grub_getend.
14919 * grub-core/normal/completion.c (add_completion): Likewise.
14920
14921 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14922
14923 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14924 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14925 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14926 (GRUB_UNICODE_TAG_END): Likewise.
14927 (GRUB_UNICODE_LAST_VALID): Likewise.
14928
14929 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14930
14931 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14932 len and make it smaller. All users updated.
14933 * util/import_unicode.py: Put length and not end character.
14934 Check length.
14935
14936 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14937
14938 Make better Unicode-compliant and unify some UTF-8 code pathes.
14939
14940 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14941 valid character.
14942 (grub_is_valid_utf8): Use grub_utf8_process.
14943 Check resulting code range.
14944 (grub_utf8_to_ucs4): Use grub_utf8_process.
14945 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14946 valid character.
14947
14948 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14951
14952 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 * docs/grub.texi (Filesystems): Mention AFS.
14955
14956 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * docs/grub.texi (Filesystems): Clarify restrictions.
14959 (Regexp): Mention non-Unicode regexp behaviour.
14960 (Other): Mention non-Unicode matching behaviour.
14961
14962 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 Make HFS implementation use MacRoman.
14965
14966 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14967 (macroman): New const array.
14968 (macroman_to_utf8): New function.
14969 (utf8_to_macroman): Likewise.
14970 (grub_hfs_find_dir): Use utf8_to_macroman.
14971 (grub_hfs_dir): Use macroman_to_utf8.
14972 Set case_insensitive.
14973
14974 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14975
14976 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14977
14978 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14979
14980 Integrate hints into autogeneration scripts.
14981
14982 * docs/grub.texi (Filesystems): Add a hostdisk example.
14983 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14984 (grub-probe): Add ofpath.
14985 * gentpl.py: Remove group nosparc64.
14986 * grub-core/commands/search.c (cache_entry): New struct.
14987 (cache): New var.
14988 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14989 * grub-core/commands/search_wrap.c (options): Add platform-specific
14990 hint options.
14991 (grub_cmd_search): Handle platform-specific hints.
14992 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14993 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14994 (grub_util_biosdisk_data): Likewise.
14995 (grub_util_biosdisk_open): Set device_map.
14996 (read_device_map): Handle "" as indication of no map.
14997 Set device_map.
14998 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14999 (grub_util_biosdisk_get_compatibility_hint): New function.
15000 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15001 * include/grub/emu/hostdisk.h
15002 (grub_util_biosdisk_get_compatibility_hint): New proto.
15003 * util/grub-install.in: Don't call grub-mkdevicemap.
15004 Add platform-specific hint to load.cfg.
15005 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15006 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15007 hints. Set root preliminary to compatibility hint, not to OS name.
15008 * util/grub-probe.c (PRINT_*): Add hints.
15009 (print): Make static.
15010 (escape_of_path): New function.
15011 (guess_bios_drive): Likewise.
15012 (guess_efi_drive): Likewise.
15013 (guess_baremetal_drive): Likewise.
15014 (print_full_name): Likewise.
15015 (probe): Handle hints.
15016 (main): Likewise.
15017 * util/ieee1275/devicemap.c: Removed.
15018 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15019 updated.
15020 (grub_util_devname_to_ofpath): Return NULL on failure.
15021
15022 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15023 resource leak.
15024 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15025
15026 * po/POTFILES.in: Regenerated.
15027
15028 Allow purely long options
15029
15030 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15031 (SHORT_ARG_USAGE): Likewise.
15032 (grub_arg_show_help): Compare opt with help_options.
15033 (parse_option): Receive opt as argument. If makes big simplificatons.
15034 All users updated
15035
15036 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15039 Restructure to avoid warning.
15040
15041 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 * util/grub-install.in: Account for possible escaped comma in device
15044 name.
15045
15046 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15049 channel.
15050
15051 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15052
15053 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15054 allocation and zero-setting.
15055 (grub_ieee1275_get_devname): Check that alias is complete.
15056
15057 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15060 unaligned segments.
15061
15062 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15063
15064 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15065 prefix.
15066 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15067 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15068 Add ieee1275 prefix.
15069
15070 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * docs/grub.texi (Filesystems): Update.
15073
15074 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 Support odc, newc and bigendian cpio formats.
15077
15078 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15079 * grub-core/Makefile.core.def (newc): New module.
15080 (odc): Likewise.
15081 (cpio_be): Likewise.
15082 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15083 (MAGIC): Likewise.
15084 (MAGIC2): Likewise.
15085 (head) [MODE_ODC]: Adapt for the format.
15086 (head) [MODE_NEWC]: Likewise.
15087 (head) [!MODE_*]: Write fields of interest as arrays.
15088 (MAGIC_USTAR): Removed.
15089 (read_number) [MODE_NEWC]: Change to hex.
15090 (read_number) [!MODE_*]: Parse binary arrays.
15091 (grub_cpio_find_file): Factor out the code for better structure and
15092 always use read_number.
15093 (grub_cpio_mount): Use MAGIC and MAGIC2.
15094 (grub_cpio_dir): Exit on first hook non-0 return.
15095 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15096 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15097 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15098 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15099 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15100 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15101 * grub-core/fs/newc.c: New file.
15102 * grub-core/fs/odc.c: Likewise.
15103 * grub-core/fs/cpio_be.c: Likewise.
15104
15105 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15106
15107 Fix handling of tar numbers occupying the whole field.
15108
15109 * grub-core/fs/cpio.c (read_number): New function.
15110 (grub_cpio_find_file): Use read_number instead of strtoull.
15111
15112 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15115 occupying the whole field size.
15116
15117 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15118
15119 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15120
15121 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15124
15125 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15126
15127 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15128 TARGET_IMG_LDFLAGS.
15129
15130 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15131
15132 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15133 (mountinfo_entry): Increase the field size to take escaping into
15134 account.
15135 (find_root_device_from_libzfs): Add one byte to size of strings for
15136 security.
15137
15138 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15141 an assert.
15142 * util/grub-setup.c (setup): Likewise.
15143
15144 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15145
15146 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15147 _LzmaDecodeA.
15148
15149 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 * docs/grub.texi (Internationalisation): New section.
15152
15153 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * docs/grub.texi (Loopback booting): New section.
15156
15157 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15158
15159 * util/grub-mkstandalone.in: Fix minor typo errors.
15160
15161 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15162
15163 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15164
15165 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15166 net/icmp.c and net/icmp6.c.
15167 (http): New module.
15168 (priority_queue): Likewise.
15169 * grub-core/io/bufio.c: Rewritten.
15170 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15171 TYPE_WITH_CONFIGFILE_OPTION.
15172 (legacy_commands): Add bootp and dhcp.
15173 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15174 (grub_legacy_parse): Likewise.
15175 * grub-core/lib/priority_queue.c: New file.
15176 * grub-core/net/arp.c: Add missing license header.
15177 (arp_find_entry): Removed.
15178 (arp_find_entry): Likewise.
15179 (grub_net_arp_resolve): Rename to ...
15180 (grub_net_arp_send_request): ...this.
15181 (grub_net_arp_receive): New card argument.
15182 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15183 Set router and DNS server.
15184 (grub_net_configure_by_dhcp_ack): Handle routing information.
15185 (grub_cmd_bootp): Set checksum.
15186 (grub_bootp_init): Remove net_dhcp.
15187 * grub-core/net/dns.c: New file.
15188 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15189 completion.
15190 (get_card_packet): Handle allocation.
15191 (grub_efinet_findcards): Set mtu.
15192 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15193 (get_card_packet): Handle allocation.
15194 (emucard): Set mtu.
15195 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15196 (GRUB_MOD_INIT): Set mtu.
15197 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15198 mtu.
15199 (get_card_packet): Handle allocation.
15200 (grub_ofnet_findcards): Set mtu.
15201 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15202 assert.
15203 (grub_net_recv_ethernet_packet): Handle IPv6.
15204 * grub-core/net/http.c: New file.
15205 * grub-core/net/icmp.c: Likewise.
15206 * grub-core/net/icmp6.c: Likewise.
15207 * grub-core/net/ip.c (ip6addr): New type.
15208 (ip6hdr): Likewise.
15209 (reassemble): Likewise.
15210 (cmp): New function.
15211 (reassembles): New variable.
15212 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15213 (id): New variable.
15214 (send_fragmented): New function.
15215 (grub_net_send_ip_packet): Rename to ...
15216 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15217 Handle non-UDP.
15218 (grub_net_recv_ip_packets): Rename to ...
15219 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15220 (free_rsm): New function.
15221 (free_old_fragments): Likewise.
15222 (grub_net_recv_ip4_packets): New function.
15223 (grub_net_send_ip6_packet): Likewise.
15224 (grub_net_send_ip_packet): Likewise.
15225 (grub_net_recv_ip6_packets): Likewise.
15226 (grub_net_recv_ip_packets): Likewise.
15227 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15228 (LINK_LAYER_CACHE_SIZE): New const.
15229 (link_layer_find_entry): New function.
15230 (grub_net_link_layer_add_address): Likewise.
15231 (grub_net_link_layer_resolve_check): Likewise.
15232 (grub_net_link_layer_resolve): Likewise.
15233 (grub_net_ipv6_get_slaac): Likewise.
15234 (grub_net_ipv6_get_link_local): Likewise.
15235 (grub_cmd_ipv6_autoconf): Likewise.
15236 (parse_ip): Handle one number representation.
15237 (parse_ip6): New functoion.
15238 (match_net): Handle IPv6.
15239 (grub_net_resolve_address): Handle IPv6 and DNS.
15240 (grub_net_resolve_net_address): Handle IPv6.
15241 (route_cmp): New function.
15242 (grub_net_route_address): Find best route.
15243 (grub_net_addr_to_str): Handle IPv6.
15244 (grub_net_addr_cmp): New function.
15245 (grub_net_add_addr): Register local route.
15246 (print_net_address): Handle net address.
15247 (grub_net_poll_cards): Retransmit TCP.
15248 (grub_net_poll_cards_idle_real): Likewise.
15249 (have_ahead): New function.
15250 (grub_net_seek_real): Use underlying seek.
15251 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15252 * grub-core/net/tcp.c: New file.
15253 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15254 (cmp): New function.
15255 (ack): Likewise.
15256 (tftp_receive): Handle unordered input.
15257 (destroy_pq): New function.
15258 (tftp_close): Close pq.
15259 * grub-core/net/udp.c: Put missing license header.
15260 (grub_net_udp_socket): New function.
15261 (udp_socket_register): Likewise.
15262 (grub_net_udp_close): Likewise.
15263 (grub_net_recv_udp_packet): Check checksum.
15264 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15265 * include/grub/misc.h (grub_memchr): New function.
15266 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15267 (grub_net_card_driver): Return buf in recv.
15268 (grub_net_slaac_mac_list): New struct.
15269 (grub_network_level_protocol_id): Add ipv6.
15270 (grub_net_network_level_addr): Likewise.
15271 (grub_net_network_level_net_addr): Likewise.
15272 (grub_net_app_protocol): Add seek.
15273 (grub_net_socket): Removed.
15274 (grub_net_sockets): Likewise.
15275 (grub_net_socket_register): Likewise.
15276 (grub_net_socket_unregister): Likewise.
15277 (FOR_NET_SOCKETS): Likewise.
15278 (grub_net_add_addr): Add const.
15279 (GRUB_NET_BOOTP_*): New enum.
15280 (grub_net_addr_cmp): New proto.
15281 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15282 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15283 (grub_net_hwaddr_to_str): NEw proto.
15284 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15285 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15286 (grub_dns_init): New proto.
15287 (grub_dns_fini): Likewise.
15288 (grub_net_tcp_retransmit): Likewise.
15289 (grub_net_link_layer_add_address): Likewise.
15290 (grub_net_link_layer_resolve_check): Likewise.
15291 (grub_net_link_layer_resolve): Likewise.
15292 (grub_net_dns_lookup): Likewise.
15293 (grub_net_add_dns_server): Likewise.
15294 (grub_net_remove_dns_server): Likewise.
15295 (GRUB_NET_TRIES): New const.
15296 (GRUB_NET_INTERVAL): Likewise.
15297 * include/grub/net/arp.h: Mostly rewritten.
15298 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15299 * include/grub/net/ip.h: Mostly rewritten.
15300 * include/grub/net/netbuff.h: Indent.
15301 * include/grub/net/tcp.h: New file.
15302 * include/grub/net/udp.h: Mostly rewritten.
15303 * include/grub/priority_queue.h: New file.
15304 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15305 (grub_swap_bytes64_compile_time): Likewise.
15306 (grub_cpu_to_be16_compile_time): Likewise.
15307 (grub_cpu_to_be32_compile_time): Likewise.
15308 (grub_cpu_to_be64_compile_time): Likewise.
15309 (grub_be_to_cpu64_compile_time): Likewise.
15310
15311 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15314 UINT_TO_PTR with cast.
15315
15316 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15317
15318 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15319 don't use them.
15320
15321 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15322
15323 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15324 already there.
15325
15326 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15329 confusing ipxe.
15330
15331 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15332
15333 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15334 Add missing const attribute.
15335 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15336 Likewise.
15337 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15338 Likewise.
15339
15340 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15343 misaligned access.
15344 (serpent_setkey): Likewise.
15345 (serpent_encrypt_internal): Likewise.
15346 (serpent_decrypt_internal): Likewise.
15347 (serpent_encrypt): Don't put an alignment-increasing cast.
15348 (serpent_decrypt): Likewise.
15349 (serpent_test): Likewise.
15350
15351 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15354
15355 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15358
15359 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15360 grub_addr_t casts.
15361 (PTR_TO_UINT64): Likewise.
15362 (PTR_TO_UINT32): Likewise.
15363
15364 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15365
15366 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15367 because of stack.
15368 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15369 limit.
15370
15371 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15372
15373 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15374 text_width > available width a bit more gracefully.
15375
15376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15379 current address calculation.
15380
15381 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15384 stack.
15385 (encode_block): Likewise.
15386
15387 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15390 certainety.
15391
15392 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15395 non-RS part to avoid RS messing with GDT.
15396 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15397 Increase to suit in realmode routines.
15398
15399 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15400
15401 * grub-core/kern/i386/realmode.S: Increase alignment.
15402 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15403
15404 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15407 be deterministic.
15408 (syndroms): Compute 0 syndrom.
15409 (rs_recover): Use 0 syndrom.
15410
15411 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15414
15415 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15418 brackets.
15419
15420 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15423 account.
15424 (get_top_pad): Likewise.
15425 (get_right_pad): Likewise.
15426 (get_bottom_pad): Likewise.
15427
15428 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15431
15432 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15435 attribute as the structure isn't guaranteed to be properly aligned.
15436 (grub_efi_pci_device_path): Likewise.
15437 (grub_efi_pccard_device_path): Likewise.
15438 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15439 specify the size of `memory_type'.
15440 (grub_efi_vendor_device_path): Likewise.
15441 (grub_efi_controller_device_path): Likewise.
15442 (grub_efi_acpi_device_path): Likewise.
15443 (grub_efi_expanded_acpi_device_path): Likewise.
15444 (grub_efi_atapi_device_path): Likewise.
15445 (grub_efi_scsi_device_path): Likewise.
15446 (grub_efi_fibre_channel_device_path): Likewise.
15447 (grub_efi_1394_device_path): Likewise.
15448 (grub_efi_usb_device_path): Likewise.
15449 (grub_efi_usb_class_device_path): Likewise.
15450 (grub_efi_i2o_device_path): Likewise.
15451 (grub_efi_mac_address_device_path): Likewise.
15452 (grub_efi_ipv4_device_path): Likewise.
15453 (grub_efi_ipv6_device_path): Likewise.
15454 (grub_efi_infiniband_device_path): Likewise.
15455 (grub_efi_uart_device_path): Likewise.
15456 (grub_efi_vendor_messaging_device_path): Likewise.
15457 (grub_efi_hard_drive_device_path): Likewise.
15458 (grub_efi_cdrom_device_path): Likewise.
15459 (grub_efi_vendor_media_device_path): Likewise.
15460 (grub_efi_file_path_device_path): Likewise.
15461 (grub_efi_protocol_device_path): Likewise.
15462 (grub_efi_piwg_device_path): Likewise.
15463 (grub_efi_bios_device_path): Likewise.
15464
15465 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15468 (grub_ucs4_to_utf8_alloc): Likewise.
15469 (grub_ucs4_to_utf8): Likewise.
15470 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15471 (grub_ucs4_to_utf8_alloc): Likewise.
15472
15473 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 AFFS never uses unicode.
15476
15477 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15478 (grub_latin1_to_utf8): New inline function.
15479 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15480
15481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15484 overflow.
15485
15486 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15489 (grub_squash_dirent_header): Likewise.
15490 (read_chunk): Don't double swap.
15491 (grub_squash_iterate_dir): Fix swap sizes.
15492
15493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15496
15497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15498
15499 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15500 (grub_hfs_iterate_dir): Likewise.
15501
15502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 Fix video on platforms where unaligned access is forbidden.
15505 Make several optimisations while on it.
15506
15507 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15508 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15509 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15510 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15511 Disable.
15512 (grub_video_fbblit_replace_16bit_1bit):
15513 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15514 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15515 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15516 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15517 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15518 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15519 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15520 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15521 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15522 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15523 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15524 (grub_video_fbblit_replace_index_RGB888): Likewise.
15525 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15526 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15527 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15528 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15529 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15530 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15531 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15532 Disable.
15533 (grub_video_fbblit_blend_XXX565_1bit):
15534 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15535 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15536 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15537 void *.
15538 * grub-core/video/fb/video_fb.c (common_blitter)
15539 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15540 (grub_video_fb_create_render_target_from_pointer)
15541 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15542 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15543 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15544 definition.
15545 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15546
15547 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15548
15549 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15550 HH22 and HM10 relocations.
15551
15552 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15555
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15559 allocation succeeded.
15560
15561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15564 argument a u8 pointer. All users updated.
15565 Handle unaligned buffers.
15566
15567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15570 add_part to workaround compiler bug.
15571
15572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15573
15574 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15575
15576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15579 Reserve alignment invariants.
15580 (grub_multiboot_load): Likewise.
15581 (retrieve_video_parameters): Likewise.
15582 (grub_multiboot_make_mbi): Likewise.
15583
15584 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15585
15586 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15587 incorrect pointer.
15588
15589 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15590
15591 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15592 (grub_pata_pio_write): Likewise.
15593
15594 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 Add noreturn attributes and remove unreachable code.
15597
15598 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15599 code.
15600 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15601 code. Mark as noreturn.
15602 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15603 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15604 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15605 unreachable code.
15606 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15607 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15608 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15609 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15610 * include/grub/kernel.h (grub_main): Mark as noreturn.
15611 * include/grub/reader.h (grub_rescue_run): Likewise.
15612
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15616 redundant declaration.
15617
15618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15621 redundant declaration.
15622 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15623
15624 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15625
15626 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15627 to ensure alignment.
15628 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15629 alignment. Ensure tmp alignment.
15630 (grub_cmd_hdparm): Ensure buf alignment.
15631 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15632 to ensure alignment.
15633 (grub_ata_dumpinfo): Ensure text alignment.
15634 (grub_atapi_identify): Preserve alignment invariant.
15635 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15636
15637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15640 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15641 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15642 * include/grub/misc.h (grub_reboot)
15643 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15644 (grub_halt) [__mips__]: Likewise.
15645
15646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15647
15648 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15649 Remove redundant declaration.
15650 (grub_mmap_get_post64): Likewise.
15651 (grub_mmap_get_upper): Likewise.
15652 (grub_mmap_get_lower): Likewise.
15653
15654 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15655
15656 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15657 uint32_t * to ensure alignment.
15658 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15659
15660 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15663 uint16_t * to ensure alignment.
15664 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15665 alignment.
15666
15667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15670 to ensure alignment.
15671 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15672
15673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15676 Handle unaligned pointers.
15677 (u32at): Likewise.
15678 (u64at): Likewise.
15679 (fixup): Use byte access instead of v16at.
15680 (find_attr): Fix imporper usage of v32at.
15681 (read_data): Likewise.
15682 (list_file): Handle byte-swapping and unaligned strings.
15683 (grub_ntfs_label): Likewise.
15684
15685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15686
15687 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15688 as it's not necessarily aligned.
15689
15690 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15691
15692 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15693 redundant declaration.
15694 (grub_serial_init): Likewise.
15695 (grub_terminfo_init): Likewise.
15696
15697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15700 function.
15701 (ZAP_HASH_IDX): Likewise.
15702 (ZAP_LEAF_HASH_SHIFT): Likewise.
15703 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15704 (LEAF_HASH): Likewise.
15705 (ZAP_LEAF_NUMCHUNKS): Likewise.
15706 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15707 alignment invariants. Return pointer. All users updated.
15708 (ZAP_LEAF_ENTRY): Make into inline function.
15709 (NBBY): Removed.
15710 (xor): LIkewise.
15711 (xor_out): Use grub_crypto_xor.
15712 (dnode_get_path): Use grub_get_unaligned.
15713 (nvlist_find_value): Likewise.
15714 (grub_zfs_nvlist_lookup_uint64): Likewise.
15715 (grub_zfs_nvlist_lookup_string): Likewise.
15716 (get_nvlist_size): Likewise.
15717 (grub_zfs_open): Likewise.
15718 (fill_fs_info): Likewise.
15719 (grub_zfs_dir): Likewise.
15720 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15721 alignment invariants.
15722 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15723 necessarily aligned.
15724
15725 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15726
15727 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15728
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15732 arithmetic to conserve alignment invariants.
15733
15734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15737 redundant declaration.
15738 (grub_efiemu_mm_obtain_request): Likewise.
15739 (grub_efiemu_prepare): Likewise.
15740
15741 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15742
15743 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15744 to match types.
15745
15746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15749 case of aunaligned recptr.
15750 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15751 alignment.
15752 (grub_hfsplus_btree_search): Handle unaligned index.
15753
15754 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15757 to get freetag and skip.
15758
15759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15760
15761 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15762 array.
15763 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15764 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15765
15766 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15767
15768 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15769 name for checksum and fix allocation algorithm.
15770
15771 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772
15773 * include/grub/types.h (grub_properly_aligned_t): New type.
15774 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15775 (grub_get_unaligned16): Add explicit casts.
15776 (grub_get_unaligned32): Likewise.
15777 (grub_get_unaligned64): Likewise.
15778 (grub_set_unaligned16): New function.
15779 (grub_set_unaligned32): Likewise.
15780
15781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15782
15783 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15784
15785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15788 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15789 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15790
15791 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15792
15793 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15794 conditionals.
15795
15796 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15797
15798 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15799 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15800
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15802
15803 Unify and improve RAID and crypto xor.
15804
15805 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15806 changed to grub_crypto_xor
15807 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15808 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15809 Use bigger types when possible.
15810
15811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * grub-core/disk/raid.c (scan_devices): Fix condition.
15814
15815 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15816
15817 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15818 Make name a const ptr.
15819
15820 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15821
15822 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15823 first argument a const pointer.
15824 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15825 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15826 proto.
15827 (grub_children_iterate): Likewise.
15828 (grub_machine_mmap_iterate): Remove redundant declaration.
15829
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15833 (grub_cmd_acpi) [!x86]: Disable EBDA.
15834
15835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15836
15837 Enable UTF8 in gnulib regexp.
15838
15839 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15840 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15841 (isupper): Use grub_isupper.
15842 (isascii): New inline function.
15843 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15844 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15845 * grub-core/normal/charset.c (grub_utf8_process): New function.
15846 (grub_utf8_to_utf16): Use grub_utf8_process.
15847 (grub_encode_utf8_character): New function.
15848 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15849 * include/grub/charset.h (grub_utf8_process): New declaration.
15850 (grub_encode_utf8_character): Likewise.
15851 * include/grub/misc.h (grub_islower): New inline function.
15852 (grub_isupper): Likewise.
15853 (grub_strchrsub): Moved down to fix the definitions.
15854
15855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15856
15857 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15858 specification.
15859
15860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * include/grub/loader.h (grub_loader_register_preboot_hook):
15863 Use struct preboot * and not void * for handle. All users updated.
15864 (grub_loader_unregister_preboot_hook): Likewise.
15865
15866 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15869 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15870 UTF-16-BE. All users updated.
15871 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15872 (grub_hfsplus_iterate_dir): Likewise.
15873 (grub_hfsplus_label): Likewise.
15874
15875 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15878
15879 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15880
15881 Add missing const qualifiers.
15882
15883 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15884 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15885 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15886 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15887 (grub_lvm_check_flag): Likewise.
15888 * grub-core/efiemu/i386/coredetect.c
15889 (grub_efiemu_get_default_core_name): Likewise
15890 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15891 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15892 * grub-core/fs/ntfs.c (fixup): Likewise.
15893 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15894 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15895 (fzap_lookup): Likewise.
15896 (zap_lookup): Likewise.
15897 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15898 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15899 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15900 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15901 (grub_freebsd_add_meta_module): Likewise.
15902 (grub_cmd_freebsd_module): Likewise.
15903 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15904 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15905 (grub_xnu_writetree_get_size): Likewise.
15906 (grub_xnu_writetree_toheap_real): Likewise.
15907 (grub_xnu_find_key): Likewise.
15908 (grub_xnu_create_key): Likewise.
15909 (grub_xnu_create_value): Likewise.
15910 (grub_xnu_register_memory): Likewise.
15911 (grub_xnu_check_os_bundle_required): Likewise.
15912 (grub_xnu_scan_dir_for_kexts): Likewise.
15913 (grub_xnu_load_kext_from_dir): Likewise.
15914 * grub-core/normal/color.c (color_list): Likewise.
15915 * grub-core/normal/completion.c (current_word): Likewise.
15916 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15917 * grub-core/term/serial.c (grub_serial_find): Likewise.
15918 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15919 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15920 Likewise.
15921 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15922 (grub_freebsd_add_meta_module): Likewise.
15923 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15924 * include/grub/net.h (grub_net_card_driver): Likewise.
15925 (grub_net_card): Likewise.
15926 (grub_net_app_protocol): Likewise.
15927 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15928 * include/grub/serial.h (grub_serial_find): Likewise.
15929 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15930 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15931 (grub_xnu_create_value): Likewise.
15932 (grub_xnu_find_key): Likewise.
15933 (grub_xnu_scan_dir_for_kexts): Likewise.
15934 (grub_xnu_load_kext_from_dir): Likewise.
15935
15936 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15937 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15938 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15939 Moved from here ...
15940 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15941
15942 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15943
15944 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15945
15946 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15949 (read_device): Fix size calculation.
15950
15951 2011-11-25 Robert Millan <rmh@gnu.org>
15952
15953 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15954 (find_root_device_from_libzfs): Add zpool output parser to be used
15955 as fallback when libzfs isn't available.
15956
15957 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15958
15959 * po/Makefile.in.in: Add missing escape-continuation.
15960
15961 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15962
15963 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15964
15965 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15966
15967 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15968
15969 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15970
15971 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15972
15973 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15974
15975 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15976
15977 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * grub-core/lib/adler32.c: Add missing license specification.
15980 * grub-core/lib/crc64.c: Likewise.
15981 * grub-core/loader/i386/pc/plan9.c: Likewise.
15982 * grub-core/partmap/plan.c: Likewise.
15983
15984 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15985
15986 Add facility to debug GRUB with gdb under qemu.
15987
15988 * grub-core/gdb_grub.in: New file.
15989 * grub-core/gmodule.pl.in: Likewise.
15990 * grub-core/Makefile.core.def (gmodule.pl): New script.
15991 (gdb_grub): Likewise.
15992
15993 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15994
15995 * util/grub-mount.c (argp_parser): Accept relative pathes.
15996 * util/grub-fstest.c (argp_parser): Likewise.
15997
15998 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15999
16000 Plan9 support.
16001
16002 * Makefile.util.def (libgrubmods): Add
16003 grub-core/partmap/plan.c.
16004 * docs/grub.texi: Notice Plan9 support.
16005 * grub-core/Makefile.core.def (plan9): New module.
16006 (part_plan): Likewise.
16007 * grub-core/loader/i386/pc/plan9.c: New file.
16008 * grub-core/partmap/plan.c: Likewise.
16009 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16010 define.
16011 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16012 * include/grub/mm.h (grub_extend_alloc): New inline function.
16013
16014 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 Make Reed-Solomon faster by using power of generator representation of
16017 GF(256)*.
16018
16019 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16020 (gf_double_t): Likewise.
16021 (gf_invert): Removed.
16022 (gf_powx): New array.
16023 (gf_powx_inv): Likewise.
16024 (scratch): Move higher.
16025 (gf_reduce): Removed.
16026 (gf_mul): Use powx.
16027 (gf_invert): Likewise.
16028 (init_inverts): Replaced with ...
16029 (init_powx): ...this. All users updated.
16030 (pol_evaluate): Replace multiplications with additions.
16031 (rs_encode): Likewise.
16032 (gauss_eliminate): Call gf_invert.
16033 (grub_reed_solomon_add_redundancy): Call init_powx.
16034 (grub_reed_solomon_recover): Call init_powx unconditionally.
16035
16036 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16039
16040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16043 disk->partiton for safety.
16044
16045 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16048 Fix a memory leak.
16049 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16050
16051 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16054
16055 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16058
16059 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16060
16061 Fix spaces handling in proc/self/mountinfo.
16062
16063 * util/getroot.c (unescape): New function.
16064 (grub_find_root_device_from_mountinfo): Use unescape.
16065
16066 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 Support ZFS embedding.
16069
16070 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16071 (grub_zfs_fs): Register grub_zfs_embed.
16072
16073 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 Fix MIPS compilation.
16076
16077 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16078 * include/grub/offsets.h: Rename decompressor fields from
16079 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16080 * util/grub-mkimage.c (image_targets): Use new names.
16081
16082 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16083
16084 Defer multiboot device parsing until we're in compressed part.
16085
16086 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16087 bsd_part. setdevice has fallen into disuse.
16088 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16089 (bsd_part): Likewise.
16090 (boot_dev): New variable.
16091 (multiboot_trampoline): Don't parse multiboot device.
16092 Pass multiboot device in %edx.
16093 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16094 grub_boot_device.
16095 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16096 Likewise.
16097 * grub-core/kern/i386/pc/startup.S: Save edx.
16098 (grub_boot_drive): Removed.
16099 (grub_install_dos_part): Likewise.
16100 (grub_install_bsd_part): Likewise.
16101 (grub_boot_device): New variable.
16102 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16103 (grub_install_bsd_part): Likewise.
16104 (grub_boot_drive): Likewise.
16105 (grub_boot_device): New variable.
16106 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16107 Removed.
16108 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16109 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16110 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16111 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16112 * util/grub-install.in: Remove redundant condition.
16113
16114 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16115
16116 Fix bug introduced by previous commit.
16117
16118 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16119
16120 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 Use decompressors framework on i386-pc. It increases core size
16123 by 46 bytes but improves compatibility and maintainability.
16124
16125 * grub-core/Makefile.core.def (lzma_decompress): New image.
16126 (kernel): Add i386_pc_ldflags.
16127 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16128 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16129 to real_to_prot, prot_to_real and device info.
16130 * include/grub/offsets.h: Renamed decompressor offsets.
16131 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16132 (image_target_desc): Remove raw_size and rename decompressor fields.
16133 (compress_kernel): Handle lzma.
16134 (generate_image): Handle decompressors on i386-pc.
16135
16136 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 * configure.ac: Add -fno-asynchronous-unwind-tables.
16139
16140 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 Move assembly code to C by using intwrap. It increases core size
16143 by 88 bytes but improves compatibility and maintainability.
16144
16145 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16146 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16147 ... here. Translated to C.
16148 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16149 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16150 ... here. Translated to C.
16151 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16152 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16153 ... here. Translated to C.
16154 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16155 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16156 ... here. Translated to C.
16157 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16158 * grub-core/term/i386/pc/console.c (grub_console_cls):
16159 ... here. Translated to C.
16160 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16161 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16162 ... here. Translated to C.
16163 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16164 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16165 Translated to C.
16166 * grub-core/term/i386/pc/console.c (int10_9): New function.
16167 (grub_console_putchar): Likewise.
16168 * include/grub/i386/pc/console.h: Removed the not anymore shared
16169 functions.
16170
16171 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 Move grub_chainloader_real_boot out of the kernel.
16174
16175 * grub-core/Makefile.am: Remove machine/loader.h.
16176 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16177 Removed.
16178 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16179 variable.
16180 (grub_relocator16_keep_a20_enabled): Likewise.
16181 (grub_relocator16_boot): Fill new variables.
16182 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16183 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16184 relocator.
16185 (grub_chainloader_unload): Likewise.
16186 (grub_chainloader_cmd): Likewise.
16187 * include/grub/i386/pc/loader.h: Removed.
16188 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16189 and esi. All initialisers updated.
16190
16191 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16192 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16193
16194 * Makefile.util.def (grub-mount): New util.
16195 * .bzrignore: Add grub-mount.
16196 * configure.ac: Check for fuse and enable grub-mount if available.
16197 * docs/man/grub-mount.h2m: New file.
16198 * util/grub-mount.c: Likewise.
16199
16200 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16201
16202 * grub-core/commands/efi/fixvideo.c: Gettextize.
16203 * grub-core/commands/hashsum.c: Likewise.
16204 * grub-core/commands/i386/cmostest.c: Likewise.
16205 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16206 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16207 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16208 * grub-core/commands/lsmmap.c: Likewise.
16209 * grub-core/commands/menuentry.c: Likewise.
16210 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16211 * grub-core/commands/setpci.c: Likewise.
16212 * grub-core/loader/i386/bsd.c: Likewise.
16213 * grub-core/loader/i386/linux.c: Likewise.
16214 * util/getroot.c: Likewise.
16215 * util/grub-editenv.c: Likewise.
16216 * util/grub-fstest.c: Likewise.
16217 * util/grub-mkfont.c: Likewise.
16218 * util/grub-mkimage.c: Likewise.
16219 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16220 * util/grub-pe2elf.c: Likewise.
16221 * util/grub-probe.c: Likewise.
16222 * util/grub-setup.c: Likewise.
16223 * util/ieee1275/ofpath.c: Likewise.
16224 * util/misc.c: Likewise.
16225 * util/raid.c: Likewise.
16226
16227 2011-11-11 Robert Millan <rmh@gnu.org>
16228
16229 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16230 __attribute__((unused)) from `os_dev', which *is* being used.
16231
16232 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16235 forgotten define.
16236 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16237 GRUB_IA64_DL_GOT_ALIGN.
16238 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16239 GRUB_IA64_DL_TRAMP_ALIGN.
16240
16241 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 Replace grub_fatal with normal errors in i386 linux loader.
16244
16245 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16246 (allocate_pages): Check find_efi_mmap_size return value.
16247 (grub_e820_add_region): Return error.
16248 (grub_linux_boot): Check mmap return value.
16249
16250 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16251
16252 * grub-core/commands/acpihalt.c: Gettextized.
16253 * grub-core/commands/cacheinfo.c: Likewise.
16254 * grub-core/commands/cmp.c: Likewise.
16255 * grub-core/commands/efi/loadbios.c: Likewise.
16256 * grub-core/commands/gptsync.c: Likewise.
16257 * grub-core/commands/ieee1275/suspend.c: Likewise.
16258 * grub-core/commands/legacycfg.c: Likewise.
16259 * grub-core/commands/memrw.c: Likewise.
16260 * grub-core/commands/minicmd.c: Likewise.
16261 * grub-core/commands/parttool.c: Likewise.
16262 * grub-core/commands/time.c: Likewise.
16263 * grub-core/commands/videoinfo.c: Likewise.
16264 * grub-core/disk/geli.c: Likewise.
16265 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16266 * grub-core/disk/luks.c: Likewise.
16267 * grub-core/disk/lvm.c: Likewise.
16268 * grub-core/font/font_cmd.c: Likewise.
16269 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16270 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16271 * grub-core/gfxmenu/view.c: Likewise.
16272 * grub-core/kern/emu/hostdisk.c: Likewise.
16273 * grub-core/kern/emu/main.c: Likewise.
16274 * grub-core/kern/emu/misc.c: Likewise.
16275 * grub-core/kern/emu/mm.c: Likewise.
16276 * grub-core/kern/mips/arc/init.c: Likewise.
16277 * grub-core/kern/mips/loongson/init.c: Likewise.
16278 * grub-core/kern/partition.c: Likewise.
16279 * grub-core/lib/i386/halt.c: Likewise.
16280 * grub-core/lib/mips/arc/reboot.c: Likewise.
16281 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16282 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16283 * grub-core/loader/i386/xnu.c: Likewise.
16284 * grub-core/loader/multiboot.c: Likewise.
16285 * grub-core/net/bootp.c: Likewise.
16286 * grub-core/net/net.c: Likewise.
16287 * grub-core/normal/term.c: Likewise.
16288 * grub-core/partmap/bsdlabel.c: Likewise.
16289 * grub-core/parttool/msdospart.c: Likewise.
16290 * grub-core/term/gfxterm.c: Likewise.
16291 * grub-core/term/terminfo.c: Likewise.
16292 * grub-core/video/i386/pc/vbe.c: Likewise.
16293 * util/grub-menulst2cfg.c: Likewise.
16294 * util/grub-mkdevicemap.c: Likewise.
16295 * util/grub-mklayout.c: Likewise.
16296 * util/grub-mkrelpath.c: Likewise.
16297 * util/grub-script-check.c: Likewise.
16298 * util/ieee1275/grub-ofpathname.c: Likewise.
16299 * util/resolve.c: Likewise.
16300
16301 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 Support %1$d syntax.
16304
16305 * tests/printf_unit_test.c: New file.
16306 * Makefile.util.def (printf_test): New test.
16307 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16308
16309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16312 fix.
16313
16314 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16315
16316 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16317 dprintf.
16318 * grub-core/font/font.c (grub_font_load): Likewise.
16319
16320 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16321
16322 * util/grub-macho2img.c: Add comment concerning gettext.
16323 * grub-core/lib/legacy_parse.c: Likewise.
16324
16325 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16326
16327 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16328 (grub_xvasprintf): Likewise.
16329
16330 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16331
16332 Add const keyword to grub_env_get and gettextize week days.
16333
16334 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16335 (grub_read_hook_datetime): Return const char *.
16336 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16337 updated.
16338 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16339 Mark for gettext.
16340 (grub_get_weekday_name): Return const char *. Call gettext.
16341 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16342 char * and len as the argument. All users updated.
16343 (grub_script_argv_split_append): Receive const char *.
16344 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16345 * include/grub/env.h (grub_env_get): Likewise.
16346 (grub_env_read_hook_t): Return const char *.
16347 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16348 (grub_script_argv_split_append): Likewise.
16349
16350 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16351
16352 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16353
16354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16355
16356 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16357 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16358
16359 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16360
16361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16362 Fix prototype.
16363
16364 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16365
16366 Fix mips compilation.
16367
16368 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16369 normal decoder.
16370 (hashes): Use in embed decoder as well (for sizes).
16371 (dec_stream_header): Fix embed decompressor logic.
16372 (dec_stream_footer): Likewise.
16373
16374 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16375
16376 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16377 an error and not a fatal on unrecognised relocation types.
16378
16379 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16380
16381 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16382 Issue error rather than printf on unknown arguments.
16383
16384 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16387 Make buf a const.
16388
16389 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16390
16391 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16392 Fix module name.
16393
16394 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16397 leftover debug printf.
16398
16399 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16400
16401 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16402
16403 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16406 A stylistic fix.
16407
16408 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16411
16412 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16413
16414 Allow all modules to perform serial IO
16415
16416 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16417 * include/grub/serial.h (grub_serial_port_configure): New inline
16418 function.
16419 (grub_serial_port_fetch): Likewise.
16420 (grub_serial_port_put): Likewise.
16421 (grub_serial_port_fini): Likewise.
16422 (grub_serial_find): New proto.
16423
16424 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 Put symlink at the end of the node and fix a potential
16427 memory corruption.
16428
16429 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16430 Make symlink into an array.
16431 (set_rockridge): Set have_symlink and alloc_dirents.
16432 (grub_iso9660_read_symlink): Use new layout.
16433 (grub_iso9660_iterate_dir): Fix memory corruption.
16434 Use new layout.
16435 (grub_iso9660_dir): Set have_symlink.
16436 (grub_iso9660_open): Likewise.
16437
16438 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 Remove local keyword.
16441
16442 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16443 (version_test_gt): Likewise.
16444 (version_find_latest): Likewise.
16445 (gettext_printf): Likewise.
16446 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16447
16448 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16451
16452 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 Fix ZFS memory and resource leaks.
16455
16456 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16457 All users updated.
16458 Free type on exit.
16459 (fill_vdev_info): New parameter inserted. All users updated.
16460 (check_pool_label): Likewise.
16461 (scan_disk): Likewise.
16462 (scan_devices): Close non-inserted disks.
16463 (fzap_iterate): Free l.
16464 (unmount_device): Free children descripto memory.
16465
16466 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16467
16468 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16469 argument (access out of bounds).
16470
16471 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16474 >= 6 drives.
16475
16476 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16479 Fix declaration.
16480
16481 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16482
16483 Fix several memory leaks.
16484
16485 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16486 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16487 (grub_cpio_dir): Likewise.
16488 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16489 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16490 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16491 (grub_romfs_label): Likewise.
16492 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16493 (squash_unmount): New function.
16494 (grub_squash_dir): Fix memory leak.
16495 (grub_squash_open): Likewise.
16496 (grub_squash_read): Likewise.
16497 (grub_squash_mtime): Likewise.
16498 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16499 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16500 * util/grub-fstest.c (fstest): Likewise.
16501
16502 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16503
16504 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16505 avoid accessing beyond the array.
16506
16507 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16508
16509 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16510
16511 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16512
16513 Several AFFS fixes.
16514
16515 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16516 (GRUB_AFFS_FLAG_FFS): Removed.
16517 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16518 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16519 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16520 (grub_fshelp_node): Make block 32-bit.
16521 Add block_cache and last_block_cache.
16522 (grub_affs_read_block): Fill and use block cache.
16523 (grub_affs_read_file): Removed.
16524 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16525 boot block.
16526 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16527 safety.
16528 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16529 space.
16530 (grub_affs_close): Free block cache.
16531 (grub_affs_read): Use grub_fshelp_read_file directly.
16532
16533 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16534
16535 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16536 with no error set.
16537
16538 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16539
16540 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16541 used variable.
16542 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16543 Likewise.
16544
16545 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16548
16549 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16550 byteswap when needed.
16551
16552 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 Fix FreeBSD compilation.
16555
16556 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16557 to avoid circular dependency.
16558 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16559 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16560 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16561
16562 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 Fix ZFS crypto error types.
16565
16566 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16567 (grub_gcm_decrypt): Likewise.
16568 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16569 from PBKDF2.
16570
16571 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 Illumos support.
16574
16575 * Makefile.util.def (10_illumos): New script.
16576 * configure.ac: Set COND_HOST_ILLUMOS.
16577 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16578 Support Illumos calls.
16579 (find_partition_start) [__sun__]: Likewise.
16580 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16581 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16582 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16583 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16584 device.
16585 * util/grub-probe.c (probe) [__sun__]: Do character check.
16586 * util/grub.d/10_illumos.in: New file.
16587
16588 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16589
16590 Support escaped commas in hostdisk.
16591
16592 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16593 (find_grub_drive): Use unescape_cmp.
16594 (make_device_name): Escape commas.
16595
16596 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16597
16598 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16599
16600 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16603 variable.
16604
16605 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 Support trampoline jumps on powerpc.
16608
16609 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16610 __ia64__ path.
16611 (grub_dl_load_segments): Set mod->sz.
16612 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16613 segments.
16614 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16615 (jump): Likewise.
16616 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16617 function.
16618 (trampoline): New struct.
16619 (trampoline_template): New const.
16620 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16621 * include/grub/dl.h (grub_dl): Add sz element.
16622 [__powerpc__]: Follow __ia64__.
16623 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16624 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16625 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16626 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16627
16628 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 ZFS crypto support.
16631
16632 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16633 * grub-core/Makefile.core.def (zfscrypt): New module.
16634 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16635 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16636 it. All users updated.
16637 (grub_zfs_decrypt): New var.
16638 (grub_zfs_load_key): Likewise.
16639 (zio_checksum_functions): Add SHA256+MAC.
16640 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16641 (zio_read): Handle encrypted blocks.
16642 (zap_verify): Remove incorrect check.
16643 (fzap_iterate): Handle non-standard fzap.
16644 (zap_iterate): Likewise.
16645 (zap_iterate_u64): New function.
16646 (dnode_get_fullpath): Load keys.
16647 * grub-core/fs/zfs/zfscrypt.c: New file.
16648 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16649 (grub_crypto_ecb_encrypt): Make input const.
16650 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16651 (grub_crypto_ecb_encrypt): Make input const.
16652 (GRUB_CIPHER_AES): New macro.
16653 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16654 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16655 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16656 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16657 prefix. All users updated.
16658 (grub_zfs_add_key): New proto.
16659 (grub_zfs_decrypt): Likewise.
16660 (grub_zfs_load_key): Likewise.
16661 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16662 * util/grub-fstest.c (options): Add -K option.
16663 (argp_parser): Likewise.
16664
16665 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16666
16667 Support zle compression on ZFS.
16668
16669 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16670 (decomp_table): Add zle.
16671 * include/grub/zfs/zio.h (zio_compress): Add zle.
16672
16673 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Support BtrFS embedding.
16676
16677 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16678 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16679 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16680 * util/grub-setup.c (setup): Use fs embedding if available.
16681 Add additional sanity check.
16682
16683 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 * util/grub-install.in: Fix condition for config_opt.
16686
16687 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 Support third redundancy strip on raidz3.
16690
16691 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16692 Return error on singularity. All users updated.
16693 (read_device): Don't stop on 3rd failure on raidz3.
16694
16695 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 Support case-insensitive ZFS subvolumes.
16698
16699 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16700 All users updated.
16701 (zap_hash): Likewise.
16702 (name_cmp): New function.
16703 (zap_leaf_array_equal): New parameter case_insensitive.
16704 All users updated.
16705 (zap_leaf_lookup): Likewise.
16706 (fzap_lookup): Likewise.
16707 (zap_lookup): Likewise.
16708 (dnode_get_path): New parameter case_insensitive. Retrieve case
16709 sensitiviness of a volume. All users updated.
16710 (dnode_get_fullpath): New parameter case_insensitive.
16711 All users updated.
16712 (grub_zfs_dir): Set info.case_insensitiveness.
16713
16714 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16715
16716 Support second redundancy strip on raidz(2,3).
16717
16718 * grub-core/fs/zfs/zfs.c (powx): New array.
16719 (powx_inv): Likewise.
16720 (poly): New const.
16721 (xor_out): New function.
16722 (gf_mul): Likewise.
16723 (recovery): Likewise.
16724 (read_device): Use second redundancy strip.
16725
16726 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 Use a power of generator representation of GF(256) multiplication group
16729 to save space time and complexity.
16730
16731 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16732 (raid6_table2): Likewise.
16733 (powx): New array.
16734 (powx_inv): Likewise.
16735 (poly): New const.
16736 (grub_raid_block_mul): Replace with ...
16737 (grub_raid_block_mulx): ...this.
16738 (grub_raid6_init_table): Rewritten.
16739 (grub_raid6_recover): Use power of generator representation.
16740
16741 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16744 for the right device.
16745
16746 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16749 expected by grub-mkimage and it's more clear since there is no implicit
16750 padding.
16751
16752 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16755 disk.
16756 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16757
16758 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16759
16760 * util/grub-mkrescue.in: Fix handling xorriso option.
16761
16762 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16765 NULL.
16766
16767 2011-11-03 crocket <crockabiscuit@gmail.com>
16768
16769 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16770
16771 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 XZ CRC64 and SHA256 support.
16774
16775 * Makefile.util.def (libgrubmods): Add crc64.c.
16776 * grub-core/Makefile.core.def (crc64): New module.
16777 * grub-core/lib/crc64.c: New file.
16778 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16779 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16780 Fix the type.
16781 (MAX_HASH_SIZE): New define.
16782 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16783 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16784 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16785 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16786 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16787 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16788 Handle non-crc32 hashes.
16789 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16790 (dec_stream_header): Handle non-crc32 hashes.
16791 (dec_stream_footer): Likewise.
16792 (dec_block_header): Likewise.
16793 (dec_main): Likewise.
16794 (xz_dec_init): Likewise.
16795 (xz_dec_reset): Likewise.
16796 (xz_dec_end): Likewise.
16797 * util/import_gcry.py: Add CRC64 line.
16798
16799 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16802 as well.
16803
16804 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16805
16806 Make reiserfs label retrieval similar to other *_label functions.
16807
16808 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16809 (REISERFS_MAX_LABEL_LENGTH): Removed.
16810 (REISERFS_LABEL_OFFSET): Likewise.
16811 (grub_reiserfs_label): Rewritten.
16812
16813 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16814
16815 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16816 field.
16817
16818 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16819
16820 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16821
16822 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16825 drive failure on both raidz and raidz2.
16826
16827 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 Fix RAIDZ(2) for >= 5 devices.
16830
16831 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16832 asize argument. All users updated.
16833
16834 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 Fix RAIDZ(2).
16837
16838 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16839 (fill_vdev_info_real): Set ashift.
16840 (read_device): Rewrite RAIDZ part based on reverse engineering.
16841
16842 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16843
16844 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16845 don't report potentially unavialiable fields in debug output.
16846 (find_path): Fix double-free and memory leak.
16847
16848 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Read label on UFS1.
16851
16852 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16853 (grub_ufs_fs): Always set .label.
16854
16855 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Use shifts in UFS.
16858
16859 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16860 (grub_ufs_data): New field log2_blksz.
16861 (grub_ufs_read_file): Use shifts.
16862 (grub_ufs_mount): Check block size and logarithm it.
16863
16864 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16865
16866 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16867 long symlinks.
16868
16869 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16870
16871 Handle symlinks and long names on tar and cpio.
16872
16873 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16874 (ATTR_FILE): Likewise.
16875 (ATTR_DIR): Likewise.
16876 (ATTR_LNK): Likewise.
16877 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16878 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16879 L and K entries.
16880 (grub_cpio_mount): Zero-fill data.
16881 (handle_symlink): New function.
16882 (grub_cpio_dir): Handle symlinks.
16883 (grub_cpio_open): Likewise.
16884 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16885
16886 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 Fix iso9660 filename limitations and fix memory leaks.
16889
16890 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16891 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16892
16893 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16894
16895 Fix JFS file name length limitations.
16896
16897 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16898 (grub_jfs_diropen): Fix maximum filename length.
16899 (grub_jfs_getent): Fix filename length.
16900 (grub_jfs_lookup_symlink): Fix size checks.
16901
16902 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16903
16904 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16905 string.
16906
16907 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16908
16909 Leverage BFS implementation to read AFS.
16910
16911 * Makefile.util.def (libgrubmods): Add afs.c.
16912 * grub-core/Makefile.core.def (afs): New module
16913 * grub-core/fs/afs.c: New file.
16914 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16915
16916 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16917
16918 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16919
16920 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/fs/bfs.c: Run indent.
16923
16924 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 BFS implementation based on the specification.
16927
16928 * grub-core/fs/bfs.c: New file.
16929 * Makefile.util.def (libgrubmods): Add bfs.c.
16930 * grub-core/Makefile.core.def (bfs): New module.
16931
16932 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16933
16934 * util/grub-fstest.c (cmd_cp): Clarify error message.
16935 (cmd_cmp): Likewise.
16936
16937 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16938
16939 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16940 and befs_be.
16941
16942 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 Remove afs and befs because of copyright problem.
16945
16946 * grub-core/fs/afs.c: Removed.
16947 * grub-core/fs/afs_be.c: Removed.
16948 * grub-core/fs/befs.c: Removed.
16949 * grub-core/fs/befs_be.c: Removed.
16950 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16951 * grub-core/Makefile.core.def (afs): Removed.
16952 (afs_be): Likewise.
16953 (befs): Likewise.
16954 (befs_be): Likewise.
16955
16956 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 Prefer rockridge over Joliet.
16959
16960 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16961 to ...
16962 (set_rockridge): ... here.
16963 (grub_iso9660_mount): Check rockridge on the primary label when
16964 discovering. Ignore Joliet if Rockridge is present.
16965
16966 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 Use shifts in nilfs2.
16969
16970 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16971 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16972 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16973 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16974 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16975 (grub_nilfs2_entries_per_block): Replaced with ...
16976 (grub_nilfs2_log_entries_per_block_log): ... this.
16977 (grub_nilfs2_blocks_per_group): Replaced with ...
16978 (grub_nilfs2_blocks_per_group_log): ... this.
16979 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16980 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16981 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16982 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16983 (grub_nilfs2_palloc_entry_offset): Replaced ...
16984 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16985 (grub_nilfs2_dat_translate): Use shifts.
16986 (grub_nilfs2_read_inode): Likewise.
16987 (GRUB_MOD_INIT): Ensure that logs are correct.
16988
16989 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16990
16991 Use shifts in minix filesystem.
16992
16993 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16994 (GRUB_MINIX_ZONE2SECT): Likewise.
16995 (grub_minix_data): Replace block_size with log_block_size.
16996 (grub_minix_read_file): Use shifts.
16997 (grub_minix_mount): Check block size and take a logarithm.
16998
16999 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 Use shifts in squash4.
17002
17003 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17004 (squash_mount): Check block size and take logarithm.
17005 (direct_read): Use shifts.
17006
17007 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17008
17009 Correct befs block counting logic.
17010
17011 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17012 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17013 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17014 (grub_afs_read_inode): Use block_shift.
17015 (RANGE_SHIFT): New definition.
17016 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17017 unexpected conditions, use shifts and appropriate types.
17018 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17019
17020 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 * grub-core/disk/raid.c (scan_devices): Check partition.
17023 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17024
17025 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17026
17027 Support BFS (befs) UUID.
17028
17029 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17030 (grub_afs_small_data_element_header): New struct.
17031 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17032 (grub_afs_read_attribute) [MODE_BFS]: New function.
17033 (grub_afs_iterate_dir): Allocate for complete inode.
17034 (grub_afs_mount): Likewise.
17035 (grub_afs_uuid) [MODE_BFS]: New function.
17036 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17037
17038 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17041 (zfs_unmount): Fix memory leak.
17042
17043 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 Support NTFS reparse points.
17046
17047 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17048 (symlink_descriptor): New struct.
17049 (grub_ntfs_read_symlink): New function.
17050 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17051 (grub_ntfs_open): Likewise.
17052
17053 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17054
17055 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17056
17057 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17058
17059 fstest xnu_uuid subcommand.
17060
17061 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17062 grub-core/commands/xnu_uuid.c.
17063 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17064 (fstest): Handle xnu_uuid.
17065 (options): Document xnu_uuid.
17066 (argp_parser): Parse xnu_uuid.
17067
17068 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17071 -l argument. Add newline at the end if printing.
17072 (GRUB_MOD_INIT): Document -l.
17073
17074 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17075
17076 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17077
17078 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17079
17080 ZFS multi-device and version 33 support.
17081
17082 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17083 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17084 (grub_zfs_data): Add multidev-ice-related fields.
17085 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17086 (dva_get_offset): Make dva const.
17087 (zfs_fetch_nvlist): New function.
17088 (fill_vdev_info_real): Likewise.
17089 (fill_vdev_info): Likewise.
17090 (check_pool_label): Likewise.
17091 (scan_disk): Likewise.
17092 (scan_devices): Likewise.
17093 (read_device): Likewise.
17094 (read_dva): Likewise.
17095 (zio_read_gang): Use read_dva.
17096 (zio_read_data): Likewise.
17097 (zap_leaf_lookup): Add missing endian conversion.
17098 (zap_verify): Add missing endian conversion. All users updated.
17099 (fzap_lookup): Likewise.
17100 (fzap_iterate): Likewise.
17101 (dnode_get_path): Handle SA bonus.
17102 (nvlist_find_value): Make input const. All users updated.
17103 (unmount_device): New function.
17104 (zfs_unmount): Use unmount_device.
17105 (zfs_mount): Use scan_disk.
17106 (zfs_mtime): New function.
17107 (grub_zfs_open): Handle system attributes.
17108 (fill_fs_info): Likewise.
17109 (grub_zfs_dir): Likewise.
17110 (grub_zfs_fs): Add mtime.
17111 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17112 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17113 (SA_MTIME_OFFSET): Likewise.
17114 (SA_SYMLINK_OFFSET): Likewise.
17115 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17116 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17117 (fstest): Support zfsinfo.
17118 (argp_parser): Likewise.
17119
17120 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17121
17122 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17123 error.
17124
17125 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17126
17127 ZFS fixes.
17128
17129 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17130 sharing the same block. Iterate over correct number of indices.
17131 (dnode_get_path): Handle symlinks correctly.
17132
17133 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17136
17137 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 Read label on HFS+.
17140
17141 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17142 (grub_hfsplus_btree_search): Fix types.
17143 (grub_hfsplus_label): Implement.
17144
17145 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17148
17149 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17150
17151 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17152
17153 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17154
17155 Fix symlink handling on iso9660.
17156
17157 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17158 All users updated.
17159 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17160 (grub_iso9660_read_symlink): Moved most of code ...
17161 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17162
17163 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17166 Use union to avoid breaking strict-aliasing rules.
17167
17168 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17169
17170 Support multi-extent iso files.
17171
17172 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17173 Add node.
17174 (grub_fshelp_node): Revamp. All users updated.
17175 (FLAG_*): New enum.
17176 (read_node): New function.
17177 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17178 All users updated.
17179 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17180 (get_node_size): New function.
17181 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17182 entries.
17183 Fix memory leak on . and ..
17184 (grub_iso9660_read): Use read_node.
17185 (grub_iso9660_close): Free node.
17186
17187 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 Fix tar 4G limit and handle paths containing dot.
17190
17191 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17192 (canonicalize): New function.
17193 (grub_cpio_find_file): Use canonicalize. Store offs in
17194 grub_disk_addr_t.
17195 (grub_cpio_dir): Use grub_disk_addr_t.
17196 (grub_cpio_open): Likewise.
17197
17198 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17201
17202 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17203 unused flags.
17204 (grub_squash_inode): Add long_file and block_size.
17205 (grub_squash_cache_inode): New struct.
17206 (grub_squash_dirent): Make types into enum.
17207 (SQUASH_TYPE_LONG_REGULAR): New type.
17208 (grub_squash_frag_desc): Add field size.
17209 (SQUASH_BLOCK_FLAGS): New enum.
17210 (grub_squash_data): Use grub_squash_cache_inode.
17211 (grub_fshelp_node): Make ino_chunk 64-bit.
17212 (read_chunk): Minor argument change. All users updated.
17213 (squash_mount): Use correct le_to_cpu.
17214 (grub_squash_open): Handle LONG_REGULAR.
17215 (direct_read): New function.
17216 (grub_squash_read_data): Handle blocks correctly.
17217
17218 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17219
17220 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17221
17222 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17223
17224 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17225
17226 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17227
17228 Fix 2G limit on ZFS.
17229
17230 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17231 types.
17232 (uberblock_verify): Likewise.
17233 (dmu_read): Likewise.
17234 (grub_zfs_read): Likewise. Remove invalid cast.
17235
17236 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17237
17238 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17239 (grub_jfs_blkno): Fix incorrect shift.
17240 (grub_jfs_read_file): Use more appropriate types.
17241
17242 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17243
17244 Support triple indirect on minix2 and minix3.
17245
17246 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17247 Declare triple_indir_zone.
17248 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17249 indirect.
17250
17251 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17252
17253 Minix FS fixes.
17254
17255 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17256 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17257 Rename ctime to mtime. All users updated.
17258 (grub_minix_get_file_block): Fix types and double indirect computations.
17259
17260 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17261
17262 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17263 if no label is found.
17264 (grub_fat_iterate_dir): Fix file size type.
17265 (grub_fat_iterate_dir): Likewise.
17266
17267 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17270 save some space.
17271 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17272 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17273
17274 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17277
17278 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17279
17280 * util/import_gcry.py: Accept space between # and include.
17281
17282 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17283
17284 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17285
17286 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17287
17288 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17289
17290 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17291 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17292 yylex_strncpy.
17293 * grub-core/script/yylex.l: Add fine-grained #pragma.
17294
17295 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17298 New inline function.
17299 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17300 Likewise.
17301 (memset) [GRUB_UTIL]: Likewise.
17302 (memcmp) [GRUB_UTIL]: Likewise.
17303
17304 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17307 inline function rather than a define.
17308
17309 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17310
17311 * util/grub-setup.c: Add missing include.
17312
17313 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 * util/ieee1275/grub-ofpathname.c: Add missing include.
17316
17317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17318
17319 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17320 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17321 Likewise.
17322
17323 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17324
17325 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17326 grub_memcmp usage.
17327
17328 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 * util/grub-install.in: Add datarootdir as per automake manual
17331 suggestion.
17332 * util/grub-mknetdir.in: Likewise.
17333
17334 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17337 suggestion.
17338 * util/grub.d/10_kfreebsd.in: Likewise.
17339 * util/grub.d/10_linux.in: Likewise.
17340 * util/grub.d/10_netbsd.in: Likewise.
17341 * util/grub.d/10_windows.in: Likewise.
17342 * util/grub.d/20_linux_xen.in: Likewise.
17343
17344 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 Remove redundant grub_kernel_image_size.
17347
17348 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17349 _edata and _start.
17350 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17351 the small code. It moves it only by few bytes but simplifies the code.
17352 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17353 _start.
17354 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17355 (grub_kernel_image_size): Removed.
17356 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17357 (grub_kernel_image_size): Removed.
17358 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17359 compiled with Apple toolchain.
17360 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17361 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17362 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17363 (grub_total_module_size): Likewise.
17364 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17365 Removed.
17366 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17367 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17368 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17369 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17370 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17371 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17372 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17373 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17374 Removed.
17375 (grub_total_module_size): Removed.
17376 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17377 (image_targets): Likewise.
17378 Set .compressed_size to no field on sparc.
17379 (generate_image): Remove kernel_image_size handling.
17380
17381 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17382
17383 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17384 NULL pointer dereference.
17385
17386 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17389 done with a dedicated section.
17390
17391 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17392 Ensure the correct position of boot_path.
17393 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17394 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17395 other fields.
17396 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17397 * include/grub/boot.h: Removed. All references removed.
17398 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17399 Removed.
17400 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17401
17402 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17403
17404 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17405 name.
17406
17407 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17410
17411 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17412
17413 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17414 Don't add the bogus brackets.
17415
17416 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 ExFAT support.
17419
17420 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17421 * grub-core/Makefile.core.def (exfat): New module.
17422 * grub-core/fs/exfat.c: New file.
17423 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17424 (GRUB_FAT_ATTR_*): Make into an enum.
17425 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17426 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17427 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17428 (GRUB_FAT_MAXFILE): Removed.
17429 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17430 (grub_current_fat_bpb_t): New type.
17431 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17432 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17433 (grub_fat_dir_node_t): New type.
17434 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17435 (fat_log2) [MODE_EXFAT]: Removed.
17436 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17437 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17438 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17439 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17440 (grub_fat_label) [MODE_EXFAT]: New function.
17441 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17442 reserved_first_sector to 0.
17443
17444 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 Move grub_reboot out of the kernel.
17447
17448 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17449 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17450 * grub-core/lib/efi/reboot.c: ... here.
17451 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17452 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17453 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17454 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17455 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17456 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17457 * grub-core/lib/ieee1275/reboot.c: ... here.
17458 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17459 * grub-core/lib/mips/arc/reboot.c: ... here.
17460 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17461 * grub-core/lib/mips/loongson/reboot.c: ...here.
17462 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17463 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17464 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17465 * include/grub/i386/reboot.h: New file.
17466 * include/grub/mips/loongson/ec.h: Fix includes.
17467 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17468 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17469 * grub-core/lib/i386/reboot.c: New file.
17470
17471 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 Make grub_prefix into module to fix the arbitrary limit and save
17474 some space.
17475
17476 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17477 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17478 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17479 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17480 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17481 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17482 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17483 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17484 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17485 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17486 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17487 * include/grub/ia64/efi/kernel.h: Removed.
17488 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17489 (grub_prefix): Removed.
17490 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17491 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17492 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17493 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17494 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17495 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17496 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17497 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17498 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17499 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17500 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17501 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17502 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17503 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17504 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17505 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17506 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17507 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17508 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17509 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17510 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17511 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17512 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17513 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17514 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17515 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17516 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17517 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17518 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17519 from module.
17520 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17521 prefix_end.
17522 (image_targets): Likewise.
17523 (generate_image): Put prefix as a module.
17524
17525 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 Replace grub_module_iterate with FOR_MODULES.
17528
17529 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17530 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17531 (grub_efi_modules_addr): ...this.
17532 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17533 (grub_efi_init): Set grub_modbase.
17534 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17535 (grub_modbase): New variable.
17536 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17537 (grub_modbase): New variable.
17538 (grub_machine_init): Set grub_modbase.
17539 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17540 (grub_modbase): New variable.
17541 (grub_machine_init): Set grub_modbase.
17542 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17543 (grub_modbase): New variable.
17544 (grub_machine_init): Set grub_modbase.
17545 * grub-core/kern/main.c (grub_module_iterate): Remove.
17546 (grub_modules_get_end): Use grub_modbase.
17547 (grub_load_modules): Use FOR_MODULES.
17548 (grub_load_config): Likewise.
17549 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17550 (grub_modbase): New variable.
17551 (grub_machine_init): Set grub_modbase.
17552 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17553 (grub_modbase): New variable.
17554 (grub_machine_init): Set grub_modbase.
17555 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17556 Removed.
17557 (grub_modbase): New variable.
17558 (grub_machine_init): Set grub_modbase.
17559 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17560 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17561 (grub_module_iterate): Likewise.
17562 (grub_modbase): New variable declaration.
17563 (FOR_MODULES): New macro.
17564
17565 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17566
17567 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17568 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17569
17570 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 Fix few obvious type discrepancies.
17573
17574 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17575 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17576 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17577 variable.
17578 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17579 and connected types.
17580 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17581 offset.
17582 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17583 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17584 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17585 and connected types.
17586
17587 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 Fix python 3.x incompatibilities.
17590
17591 * gentpl.py: Put brackets around print strings.
17592 * util/import_gcry.py: Open explicitly as utf-8.
17593 Use in instead of has_key.
17594
17595 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17596
17597 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17598 (GRUB_XFS_INO_AGBITS): Make into inline function.
17599 (GRUB_XFS_INO_INOINAG): Likewise.
17600 (GRUB_XFS_INO_AG): Likewise.
17601 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17602 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17603 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17604 (GRUB_XFS_EXTENT_SIZE): Likewise.
17605 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17606 (GRUB_XFS_NEXT_DIRENT): Likewise.
17607 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17608 (grub_xfs_read_file): Fix offset type.
17609
17610 2011-10-15 Robert Millan <rmh@gnu.org>
17611
17612 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17613
17614 2011-10-15 Robert Millan <rmh@gnu.org>
17615
17616 Fix build problem on FreeBSD and GNU/kFreeBSD.
17617
17618 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17619
17620 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17621
17622 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17623
17624 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17625 types.
17626 (grub_hfsplus_btree_recoffset): Likewise.
17627 (grub_hfsplus_btree_recptr): Likewise.
17628 (grub_hfsplus_find_block): Likewise.
17629 (grub_hfsplus_btree_search): Likewise.
17630 (grub_hfsplus_read_block): Likewise.
17631 (grub_hfsplus_read_file): Likewise.
17632 (grub_hfsplus_mount): Likewise.
17633 (grub_hfsplus_btree_iterate_node): Likewise.
17634 (grub_hfsplus_btree_search): Likewise.
17635 (grub_hfsplus_iterate_dir): Likewise.
17636 (grub_hfsplus_read): A small code simplification.
17637
17638 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17639
17640 * grub-core/kern/emu/hostdisk.c
17641 (convert_system_partition_to_system_disk): Don't assume that children
17642 of mapper nodes are mapper nodes.
17643
17644 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17645
17646 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17647 * include/grub/misc.h (grub_isxdigit): New function.
17648 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17649 switched to grub_isxdigit.
17650 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17651 number starting with a letter.
17652
17653 2011-10-09 Robert Millan <rmh@gnu.org>
17654
17655 LVM support for FreeBSD and GNU/kFreeBSD.
17656
17657 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17658 GNU/kFreeBSD.
17659 (LVM_DEV_MAPPER_STRING): Move from here ...
17660 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17661 * util/getroot.c: Include `<grub/util/lvm.h>'.
17662 (grub_util_get_dev_abstraction): Enable
17663 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17664 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17665 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17666 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17667 support it.
17668 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17669 GNU/kFreeBSD.
17670 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17671 when LVM abstraction is required for ${GRUB_DEVICE}.
17672
17673 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17674
17675 Add support for LZO compression in GRUB:
17676 - import of minilzo library,
17677 - LZO decompression for btrfs,
17678 - lzop files decompression.
17679
17680 * grub-core/io/lzopio.c: New file.
17681 * grub-core/lib/adler32.c: Likewise.
17682 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17683 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17684 * grub-core/lib/minilzo/minilzo.c: Likewise.
17685 * grub-core/lib/minilzo/minilzo.h: Likewise.
17686 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17687 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17688 grub-core/lib/minilzo/minilzo.c to common.
17689 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17690 cflags in cppflags.
17691 * grub-core/Makefile.core.def (btrfs): Likewise.
17692 * grub-core/Makefile.core.def (lzopio): New module.
17693 (adler32): Likewise.
17694 * grub-core/fs/btrfs.c: Include minilzo.h.
17695 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17696 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17697 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17698 (grub_btrfs_lzo_decompress): New function.
17699 (grub_btrfs_extent_read): Add support for LZO compression type.
17700 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17701 (GRUB_USHRT_MAX): Likewise.
17702 (GRUB_UINT_MAX): Likewise.
17703 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17704 (UINT_MAX): Likewise.
17705 (CHAR_BIT): Likewise.
17706 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17707 grub-core/lib/posix_wrap/limits.h
17708 (UCHAR_MAX): Likewise.
17709 * include/grub/file.h (grub_file_filter_id): New compression filter
17710 GRUB_FILE_FILTER_LZOPIO.
17711 * include/grub/file.h (grub_file_filter_id): Set
17712 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17713 * include/grub/types.h (grub_get_unaligned16): New function.
17714 (grub_get_unaligned32): Likewise.
17715 (grub_get_unaligned64): Likewise.
17716 * util/import_gcry.py (cryptolist): Add adler32.
17717
17718 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17721 in perspective decreases the complexity of build system and fixes
17722 compilation right now.
17723
17724 2011-10-01 Ales Nesrsta <starous@volny.cz>
17725
17726 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17727 (fixed problem related to using UHCI with coreboot).
17728
17729 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17730
17731 * gentpl.py: Use Autogen macros so that the output template file
17732 (Makefile.tpl) size is reduced.
17733
17734 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17735
17736 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17737 extra_dist.
17738
17739 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17740
17741 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17742 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17743
17744 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17745
17746 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17747 _fullpath.
17748
17749 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17750
17751 Remove extra declaration of sleep for mingw32.
17752
17753 * util/misc.c (sleep) [__MINGW32__]: Removed.
17754 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17755
17756 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17757
17758 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17759 type and packname.
17760 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17761 Resurrected.
17762 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17763 (grub_netbsd_btinfo_bootwedge): New struct.
17764 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17765 New function.
17766 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17767
17768 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17769
17770 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17771 loader.
17772
17773 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17774
17775 Fix incorrect identifiers in bash-completion.
17776
17777 * util/bash-completion.d/grub-completion.bash.in
17778 (_grub_mkpasswd-pbkdf2): Rename to ...
17779 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17780 (_grub_script-check): Rename to ...
17781 (_grub_script_check): ... this. All users updated.
17782
17783 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17784
17785 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17786 Return 0 if disk isn't biosdisk.
17787
17788 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17789
17790 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17791 on NetBSD.
17792 * Makefile.util.def (grub-fstest): Likewise.
17793
17794 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17795
17796 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17797 Get sector size from disk label.
17798
17799 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17800
17801 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17802 */README* as well as README*.
17803 Reported by: Axel Beckert.
17804
17805 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17806
17807 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17808 case of less than 256 MiB of RAM.
17809
17810 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17811
17812 * grub-core/commands/wildcard.c (make_regex): Handle @.
17813
17814 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17815
17816 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17817
17818 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17819
17820 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17821 AC_LANG_CONFTEST macros.
17822
17823 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17824
17825 Add grub-fstest option to uncompress data for commands.
17826
17827 * util/grub-fstest.c (uncompress): New var.
17828 (options): New option -u.
17829
17830 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17831
17832 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17833 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17834
17835 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17836
17837 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17838 file type was not recognized correctly (not gzip or corrupted).
17839
17840 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17841
17842 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17843 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17844
17845 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17846
17847 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17848 loongson.
17849 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17850 video_radeon_fuloong2e.
17851 * grub-core/video/radeon_fuloong2e.c: New file.
17852 * include/grub/video.h (grub_video_id_t): Add new ID
17853 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17854
17855 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17856
17857 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17858 define.
17859 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17860 that PRID matches the detected subplatform and reset the subplatform
17861 if it doesn't.
17862
17863 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17866
17867 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17868
17869 Fix PCI iterating on functions >= 4.
17870
17871 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17872 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17873 Removed.
17874 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17875 (grub_pci_read): Fix bitmask.
17876 (grub_pci_read_word): Likewise.
17877 (grub_pci_read_byte): Likewise.
17878 (grub_pci_write): Likewise.
17879 (grub_pci_write_word): Likewise.
17880 (grub_pci_write_byte): Likewise.
17881
17882 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17885 can still be specified in TARGET_CFLAGS)
17886
17887 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17890
17891 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17892 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17893 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17894 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17895 (FULOONG): Rename to ...
17896 (FULOONG2F): ... this. All users updated.
17897 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17898 (machtype_fuloong2f_str): ... this.
17899 (machtype_fuloong2e_str): New string.
17900 Check for machtype_fuloong2e_str.
17901 * grub-core/loader/mips/linux.c (loongson_machtypes)
17902 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17903 * grub-core/term/serial.c (loongson_defserial)
17904 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17905 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17906 loongson_defserial.
17907 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17908 Rename to ...
17909 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17910 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17911 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17912 to IMAGE_FULOONG2F_FLASH. All users updated.
17913 (image_targets): Rename images.
17914 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17915
17916 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17917
17918 Make enable of disk cache statistics code configurable.
17919
17920 * configure.ac: --enable-cache-stats added.
17921 * config.h.in (DISK_CACHE_STATS): New define.
17922 * grub-core/Makefile.core.def (cacheinfo): New command.
17923 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17924 * grub-core/commands/cacheinfo.c: New file.
17925 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17926 moved to cacheinfo.c.
17927 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17928 debug code.
17929 * include/grub/disk.h: Likewise.
17930
17931 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17932
17933 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17934 * grub-core/Makefile.am: Likewise.
17935
17936 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17937
17938 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17939 non-zero pull.
17940
17941 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17942
17943 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17944 All users updated.
17945 (grub_jfs_lookup_symlink): Use correct starting inode.
17946
17947 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17948
17949 * util/grub-setup.c (main): Add missing gcry initialisation.
17950
17951 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17952
17953 Don't accept text modes on EFI when booting Linux.
17954
17955 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17956 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17957
17958 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17959 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17960
17961 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17962 use of "/path/.." as in grub-install for EFI as well as handling
17963 symlinks correctly.
17964 Fixes Debian bug #637768.
17965
17966 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17967
17968 * util/grub-probe.c: Remove duplicate #include.
17969
17970 2011-08-10 Robert Millan <rmh@gnu.org>
17971
17972 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17973
17974 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17975 function.
17976 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17977 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17978
17979 2011-08-03 Robert Millan <rmh@gnu.org>
17980
17981 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17982 la_array as packed.
17983 Reported by: Zachary Bedell
17984
17985 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17986
17987 * configure.ac: The Loongson port requires grub-mkfont due to its
17988 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17989 be built.
17990
17991 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17992
17993 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17994 processing arguments (otherwise help2man fails when GRUB has not yet
17995 been installed).
17996
17997 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17998
17999 New script grub-mkstandalone.
18000
18001 * Makefile.util.def (grub-mkstandalone): New script.
18002 * docs/man/grub-mkstandalone.h2m: New file.
18003 * util/grub-mkstandalone.in: Likewise.
18004
18005 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18006
18007 Support ATA disks with 4K sectors.
18008
18009 * include/grub/ata.h (grub_ata): New member log_sector_size.
18010 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18011 (grub_ata_identify): Read sector size.
18012 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18013
18014 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18015
18016 * util/grub-install.in: Don't use uhci outside of x86.
18017
18018 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * util/grub-mkrescue.in: Add missing quotes.
18021
18022 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18025 dereference.
18026
18027 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18030
18031 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18032
18033 * include/grub/video.h: add missing EXPORT_FUND on
18034 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18035
18036 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18037
18038 * include/grub/mips/kernel.h: Fix define conflict.
18039
18040 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18041
18042 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18043 all four ways.
18044
18045 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18046
18047 Preferred resolution detection for VBE.
18048
18049 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18050 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18051 the Flat Panel extension, in line with the X.org VESA driver.
18052 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18053 New function.
18054 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18055 (grub_vbe_bios_read_edid): Likewise.
18056 (grub_vbe_get_preferred_mode): Likewise.
18057 (grub_video_vbe_setup): When the mode is "auto", try to get the
18058 preferred mode from VBE, and use the largest mode that is no larger
18059 than the preferred mode (some BIOSes expose a preferred mode that is
18060 not in their mode list!). If this fails, fall back to 640x480 as a
18061 safe conservative choice.
18062 (grub_video_vbe_get_edid): New function.
18063 (grub_video_vbe_adapter): Add get_edid.
18064 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18065 (struct grub_video_adapter): Add get_edid.
18066 (grub_video_edid_checksum): Add prototype.
18067 (grub_video_edid_preferred_mode): Likewise.
18068 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18069 structure.
18070
18071 * grub-core/commands/videoinfo.c (print_edid): New function.
18072 (grub_cmd_videoinfo): Print EDID if available.
18073
18074 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18075 is more appropriate on a wider range of platforms than 640x480.
18076 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18077 documentation.
18078
18079 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18080
18081 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18082
18083 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18084
18085 * po/POTFILES.in: Regenerate.
18086
18087 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18088
18089 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18090 incorrect memory usage.
18091
18092 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 * util/grub-install.in: Source grub-mkconfig_lib.
18095
18096 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18097
18098 Remove getroot.c from core on emu platform.
18099
18100 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18101 kern/emu/raid.c.
18102 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18103 useless.
18104 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18105 * util/getroot.c (get_win32_path): ... here.
18106 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18107 * util/getroot.c (fini_libzfs): ... here.
18108 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18109 * util/getroot.c (grub_get_libzfs_handle): ... here.
18110 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18111 Moved from here...
18112 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18113 * grub-core/kern/emu/misc.c
18114 (grub_make_system_path_relative_to_its_root): Moved from here...
18115 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18116 * grub-core/kern/emu/getroot.c: Moved from here ...
18117 * util/getroot.c: ... here. All users updated.
18118 * grub-core/kern/emu/raid.c: Moved from here ...
18119 * util/raid.c: ... here. All users updated.
18120
18121 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18122
18123 * po/POTFILES.in: Regenerate.
18124
18125 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18126
18127 Fix compilation on GNU/Linux.
18128
18129 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18130 Disable geli.
18131 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18132 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18133 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18134
18135 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18136 2011-07-07 Michael Gorven <michael@gorven.za.net>
18137 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18138
18139 LUKS and GELI support.
18140
18141 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18142 grub-core/disk/luks.c, grub-core/disk/geli.c,
18143 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18144 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18145 grub-core/lib/arg.c.
18146 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18147 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18148 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18149 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18150 (grub-bin2h): Add libgcry.a.
18151 (grub-mkimage): Likewise.
18152 (grub-mkrelpath): Likewise.
18153 (grub-script-check): Likewise.
18154 (grub-editenv): Likewise.
18155 (grub-mkpasswd-pbkdf2): Likewise.
18156 (grub-pe2elf): Likewise.
18157 (grub-fstest): Likewise.
18158 (grub-mkfont): Likewise.
18159 (grub-mkdevicemap): Likewise.
18160 (grub-probe): Likewise.
18161 (grub-ofpath): Likewise.
18162 (grub-mklayout): Likewise.
18163 (example_unit_test): Likewise.
18164 (grub-menulst2cfg): Likewise.
18165 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18166 * grub-core/Makefile.core.def (cryptodisk): New module.
18167 (luks): Likewise.
18168 (geli): Likewise.
18169 * grub-core/disk/AFSplitter.c: New file.
18170 * grub-core/disk/cryptodisk.c: Likewise.
18171 * grub-core/disk/geli.c: Likewise.
18172 * grub-core/disk/luks.c: Likewise.
18173 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18174 grub_util_is_lvm.
18175 (grub_util_get_dm_abstraction): New function.
18176 (grub_util_follow_gpart_up): Likewise.
18177 (grub_util_get_geom_abstraction): Likewise.
18178 (grub_util_get_dev_abstraction): Use new functions.
18179 (grub_util_pull_device): Pull GELI and LUKS.
18180 (grub_util_get_grub_dev): Handle LUKS and GELI.
18181 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18182 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18183 (follow_geom_up): Removed.
18184 (grub_util_fd_seek): New function.
18185 (open_device): Use grub_util_fd_seek.
18186 (nread): Rename to ..
18187 (grub_util_fd_read): ... this. All users updated.
18188 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18189 (grub_crypto_cbc_decrypt): Likewise.
18190 (grub_crypto_hmac_write): Likewise.
18191 (grub_crypto_hmac_buffer): Likewise.
18192 (grub_password_get): Extend to util.
18193 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18194 New member modname.
18195 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18196 * include/grub/cryptodisk.h: New file.
18197 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18198 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18199 LUKS and GELI.
18200 (grub_util_follow_gpart_up): New proto.
18201 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18202 (grub_util_fd_read): Likewise.
18203 (grub_cryptodisk_cheat_mount): Likewise.
18204 (grub_util_cryptodisk_print_uuid): Likewise.
18205 (grub_util_get_fd_sectors): Likewise.
18206 * util/grub-fstest.c (mount_crypt): New var.
18207 (fstest): Mount crypto if requested.
18208 (options): New option -C.
18209 (argp_parser): Parse -C.
18210 (main): Init and fini gcry.
18211 * util/grub-install.in: Support cryptodisk install.
18212 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18213 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18214 cryptodisk.
18215 (prepare_grub_to_access_device): Likewise.
18216 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18217 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18218 (probe_cryptodisk_uuid): New function.
18219 (probe_abstraction): Likewise.
18220 (probe): Use new functions.
18221 * util/import_gcry.py: Create Makefile.utilgcry.def.
18222 Add modname member.
18223
18224 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18225
18226 Lazy device scanning.
18227
18228 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18229 (grub-setup): Remove util/raid.c.
18230 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18231 * grub-core/disk/lvm.c (scan_depth): New variable.
18232 (grub_lvm_iterate): Rescan if necessary.
18233 (find_lv): New function based on grub_lvm_open.
18234 (grub_lvm_open): Use find_lv. Rescan on error.
18235 (is_node_readable): New function.
18236 (is_lv_readable): Likewise.
18237 (grub_lvm_scan_device): Skip already found disks.
18238 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18239 Stop if searched device is found and readable.
18240 * grub-core/disk/raid.c (inscnt): New variable.
18241 (scan_depth): Likewise.
18242 (scan_devices): New function based on grub_raid_register. Abort if
18243 looked for device is found.
18244 (grub_raid_iterate): Rescan if needed.
18245 (find_array): NEw function based on -grub_raid_open.
18246 (grub_raid_open): Use find_array and rescan.
18247 (insert_array): Set became_readable_at.
18248 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18249 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18250 New function.
18251 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18252 (grub_util_pull_device): New function.
18253 (grub_util_get_grub_dev): Call grub_util_pull_device.
18254 * util/raid.c: Moved to ..
18255 * grub-core/kern/emu/raid.c: ... here.
18256 (grub_util_raid_getmembers): New parameter "bootable".
18257 All users updated. Support 1.x.
18258 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18259 All users updated.
18260 * include/grub/disk.h (grub_disk_pull_t): New enum.
18261 (grub_disk_dev): Change iterate prototype.
18262 All users updated.
18263 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18264 New proto.
18265 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18266 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18267 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18268 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18269 All users updated.
18270 * include/grub/util/raid.h: Removed.
18271
18272 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18273
18274 * po/POTFILES.in: Regenerate.
18275
18276 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 Unify sparc init with other ieee1275.
18279
18280 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18281 instead of kern/sparc64/ieee1275/init.c.
18282 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18283 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18284 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18285 grub/machine/kernel.h.
18286 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18287 (grub_claim_heap) [__sparc__]: Use sparc version.
18288 (grub_machine_init): Moved args parsing to
18289 (grub_parse_cmdline): ...this.
18290 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18291 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18292 New definition.
18293 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18294
18295 Move BOOTP to separate file.
18296
18297 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18298 * grub-core/net/net.c: Move all BOOTP functions to
18299 * grub-core/net/bootp.c: ... here.
18300
18301 Use frame interface on PXE.
18302
18303 * grub-core/Makefile.core.def (pxecmd): Removed.
18304 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18305 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18306 * grub-core/i386/pc/pxe.c: Moved from here ...
18307 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18308 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18309 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18310
18311 EFI network support.
18312
18313 * grub-core/Makefile.core.def (efinet): New module.
18314 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18315 here...
18316 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18317 All users updated.
18318 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18319 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18320 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18321 * grub-core/net/drivers/efi/efinet.c: New file.
18322 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18323 (grub_efi_net_config): New extern var.
18324
18325 Various cleanups and bugfixes.
18326
18327 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18328 error.
18329 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18330 disk declared as partition.
18331 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18332 leak on failure.
18333 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18334 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18335 (grub_debug_zalloc): Likewise.
18336 (grub_debug_realloc): Likewise.
18337 (grub_debug_memalign): Likewise.
18338 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18339 Check that target is IPv4.
18340 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18341 local-mac-address as fallback.
18342 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18343 memory leak.
18344 * grub-core/net/ip.c (ipchksum): Rename to ...
18345 (grub_net_ip_chksum): ... this. All users updated.
18346 (grub_net_recv_ip_packets): Special handling for DHCP.
18347 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18348
18349 Unify prefix handling
18350
18351 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18352 (grub_machine_get_bootlocation): ... this.
18353 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18354 (grub_machine_get_bootlocation): ... this.
18355 (grub_prefix): New variable.
18356 (prefix): Removed.
18357 (root_dev): New variable.
18358 (dir): Likewise.
18359 (main): Use new variables.
18360 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18361 Revamped into ...
18362 (grub_machine_get_bootlocation): ... this.
18363 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18364 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18365 (grub_machine_get_bootlocation): ... this.
18366 (grub_machine_set_prefix): Removed.
18367 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18368 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18369 Revamped into ...
18370 (grub_machine_get_bootlocation): ... this.
18371 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18372 (grub_set_prefix_and_root): ... this. All users updated.
18373 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18374 Revamped into ...
18375 (grub_machine_get_bootlocation): ... this.
18376 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18377 (grub_machine_get_bootlocation): New proto.
18378 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18379
18380 Less intrusive and more reliable seek on network implementation.
18381
18382 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18383 (grub_file_seek): Don't call grub_file_net_seek.
18384 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18385 (grub_net_fs_read_real): .. this.
18386 (grub_net_seek_real): Use net->offset.
18387 (grub_net_fs_read): Seek if necessary.
18388
18389 Unify IEEE1275 netwotk config with the other platforms.
18390
18391 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18392 New variable.
18393 (grub_machine_get_bootlocation): Support network.
18394 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18395 Support type and device parsing.
18396 (grub_ieee1275_get_device_type): New function.
18397 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18398 into ...
18399 (grub_ieee1275_net_config_real): ... this.
18400 (grub_ofnet_probecards): Removed.
18401 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18402 * include/grub/ieee1275/ofnet.h: Removed.
18403 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18404 extern var.
18405 (grub_ieee1275_get_device_type): New function.
18406
18407 Unify network device closing across platforms and make more robust.
18408
18409 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18410 grub_grubnet_fini.
18411 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18412 already.
18413 * grub-core/net/net.c (grub_net_network_level_interface_register):
18414 Update num_ifaces.
18415 (grub_net_card_unregister): Close all interfaces.
18416 (receive_packets): Don't poll if no iterfaces are registered.
18417 Open if necessary.
18418 (grub_net_fini_hw): New function.
18419 (grub_net_restore_hw): Likewise.
18420 (fini_hnd): New variable.
18421 (GRUB_MOD_INIT): Register preboot hook.
18422 (GRUB_MOD_FINI): Run and unregister preboot hook.
18423
18424 Poll network cards when idle.
18425
18426 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18427 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18428 * grub-core/net/net.c (receive_packets): Save last poll time.
18429 (grub_net_poll_cards_idle_real): New function.
18430 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18431 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18432 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18433
18434 Rename ofnet interfaces.
18435
18436 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18437 (grub_ofnet_findcards): Use ofnet_%s names.
18438
18439 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18440
18441 Cleanup socket opening.
18442
18443 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18444 (grub_net_fs_close): Likewise.
18445 (grub_net_fs_read_real): Use eof member.
18446 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18447 (+grub_net_udp_close): New inline function.
18448
18449 * include/grub/net/tftp.h: Moved to the top of ...
18450 * grub-core/net/tftp.c: ... here.
18451 * include/grub/net/ip.h: Moved mostly to the top of ...
18452 * grub-core/net/ip.c: ... here.
18453 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18454 * grub-core/net/ethernet.c: ... here.
18455
18456 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18457
18458 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18459 FS name.
18460
18461 * include/grub/net/ip.h (ipv4_ini): Removed.
18462 (ipv4_fini): Likewise.
18463
18464 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18465 (grub_net_send_ip_packets): Likewise.
18466
18467 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18468
18469 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18470 grub_read_cmos prototype.
18471
18472 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18473
18474 VGA text support in qemu-mips
18475
18476 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18477 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18478 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18479 text.
18480 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18481 * grub-core/kern/vga_init.c: ... this.
18482 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18483 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18484 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18485 Adjust.
18486 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18487 GRUB_MACHINE_PCI_IO_BASE.
18488
18489 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18490
18491 MIPS qemu flash support.
18492
18493 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18494 magic.
18495 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18496 (grub_machine_init): Probe memory if its size isn't known.
18497 * util/grub-mkimage.c (image_targets): Add flash targets.
18498 (generate_image): Handle flash targets.
18499
18500 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18501
18502 MIPS qemu at_keyboard support.
18503
18504 * gentpl.py (videoinkernel): Add qemu-mips.
18505 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18506 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18507 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18508 modules.
18509 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18510 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18511 * grub-core/term/serial.c (grub_serial_register)
18512 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18513
18514 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18515
18516 CMOS support on sparc.
18517
18518 * gentpl.py (cmos): Add powerpc and sparc.
18519 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18520 powerpc and sparc.
18521 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18522 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18523 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18524 grub_set_datetime_cmos.
18525 * grub-core/lib/ieee1275/cmos.c: New file.
18526 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18527 (find_rtc): Set no_ieee1275_rtc on error.
18528 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18529 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18530 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18531 fail. Move value to argument. All users updated
18532 (grub_cmos_write): Likewise.
18533 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18534 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18535 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18536 grub_get_datetime_cmos and grub_set_datetime_cmos.
18537
18538 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18539
18540 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18541 sourcing grub-mkconfig_lib.
18542 * util/update-grub_lib.in: Likewise.
18543 * util/grub.d/00_header.in: Likewise.
18544 * util/grub.d/10_hurd.in: Likewise.
18545 * util/grub.d/10_kfreebsd.in: Likewise.
18546 * util/grub.d/10_linux.in: Likewise.
18547 * util/grub.d/10_netbsd.in: Likewise.
18548 * util/grub.d/10_windows.in: Likewise.
18549 * util/grub.d/20_linux_xen.in: Likewise.
18550 * util/grub.d/30_os-prober.in: Likewise.
18551
18552 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18553
18554 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18555 default_bg_color rather than black.
18556 (grub_gfxterm_fullscreen): Likewise.
18557 (grub_gfxterm_background_color_cmd): Save new background color in
18558 default_bg_color.
18559
18560 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18561
18562 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18563
18564 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18565
18566 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18567 mismerge.
18568
18569 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18570
18571 Chainloading on coreboot support.
18572
18573 * grub-core/Makefile.core.def (chain): Add coreboot.
18574 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18575
18576 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18577
18578 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18579 if it happens.
18580
18581 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18582
18583 Implement time command.
18584
18585 * grub-core/Makefile.core.def (time): New module.
18586 * grub-core/commands/time.c: New file.
18587 * grub-core/script/parser.y: Remove "time" keyword.
18588 * grub-core/script/yylex.l: Likewise.
18589
18590 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18591
18592 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18593
18594 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18597 when handling leftovers.
18598
18599 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18600
18601 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18602 so that help2man doesn't fail.
18603
18604 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18607 type in pointers on sparc64.
18608 (get_card_packet): Likewise.
18609
18610 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18611
18612 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18613 with `*'.
18614 (grub_cmd_videoinfo): Fetch current video mode.
18615
18616 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18617
18618 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18619 because of underlying system restrictions.
18620
18621 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18622
18623 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18624 necessary.
18625
18626 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18627
18628 Coreboot video support.
18629
18630 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18631 (vbe): Likewise.
18632 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18633 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18634 here ...
18635 * grub-core/kern/i386/int.S: ... here.
18636 * grub-core/video/i386/pc/vbe.c: Updated includes.
18637 * grub-core/video/i386/pc/vga.c: Likewise.
18638 * include/grub/i386/coreboot/memory.h
18639 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18640 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18641 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18642 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18643 Disable interrupts.
18644 * include/grub/i386/pc/vga.h: Removed. All users updated.
18645
18646 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18647
18648 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18649 definitions for dprintf.
18650 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18651
18652 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18655 prototype.
18656 (get_card_packet): Likewise.
18657
18658 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18659
18660 Display the path of the file when file is not found
18661
18662 * grub-core/fs/fat.c: Display the filename when file is not found.
18663 * grub-core/fs/fshelp.c: Likewise.
18664 * grub-core/fs/hfs.c: Likewise.
18665 * grub-core/fs/jfs.c: Likewise.
18666 * grub-core/fs/minix.c: Likewise.
18667 * grub-core/fs/ufs.c: Likewise.
18668 * grub-core/fs/btrfs.c: Likewise.
18669 * grub-core/commands/i386/pc/play.c: Likewise.
18670
18671 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18672
18673 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18674 pointer checks before calling grub_free().
18675 * grub-core/commands/wildcard.c (match_devices): Likewise.
18676 * grub-core/commands/wildcard.c (match_files): Likewise.
18677 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18678 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18679 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18680 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18681 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18682 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18683 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18684 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18685 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18686
18687 2011-06-25 Patrick <p55@mailinator.com>
18688
18689 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18690
18691 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18692
18693 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18694 (grub_pxe_send): Likewise.
18695 (GRUB_MOD_INIT): Fix types.
18696
18697 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18698
18699 * grub-core/io/xzio.c: Fix code style issues
18700
18701 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18702 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18703
18704 Network infrastructure.
18705 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18706
18707 * include/grub/net/arp.h: New file.
18708 * include/grub/net/device.h: Likewise.
18709 * include/grub/net/ethernet.h: Likewise.
18710 * include/grub/net/ip.h: Likewise.
18711 * include/grub/net/netbuff.h: Likewise.
18712 * include/grub/net/tftp.h: Likewise.
18713 * include/grub/net/udp.h: Likewise.
18714 * include/grub/ieee1275/ofnet.h: Likewise.
18715 * include/grub/emu/export.h: Likewise.
18716 * include/grub/net.h: Likewise.
18717 * grub-core/net/arp.c: Likewise.
18718 * grub-core/net/ethernet.c: Likewise.
18719 * grub-core/net/ip.c: Likewise.
18720 * grub-core/net/udp.c: Likewise.
18721 * grub-core/net/tftp.c: Likewise.
18722 * grub-core/net/netbuff.c: Likewise.
18723 * grub-core/net/net.c: Likewise.
18724 * grub-core/net/drivers/emu/emunet.c: Likewise.
18725 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18726 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18727 export.h.
18728 * grub-core/Makefile.core.def (net): New module.
18729 (tftp): Likewise.
18730 (ofnet): Likewise.
18731 (emunet): Likewise.
18732 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18733 network protocols.
18734 * grub-core/kern/device.c (grub_net_open) : New variable.
18735 (grub_device_open): Handle network device.
18736 (grub_device_close): Likewise.
18737 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18738 (grub_grubnet_fini): Likewise.
18739 (grub_file_seek): Seek in network device.
18740 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18741 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18742 network root.
18743 (grub_machine_fini): Call grub_grubnet_fini.
18744 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18745 network.
18746 (grub_ieee1275_get_aliasdevname): New function.
18747 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18748 Add unofficial Solaris network info.
18749 (grub_multiboot_make_mbi): Likewise.
18750 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18751 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18752 * include/grub/device.h (grub_fs): Removed.
18753 * include/grub/err.h (grub_err_t): Add network-related values.
18754 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18755 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18756 (grub_ieee1275_get_aliasdevname): New proto.
18757 * include/grub/net.h: Rewritten.
18758
18759 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18762 names.
18763
18764 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18767 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18768 it truncates the output.
18769 Reported by: Ximin Luo.
18770
18771 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18772
18773 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18774
18775 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18776
18777 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18778 partmap before abstraction.
18779
18780 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18781
18782 * util/grub-mkconfig_lib.in: Add missing quotes.
18783
18784 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18785
18786 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18787 old method if mountinfo would return /dev/root and /dev/root doesn't
18788 exist.
18789
18790 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 ZFS zlib support
18793
18794 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18795 (decomp_table): Add zlib entries.
18796 (zio_read): USe 8 bits for compression function rather than 3.
18797 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18798
18799 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 * grub-core/disk/ahci.c: Add missing license statements.
18802 * grub-core/fs/romfs.c: Likewise.
18803 * grub-core/lib/ia64/setjmp.S: Likewise.
18804 * grub-core/loader/i386/pc/freedos.c: Likewise.
18805 * grub-core/loader/ia64/efi/linux.c: Likewise.
18806 * grub-core/video/colors.c: Likewise.
18807 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18808
18809 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18810
18811 AHCI support.
18812
18813 * grub-core/Makefile.core.def (ata_pthru): Removed.
18814 (ahci): New module.
18815 (pata): Likewise.
18816 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18817 on unload.
18818 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18819 readwrite.
18820 (grub_hdparm_do_check_powermode_cmd): Likewise.
18821 (grub_hdparm_do_smart_cmd): Likewise.
18822 (grub_hdparm_set_val_cmd): Likewise.
18823 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18824 * grub-core/disk/ahci.c: New file.
18825 * grub-core/disk/ata.c: Factor out the low-level part into ...
18826 * grub-core/disk/pata.c: ... here.
18827 * grub-core/disk/ata_pthru.c: Contents moved to ...
18828 * grub-core/disk/pata.c: ... here.
18829 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18830 (grub_scsi_iterate): Use grub_scsi_names.
18831 (grub_scsi_open): Likewise.
18832 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18833 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18834 (grub_ata_regs_t): New struct.
18835 (grub_disk_ata_pass_through_parms): Likewise.
18836 (grub_ata_device): Renamed to ...
18837 (grub_ata): ... this.
18838 (grub_ata_dev): New struct.
18839 Removed all low-level inline functions.
18840 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18841 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18842 iterate hooks and open. All users updated.
18843 * util/grub-install.in: Handle AHCI disk module.
18844
18845 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18846
18847 Add support for DRI and RSTn markers in JPEG files.
18848
18849 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18850 (JPEG_MARKER_RST0): Likewise.
18851 (JPEG_MARKER_RST1): Likewise.
18852 (JPEG_MARKER_RST2): Likewise.
18853 (JPEG_MARKER_RST3): Likewise.
18854 (JPEG_MARKER_RST4): Likewise.
18855 (JPEG_MARKER_RST5): Likewise.
18856 (JPEG_MARKER_RST6): Likewise.
18857 (JPEG_MARKER_RST7): Likewise.
18858 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18859 (grub_jpeg_decode_dri): New function.
18860 (grub_jpeg_decode_sos): Move image data related part into
18861 grub_jpeg_decode_data function.
18862 (grub_jpeg_decode_data): New function.
18863 (grub_jpeg_reset): New function.
18864 (grub_jpeg_decode_jpeg): Handle new markers.
18865
18866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * util/ieee1275/ofpath.c (check_sas): Close fd.
18869 (main): Free of_path.
18870 Reported by: David Volgyes <dvolgyes>.
18871
18872 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18873
18874 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18875 Reported by: David Volgyes <dvolgyes>.
18876
18877 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18878
18879 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18880 file after stat.
18881 Reported by: David Volgyes <dvolgyes>.
18882
18883 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18886
18887 Reported by: David Volgyes <dvolgyes>.
18888
18889 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18890
18891 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18892 Prevent memory leak.
18893
18894 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18895
18896 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18897 (main): Close file.
18898 Reported by: David Volgyes <dvolgyes>.
18899
18900 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18901
18902 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18903 to continue if allocation is failed.
18904
18905 Reported by: David Volgyes <dvolgyes>.
18906
18907 2011-06-23 David Volgyes <dvolgyes>
18908
18909 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18910 dereference.
18911
18912 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18913
18914 Fix spurious warning.
18915
18916 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18917 (acorn_partition_map_find): Use .bin member.
18918
18919 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18920
18921 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18922 /dev/root as a valid device.
18923
18924 2011-06-23 Jim Meyering <meyering@redhat.com>
18925
18926 Avoid NULL deref in grub_device_open.
18927
18928 * grub-core/kern/device.c (grub_device_open): Don't dereference
18929 a NULL pointer upon failed grub_env_get.
18930
18931 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18932
18933 Support non-512B sectors and agglomerate reads.
18934
18935 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18936 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18937 (disk_io_guid): Removed.
18938 (make_devices): Locate solely by BlockIO.
18939 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18940 (grub_efidisk_read): Use read_blocks.
18941 (grub_efidisk_write): Use write_blocks.
18942 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18943 log_sector_size.
18944 (get_safe_sectors): Handle non-512B sectors.
18945 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18946 sectors.
18947 (grub_biosdisk_write): Handle non-512B sectors.
18948 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18949 (grub_scsi_read): Remove special non-512B block handling (now handled
18950 one level up).
18951 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18952 and do sanity checks.
18953 (grub_disk_adjust_range): Handle non-512B sectors.
18954 (transform_sector): New function.
18955 (grub_disk_read_small): Likewise.
18956 (grub_disk_read): Rewritten.
18957 (grub_disk_write): Handle non-512B sectors.
18958 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18959 log_sector_size.
18960 (open_device): Use log_sector_size.
18961 (grub_util_biosdisk_read): Likewise.
18962 (grub_util_biosdisk_write): Likewise.
18963 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18964 non-512B sectors.
18965 (pc_partition_map_embed): Likewise.
18966 * include/grub/disk.h (grub_disk): New field log_sector_size.
18967 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18968 (GRUB_DISK_CACHE_BITS): Increased to 6.
18969 * util/grub-fstest.c (fstest): New command testload.
18970 (argp_parser): Likewise.
18971
18972 2011-06-16 Robert Millan <rmh@gnu.org>
18973
18974 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18975 `ata' driver on kernel of FreeBSD 9.
18976
18977 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18978 (get_ataraid_disk_name): New functions.
18979 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18980 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18981 get_ataraid_disk_name() and get_ada_disk_name().
18982
18983 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18984
18985 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18986 input format.
18987
18988 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18989
18990 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18991 `ftp.gnu.org' for `alpha.gnu.org'.
18992
18993 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18994
18995 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18996 partitions under /dev/disk/by-id/.
18997
18998 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18999
19000 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19001 after ten consecutive open failures. Scanning all the way up to
19002 10000 is excessive and can cause serious performance problems in
19003 some configurations.
19004 Fixes Ubuntu bug #787461.
19005
19006 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19009 opening new one.
19010
19011 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19012 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19013
19014 Don't stat devices unless we have to.
19015
19016 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19017 dir == /dev/mapper.
19018 (grub_guess_root_device): Use already known os_dev if possible.
19019 * grub-core/kern/emu/hostdisk.c
19020 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19021 if device is known to be a dm one.
19022
19023 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19024
19025 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19026 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19027 Reported by: Pawel Tecza.
19028
19029 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19032 (lsefisystab): Likewise.
19033 (lssal): Likewise.
19034 (lsefimmap): Likewise.
19035 (hdparm): Enable on qemu-mips.
19036 (setjmp): Add ia64 nodist.
19037 (serial): Simplify tags.
19038
19039 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19040
19041 * Makefile.util.def (grub-ofpathname): Install manual page.
19042
19043 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19044
19045 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19046
19047 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19048
19049 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19050
19051 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19054 into dprintf.
19055
19056 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 Use full 64-bit division.
19059
19060 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19061 (grub_divmod64): ... this.
19062 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19063 version.
19064
19065 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19066
19067 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19068 `source'.
19069
19070 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19071
19072 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19073 to avoid accidents when debugging with 'sh -x'.
19074 * grub-core/gensyminfo.sh.in: Likewise.
19075 * tests/example_scripted_test.in: Likewise.
19076 * tests/grub_cmd_regexp.in: Likewise.
19077 * tests/grub_script_blanklines.in: Likewise.
19078 * tests/grub_script_dollar.in: Likewise.
19079 * tests/grub_script_expansion.in: Likewise.
19080 * tests/grub_script_final_semicolon.in: Likewise.
19081 * tests/partmap_test.in: Likewise.
19082 * tests/util/grub-shell-tester.in: Likewise.
19083 * tests/util/grub-shell.in: Likewise.
19084
19085 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19086
19087 Move gfxmenu color handling to video, so that gfxterm can use it
19088 too.
19089
19090 * grub-core/gfxmenu/named_colors.c: Move to ...
19091 * grub-core/video/colors.c: ... here. Rename
19092 grub_gui_get_named_color to grub_video_get_named_color.
19093 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19094 * grub-core/video/colors.c (my_isxdigit): ... here.
19095 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19096 Move to ...
19097 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19098 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19099 to ...
19100 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19101
19102 * include/grub/gui.h (grub_gui_color_t): Move to ...
19103 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19104 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19105 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19106 * include/grub/gui.h (grub_gui_map_color): Move to ...
19107 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19108 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19109 to ...
19110 * include/grub/video.h (grub_video_get_named_color): ... here.
19111 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19112 * include/grub/video.h (grub_video_parse_color): ... here.
19113
19114 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19115 video/colors.c.
19116 (gfxmenu): Remove gfxmenu/named_colors.c.
19117 (video) [videomodules]: Add video/colors.c.
19118
19119 Add a background_color command.
19120
19121 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19122 function.
19123 (GRUB_MOD_INIT): Register background_color command.
19124 (GRUB_MOD_FINI): Unregister background_color command.
19125 (redraw_screen_rect): Allow blend/replace of text layer to be
19126 controlled independently from whether there is a background bitmap.
19127 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19128 changing bitmap.
19129
19130 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19131
19132 Patch BPB in ntldr and chainloader --bpb.
19133
19134 * grub-core/fs/fat.c: Include grub/fat.h.
19135 (grub_fat_bpb): Moved to ...
19136 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19137 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19138 grub/ntfs.h.
19139 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19140 Moved from here...
19141 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19142 here.
19143 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19144 New function.
19145 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19146 (GRUB_MOD_INIT): Show --bpb.
19147 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19148 * grub-core/normal/main.c (features): New variable.
19149 (GRUB_MOD_INIT): Set feature_* variables.
19150 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19151 proto.
19152 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19153
19154 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19155
19156 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19157 for cleanness.
19158
19159 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19160
19161 FreeDOS direct loading support.
19162
19163 * docs/grub.texi (Supported OS): Add FreeDOS.
19164 * grub-core/Makefile.core.def (freedos): New module.
19165 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19166 variable.
19167 (grub_relocator16_boot): Handle %ebx.
19168 * grub-core/lib/i386/relocator16.S: Likewise.
19169 * grub-core/loader/i386/pc/freedos.c: New file.
19170
19171 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19172
19173 Long Linux command line support.
19174
19175 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19176 (maximal_cmdline_size): New variable.
19177 (allocate_pages): Use maximal_cmdline_size.
19178 (grub_cmd_linux): Set and use maximal_cmdline_size.
19179 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19180 (allocate_pages): Use maximal_cmdline_size.
19181 (grub_cmd_linux): Set and use maximal_cmdline_size.
19182 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19183 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19184 and cmdline_size.
19185
19186 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19187 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19188
19189 Improve devmapper support
19190
19191 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19192 (grub_util_is_lvm): New function.
19193 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19194 than lvm if not dmraid.
19195 Handle mapped md nodes.
19196 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19197 (grub_util_device_is_mapped): ... this. Make always available. All users
19198 updated.
19199 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19200 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19201 dmraid nodes.
19202 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19203
19204 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19205
19206 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19207
19208 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19209 * grub-core/modinfo.sh.in: New file.
19210 * grub-core/Makefile.core.def (modinfo.sh): New script.
19211 * util/grub-mknetdir.in: Use modinfo.sh.
19212 * util/grub-mkrescue.in: Likewise.
19213
19214 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19215
19216 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19217 Fix potential usage of Elf32 instead of Elf64 when compiling on
19218 32-bit architecture. Add endianness macros while on it.
19219
19220 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19221
19222 Use mipsel- rather than mips- in directories involving mipsel ports to
19223 allow both endiannesses coexist.
19224
19225 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19226 mips. All conditions adjusted.
19227 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19228 variable.
19229 * util/grub-install.in: Adjust conditions to take renaming into account.
19230 * util/grub-mkimage.c (image_targets): Likewise. New target
19231 mips-qemu_mips-elf for bigendian mips.
19232
19233 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19234
19235 Avoid unnecessary copying on MIPS.
19236
19237 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19238 early if src == dest.
19239 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19240 compression is none.
19241
19242 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 Reduce memory footprint on SGI by putting modules before the kernel
19245 as opposed to after.
19246
19247 * grub-core/Makefile.core.def (kernel): Increase linking address.
19248 (none_decompress): Likewise.
19249 (xz_decompress): Likewise.
19250 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19251 address.
19252 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19253 layout change.
19254 (grub_arch_modules_addr): New function.
19255 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19256 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19257 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19258 here.
19259 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19260 (grub_total_modules_size): ... this. Make global.
19261 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19262 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19263 New definition.
19264 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19265 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19266 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19267 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19268 * util/grub-mkimage.c (image_target_desc): New flag
19269 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19270 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19271 (generate_image): Handle images with modules before kernel.
19272
19273 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19274
19275 Prevent potential loss of memory map by overwrite on qemu-mips.
19276
19277 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19278 Save ram size in $s4.
19279 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19280 All users changed to grub_arch_memsize.
19281 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19282 Loongson.
19283 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19284 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19285 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19286 external variable.
19287
19288 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19289
19290 * .bzrignore: Remove grub-dumpbios.
19291
19292 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19293
19294 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19295 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19296 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19297 existing options which append).
19298 * docs/grub.texi (Simple configuration): Document new options.
19299 Reported by: Ian Jackson. Fixes Debian bug #617538.
19300
19301 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19302
19303 * util/grub-fstest.c (cmd_cat): New function.
19304 (fstest): Handle CMD_CAT.
19305 (options): Add cat.
19306 (argp_parser): Handle cat.
19307
19308 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19309
19310 * Makefile.util.def (grub-bin2h): Don't install.
19311 * docs/man/grub-bin2h.h2m: Remove.
19312
19313 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19314
19315 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19316 place.
19317
19318 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19319
19320 Reenable qemu-mips port.
19321
19322 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19323 Fix small arc bug while on it.
19324 * gentpl.py: Handle qemu_mips.
19325 * grub-core/Makefile.am: Likewise.
19326 * grub-core/Makefile.core.def: Likewise.
19327 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19328 inappropriate includes.
19329 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19330 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19331 * grub-core/kern/main.c (grub_modules_get_end)
19332 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19333 * grub-core/kern/mips/qemu-mips: Moved to ..
19334 * grub-core/kern/mips/qemu_mips: ... this.
19335 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19336 (grub_machine_init): Call terminfo_init and serial_init.
19337 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19338 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19339 New variable.
19340 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19341 parameter passing.
19342 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19343 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19344 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19345 * include/grub/mips/qemu_mips/cmos.h: New file.
19346 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19347 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19348 Removed.
19349 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19350 Use correct mips-style address.
19351 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19352 (GRUB_TICKS_PER_SECOND): Removed.
19353 (grub_get_rtc): Likewise.
19354 (grub_cpu_idle): Likewise.
19355 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19356 New definition.
19357 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19358 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19359 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19360 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19361 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19362 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19363 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19364 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19365
19366 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19367
19368 SGI ARCS port.
19369
19370 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19371 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19372 platforms.
19373 * configure.ac: New target mips-arc.
19374 * gentpl.py: Likewise.
19375 * grub-core/Makefile.am: Likewise.
19376 * grub-core/Makefile.core.def: Likewise.
19377 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19378 (none_decompress): Likewise.
19379 (lsdev): New module.
19380 (datetime): Use lib/arc/datetime.c on ARC.
19381 (part_dvh): New module.
19382 * grub-core/commands/arc/lsdev.c: New file.
19383 * grub-core/disk/arc/arcdisk.c: Likewise.
19384 * grub-core/kern/mips/arc/init.c: Likewise.
19385 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19386 aligned addresses.
19387 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19388 support.
19389 (grub_arch_dl_relocate_symbols): Likewise.
19390 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19391 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19392 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19393 platforms.
19394 * grub-core/lib/arc/datetime.c: New file.
19395 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19396 pci.h on non-loongson.
19397 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19398 (grub_linux_boot): Set unused registers to 0.
19399 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19400 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19401 * grub-core/mmap/mips/uppermem.c: ...here.
19402 * grub-core/partmap/dvh.c: New file.
19403 * grub-core/term/arc/console.c: Likewise.
19404 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19405 (grub_terminfo_set_current): Add terminal "arc".
19406 (grub_terminfo_readkey): Support ARC sequences.
19407 * include/grub/arc/arc.h: New file.
19408 * include/grub/arc/console.h: Likewise.
19409 * include/grub/disk.h (grub_disk_dev_id): Add
19410 GRUB_DISK_DEVICE_ARCDISK_ID.
19411 * include/grub/mips/arc/kernel.h: New file.
19412 * include/grub/mips/arc/memory.h: Likewise.
19413 * include/grub/mips/arc/time.h: Likewise.
19414 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19415 * include/grub/mips/kernel.h (grub_halt): ... here.
19416 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19417 here...
19418 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19419 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19420 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19421 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19422 proto.
19423 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19424 from here ...
19425 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19426 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19427 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19428 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19429 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19430 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19431 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19432 (grub_phys_addr_t): Moved from here ...
19433 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19434 (grub_vtop): Moved from here ...
19435 * include/grub/mips/memory.h (grub_vtop): ... here.
19436 (grub_map_memory): Moved from here ...
19437 * include/grub/mips/memory.h (grub_map_memory): ... here.
19438 (grub_unmap_memory): Moved from here ...
19439 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19440 (grub_machine_mmap_iterate): Moved from here ...
19441 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19442 (grub_mmap_get_lower): Moved from here ...
19443 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19444 (grub_mmap_get_upper): Moved from here ...
19445 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19446 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19447 here ...
19448 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19449 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19450 here ...
19451 * include/grub/mips/time.h (grub_get_rtc): ... here.
19452 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19453 here ...
19454 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19455 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19456 here ...
19457 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19458 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19459 definition.
19460 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19461 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19462 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19463 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19464 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19465 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19466 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19467 (GRUB_MACHINE_LINK_ADDR): Likewise.
19468 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19469 to 6.
19470 * util/grub-install.in: Run dvhtool on ARC.
19471 * util/grub-mkimage.c (image_targets): Add mips-arc.
19472 (generate_image): Handle ECOFF output for mips-arc.
19473
19474 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19475
19476 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19477 blocks.
19478
19479 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19482 after enabling port.
19483
19484 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19485
19486 Skip incorrect USB devices.
19487
19488 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19489 configcnt == 0.
19490 * include/grub/usb.h (grub_usb_err_t): New enum value
19491 GRUB_USB_ERR_BADDEVICE.
19492
19493 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19494
19495 Fuloong video init support.
19496
19497 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19498 well.
19499 (grub_vga_read_arx): New function.
19500 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19501 definition.
19502 (framebuffer): New members io, mmioptr and mmiobase.
19503 (read_sis_cmd): New function.
19504 (write_sis_cmd): Likewise.
19505 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19506 rather than 640x400.
19507 * grub-core/video/sis315_init.c: New file.
19508
19509 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19510
19511 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19512 non-loongson.
19513 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19514 to grub_dl_register_symbol.
19515
19516 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19517
19518 Fix compilation errors.
19519
19520 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19521 potentially unused.
19522 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19523 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19524 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19525 to loongson machines.
19526
19527 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 Several FS mtime support.
19530
19531 * grub-core/fs/affs.c (grub_affs_time): New struct.
19532 (grub_affs_file): New field mtime.
19533 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19534 type. Removed 'size'. New field 'di'. All users updated.
19535 (grub_affs_mount): Simplify checsum checking.
19536 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19537 (grub_affs_dir): Handle mtime.
19538 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19539 (grub_cpio_dir): Likewise.
19540 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19541 (grub_hfs_filerec): New field mtime.
19542 (grub_hfs_dir): Handle mtime.
19543 (grub_hfs_mtime): New function.
19544 (grub_hfs_fs): Register grub_hfs_mtime.
19545 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19546 (grub_iso9660_dir): New field mtime.
19547 (grub_fshelp_node): New field dirent.
19548 (iso9660_to_unixtime): New function.
19549 (iso9660_to_unixtime2): Likewise.
19550 (grub_iso9660_read_symlink): Use node->dirent.
19551 (grub_iso9660_iterate_dir): Likewise.
19552 (grub_iso9660_dir): Set mtime.
19553 (grub_iso9660_mtime): New function.
19554 (grub_iso9660_fs): Register grub_iso9660_mtime.
19555 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19556 (grub_jfs_inode): New fields atime, ctime and mtime.
19557 (grub_jfs_dir): Set mtime.
19558 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19559 * grub-core/fs/ntfs.c (list_file): Set mtime.
19560 (grub_ntfs_dir): Likewise.
19561 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19562 (grub_reiserfs_iterate_dir): Set mtime.
19563 (grub_reiserfs_dir): Likewise.
19564 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19565 (grub_fshelp_node): Likewise.
19566 (grub_sfs_iterate_dir): Set mtime.
19567 (grub_sfs_dir): Likewise.
19568 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19569 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19570 (grub_xfs_inode): New fields atime, mtime, ctime.
19571 (grub_xfs_dir): Set mtime.
19572 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19573 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19574 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19575
19576 Support UDF symlinks.
19577
19578 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19579 (grub_ufs_read_symlink): New function. All users updated.
19580
19581 Check amiga partmap checksum.
19582
19583 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19584 (grub_amiga_partition): Likewise.
19585 (amiga_partition_map_checksum): New function.
19586 (amiga_partition_map_iterate): Check checksum.
19587
19588 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19589
19590 ROMFS support.
19591
19592 * Makefile.util.def (libgrubmods.a): Add romfs.
19593 * grub-core/Makefile.core.def (romfs): New module.
19594 * grub-core/fs/romfs.c: New file.
19595
19596 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19597
19598 Squashfs v4 support.
19599
19600 * Makefile.util.def (libgrubmods.a): Add squash4.
19601 * grub-core/Makefile.core.def (squash4): New module.
19602 * grub-core/fs/squash4.c: New file.
19603 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19604 disk_input_start, disk_input.
19605 (get_byte): Handle disk_input.
19606 (grub_zlib_disk_read): New function.
19607 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19608
19609 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19610 2011-05-15 Feiran Zheng <famcool@gmail.com>
19611
19612 * Makefile.util.def (libgrubmods.a): Add minix3.
19613 * grub-core/Makefile.core.def (minix3): New module.
19614 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19615 (GRUB_MINIX_BSIZE): Removed.
19616 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19617 (grub_minix_ino_t): New type.
19618 (grub_minix_le_to_cpu_ino): New macro.
19619 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19620 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19621 (grub_minix_data): New field block_size.
19622 (grub_minix_read_file): Handle 64-bit correctly.
19623 * grub-core/fs/minix3.c: New file.
19624
19625 2011-05-15 Tristan Gingold <gingold@free.fr>
19626 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19627 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19628
19629 IA64 support.
19630
19631 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19632 * configure.ac: Add ia64-efi target.
19633 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19634 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19635 * gentpl.py: Add ia64_efi platform.
19636 Rename x86_efi to efi and Add ia64-efi. All users updated.
19637 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19638 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19639 Remove kern/generic/rtc_get_time_ms.c on EFI.
19640 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19641 kern/ia64/dl_helper.c on ia64-efi.
19642 Add kern/emu/cache.c on emu.
19643 (linux): Use on loader/ia64/efi/linux.c on ia64.
19644 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19645 whether symbol is a function.
19646 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19647 (grub_symbol): New field 'isfunc'.
19648 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19649 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19650 (grub_dl_load_segments): Place all sections into the same region.
19651 [__ia64__]: Create trampolines and got.
19652 [GRUB_MACHINE_EMU]: Call mprotect.
19653 (grub_dl_resolve_symbols): Resolve symbol type as well.
19654 [__ia64__]: Create function descriptors.
19655 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19656 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19657 (grub_get_rtc): New function.
19658 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19659 * grub-core/kern/emu/cache.S: Renamed to ...
19660 * grub-core/kern/emu/cache_s.S: ... this.
19661 [__ia64__]: Add a nop.
19662 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19663 [__ia64__]: New function.
19664 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19665 * grub-core/kern/ia64/dl.c: New file.
19666 * grub-core/kern/ia64/dl_helper.c: Likewise.
19667 * grub-core/kern/ia64/efi/init.c: New file.
19668 * grub-core/kern/ia64/efi/startup.S: Likewise.
19669 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19670 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19671 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19672 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19673 * grub-core/loader/ia64/efi/linux.c: New file.
19674 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19675 (GRUB_MOD_DEP): Likewise.
19676 (grub_dl) [__ia64__]: New fields got and tramp.
19677 (grub_dl): New field 'base'.
19678 (grub_dl_register_symbol): New argument isfunc. All users updated.
19679 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19680 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19681 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19682 (grub_ia64_dl_get_tramp_got_size): New proto.
19683 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19684 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19685 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19686 * include/grub/efi/api.h: Skip call wrappers on ia64.
19687 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19688 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19689 * include/grub/elf.h (ELF_ST_INFO): New definition.
19690 * include/grub/ia64/efi/kernel.h: New file.
19691 * include/grub/ia64/efi/memory.h: Likewise.
19692 * include/grub/ia64/efi/time.h: Likewise.
19693 * include/grub/ia64/kernel.h: Likewise.
19694 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19695 * include/grub/ia64/time.h: New file.
19696 * include/grub/ia64/types.h: Likewise.
19697 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19698 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19699 New protos.
19700 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19701 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19702 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19703 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19704 All users updated.
19705 (EFI64_HEADER_SIZE): New definition. All users updated.
19706 (image_targets): Add ia64-efi.
19707 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19708 jumpers_addr. All users updated.
19709 Create function descriptors.
19710 (count_funcs): New function.
19711 (unaligned_uint32): New struct.
19712 (MASK20): New definition.
19713 (MASK19): Likewise.
19714 (MASKF21): Likewise.
19715 (add_value_to_slot_20b): New function.
19716 (add_value_to_slot_21_real): Likewise.
19717 (add_value_to_slot_21): Likewise.
19718 (ia64_kernel_trampoline): New struct.
19719 (nopm): New variable.
19720 (jump): Likewise.
19721 (make_trampoline): New function.
19722 (relocate_addresses): Handle ia64.
19723 (make_reloc_section): Likewise.
19724 (load_image): Likewise.
19725
19726 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19727
19728 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19729 warning. Move variables before code while on it.
19730
19731 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19732
19733 Fuloong support.
19734
19735 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19736 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19737 * grub-core/boot/mips/loongson/fuloong.S: New file.
19738 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19739 Explicitly init CS5536.
19740 [FULOONG]: Don't use serial until CS5536 is available.
19741 Set GPIO based on dumps.
19742 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19743 [FULOONG]: Handle GPIO and memory controller differences.
19744 Parse machine type in $a2.
19745 * grub-core/boot/mips/startup_raw.S: Determine and save the
19746 architecture.
19747 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19748 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19749 init on architecture type.
19750 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19751 SIS315E. Don't init at_keyboard on fuloong.
19752 (grub_halt): Support Fuloong.
19753 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19754 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19755 (loongson_machtypes): New array.
19756 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19757 type.
19758 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19759 config. All users updated. Handle CS5536 serial.
19760 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19761 default port on machine type. Register serial as inactive.
19762 * grub-core/video/sis315pro.c: New file.
19763 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19764 definition.
19765 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19766 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19767 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19768 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19769 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19770 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19771 to ...
19772 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19773 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19774 definition.
19775 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19776 (grub_arch_machine): New extern var.
19777 * include/grub/mips/loongson/serial.h
19778 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19779 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19780 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19781 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19782 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19783 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19784 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19785 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19786 * include/grub/term.h (grub_term_register_input_inactive): New inline
19787 function.
19788 (grub_term_register_output_inactive): Likewise.
19789 * include/grub/video.h (grub_video_driver_id): New value
19790 GRUB_VIDEO_DRIVER_SIS315PRO.
19791 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19792 New field "names". All users updated.
19793 New field value IMAGE_FULOONG_FLASH.
19794 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19795
19796 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19797
19798 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19799 and add some clarification.
19800
19801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19804 platforms if kernel is compressed.
19805
19806 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19807
19808 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19809 unused modules since currently referrence counter isn't reliable and
19810 there isn't much memory to recover there anyway.
19811
19812 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19815 rather than resetting it to allow modules to reference themselves
19816 in init.
19817
19818 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19821 counter on dependencies since grub_dl_unref already handles this.
19822
19823 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19826 on error if not already done.
19827
19828 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19829
19830 Fix few potential memory misusage.
19831
19832 * grub-core/font/font.c (load_font_index): Don't free char_index to
19833 avoid double free.
19834 (grub_font_load): Zero-fill font at alloc for safety.
19835 Close file on error.
19836 (free_font): Free bmp_idx.
19837
19838 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19839
19840 * docs/grub.texi (Installation): Fix several outdated claims.
19841
19842 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19843
19844 Handle module_license on windows.
19845
19846 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19847 sections shifted.
19848 (insert_string): Make argument const char * instead of char *.
19849 (write_section_data): Handle long section names.
19850 Handle module_license.
19851
19852 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19853
19854 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19855 handle class-free menuentries.
19856 (grub_normal_add_menu_entry): Add a check to be sure.
19857
19858 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19859
19860 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19861 PgUp and PgDown.
19862
19863 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19864
19865 * configure.ac: Bump version to 1.99.
19866
19867 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19868
19869 Give ATA device a bit more time on first try in order to allow disks
19870 to spin up.
19871
19872 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19873 if dev->present is 1. Reset dev->present on failure.
19874 (grub_ata_device_initialize): Set dev->present to 1.
19875 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19876 (grub_ata_device): New member 'present'.
19877
19878 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19879
19880 * util/grub-mkimage.c (generate_image): Update hash.
19881
19882 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19883
19884 Flush caches on DMA memory.
19885
19886 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19887 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19888 (grub_dma_free): Likewise.
19889 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19890
19891 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19892
19893 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19894 to avoid asm treating ld and sd as macros.
19895
19896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19897
19898 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19899 decompressor.
19900
19901 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19902
19903 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19904 grub_decompress_core since later would fail if grub_decompress_core
19905 is too far.
19906
19907 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19908
19909 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19910 R_MIPS_JALR since it's used by newer compiler.
19911
19912 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19913
19914 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19915
19916 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19917
19918 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19919 file_path to 0 for surety.
19920 (grub_chainloader_boot): Set exit_data to NULL.
19921 Unset the loader once done.
19922 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19923
19924 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19927 unknown key into a dprintf.
19928
19929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19930
19931 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19932 on first non-existant partition.
19933
19934 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19935
19936 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19937 openning fails.
19938 Reported by: Mark Korenberg.
19939
19940 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19941
19942 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19943 overflow.
19944
19945 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19946
19947 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19948 before closing to ensure that it will be readable by grub-setup.
19949
19950 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19951
19952 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19953 (devpath_1): Use MAKE_PIWG_PATH.
19954 (devpath_2): Likewise.
19955 (devpath_3): Likewise.
19956 (devpath_4): Likewise.
19957 (devpath_5): Likewise.
19958 (devpath_6): Likewise.
19959
19960 The appleldr.mod was checked that to be binary identical to previous
19961 version.
19962
19963 2011-05-05 Zach <mikezackles>
19964
19965 Support 2010 Macbooks.
19966
19967 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19968 (devs): Add devpath_6.
19969
19970 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19971
19972 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19973 /dev/random. /dev/urandom is good enough for our purposes (salting).
19974
19975 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19976
19977 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19978
19979 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19980
19981 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19982 hexadecimal.
19983
19984 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19987 and not 0 on failure.
19988
19989 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19990
19991 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19992 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19993 disk; otherwise grub_fs_probe will not fall back to the next
19994 filesystem.
19995 (grub_pxefs_open): Likewise, for consistency.
19996 Reported and tested by: Ezekiel Grave.
19997
19998 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19999
20000 * tests/partmap_test.in: Don't hardcode path to parted.
20001 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20002
20003 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20004
20005 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20006 of `ls' to find out which devices are available.
20007
20008 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20009
20010 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20011 than source address for efi mmap buffer.
20012
20013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20014
20015 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20016 wrong action on non-detecting the magic.
20017
20018 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20021 already supplied by another part of the module (fixes compilation on
20022 FreeBSD).
20023
20024 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20025
20026 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20027 match the one used by mdadm.
20028
20029 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20030
20031 * po/README: Add instructions for creating po/LINGUAS.
20032
20033 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20034
20035 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20036 #551428.
20037
20038 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20039 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20040 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20041 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20042 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20043 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20044 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20045 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20046 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20047 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20048 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20049 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20050 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20051 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20052 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20053 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20054 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20055 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20056 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20057 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20058 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20059 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20060
20061 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20062
20063 * grub-core/kern/emu/getroot.c
20064 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20065 test that was incorrectly reintroduced in r3214.
20066 Reported by: Ian Dall. Fixes Savannah bug #33133.
20067
20068 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20069
20070 Fix stack pointer handling in 16-bit relocator.
20071
20072 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20073 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20074 Fixes Ubuntu bug #683904.
20075
20076 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 * configure.ac: Bump version to 1.99~rc2.
20079
20080 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20081
20082 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20083 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20084 * grub-core/lib/x86_64/setjmp.S: Likewise.
20085 * grub-core/lib/mips/setjmp.S: Likewise.
20086 * grub-core/lib/powerpc/setjmp.S: Likewise.
20087 * grub-core/lib/sparc64/setjmp.S: Likewise.
20088
20089 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20090
20091 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20092 * grub-core/lib/efi/datetime.c: Likewise.
20093
20094 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20095
20096 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20097 New function.
20098 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20099 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20100 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20101
20102 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20105 bitmap.
20106 (grub_gfxterm_term_init): Likewise.
20107
20108 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20109
20110 Take into account the decorations the computing menu entry width.
20111
20112 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20113 (grub_gfxmenu_create_box): Register get_border_width.
20114 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20115 if available.
20116 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20117 get_border_width.
20118
20119 2011-04-18 Endres Puschner <code@e7p.de>
20120
20121 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20122 Don't skip first class.
20123
20124 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20125
20126 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20127 chunks.
20128 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20129
20130 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 Complete 64-bit division support.
20133
20134 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20135 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20136 * include/grub/misc.h (grub_divmod64): Rename to ...
20137 (grub_divmod64_full): ... this.
20138 (grub_divmod64): New inline function.
20139
20140 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20143
20144 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20145
20146 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20147 performing the necessary test.
20148
20149 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20150
20151 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20152 (kfreebsd.elf): Likewise.
20153 (pc-chainloader.elf): Likewise.
20154 (ntldr.elf): Likewise.
20155
20156 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20157
20158 Identify RAID by its UUID rather than (guessed) name.
20159
20160 * grub-core/disk/raid.c (ascii2hex): New function.
20161 (grub_raid_open): Accept mduuid/%s specification.
20162 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20163 (get_mdadm_uuid): ... this.
20164 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20165
20166 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20167
20168 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20169 to negative size.
20170
20171 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20172
20173 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20174 btrfs subvolume.
20175 * util/grub.d/20_linux_xen.in: Likewise.
20176
20177 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20178
20179 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20180 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20181
20182 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20183 Build a list of relevant visible mounts using the mnt_id and
20184 parent_mnt_id fields, and then scan that list at the end.
20185
20186 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20187
20188 * docs/grub.texi (normal): New section.
20189 (normal_exit): New section.
20190 (Embedded configuration): Add reference to normal.
20191 (GRUB only offers a rescue shell): Likewise.
20192 * docs/grub-dev.texi (Error Handling): Fix typo.
20193
20194 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20195
20196 * NEWS: Drop obsolete entry about probe-only btrfs support.
20197
20198 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20199
20200 * util/import_gcry.py: Fix typo.
20201
20202 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20203
20204 * NEWS: Add btrfs support.
20205
20206 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20207 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20208
20209 BtrFS support. Written by me (Vladimir) with important bugfixes and
20210 even more important testing by Colin.
20211
20212 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20213 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20214 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20215 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20216 mem_input_off and mem_input. All users updated to accept in-RAM input.
20217 (gzio_seek): New function.
20218 (test_zlib_header): Likewise.
20219 (grub_gzio_read): Likewise.
20220 (grub_zlib_decompress): Likewise.
20221 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20222 Accept partial and non-virtual mounts.
20223 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20224 avoid receiving /dev/dm-X as device.
20225 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20226 Handle bind and partial mounts.
20227 * grub-core/lib/crc.c: New file.
20228 * include/grub/deflate.h: Likewise.
20229 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20230 proto.
20231 * include/grub/lib/crc.h: New file.
20232
20233 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20234
20235 Implement automatic module license checking according to new GNU
20236 guidelines.
20237
20238 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20239 (grub_dl_load_core): Use grub_dl_check_license.
20240 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20241 (GRUB_MOD_LICENSE): Likewise.
20242 (GRUB_MOD_DUAL_LICENSE): Likewise.
20243 All modules updated.
20244
20245 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20246
20247 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20248 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20249 loaders.
20250 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20251
20252 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20253
20254 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20255
20256 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20257
20258 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20259 failed.
20260
20261 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20262
20263 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20264 parenthesis in the middle of the filename.
20265
20266 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20267
20268 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20269 rather than trying to put initrd way too high.
20270 Reported by: Ryan Lortie <desrt@desrt.ca>
20271
20272 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20273
20274 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20275 improperly removed string.
20276
20277 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20278
20279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20280 is_disk.
20281 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20282 (open_device) Likewise.
20283 (grub_util_biosdisk_close): Likewise.
20284 Reported by: Mark Korenberg.
20285
20286 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20287
20288 * util/grub-mkconfig_lib.in: Add missing quotes.
20289
20290 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20291
20292 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20293 is NULL.
20294
20295 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20296
20297 Dynamically count the number of lines for the lower banner.
20298
20299 * grub-core/normal/menu_entry.c (per_term_screen): New member
20300 num_entries.
20301 (print_down): Use num_entries.
20302 (update_screen): Likewise.
20303 (grub_menu_entry_run): Set num_entries.
20304 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20305 num_entries.
20306 (grub_print_message_indented): Move real part to ...
20307 (grub_print_message_indented_real): ... here. Additional argument
20308 dry_run.
20309 (draw_border): Additional argument num_entries.
20310 (print_message): Additional argument dry_run.
20311 (print_entries): Receive menu viewer data.
20312 (grub_menu_init_page): New argment num_entries.
20313 (menu_text_set_chosen_entry): Use num_entries.
20314 (grub_menu_try_text): Likewise.
20315 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20316 All users updated.
20317 (grub_ucs4_count_lines): New function.
20318 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20319 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20320 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20321 (grub_term_border_height): Likewise.
20322 (grub_term_num_entries): Likewise.
20323
20324 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20327 Remove now unused string.
20328
20329 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20330
20331 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20332 build system.
20333 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20334
20335 (Comment): Fix typo.
20336 (Getting started): General copy-editing.
20337 (Typical Development Experience): Likewise.
20338 (Error Handling): Likewise.
20339 (Video API): Likewise.
20340
20341 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20342
20343 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20344 throughout.
20345
20346 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20347
20348 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20349 directory.
20350
20351 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20352
20353 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20354 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20355 "development".
20356
20357 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20358
20359 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20360 grub_strcpy since the lines aren't necessarily 0-terminated.
20361
20362 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20363
20364 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20365 root on legacy.
20366
20367 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20368
20369 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20370 (GRUB_MOD_INIT): DEVICE isn't optional.
20371
20372 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20373
20374 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20375 word on new line if it's too long anyway. Fixes a hang.
20376
20377 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20380 const.
20381 * util/grub-setup.c (main): Reuse md device name if available.
20382 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20383 not GRUB name as argument.
20384 Based on patch by: Florian Wagner <fwagner>.
20385
20386 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20387
20388 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20389 Place mbi on low memory for better compatibility.
20390
20391 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20392
20393 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20394
20395 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20396 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20397
20398 * autogen.sh: Ensure that collate and ctype locale is C.
20399 * conf/Makefile.common: Likewise.
20400
20401 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20402
20403 * grub-core/normal/menu.c: Add missing include.
20404
20405 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20406
20407 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20408
20409 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20410
20411 * util/grub-mkconfig.in: Ignore emacsen backup.
20412
20413 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20414
20415 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20416 on open.
20417 (grub_util_biosdisk_close): Likewise.
20418
20419 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20420
20421 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20422 const attribute and use grub_isdigit.
20423
20424 2011-04-06 Andrey <dev_null@ukr.net>
20425
20426 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20427 gcc warning.
20428
20429 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20430
20431 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20432 useful grub_dprintf's.
20433
20434 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20435
20436 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20437
20438 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20439
20440 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20441
20442 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20443
20444 Output errors if theme loading failed.
20445
20446 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20447 grub_gfxterm_fullscreen on error paths to ...
20448 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20449 theme loading error.
20450
20451 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20452
20453 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20454 space for older compilers.
20455 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20456
20457 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20458
20459 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20460 and report them as not RAID members since they are useless for GRUB.
20461 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20462
20463 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20464
20465 Increase LVM implementation robustness in order not to crash on
20466 configurations like pvmove. Previously code assumed that in some places
20467 only lvs or only pvs are used whereas it seems that they are used
20468 interchangeably.
20469
20470 * grub-core/disk/lvm.c (read_node): New function.
20471 (read_lv): Use read_node.
20472 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20473 Match volumes only at the end when all lvs are found. Take both
20474 pvs (first) and lvs (second) into account.
20475 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20476 mirror_* into node_*. All users updated.
20477 (grub_lvm_stripe): Merge this ...
20478 (grub_lvm_mirror): ... and this ...
20479 (grub_lvm_node): ... into this. All users updated.
20480
20481 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20482
20483 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20484 of function to allow further scanning for LVMs.
20485
20486 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20487
20488 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20489 on failed seek as it breaks open fd reusage.
20490
20491 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20492
20493 * util/grub-install.in: Add a recommendation to use --recheck before
20494 reporting bugs.
20495
20496 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20497
20498 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20499 are obtained.
20500
20501 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20502
20503 GRUB developper manual based on existing Internals section and
20504 contributions by the various authors with active copyright assignment.
20505
20506 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20507 * docs/font_char_metrics.png: New file.
20508 * docs/font_char_metrics.txt: Likewise.
20509 * docs/grub-dev.texi: Likewise.
20510 * docs/grub.texi (Internals): Move from here ...
20511 * docs/grub-dev.texi: ... here.
20512
20513 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20514
20515 Store the loopback device as data on loopback grub_disk structures,
20516 rather than the file it points to. This fixes use of freed memory
20517 if an existing loopback device is replaced.
20518
20519 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20520 disk->data, not dev->file.
20521 (grub_loopback_read): Adjust file assignment to match.
20522 Fixes Ubuntu bug #742967.
20523
20524 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20525
20526 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20527 when replacing an existing device.
20528
20529 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20530
20531 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20532 memory corruptions.
20533
20534 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20535 unsigned.
20536 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20537 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20538 (grub_jfs_read_inode): Likewise.
20539 (grub_jfs_opendir): Likewise. Remove now useless casts.
20540 (grub_jfs_getent): Likewise.
20541 Make ino a grub_uint32_t rather than int.
20542 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20543 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20544 division and module with bit operations.
20545 (grub_jfs_find_file): Make ino a grub_uint32_t.
20546 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20547
20548 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20549
20550 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20551 warning. (This was in fact always initialised before use, but GCC
20552 wasn't smart enough to prove that.)
20553 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20554
20555 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20558 stack alignment.
20559 (efi_wrap_1): Likewise.
20560 (efi_wrap_2): Likewise.
20561 (efi_wrap_3): Likewise.
20562 (efi_wrap_4): Likewise.
20563 (efi_wrap_5): Likewise.
20564 (efi_wrap_6): Likewise.
20565 (efi_wrap_10): Likewise.
20566 Based on information by: Red Hat/Peter Jones.
20567
20568 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20569
20570 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20571 set-but-not-used variable.
20572
20573 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20574
20575 * docs/grub.texi (Simple configuration): Be more explicit about
20576 GRUB_DEFAULT, and add an example.
20577 Reported by: Leslie Rhorer.
20578
20579 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20580
20581 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20582 shell".
20583
20584 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20585
20586 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20587 * util/grub.d/20_linux_xen.in: Likewise.
20588
20589 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20590
20591 * util/grub.d/10_linux.in: Try alternative config filenames where
20592 we parse config file.
20593 * util/grub.d/20_linux_xen.in: Likewise.
20594
20595 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20596
20597 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20598 * util/grub.d/20_linux_xen.in: Likewise.
20599
20600 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 * grub-core/disk/raid.c (insert_array): Add few potentially
20603 useful grub_util_info.
20604 (grub_raid_register): Likewise.
20605
20606 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20607
20608 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20609 Preserve partition number in mdadm code path.
20610
20611 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20612
20613 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20614 few potentially useful grub_util_info.
20615
20616 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20617
20618 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20619
20620 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20621
20622 * docs/grub.texi (default): Use @example rather than nested
20623 itemized lists to avoid breaking gendocs.
20624
20625 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20626
20627 * docs/grub.texi (Future): Update.
20628
20629 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20630
20631 * docs/grub.texi (Environment): New chapter.
20632 (Changes from GRUB Legacy): Link to "Environment block" section for
20633 details of limitations.
20634 (Simple configuration): Likewise. Link to documentation of gfxmode
20635 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20636 respectively.
20637 (Shell-like scripting): Note that normal variables are stored in the
20638 environment.
20639 (gettext): Link to documentation of lang and locale_dir.
20640 (list_env): New section.
20641 (load_env): New section.
20642 (save_env): New section.
20643
20644 (Reporting bugs): Fix typo.
20645
20646 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20647
20648 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20649 the example.
20650
20651 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20652
20653 * grub-core/term/at_keyboard.c (set_scancodes)
20654 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20655
20656 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20657
20658 * docs/grub.texi (Menu-specific commands): Remove some semantics
20659 that were true in GRUB Legacy but not in GRUB 2.
20660 (submenu): New section.
20661 (false): New section.
20662 (read): New section.
20663 (true): New section.
20664
20665 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20666
20667 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20668
20669 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20670
20671 * docs/grub.texi (Simple configuration): Explain some of the
20672 current limitations of grub-mkconfig.
20673 Reported by: Leslie Rhorer.
20674
20675 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20676
20677 Old macs search for boot.efi rather than for bootia32.efi.
20678
20679 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20680 * util/grub-mkrescue.in: Likewise.
20681 Suggested by: Peter Jones.
20682
20683 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20684
20685 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20686
20687 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20688
20689 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20690 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20691 (grub_lvm_mirror): New struct.
20692 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20693 (grub_lvm_iterate): Iterate only visible volumes.
20694 (grub_lvm_read): Factor out to ..
20695 (read_lv): ... this. Support mirrors.
20696 (grub_lvm_read): New wrapper function.
20697 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20698 stripped or mirrored.
20699
20700 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20701
20702 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20703
20704 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20705
20706 * docs/grub.texi (loopback): New section.
20707
20708 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20711 removed -p option.
20712
20713 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20714
20715 * docs/grub.texi (BIOS installation): New section, partly based on
20716 previous text in other sections.
20717 (Installing GRUB using grub-install): Replace BIOS discussion with a
20718 cross-reference.
20719 (Images): Likewise.
20720
20721 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20724 [HAVE_DIOCGDINFO]: Add safety checks.
20725
20726 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20727
20728 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20729 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20730
20731 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20732
20733 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20734 real_sb->size is zero (e.g. RAID-0), get the disk size from
20735 real_sb->data_size instead.
20736 Fixes Ubuntu bug #743136.
20737
20738 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20739
20740 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20741 printf clauses for printing size and start.
20742
20743 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20744
20745 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20746 Reported and tested by: Timothy Nikkel.
20747
20748 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20749
20750 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20751 (dirty_region_add_real): ... this.
20752 (dirty_region_add): Don't discard margin refresh when performing
20753 scheduled repaint.
20754
20755 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20756
20757 * grub-core/lib/relocator.c (allocate_regstart)
20758 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20759 terminals are capabple of malloc-free operation.
20760 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20761 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20762
20763 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20764
20765 * util/grub-setup.c: Copy the partition table zone if floppy support
20766 is disabled, even if no partition table is found.
20767
20768 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20769 during POST if an invalid partition table is contained in the PBR
20770 of the active partition when GRUB is installed to a partition.
20771
20772 2011-03-28 Colin Watson <cjwatson@debian.org>
20773
20774 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20775 comment.
20776
20777 2011-03-28 Colin Watson <cjwatson@debian.org>
20778
20779 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20780 to be specific about what kind of RAID device we're scanning for.
20781
20782 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20783
20784 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20785 return freed string.
20786
20787 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20788
20789 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20790
20791 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20792
20793 Use libgeom on FreeBSD to detect partitions.
20794
20795 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20796 (grub-mkrelpath): Likewise.
20797 (grub-script-check): Likewise.
20798 (grub-editenv): Likewise.
20799 (grub-mkpasswd-pbkdf2): Likewise.
20800 (grub-fstest): Likewise.
20801 (grub-mkfont): Likewise.
20802 (grub-mkdevicemap): Likewise.
20803 (grub-probe): Likewise.
20804 (grub-setup): Likewise.
20805 (grub-ofpathname): Likewise.
20806 (grub-mklayout): Likewise.
20807 (example_unit_test): Likewise.
20808 (grub-menulst2cfg): Likewise.
20809 * grub-core/Makefile.core.def (grub-emu): Likewise.
20810 (grub-emu-lite): Likewise.
20811 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20812 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20813 define HAVE_DIOCGDINFO.
20814 (follow_geom_up) [FreeBSD]: New function.
20815 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20816 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20817 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20818 unconditionally of HAVE_DIOCGDINFO.
20819
20820 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20821
20822 Fix FreeBSD compilation problem.
20823
20824 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20825 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20826
20827 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20828
20829 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20830 Switch back to page zero before loading a kernel, since some kernel
20831 drivers expect that.
20832 Thanks to: Felix Kuehling.
20833
20834 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20837 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20838 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20839
20840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20843 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20844
20845 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20848 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20849 malloc is disabled.
20850
20851 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20854 for modules headers when counting the needed allocation size.
20855
20856 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20859 if no ASCII character is found to prevent crash.
20860
20861 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20862
20863 * grub-core/video/bitmap.c (match_extension): Ignore case.
20864
20865 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20866
20867 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20868
20869 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 * grub-core/script/parser.y: Declare "time" as valid argument.
20872
20873 2011-03-23 Peter Jones <pjones@redhat.com>
20874
20875 Fix incorrect assert failure reporting.
20876
20877 * grub-core/tests/example_functional_test.c (example_test): Add
20878 a failure comment.
20879 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20880 (failure_start): ...this. Check that malloc succeeded.
20881 Don't call xvasprintf. Return failure struct.
20882 (failure_append_vtext): New function.
20883 (failure_append_text): Likewise.
20884 (add_failure): Likewise.
20885 (grub_test_assert_helper): Likewise.
20886 * include/grub/test.h (grub_test_assert_helper): New declaration.
20887 (grub_test_assert): Macro rewritten.
20888
20889 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20890
20891 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20892
20893 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20894
20895 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20896
20897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20898
20899 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20900 into GRUB-style one.
20901
20902 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20903
20904 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20905 error and not grub_errno.
20906 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20907
20908 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20909
20910 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20911 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20912
20913 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20914
20915 * grub-core/efiemu/i386/pc/cfgtables.c
20916 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20917 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20918 (grub_xnu_unlock): Likewise.
20919 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20920
20921 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20922
20923 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20924 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20925 * grub-core/commands/hashsum.c (aliases): Likewise.
20926 * grub-core/commands/setpci.c (pci_registers): Likewise.
20927 * grub-core/disk/usbms.c (attach_hook): Likewise.
20928 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20929 (zio_checksum_table): Likewise.
20930 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20931 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20932 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20933 * grub-core/lib/relocator.c (leftovers): Likewise.
20934 (extra_blocks): Likewise.
20935 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20936 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20937 (modules_last): Likewise.
20938 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20939 (devices): Likewise.
20940 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20941 (modules_last): Likewise.
20942 * grub-core/normal/auth.c (users): Likewise.
20943 * grub-core/normal/context.c (initial_menu): Likewise.
20944 (current_menu): Likewise.
20945 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20946 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20947 (grub_serial_terminfo_input_template): Likewise.
20948 (grub_serial_terminfo_output_template): Likewise.
20949 (grub_serial_terminfo_input): Likewise.
20950 (grub_serial_terminfo_output): Likewise.
20951 (registered): Likewise.
20952 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20953
20954 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20957 grub_video_mode_type_t.
20958 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20959 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20960 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20961
20962 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20963
20964 * util/grub-install.in: Correct the x86-64 name as x86_64.
20965
20966 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20967
20968 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20969 initial chunk read from the kernel always includes GRUB's multiboot
20970 header, which is now outside the first sector.
20971
20972 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20973
20974 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20975 cached mmap_size, so that this works correctly when called multiple
20976 times.
20977 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20978
20979 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20980
20981 * docs/grub.texi (Simple configuration): Tidy up formatting.
20982
20983 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20984
20985 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20986 Set-but-not-used variable removed.
20987
20988 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20989
20990 Workaround yet another IEEE1275 bug.
20991
20992 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20993 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20994 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20995 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20996 is set.
20997 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20998 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20999
21000 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21001
21002 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21003 error.
21004
21005 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21006
21007 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21008 empty, since in that case we can only generate either nothing or a
21009 syntactically invalid configuration file.
21010 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21011
21012 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21013
21014 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21015 (Making a GRUB bootable CD-ROM): Likewise.
21016 (Invoking grub-mkrescue): New section.
21017 Reported by: Yann Dirson. Fixes Debian bug #612585.
21018
21019 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21020
21021 * util/grub-install.in: Remove unnecessary brackets from tr
21022 arguments.
21023 * util/grub.d/10_hurd.in: Likewise.
21024 * util/grub.d/10_kfreebsd.in: Likewise.
21025 * util/grub.d/10_linux.in: Likewise.
21026 * util/grub.d/20_linux_xen.in: Likewise.
21027 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21028
21029 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21030
21031 * include/grub/file.h (not_easly_seekable): Rename to ...
21032 (not_easily_seekable): ... this. Update all users.
21033
21034 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21035
21036 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21037 grub-mkrescue.
21038
21039 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21040
21041 * util/grub-mkimage.c (generate_image): Refuse to create the images
21042 bigger than the actual flash (512K) in Loongson machines. 512K is also
21043 the biggest chip supported by them.
21044
21045 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21046
21047 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21048
21049 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21050
21051 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21052 super_offset field.
21053
21054 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 * util/grub-install.in: Ignore install device on platforms
21057 where it doesn't make sense. Always use UUIDs except on pc, efi and
21058 sparc64.
21059 Reported by: Daniel Kahn Gillmor.
21060
21061 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21062
21063 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21064
21065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21066
21067 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21068 (iterate_real): Don't rely on partition being non-NULL.
21069
21070 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21071
21072 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21073 supported platforms. Put a compile time assert for this rather than
21074 generate a warning with 32-bit shift.
21075
21076 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21077
21078 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21079 logical expression more readable.
21080
21081 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21082
21083 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21084 even if some elements have a name.
21085 Reported by: Alexander GQ Gerasiov.
21086
21087 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21088
21089 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21090 path unreadable if `grub-probe -t abstraction' fails, for example if
21091 memberlist fails on an LVM volume group.
21092 Reported by: Darius Jahandarie.
21093
21094 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21095
21096 * docs/grub.texi (Simple configuration): Document
21097 GRUB_PRELOAD_MODULES.
21098
21099 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21100
21101 * .bzrignore: Remove nonexistent grub-pbkdf2.
21102
21103 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21104
21105 * configure.ac: Bump version to 1.99~rc1.
21106
21107 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21110 for safety.
21111
21112 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21113
21114 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21115 module.
21116
21117 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21118
21119 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21120
21121 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21124 diskdevid.
21125
21126 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21127
21128 Fix compilation on cygwin.
21129
21130 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21131 -R .drectve on cygwin.
21132 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21133 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21134 (COND_CYGWIN): New condition.
21135 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21136 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21137 not @TARGET_OBJ2ELF@.
21138 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21139 type to determine whether aux is to be used.
21140
21141 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21144 realpath'ed device string.
21145 Handle floppy (somewhat).
21146 Issue error in unknown case rather than garbage.
21147 Reported by: Axel Beckert.
21148
21149 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21150
21151 * util/grub.d/00_header.in (load_video): Handle the case when no video
21152 drivers available.
21153 Thanks to: Axel Beckert.
21154
21155 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21156
21157 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21158 variable. Fixes problem on big endian platforms.
21159
21160 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21163 It doesn't work well there.
21164
21165 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21166
21167 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21168 warning.
21169 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21170 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21171 counter.
21172
21173 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21174
21175 Use alias->path rather than buggy "canon".
21176
21177 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21178 (ofdisk_hash_add): New argument curcan. All users updated.
21179
21180 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21181
21182 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21183
21184 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21185
21186 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21187 loadmask before doing any calculations. Use correct type for offset.
21188 (grub_linux_load64): Likewise.
21189
21190 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21191
21192 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21193 with NULL.
21194 (console_grub_equivalences_unshift): Likewise.
21195 Reported by: Daniel Dehennin.
21196
21197 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21198
21199 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21200 (set_env_limn_ro): Likewise.
21201 (GRUB_MOD_INIT): Likewise.
21202 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21203 ARRAY_SIZE while on it.
21204 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21205 * grub-core/normal/context.c (grub_env_export): Move from here ...
21206 * grub-core/kern/env.c (grub_env_export): ... here.
21207 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21208 prefix.
21209 * grub-core/kern/main.c (grub_main): Export root and prefix.
21210 * include/grub/env.h (grub_env_export): Export.
21211 Reported by: Seth Goldberg.
21212
21213 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21214
21215 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21216 Take into account space used by ELF sections and multiboot palette.
21217 Reported by: Grégoire Sutre.
21218
21219 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21220
21221 * BUGS: New file.
21222
21223 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21224
21225 Pass more appropriate video id to Linux.
21226
21227 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21228 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21229 fill have_vga.
21230 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21231 shift params->lfb_size.
21232 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21233
21234 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21235
21236 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21237
21238 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21241 separator and pass bootpath/devid even if only one of them is available.
21242 Reported by: Seth Goldberg.
21243
21244 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21245
21246 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21247 implementations bug on them.
21248
21249 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21250 memory.
21251 (filter_memory_map): Likewise.
21252
21253 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21254
21255 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21256 Reported by: nebuchadnezzar.
21257
21258 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21259
21260 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21261 Reported by: nebuchadnezzar.
21262
21263 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21264
21265 Submenu default support.
21266
21267 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21268 auto_boot. All users updated.
21269 Declared static.
21270 Handle chosen and default with submenus.
21271 (grub_menu_execute_with_fallback): Declared static.
21272 Don't notify failure if autobooted. Upper level does it.
21273 (menuentry_eq): New function.
21274 (get_entry_number): Use menuentry_eq.
21275 (show_menu): New parameter "autobooted". All users updated.
21276 (grub_show_menu): Likewise.
21277 * include/grub/normal.h (grub_show_menu): Likewise.
21278 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21279 (grub_menu_execute_with_fallback): Likewise.
21280
21281 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * util/grub-mklayout.c (usage): Update help text.
21284
21285 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21286
21287 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21288
21289 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * util/grub-menulst2cfg.c (main): Trim the line.
21292
21293 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21294
21295 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21296 (grub_machine_init): Don't check amount of low memory as reportedly
21297 INT 12h can be broken and if low memory is too low we wouldn't have
21298 gotten into grub_machine_init anyway.
21299
21300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21301
21302 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21303 (grub_machine_mmap_iterate): Take low memory into account
21304
21305 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21308 badfs.
21309 Reported by: TiCPU.
21310
21311 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21312
21313 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21314 members errors.
21315
21316 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21317
21318 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21319 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21320
21321 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21322
21323 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21324 openbsd and netbsd types being in part_bsd module.
21325
21326 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21329 (_FILE_OFFSET_BITS): Likewise.
21330 Reported by: Seth Goldberg.
21331
21332 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21333
21334 * configure.ac: Check for libdevmapper header.
21335
21336 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21337
21338 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21339 avoid aliasing.
21340 (fzap_lookup): Likewise.
21341 (dnode_get): Likewise.
21342 (make_mdn): Likewise.
21343 (zfs_mount): Likewise.
21344 (fzap_iterate): Use temporary pointer to avoid aliasing.
21345 (grub_zfs_read): Likewise.
21346 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21347 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21348 pointers to avoid aliasing.
21349 (grub_cmd_xnu_kernel64): Likewise.
21350 (grub_xnu_load_driver): Likewise.
21351
21352 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21353
21354 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21355 aliasing warning.
21356 (grub_cmd_terminal_output): Likewise.
21357 Reported and tested by: Grégoire Sutre.
21358
21359 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21362 warning.
21363 Reported and tested by: Grégoire Sutre.
21364
21365 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 * configure.ac: Do CPU substitution even if it's specified explicitly.
21368 Reported and tested by: Alain Greppin.
21369
21370 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21371
21372 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21373 Reported and tested by: Alain Greppin.
21374
21375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21376
21377 Satisfy some bison versions need for inttypes.h.
21378
21379 * grub-core/lib/posix_wrap/inttypes.h: New file.
21380 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21381 (int16_t): Likewise.
21382 (int32_t): Likewise.
21383 (int64_t): Likewise.
21384 Reported and tested by: Alain Greppin.
21385
21386 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21389 Silence spurious warning.
21390 Reported and tested by: Alain Greppin.
21391
21392 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21393
21394 * docs/grub.texi (Support automatic decompression): Update with xz
21395 decompression support.
21396
21397 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21398
21399 Improve loaders' kernel command line handling.
21400
21401 * grub-core/lib/cmdline.c: New file.
21402 * include/grub/lib/cmdline.h: Likewise.
21403 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21404 grub_create_loader_cmdline to create kernel command line.
21405 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21406 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21407 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21408 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21409 (linux): Add lib/cmdline.c on common.
21410
21411 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21412
21413 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21414 inopos might be unaligned.
21415
21416 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21417
21418 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21419 endian transformations.
21420 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21421 Based on report by: Doug Nazar.
21422
21423 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21424
21425 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21426 array->members[i].start_sector.
21427 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21428
21429 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21430
21431 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21432 Reported and tested by: Grégoire Sutre.
21433
21434 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21435
21436 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21437 avoid causing test failures by clearing the screen.
21438
21439 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21440
21441 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21442 Fix prefix check to handle the case where dir ends with a slash
21443 (most significantly, "/" itself).
21444 Reported by: Michael Vogt.
21445
21446 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 Run terminfo_cls on initing terminfo output to clear the screen and
21449 move the cursor to (0,0).
21450
21451 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21452 Call grub_terminfo_output_init.
21453 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21454 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21455 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21456
21457 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21458
21459 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21460 only when needed.
21461
21462 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21465 CTRL.
21466
21467 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 The E820 type 5 is BADRAM, not EXEC_CODE.
21470
21471 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21472 (GRUB_E820_BADRAM): New define.
21473 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21474 into reserved. Propagate BADRAM.
21475 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21476 (GRUB_E820_BADRAM): New define.
21477
21478 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21479
21480 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21481 Ignore the memory post-4G.
21482 (grub_relocator_firmware_alloc_region): Additional debug statement.
21483
21484 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21485
21486 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21487 names.
21488 Reported by: David Pravec.
21489
21490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21493 BIOSes.
21494
21495 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21496
21497 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21498 Prevent overflow.
21499 (grub_reed_solomon_recover): Likewise.
21500
21501 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21502
21503 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21504
21505 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21508 variable.
21509
21510 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21511
21512 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21513 descriptions of extract_legacy_entries_source and
21514 extract_legacy_entries_configfile.
21515 Reported by: Seung Soo, Ha.
21516
21517 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21518
21519 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21520 on devices that do not implement function 0.
21521
21522 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21523
21524 * grub-core/fs/hfsplus.c: Make parent unsigned.
21525 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21526 overflows.
21527 (grub_hfsplus_cmp_extkey): Likewise
21528
21529 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21530
21531 * util/grub-install.in: Correctly use bootloader_id and not
21532 GRUB_DISTRIBUTOR on efibootmgr line.
21533
21534 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21537
21538 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21539
21540 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21541 Xen and reorder menu item wording to make it clearer that this entry
21542 will launch Xen. Print separate messages when loading Xen and
21543 Linux.
21544
21545 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21546
21547 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21548 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21549 loop in case of incorrect amiga partmap.
21550
21551 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21552
21553 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21554 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21555 Reported by:EHeM.
21556
21557 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21558
21559 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21560 spurious warning.
21561 Reported by: crocket
21562
21563 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21564
21565 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21566 Preload EFIemu.
21567 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21568
21569 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21572 is loaded
21573 (grub_cmd_xnu_kextdir): Likewise.
21574 (grub_cmd_xnu_splash): Likewise.
21575
21576 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21577
21578 Avoid using Reed-Solomon with 0 redundancy.
21579
21580 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21581 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21582 or 0 redundancy.
21583 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21584 (grub_reed_solomon_recover): Likewise.
21585
21586 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 Don't use disk subsystem in freebsd_boot.
21589
21590 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21591 (freebsd_biosdev): Likewise.
21592 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21593 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21594
21595 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21596
21597 Handling of files of unknown size is currently limited. They can't be
21598 used e.g. for initrd or modules. Moreover gzip handling of not
21599 easily seekable files is buggy. Disable unknown file size for now. May
21600 be inefficient but works.
21601
21602 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21603 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21604
21605 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21606
21607 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21608 floppy probe.
21609
21610 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21611
21612 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21613
21614 2010-12-25 Shea Levy <shlevy>
21615
21616 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21617
21618 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21621 Windows Server 2008.
21622 Reported by: Devin Giddings.
21623
21624 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21625
21626 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21627 writing an error message because of async power management.
21628 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21629 (grub_reboot): Likewise.
21630
21631 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21632
21633 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21634 keep unit tests from failing when they shouldn't.
21635
21636 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21637
21638 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21639 previous patch increased the size of the RS code by 20 bytes (at
21640 least with gcc-4.4), so increase this by 20 bytes to match.
21641 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21642
21643 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21644
21645 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21646 scratch area. Make sure to initialise chosen in standalone mode as
21647 well as non-standalone.
21648 Reported by: Robert Hooker and Andy Whitcroft.
21649 Tested by: Andy Whitcroft.
21650
21651 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21652
21653 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21654 constructing a new unescaped string and passing it to grub_xputs in
21655 one go, rather than passing characters to grub_printf one at a time.
21656
21657 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21658
21659 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21660 initialising utf16.
21661
21662 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21663
21664 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21665 comment. Add an extra layer of quotation, requiring the output of
21666 this function to be used in a printf format string.
21667 (gettext_printf): New function.
21668 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21669 Extract translatable strings from here-documents and use a temporary
21670 variable instead, so that xgettext can find them.
21671 * util/grub.d/10_kfreebsd.in: Likewise.
21672 * util/grub.d/10_linux.in: Likewise.
21673 * util/grub.d/20_linux_xen.in: Likewise.
21674
21675 * po/grub.d.sed: New file.
21676 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21677 arguments. Set c-format flags on all strings extracted from
21678 util/grub.d/ (xgettext refuses to include these itself for strings
21679 it extracted from a shell file, but these really are c-format).
21680
21681 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21682
21683 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21684 Avoid next pointing to nowhere.
21685
21686 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21687
21688 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21689 rather than assuming than rootblock is exactly in the middle.
21690 (grub_affs_label): Likewise.
21691
21692 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21693
21694 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21695 reserved_first_sector to 0.
21696 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21697 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21698 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21699
21700 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21701
21702 Fix handling of UTF-16 UDF labels.
21703
21704 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21705 (read_string): .. here.
21706 (grub_udf_label): Use read_string.
21707
21708 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21709
21710 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21711 editor under argument scope.
21712 Reported by: Jordan Uggla
21713
21714 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21715
21716 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21717
21718 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21719
21720 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21721 line, and other keys scroll an entire page (previous handling was
21722 for \r and \n to scroll a page and other keys to scroll two lines).
21723
21724 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21725
21726 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21727 Set ptrdest to correct get_physical_target_address rather than
21728 incorrect get_virtual_current_address.
21729
21730 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21731
21732 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21733 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21734
21735 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21736
21737 * .bzrignore: Ignore grub-core/rs_decoder.S.
21738
21739 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21740
21741 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21742 .mo/.mo.gz opening sequence to ...
21743 (grub_mofile_open_lang): ... here.
21744 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21745 * util/grub.d/00_header.in (grub_lang): Include country part of
21746 locale.
21747 Reported by: Mario Limonciello.
21748
21749 2010-12-09 Robert Millan <rmh@gnu.org>
21750
21751 * NEWS: Document addition of ZFS support.
21752
21753 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21754
21755 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21756 rather than `/ 2', as the latter requires -Wa,--divide which would
21757 require bumping our minimum binutils version.
21758
21759 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21760
21761 * util/grub-script-check.c (main): Print script line number on
21762 error.
21763
21764 2010-12-01 Robert Millan <rmh@gnu.org>
21765
21766 * grub-core/fs/zfs/zfs.c: New file.
21767 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21768 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21769 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21770 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21771
21772 * include/grub/zfs/dmu.h: Likewise.
21773 * include/grub/zfs/dmu_objset.h: Likewise.
21774 * include/grub/zfs/dnode.h: Likewise.
21775 * include/grub/zfs/dsl_dataset.h: Likewise.
21776 * include/grub/zfs/dsl_dir.h: Likewise.
21777 * include/grub/zfs/sa_impl.h: Likewise.
21778 * include/grub/zfs/spa.h: Likewise.
21779 * include/grub/zfs/uberblock_impl.h: Likewise.
21780 * include/grub/zfs/vdev_impl.h: Likewise.
21781 * include/grub/zfs/zap_impl.h: Likewise.
21782 * include/grub/zfs/zap_leaf.h: Likewise.
21783 * include/grub/zfs/zfs.h: Likewise.
21784 * include/grub/zfs/zfs_acl.h: Likewise.
21785 * include/grub/zfs/zfs_znode.h: Likewise.
21786 * include/grub/zfs/zil.h: Likewise.
21787 * include/grub/zfs/zio.h: Likewise.
21788 * include/grub/zfs/zio_checksum.h: Likewise.
21789
21790 * Makefile.util.def: Build ZFS into libgrubmods.
21791 * grub-core/Makefile.core.def: Build zfs.mod.
21792
21793 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21794
21795 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21796 variable.
21797 * grub-core/commands/wildcard.c (match_files): Likewise.
21798
21799 2010-11-30 Robert Millan <rmh@gnu.org>
21800
21801 * grub-core/loader/i386/bsd.c
21802 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21803 whether kernel is loaded using grub_loader_is_loaded(), rather
21804 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21805 certain error conditions.
21806
21807 2010-11-30 Robert Millan <rmh@gnu.org>
21808
21809 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21810 (grub_cmd_echo): Call grub_refresh() after printing a message.
21811
21812 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21813
21814 Avoid using tricks for initialising endian variables.
21815
21816 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21817 Make const.
21818 (GRUB_MOD_INIT): Don't byte-swap.
21819 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21820 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21821 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21822 (grub_swap_bytes32_compile_time): Likewise.
21823 (grub_cpu_to_le32_compile_time): Likewise.
21824 (grub_cpu_to_le16_compile_time): Likewise.
21825
21826 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * util/grub-setup.c (setup): Stop recommending --force. People who
21829 understand the dangers of blocklists are able to find this option
21830 anyway and the ones who don't shouldn't use it anyway.
21831
21832 2010-11-26 Robert Millan <rmh@gnu.org>
21833
21834 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21835 Update all users.
21836
21837 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21838
21839 Fix LVM-on-RAID probing.
21840
21841 * util/grub-probe.c (probe): Remember which disk was detected as
21842 RAID (perhaps an LVM physical volume). Use that disk's raidname
21843 rather than that of the top-level disk.
21844
21845 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21846
21847 Fix cmdline argument quotes for setparams command of menuentry
21848 definitions.
21849
21850 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21851 quotes for arguments.
21852 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21853 grub_strchrsub function instead.
21854
21855 * include/grub/misc.h (grub_strchrsub): New function.
21856
21857 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21858
21859 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21860 effort by skipping "." and ".." entries up-front.
21861 Suggested by: Michael Lazarev.
21862
21863 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21864
21865 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21866 ldflags to ldadd, to fix link line ordering.
21867 (none_decompress): Likewise.
21868
21869 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21870
21871 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21872 platforms.
21873 (grub-emu-lite): Remove kern/emu/cache.S.
21874
21875 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21876
21877 * util/deviceiter.c (compare_devices): If the by-id link for a
21878 device couldn't be resolved, fall back to sorting by the by-id link
21879 rather than segfaulting.
21880 Reported and tested by: Daniel Mierswa.
21881
21882 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21883
21884 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21885 ldflags, to fix link line ordering.
21886
21887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21888
21889 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21890 linkers are picky about this.
21891
21892 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21893
21894 * grub-core/Makefile.am (command.lst): Adjust sed expression
21895 ordering so that extended and priority commands aren't treated as
21896 ordinary commands.
21897
21898 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21899
21900 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21901 Remove byte-swapping function calls, which are not valid in
21902 structure initialisers.
21903 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21904 non-const.
21905 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21906 grub_gpt_partition_type_bios_boot.
21907
21908 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21909
21910 Fix test program build on GNU/kFreeBSD.
21911
21912 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21913 $(LIBNVPAIR)' library dependencies.
21914
21915 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21916
21917 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21918
21919 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21920
21921 * util/grub-install.in: Remove excessive quoting that broke
21922 installations to RAID devices.
21923
21924 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21925
21926 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21927 bootloader version instead of 0.
21928
21929 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21930
21931 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21932 warning.
21933
21934 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21935
21936 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21937 retrieve the metadat sector if size isn't known.
21938 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21939
21940 2010-11-18 Robert Millan <rmh@gnu.org>
21941
21942 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21943 with grub_memcmp().
21944
21945 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21948 arrow.
21949 Reported by: Jordan Uggla.
21950
21951 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21952
21953 Make better UTF compliant.
21954
21955 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21956 sequences as incorrect.
21957 (grub_is_valid_utf8): Likewise.
21958 (grub_utf8_to_ucs4): Likewise.
21959 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21960 (grub_ucs4_to_utf8_alloc): Likewise.
21961 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21962
21963 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21964
21965 Make legacy_source behave like source.
21966
21967 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21968 grub_show_menu.
21969 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21970
21971 2010-11-16 Colin Watson <cjwatson@debian.org>
21972
21973 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21974 (-Wunused implies -Wunused-parameter, but not vice versa).
21975
21976 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21977
21978 * configure.ac: Make error messages less confusing by testing for
21979 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21980 accepted, but produces a diagnostic if something else is wrong).
21981
21982 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21985 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21986 (now unused).
21987 (grub_keyboard_controller_init)
21988 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21989 read the initial state since controller isn't inited yet.
21990
21991 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21992
21993 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21994 allocate_regbeg may need to create new chunk header.
21995
21996 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 Fix quoting in legacy parser.
21999
22000 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22001 single quotes.
22002 (grub_legacy_parse): Likewise.
22003 Reported by: Jordan Uggla.
22004 Tested by: Jordan Uggla.
22005
22006 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22007
22008 Don't add -lgcc on i386 and x86_64.
22009
22010 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22011 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22012 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22013
22014 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22015
22016 * configure.ac: Add -Wno-trampolines when supported.
22017
22018 2010-11-14 Modestas Vainius <modax@debian.org>
22019
22020 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22021 fakeraid.
22022
22023 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22024
22025 Add generic logical block size support for UDF.
22026
22027 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22028 (GRUB_UDF_BLKSZ): Removed.
22029 (struct grub_udf_data): New field "lbshift" to hold the logical block
22030 size of the file system in log2 format. All users updated.
22031 (sblocklist): Change type to unsigned.
22032 (grub_udf_mount): Change type of "sblklist" to unsigned.
22033 Move AVDP search before VRS recognition, because the latter requires
22034 knowledge of the logical block size, which is detected during the
22035 former.
22036 Detect and validate logical block size during AVDP search, adding
22037 support for block sizes 512, 1024 and 4096.
22038 Make VRS recognition independent of block size.
22039
22040 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22041
22042 Properly handle deleted files on UDF.
22043
22044 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22045 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22046 set.
22047
22048 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22049
22050 Support reading files larger than 2 GiB.
22051
22052 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22053 "offset" to grub_off_t.
22054 (grub_udf_read_file): Likewise for parameter "pos".
22055
22056 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22057
22058 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22059 unavailable.
22060 (Simple configuration): Refer to Changes from GRUB Legacy about
22061 save_env availability.
22062
22063 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22064
22065 * util/grub-install.in: Ignore empty partition table detection
22066 instead of trying to include part_ module.
22067
22068 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22069
22070 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22071 LVM on RAID support.
22072
22073 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 Properly define WORDS_BIGENDIAN in wrapped environments.
22076
22077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22078 definition.
22079 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22080
22081 Reported by: Manoel Rebelo Abranches.
22082 Tested by: Manoel Rebelo Abranches.
22083
22084 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22085
22086 * util/grub-mkconfig.in: Fix quoting.
22087
22088 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22089
22090 Support big ext2 files.
22091
22092 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22093 (grub_ext2_read_block): Support triple indirect blocks.
22094 (grub_ext2_read_file): Use 64-bit types and read size_high.
22095 (grub_ext2_open): Read size_high.
22096 Reported by: Ximin Luo.
22097 Tested by: Manoel Rebelo Abranches.
22098
22099 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22100
22101 * util/grub-install.in: Handle filenames containing spaces.
22102 Reported by: Jordan Uggla.
22103 Tested by: Jordan Uggla.
22104
22105 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22106
22107 * util/grub-mkconfig.in (grub_script_check): New variable.
22108 Use grub_script_check instead of grub-script-check.
22109 Reported by: Barry Jackson.
22110
22111 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22112
22113 * docs/grub.texi (menu): Correct the order.
22114 Reported by: D. Hugh Redelmeier.
22115
22116 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22117
22118 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22119 jump.
22120
22121 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22122
22123 * include/grub/elfload.h (grub_elf32_size): New parameter.
22124 All users updated.
22125 Return maximum segments alignment.
22126 (grub_elf64_size): Likewise.
22127 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22128 Return maximum segments alignment.
22129 (grub_elf64_size): Likewise.
22130 * grub-core/loader/powerpc/ieee1275/linux.c:
22131 (grub_linux_claimmap_iterate): New function. Uses the
22132 "available" property in the "memory" node for memory allocation
22133 for kernel in the PowerPC loader.
22134 (grub_linux_load32): Correctly find linux entry point offset.
22135 (grub_linux_load64): Likewise.
22136
22137 2010-11-07 Robert Millan <rmh@gnu.org>
22138
22139 On mips-yeeloong, build with -march=loongson2f when this flag is
22140 available (GCC >= 4.4).
22141 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22142 `-march=mips3'.
22143 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22144 or otherwise add -march=mips3.
22145
22146 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22147
22148 Suppress shell expansion on echo '*' and echo "*" like cases.
22149 Reported by: Jordan Uggla.
22150
22151 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22152 string arguments before shell expansion.
22153 * tests/grub_cmd_echo.in: New testcases.
22154
22155 2010-11-07 Robert Millan <rmh@gnu.org>
22156
22157 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22158 transition.
22159
22160 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * grub-core/kern/emu/hostdisk.c
22163 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22164
22165 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22166
22167 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22168 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22169 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22170
22171 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22172
22173 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22174
22175 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22176
22177 * util/grub-install.in: Replace useless recomendation to pass
22178 --modules with a recomendation to report a bug.
22179
22180 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22181
22182 Properly register serial terminfo.
22183 Reported by: Jordan Uggla
22184
22185 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22186 const.
22187 (grub_serial_terminfo_output_template): Likewise.
22188 (grub_cmd_serial): Register "serial" with terminfo.
22189 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22190 grub_serial_terminfo_output.
22191
22192 2010-11-05 Robert Millan <rmh@gnu.org>
22193
22194 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22195 needed).
22196
22197 2010-11-05 Robert Millan <rmh@gnu.org>
22198
22199 On Yeeloong, pass machine type information to Linux.
22200
22201 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22202 (LOONGSON_MACHTYPE): New macro, set to
22203 "machtype=lemote-yeeloong-2f-8.9inches".
22204 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22205 additional argument to Linux.
22206
22207 2010-11-04 Robert Millan <rmh@gnu.org>
22208
22209 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22210 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22211 (its SATA disks are detected as slaveless IDE master drives on
22212 kFreeBSD).
22213 Reported by Carsten Aulbert.
22214
22215 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22216
22217 * util/bin2h.c (main): Fix spelling error in generated output.
22218
22219 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22220
22221 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22222
22223 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22224
22225 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22226 vga= option is supplied.
22227
22228 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22231 * util/grub.d/10_kfreebsd.in: Likewise.
22232 * util/grub.d/10_linux.in: Likewise.
22233 * util/grub.d/20_linux_xen.in: Likewise.
22234
22235 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22236
22237 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22238 argument as an argument to no-argument option.
22239
22240 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * util/grub.d/10_linux.in: Add missing load_video with explicit
22243 GRUB_GFXPAYLOAD_LINUX.
22244
22245 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22248
22249 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22250
22251 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22252 elements with invlid index.
22253 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22254 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22255 members.
22256 * include/grub/raid.h (grub_raid_member): New struct.
22257 (grub_raid_array): Transform devices and start_sector into usage of
22258 grub_raid_member. All users updated
22259 (allocated_devs): New member.
22260
22261 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22264 is modified
22265
22266 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22267
22268 NetBSD build fix for getline function conflict from gnulib.
22269
22270 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22271 components that depend on gnulib headers.
22272 (libgrubmods.a): Renamed from earlier libgrub.a.
22273 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22274
22275 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22276
22277 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22278 install rather than creating a broken install.
22279
22280 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 * util/grub-setup.c (argp): Remove misleading example of installing to
22283 a partition.
22284
22285 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22286
22287 * util/grub-setup.c (setup): Clarify the error message.
22288
22289 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22290
22291 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22292
22293 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22294
22295 * grub-core/kern/emu/misc.c
22296 (grub_make_system_path_relative_to_its_root)
22297 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22298
22299 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22300
22301 * grub-core/kern/emu/misc.c
22302 (grub_make_system_path_relative_to_its_root): Revert r2882.
22303
22304 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22305
22306 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22307 useless field head. All users updated.
22308 (free_subchunk): Correct handling of IN_REGION subchunk.
22309
22310 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22311
22312 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22313 (Supported kernels): Likewise.
22314
22315 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22316
22317 Make mktemp invocations portable.
22318
22319 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22320 exit if mktemp fails.
22321 * tests/grub_script_blockarg.in: Likewise.
22322 * tests/partmap_test.in: Likewise.
22323 * tests/util/grub-shell-tester.in: Likewise.
22324 * tests/util/grub-shell.in: Likewise.
22325 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22326 * Makefile.am: Likewise, and chain shell commands with `&&'
22327 instead of ';'.
22328 * util/grub-mkrescue.in: Use the same explicit template as above, and
22329 exit if mktemp fails.
22330
22331 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22332
22333 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22334 Linux kernel, reported by Dennis Schridde.
22335
22336 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22337
22338 * grub-core/normal/auth.c (grub_auth_check_authentication):
22339 Set-but-not-used variable removed.
22340
22341 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22342
22343 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22344 32-bit linux protocol.
22345
22346 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22347
22348 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22349 cursor shape for sanity.
22350
22351 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 * docs/grub.texi (Installation): Document buggy BIOS install.
22354
22355 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22356
22357 * docs/grub.texi (Installation): Indent.
22358
22359 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22360
22361 * util/grub-setup.c (setup): New parameter allow_floppy.
22362 (arguments): New member allow_floppy.
22363 (argp_parser): Handle --allow-floppy.
22364 (main): Pass allow_floppy.
22365 * util/grub-install.in: New option --allow-floppy passed though to
22366 grub-setup.
22367
22368 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22369
22370 * util/grub-install.in: Handle partitionless disks.
22371
22372 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22373
22374 * util/grub-setup.c (setup): Don't clean blocklists before readability
22375 verfification.
22376
22377 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22378
22379 * docs/grub.texi (Installation): Document embedding zone. Remove
22380 obsolete grub-install example.
22381
22382 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22383
22384 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22385 Set-but-not-used variable ifdef'ed.
22386 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22387 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22388 variable removed.
22389 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22390 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22391 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22392 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22393 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22394 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22395 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22396 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22397 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22398 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22399 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22400 Likewise.
22401
22402 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22403
22404 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22405 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22406 enum value.
22407
22408 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22411 synonym to _S5_. Needed for some DSDTs.
22412
22413 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22414
22415 Userspace ACPI parser debugging.
22416
22417 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22418 headers and add relevant defines. Don't include standard headers.
22419 (main) [GRUB_DSDT_TEST]: New function.
22420 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22421 Don't declare functions.
22422
22423 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22424
22425 Remove dead grub_efi_mm_fini.
22426
22427 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22428 (ALLOCATED_PAGES_SIZE): Likewise.
22429 (MAX_ALLOCATED_PAGES): Likewise.
22430 (allocated_pages): Likewise.
22431 (grub_efi_allocate_pages): Don't record allocated pages.
22432 (grub_efi_free_pages): Likewise.
22433 (grub_efi_mm_init): Likewise.
22434 (grub_efi_mm_fini): Removed.
22435
22436 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22437
22438 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22439 (grub_efi_mm_init): Take into account the memory map size increase.
22440
22441 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22442
22443 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22444 (serial_hw_put): Wait based on real time rather than port reads. Don't
22445 roken ports.
22446 * include/grub/serial.h (grub_serial_port): New field broken.
22447
22448 2010-10-16 Robert Millan <rmh@gnu.org>
22449
22450 * grub-core/kern/emu/misc.c
22451 (grub_make_system_path_relative_to_its_root): Fix premature return
22452 when processing non-root ZFS filesystems.
22453 Reported by Sergio Talens-Oliag.
22454
22455 2010-10-15 Robert Millan <rmh@gnu.org>
22456
22457 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22458 guarantee compressed ones are processed first.
22459
22460 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22461
22462 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22463 grub_efiemu_autocore.
22464
22465 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22466
22467 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22468 rather than 0x1b.
22469 (grub_console_getkey): Use correct jae opcode rather than ja.
22470
22471 2010-10-12 Robert Millan <rmh@gnu.org>
22472
22473 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22474 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22475 variable. All references updated.
22476
22477 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22478
22479 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 Correctly distinguish mdraid flavours.
22482
22483 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22484 (insert_array): New argument raid.
22485 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22486 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22487 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22488
22489 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22490
22491 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22492 handling of special keys.
22493
22494 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22495
22496 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22497 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22498
22499 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22500
22501 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22502 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22503 users updated.
22504 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22505 Use right endpoint when querying descriptor.
22506
22507 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22508
22509 Clear out 0x80 color bit on EFI.
22510 Tested by: decoder
22511 Reported by: decoder and meta tech.
22512
22513 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22514 (grub_console_setcolorstate): Clear out 0x80 bit.
22515 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22516 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22517 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22518
22519 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22520
22521 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22522 Set to "auto".
22523
22524 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22525
22526 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22527 mo_file after freeing.
22528
22529 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22530
22531 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22532
22533 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22534
22535 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22536 flags.
22537
22538 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22539
22540 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22541 usage.
22542
22543 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22546
22547 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22548 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22549 and terminfo.h when needed.
22550 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22551 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22552 (terminfo): Enable only on terminfokernel.
22553 (extcmd): Likewise.
22554 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22555 * include/grub/lib/arg.h: Likewise.
22556 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22557 incorrect usage of ->.
22558
22559 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22562 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22563
22564 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 Fix coreboot compilation.
22567
22568 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22569 Take VBE info into account even if only text is supported.
22570 (fill_vbe_info): Take into account the case when only VGA text
22571 is supported.
22572 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22573 on coreboot, multiboot and qemu.
22574
22575 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22576
22577 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22578 debug messages.
22579 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22580
22581 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22584 parameters.
22585
22586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22587
22588 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22589 if they were BSD-style.
22590
22591 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 * grub-core/boot/i386/pc/lnxboot.S: Replace
22594 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22595 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22596
22597 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22598
22599 Write embedding zone using Reed-Solomon.
22600
22601 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22602 * grub-core/Makefile.am (rs_decoder.S): New target.
22603 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22604 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22605 (multiboot): Move to RS part.
22606 (post_reed_solomon): New label.
22607 (grub_boot_drive): Move to non-RS part since it's modified in memory
22608 on boot.
22609 Include rs_decoder.S.
22610 * grub-core/lib/reed_solomon.c: New file.
22611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22612 New definition.
22613 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22614 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22615 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22616 * include/grub/partition.h (grub_partition_map): Change prototype of
22617 embed to allow returning additional sectors.
22618 * include/grub/reed_solomon.h: New file.
22619 * util/grub-setup.c (setup): Handle Reed-Solomon.
22620
22621 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22622
22623 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22624 i386 and x86-64 definedness tests.
22625
22626 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22627
22628 Fix generation of kernel_syms.lst
22629
22630 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22631 ASM_PREFIX
22632
22633 2010-09-26 Robert Millan <rmh@gnu.org>
22634
22635 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22636
22637 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22638 the pool is an array of devices, iterate through it and return the
22639 first device that passes a stat() test (instead of blindly returning
22640 the first one).
22641
22642 2010-09-26 Robert Millan <rmh@gnu.org>
22643
22644 Build fixes for GNU/kFreeBSD.
22645
22646 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22647 to programs that require ZFS conversion.
22648 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22649 kernels that don't have FLOPPY_MAJOR.
22650
22651 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22652
22653 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22654
22655 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22656
22657 Fix grub-emu build.
22658
22659 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22660 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22661 mdraid09 and mdraid1x.
22662
22663 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22664
22665 Re-enable grub-extras.
22666
22667 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22668 avoid confusing Automake. Run autogen only twice, once for the top
22669 level and once for grub-core. Add Makefile.util.def and
22670 Makefile.core.def from extra modules to the appropriate autogen
22671 invocations. If Makefile.common exists in an extra module, include
22672 it in both Makefile.util.am and grub-core/Makefile.core.am;
22673 similarly, include any Makefile.util.common file in Makefile.util.am
22674 and any Makefile.core.common file in grub-core/Makefile.core.am.
22675 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22676 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22677 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22678 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22679
22680 * gentpl.py (gvar_add): Turn GVARS into a set.
22681 (global_variable_initializers): Sort global variables on output.
22682 (vars_init): New function.
22683 (first_time): Likewise.
22684 (library): Ensure that non-global variable initialisations are
22685 emitted before the first time we emit code for a library block.
22686 Append to variables rather than setting them. Only emit
22687 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22688 each conditional path.
22689 (program): installdir() emits an Autogen macro, so must be passed to
22690 var_add rather than gvar_add.
22691 (data): Likewise.
22692 (script): Likewise.
22693 (rules): New function, centralising handling for different target
22694 types. Set up Guile association lists for first_time and vars_init,
22695 and send most output to a diversion so that variable initialisations
22696 can be emitted first.
22697 (module_rules): Use new rules function.
22698 (kernel_rules): Likewise.
22699 (image_rules): Likewise.
22700 (library_rules): Likewise.
22701 (program_rules): Likewise.
22702 (script_rules): Likewise.
22703 (data_rules): Likewise.
22704
22705 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22706
22707 * .bzrignore: Add contrib and grub-core/contrib. Remove
22708 grub-core/Makefile.gcry.am.
22709
22710 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22711
22712 * grub-core/lib/LzFind.c: Add missing include.
22713 * grub-core/lib/LzmaEnc.c: Likewise.
22714 * grub-core/script/lexer.c: Likewise.
22715 * grub-core/script/yylex.l: Likewise.
22716 * util/grub-macho2img.c: Likewise.
22717 * util/grub-menulst2cfg.c: Likewise.
22718 * util/grub-mklayout.c: Likewise.
22719 * util/grub-mkpasswd-pbkdf2.c
22720 * util/grub-mkrelpath.c: Likewise.
22721 * util/resolve.c: Likewise.
22722
22723 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22724
22725 * Makefile.util.def (example_unit_test): Add
22726 grub-core/gnulib/libgnu.a.
22727
22728 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22729
22730 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22731
22732 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22733
22734 Support xz compression on yeeloong.
22735
22736 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22737 * configure.ac: Check for LZMA.
22738 * grub-core/Makefile.core.def (xz_decompress): New target.
22739 (none_decompress): Likewise.
22740 * grub-core/boot/decompressor/minilib.c: New file.
22741 * grub-core/boot/decompressor/none.c: Likewise.
22742 * grub-core/boot/decompressor/xz.c: Likewise.
22743 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22744 * grub-core/kern/mips/cache_flush.S: Likewise.
22745 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22746 * grub-core/kern/mips/startup.S: Move first stage to ...
22747 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22748 nomacro.
22749 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22750 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22751 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22752 Allocate statically.
22753 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22754 Allocate statically or use scratch. Don't check CRC32.
22755 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22756 Allocate statically. Don't check CRC32.
22757 * include/grub/decompressor.h: New file.
22758 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22759 Removed.
22760 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22761 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22762 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22763 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22764 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22765 * util/grub-mkimage.c (grub_compression_t): New type.
22766 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22767 (image_target_desc): New field default_compression.
22768 (image_targets): Adjust yeeloong targets.
22769 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22770 (compress_kernel): New parameter comp.
22771 (generate_image): Likewise. Handle new compression case.
22772 (options): New option --compression
22773 (help): Likewise.
22774 (main): Handle new option.
22775
22776 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22777
22778 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22779
22780 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22781
22782 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22783 typo in __i386__ conditional.
22784
22785 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22788 include.
22789
22790 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 Implement EFI and ACPI multiboot2 extensions.
22793
22794 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22795 new tags as supported.
22796 (acpiv2_size): New function.
22797 (grub_multiboot_get_mbi_size): Take new tags into account.
22798 (grub_multiboot_make_mbi): Add new tags.
22799 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22800
22801 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22802
22803 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22804 Added missing configuration of USB device.
22805
22806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22807
22808 * grub-core/normal/menu_entry.c (run): Make sure we always return
22809 a value.
22810
22811 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22812
22813 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22814 NumberOfPages is UINT64 according to the UEFI specification, not
22815 UINTN. Fix printf format.
22816
22817 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22818
22819 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22820 `err' to grub_usb_err_t.
22821 Reported and tested by: KESHAV P.R.
22822
22823 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22824
22825 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22826 tpart non-const, so that we can assign to it. (Since this is a
22827 typedef, the constness refers to the pointer rather than what it
22828 points to.)
22829
22830 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22831
22832 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22833 $(top_srcdir)/grub-core/gnulib as well as
22834 $(top_builddir)/grub-core/gnulib.
22835 Reported by: KESHAV P.R.
22836
22837 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22838
22839 * util/grub-install.in: Fix the bootloader ID option to be
22840 consistently --bootloader-id, not --bootloader_id.
22841 Reported by: KESHAV P.R.
22842
22843 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22844
22845 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22846 check hash checksum." consistently translatable.
22847
22848 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22849
22850 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22851 $(top_builddir).
22852
22853 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22854
22855 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22856 (GRUB_MOD_INIT): Register sha1sum command.
22857 (GRUB_MOD_FINI): Unregister sha1sum command.
22858
22859 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22860
22861 Keep boot and grub directory names in sync with utils scripts
22862
22863 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22864 * config.h.in: Add previous macros.
22865 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22866 * util/grub-install.in: Use $bootdir and $grubdir variables.
22867
22868 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22869
22870 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22871 convert partition names to disk names if the new `convert' parameter
22872 is set.
22873 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22874 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22875 disk in its own right. This can happen with Xen disk images.
22876
22877 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22878
22879 * util/grub-editenv.c: Update strings to avoid warnings when generating
22880 grub.pot file.
22881 * util/grub-setup.c: Likewise.
22882
22883 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22884
22885 * configure.ac: Change version to 1.99~beta0.
22886
22887 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22888
22889 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22890 Add BADRAM.
22891 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22892 Likewise.
22893 * include/multiboot.h: Resynced with specification.
22894 * include/multiboot2.h: Likewise.
22895
22896 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22897
22898 Fix po directory handling.
22899
22900 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22901 * grub-core/gnulib/Makefile.am: Import gettext module.
22902 * m4/gnulib-cache.m4: Likewise.
22903 * m4/gnulib-comp.m4: Likewise.
22904 * m4/gettext.m4: New file, from gnulib.
22905 * m4/glibc2.m4: Likewise.
22906 * m4/iconv.m4: Likewise.
22907 * m4/intdiv0.m4: Likewise.
22908 * m4/intl.m4: Likewise.
22909 * m4/intldir.m4: Likewise.
22910 * m4/intlmacosx.m4: Likewise.
22911 * m4/intmax.m4: Likewise.
22912 * m4/inttypes-pri.m4: Likewise.
22913 * m4/lcmessage.m4: Likewise.
22914 * m4/lib-ld.m4: Likewise.
22915 * m4/lib-link.m4: Likewise.
22916 * m4/lib-prefix.m4: Likewise.
22917 * m4/lock.m4: Likewise.
22918 * m4/nls.m4: Likewise.
22919 * m4/po.m4: Likewise.
22920 * m4/printf-posix.m4: Likewise.
22921 * m4/progtest.m4: Likewise.
22922 * m4/threadlib.m4: Likewise.
22923 * m4/uintmax_t.m4: Likewise.
22924 * m4/visibility.m4: Likewise.
22925 * po/Makefile.am: Remove.
22926 * po/Makefile.in.in: New file, from gettext.
22927 ($(DOMAIN).pot-update): Support POTFILES-shell.
22928 * po/Makevars: New file.
22929 * po/POTFILES-shell: Rename to ...
22930 * po/POTFILES-shell.in: ... this. Update.
22931 * po/POTFILES: Rename to ...
22932 * po/POTFILES.in: ... this. Update.
22933 * po/Rules-quot: New file, from gettext.
22934 * po/boldquot.sed: Likewise.
22935 * po/en@boldquot.header: Likewise.
22936 * po/en@quot.header: Likewise.
22937 * po/insert-header.sin: Likewise.
22938 * po/quot.sed: Likewise.
22939 * po/remove-potcdate.sin: Likewise.
22940
22941 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22942
22943 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22944
22945 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22946
22947 * util/grub.d/20_linux_xen.in: Use submenus.
22948
22949 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22950
22951 Support submenus.
22952
22953 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22954 parameter submenu. All users updated.
22955 * grub-core/normal/main.c (free_menu): Rename to ...
22956 (grub_normal_free_menu): ... this. Made global.
22957 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22958 if requested.
22959 * grub-core/normal/menu_entry.c (screen): New field submenu.
22960 (make_screen): Set submenu.
22961 (run): Open new context if requested.
22962 * include/grub/menu.h (grub_menu_entry): New field submenu.
22963 * include/grub/normal.h (grub_normal_free_menu): New proto.
22964
22965 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22966
22967 Menu entries extractor.
22968
22969 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22970 variants.
22971 (GRUB_MOD_INIT): Register new variants.
22972 (GRUB_MOD_FINI): Unregister new variants.
22973 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22974 into grub_cmd_legacy_source.
22975 (grub_cmd_legacy_source): Implement extractor variants.
22976 (GRUB_MOD_INIT): Register new variants.
22977 (GRUB_MOD_FINI): Unregister new variants.
22978 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22979 as an extractor.
22980 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22981 search as an extractor.
22982 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22983 test as an extractor.
22984 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22985 as an extractor.
22986 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22987 (grub_env_new_context): New function.
22988 (grub_env_context_open): Likewise.
22989 (grub_env_extractor_open): Likewise.
22990 (grub_env_extractor_close): Likewise.
22991 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22992 grub_extractor_level.
22993 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22994 * include/grub/env.h (grub_env_extractor_open): New proto.
22995 (grub_env_extractor_close): Likewise.
22996 * include/grub/normal.h (grub_extractor_level): New external variable.
22997
22998 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22999
23000 Make cutmem accept a region specification.
23001 Suggested by: Samuel Thibault
23002
23003 * grub-core/mmap/mmap.c (parsemem): New function.
23004 (grub_cmd_cutmem): Handle new arguments.
23005
23006 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23007
23008 New command cutmem.
23009
23010 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23011 (GRUB_MOD_INIT): Register new command.
23012 (GRUB_MOD_FINI): Unregister new command.
23013
23014 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23015
23016 Support some annoying BSD and Minix subpartitions.
23017
23018 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23019 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23020 Properly handle concatenation.
23021 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23022 * grub-core/normal/completion.c (iterate_partition): Likewise.
23023 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23024 contain partition. All users updated.
23025 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23026 struct.
23027 (grub_openbsdlabel_partition_map): Likewise.
23028 (bsdlabel_partition_map_iterate): Rename to ..
23029 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23030 (bsdlabel_partition_map_iterate): New function.
23031 (netopenbsdlabel_partition_map_iterate): Likewise.
23032 (netbsdlabel_partition_map_iterate): Likewise.
23033 (openbsdlabel_partition_map_iterate): Likewise.
23034 (GRUB_MOD_INIT): Register new partmaps.
23035 (GRUB_MOD_FINI): Unregister new partmaps.
23036 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23037 (grub_partition_msdos_iterate): ... this. All users updated.
23038 Don't support embedding other than in a minix partition.
23039 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23040 proto.
23041 * include/grub/partition.h (grub_partition): New field msdostype.
23042 * util/grub-install.in: Handle openbsd and netbsd types being in
23043 part_bsd module.
23044
23045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23048
23049 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23050 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23051 (mdraid09): ... this.
23052 (mdraid1x): New module.
23053 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23054 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23055
23056 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23057
23058 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23059 vsprintf.
23060
23061 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23062
23063 * grub-core/commands/efi/lsefimmap.c: Correct header.
23064 * NEWS: Update.
23065
23066 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23067
23068 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23069 as printf format strings; the translations might contain '%' which
23070 could cause a crash.
23071 (main): Likewise.
23072 * util/grub-fstest.c (argp_parser): Likewise.
23073 * util/grub-setup.c (argp_parser): Likewise.
23074 (main): Likewise.
23075
23076 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23077
23078 Use argp in grub-fstest.
23079
23080 * util/grub-fstest.c: Don't include getopt.h.
23081 Include argp.h.
23082 (root): New variable.
23083 (args_count): Likewise.
23084 (nparm): Likewise.
23085 (num_disks): Likewise.
23086 (images): Likewise.
23087 (cmd): Likewise.
23088 (debug_str): Likewise.
23089 (args): Likewise.
23090 (options): Transformed to argp.
23091 (usage): Removed.
23092 (main): Split argument parsing into ...
23093 (argp_parser): ... this. Changed to argp format.
23094 (argp): New variable.
23095 (main): Use argp_parse.
23096
23097 2010-09-20 Tristan Gingold <gingold@free.fr>
23098 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23099 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23100
23101 * grub-core/commands/efi/lsefimmap.c: New file.
23102 * grub-core/Makefile.core.def (lsefimmap): New module.
23103 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23104
23105 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23106
23107 Pause the execution (10s max) if any errors are displayed so the user
23108 has a chance to see them.
23109
23110 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23111 (grub_print_error): Increment grub_err_printed_errors.
23112 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23113 execution if any errors were displayed.
23114 (show_menu): Remove old code for pause.
23115 * grub-core/normal/menu_entry.c (run): Likewise.
23116 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23117 users updated.
23118 (grub_normal_get_char_counter): Likewise.
23119 * include/grub/err.h (grub_err_printed_errors): New external variable.
23120 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23121
23122 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23123
23124 Support multiboot VBE info.
23125
23126 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23127 Take VBE info into account.
23128 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23129 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23130 Call fill_vbe_info when appropriate.
23131 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23132 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23133 as supported.
23134 (grub_multiboot_get_mbi_size): Take new tags into account.
23135 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23136 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23137 Call fill_vbe_tag when appropriate.
23138 (grub_multiboot_make_mbi): Properly align tags.
23139 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23140 function.
23141 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23142 proto.
23143 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23144
23145 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23146
23147 Suport manual terminal geometry specification.
23148
23149 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23150 Save state in grub_ofconsole_terminfo_output.
23151 (grub_ofconsole_term): Use grub_terminfo_getwh.
23152 (grub_ofconsole_getwh): Removed.
23153 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23154 (grub_serial_term): Use grub_terminfo_getwh.
23155 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23156 (options): New struct.
23157 (OPTION_*): New enum.
23158 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23159 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23160 width and height.
23161 (grub_terminfo_getwh): New proto.
23162 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23163
23164 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23165
23166 Handle legacy "terminal" command.
23167
23168 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23169 and FLAG_TERMINAL.
23170 (legacy_commands): Add terminal and title.
23171 (grub_legacy_parse): Handle terminal. Simplify title handling.
23172
23173 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23174
23175 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23176 parameters overflow.
23177
23178 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23179
23180 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23181 widthspec.h.
23182
23183 * docs/grub.texi (Shell-like scripting): Document `!'.
23184 (Network): Simplify using new i386-pc-pxe format. Mention
23185 grub-mknetdir.
23186
23187 * NEWS: Update.
23188
23189 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23190
23191 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23192 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23193 when needed.
23194
23195 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23196
23197 * grub-core/commands/efi/lsefisystab.c: Correct header.
23198 * grub-core/commands/efi/lssal.c: Likewise.
23199 * grub-core/commands/testload.c: Likewise.
23200
23201 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23202
23203 * util/grub-mkrescue.in: Add explicit root argument to --set to
23204 prevent the UUID being interpreted as an argument to --set (matches
23205 previous change to prepare_grub_to_access_device).
23206
23207 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23208
23209 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23210 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23211 the verbosity of later #ifs.
23212 (find_partition_start): Define this function on FreeBSD too.
23213 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23214 function.
23215 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23216 on FreeBSD.
23217
23218 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23219
23220 * util/grub-editenv.c: Use argp instead of getopt.
23221
23222 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23223
23224 * util/grub-setup.c: Use argp instead of getopt.
23225
23226 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23227
23228 Use gnulib-tool to create gnulib source files.
23229
23230 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23231 grub-core/gnulib directories
23232 * .bzignore: Add **/.deps and autogenerated gnulib files
23233 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23234 of gnulib macros, add grub-core/gnulib/Makefile
23235 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23236 include m4 directory to aclocal.
23237 * Makefile.util.def: Remove direct compilation of gnulib source files
23238 and use the new grub-core/gnulib/libgnu.a.
23239 * build-aux/config.rpath: move config.rpath from top directory to
23240 build-aux
23241 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23242 in gnulib headers
23243 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23244 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23245 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23246 header.
23247 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23248 string.
23249
23250 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23251
23252 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23253 grub-core/genmod.sh and grub-core/gensyminfo.sh
23254
23255 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23256
23257 Add a test for echo command options.
23258
23259 * tests/grub_cmd_echo.in: New test.
23260 * Makefile.util.def: Rules for new test.
23261
23262 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23263
23264 Remove crc.mod and move crc command to hashsum.mod.
23265 Remove lib/crc.c - users updated to use gcrypt implementation.
23266
23267 * grub-core/commands/crc.c: Removed.
23268 * grub-core/Makefile.core.def (crc): Module removed.
23269 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23270 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23271 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23272 * grub-core/lib/crc.c: Removed.
23273 * include/grub/lib/crc.h: Removed.
23274 * Makefile.util.def (crc): Remove lib/crc.c
23275 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23276 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23277 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23278 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23279 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23280 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23281
23282 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23283
23284 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23285
23286 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23287
23288 Split config.h for util and core.
23289
23290 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23291 (ADDR32): Likewise.
23292 (DATA32): Likewise.
23293 (BSS_START_SYMBOL): Likewise.
23294 (END_SYMBOL): Likewise.
23295 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23296 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23297 * config.h.in: New file.
23298 * configure.ac: Use config-util.h as config define file.
23299 Rename MACHINE into GRUB_MACHINE. All users updated.
23300 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23301 updated.
23302 (NESTED_FUNC_ATTR): Likewise.
23303 Substitue new variables.
23304 (COND_HAVE_ASM_USCORE): New conditional.
23305 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23306 (kernel_syms.lst): Use ASM_PREFIX.
23307 * grub-core/kern/emu/console.c: Include config-util.h.
23308 * grub-core/kern/emu/misc.c: Likewise.
23309 * grub-core/kern/emu/mm.c: Likewise.
23310 * include/grub/emu/misc.h: Likewise.
23311 * include/grub/libgcc.h: Likewise.
23312
23313 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23314
23315 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23316 constants usage.
23317 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23318 Fix GRUB_TERM_KEY_* constants usage.
23319 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23320
23321 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23322
23323 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23324 print pointer.
23325 * grub-core/bus/usb/uhci.c: Remove empty define.
23326 (grub_uhci_check_transfer): Add missing cast.
23327 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23328 print pointer.
23329 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23330 PRIuGRUB_SIZE.
23331 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23332
23333 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23334
23335 * grub-core/Makefile.core.def (legacycfg): Add
23336 lib/i386/pc/vesa_modes_table.c on emu.
23337
23338 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23339
23340 Reduce number of temporary files generated by build system.
23341
23342 * grub-core/gencmdlist.sh: Removed.
23343 * grub-core/genfslist.sh: Removed.
23344 * grub-core/genhandlerlist.sh: Removed.
23345 * grub-core/genmodsrc.sh: Removed.
23346 * grub-core/genpartmaplist.sh: Removed.
23347 * grub-core/genparttoollist.sh: Removed.
23348 * grub-core/gentermiinallist.sh: Removed.
23349 * grub-core/genvideolist.sh: Removed.
23350
23351 * grub-core/genmod.sh.in: New file.
23352 * grub-core/gensyminfo.sh.in: New file.
23353
23354 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23355 * conf/Makefile.extra-dist: Update with new files.
23356 * gentpl.py: Remove rules related to unnecessary temporary files.
23357 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23358 and und-* files.
23359 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23360 genmod.sh scripts.
23361 * grub-core/bus/usb/uhci.c: Remove empty #define.
23362 * grub-core/genmoddep.awk: Updated with new syminfo format.
23363 * util/bash-completion.d/Makefile.am: Add config.log to
23364 CLEANFILES.
23365
23366 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23367
23368 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23369
23370 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23371
23372 * util/grub-mkconfig.in: Check the config script for syntax errors
23373 before saving.
23374
23375 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23376 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23377
23378 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23379 platforms.
23380 * util/grub-install.in: Add EFI and IEEE1275 support.
23381 * util/i386/efi/grub-install.in: Removed.
23382 * util/ieee1275/grub-install.in: Likewise.
23383
23384 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23385
23386 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23387 (grub_cmd_cmosclean): Likewise.
23388 (GRUB_MOD_INIT): Register command cmosclean.
23389 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23390 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23391
23392 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23393 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23394 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23395
23396 Add keyboard layouts support.
23397
23398 * Makefile.util.def (grub-mklayout): New file.
23399 (grub-kbdcomp): New script.
23400 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23401 Add keyboard_layouts.h.
23402 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23403 commands/boot.c on yeeloong.
23404 (keylayouts): New module.
23405 * grub-core/bus/usb/ohci.c
23406 * grub-core/bus/usb/uhci.c
23407 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23408 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23409 (attach_root_port): Likewise.
23410 (poll_nonroot_hub): Likewise.
23411 (grub_usb_poll_devices): Likewise.
23412 (detach_device): Close transfer.
23413 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23414 function.
23415 (grub_usb_bulk_setup_readwrite): Likewise.
23416 (grub_usb_bulk_finish_readwrite): Likewise.
23417 * grub-core/commands/keylayouts.c: New file.
23418 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23419 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23420 aliases.
23421 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23422 support scancode 2.
23423 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23424 * include/grub/keyboard_layouts.h: New file.
23425 * util/grub-mklayout.c: New file.
23426 * util/grub-kbdcomp.in: Likewise.
23427
23428 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23429
23430 Unify memory types.
23431
23432 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23433 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23434 types.
23435 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23436 (grub_upper_mem): Likewise.
23437 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23438 * include/grub/memory.h (grub_memory_type_t): New enum.
23439 All users updated.
23440
23441 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23442
23443 * grub-core/Makefile.core.def (lsapm): New module.
23444 * grub-core/commands/i386/pc/lsapm.c: New file.
23445 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23446 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23447 Likewise.
23448 * include/grub/i386/pc/apm.h: New file.
23449 * include/multiboot.h (multiboot_apm_info): New struct.
23450
23451 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23452
23453 GRUB-legacy configuration file support.
23454
23455 * Makefile.util.def (grub-menulst2cfg): New util.
23456 * docs/man/grub-menulst2cfg.h2m: New file.
23457 * grub-core/Makefile.core.def (legacycfg): New module.
23458 * grub-core/commands/legacycfg.c: New file.
23459 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23460 (grub_normal_add_menu_entry): ... this.
23461 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23462 (grub_normal_set_password): ...this.
23463 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23464 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23465 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23466 * grub-core/lib/legacy_parse.c: New file.
23467 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23468 * include/grub/i386/pc/vesa_modes_table.h: New file.
23469 * include/grub/legacy_parse.h: Likewise.
23470 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23471 * util/grub-menulst2cfg.c: New file.
23472
23473 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23474
23475 * grub-core/kern/emu/hostdisk.c
23476 (convert_system_partition_to_system_disk): Initialise node.
23477
23478 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23479
23480 * grub-core/kern/emu/hostdisk.c
23481 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23482 leak.
23483 Reported and based on patch by: Modestas Vainius.
23484
23485 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23486
23487 Fix DM-RAID probing with recent versions of device-mapper udev
23488 rules.
23489
23490 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23491 canonicalise device paths under /dev/mapper/.
23492 (convert_system_partition_to_system_disk): Compare the
23493 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23494 path, since device nodes under /dev/mapper/ are often symlinks.
23495
23496 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23497
23498 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23499
23500 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23501
23502 * configure.ac: Avoid some annoying error messages if freetype-config
23503 program is not found.
23504
23505 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23506
23507 Support RAID on virtio devices, and others.
23508
23509 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23510 Rename to ...
23511 [__MINGW32__] (grub_find_device): ... this.
23512 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23513 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23514 reasonable default if dir is NULL.
23515 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23516 ...
23517 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23518 (grub_guess_root_device): Update callers.
23519 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23520
23521 * util/raid.c (grub_util_getdiskname): Remove.
23522 (grub_util_raid_getmembers): Use grub_find_device rather than
23523 grub_util_getdiskname.
23524
23525 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23526
23527 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23528 needing to be compiled with serial support.
23529 (ls): Indicate that multiple files are accepted.
23530 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23531 indicate that multiple files are accepted.
23532
23533 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23534
23535 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23536 libgrub_a_init.c, and util/bash-completion.d/grub.
23537
23538 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23539
23540 * util/grub-setup.c (setup): Fix incorrect container semantics.
23541
23542 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23543
23544 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23545 misusage.
23546 Reported by: J. Nick Terry
23547
23548 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23549
23550 Move embedding routines to partmap sources files.
23551
23552 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23553 [GRUB_UTIL]: New variable.
23554 (gpt_partition_map_iterate): Set part.parent.
23555 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23556 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23557 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23558 New function.
23559 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23560 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23561 (grub_partition_map) [GRUB_UTIL]: New field embed.
23562 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23563 (setup): Use ->embed.
23564
23565 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23566
23567 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23568 function.
23569 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23570 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23571
23572 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23573
23574 Add function to get completions from usage.
23575
23576 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23577 completions from usage. Use LC_ALL=C to get options properly.
23578
23579 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23580
23581 * grub-core/gnulib/basename-lgpl.c: Imported.
23582 * grub-core/gnulib/basename.c: Likewise.
23583 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23584 * grub-core/gnulib/dirname.c: Likewise.
23585 * grub-core/gnulib/dirname.h: Likewise.
23586 * grub-core/gnulib/stripslash.c: Likewise.
23587
23588 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23589
23590 * grub-core/gnulib/error.c: Resynced.
23591 * grub-core/gnulib/getopt.c: Likewise.
23592 * grub-core/gnulib/getopt_int.h: Likewise.
23593 * grub-core/gnulib/regex.h: Likewise.
23594 * grub-core/gnulib/regex_internal.c: Likewise.
23595 * grub-core/gnulib/regex_internal.h: Likewise.
23596
23597 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23598
23599 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23600 CRC calculations and validity checks.
23601 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23602 calculations.
23603
23604 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23605
23606 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23607
23608 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23609
23610 Fix incorrect echo options handling.
23611 Reported by: Yves Blusseau.
23612
23613 * include/grub/command.h (grub_command_flags_t): New flags
23614 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23615 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23616 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23617
23618 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23619
23620 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23621 users updated.
23622 (GRUB_COMMAND_FLAG_MENU): Likewise.
23623 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23624 (GRUB_COMMAND_FLAG_TITLE): Removed.
23625 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23626 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23627 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23628 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23629 (grub_command_flags_t): New enum. All users updated.
23630
23631 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23632
23633 Fix solaris compilation.
23634
23635 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23636 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23637 (grub-emu-list): Likewise.
23638
23639 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23640
23641 Remove deprecated root command.
23642
23643 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23644 updated.
23645
23646 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23647
23648 * util/i386/pc/grub-setup.c: Merge this ...
23649 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23650 * util/grub-setup.c: ... into this.
23651 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23652 New struct.
23653
23654 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23657 possible.
23658
23659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23662 allocate p.
23663
23664 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23665
23666 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23667 explicit root argument to set to prevent UUID to be interpreted as
23668 argument to set.
23669
23670 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23671
23672 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23673
23674 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23675
23676 Don't export grub_gate_a20.
23677
23678 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23679 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23680 to ...
23681 (grub_gate_a20): ... this. All users updated.
23682 * include/grub/i386/pc/init.h: Removed. All users updated.
23683
23684 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23685
23686 Create euro.pf2 which supports most European languages.
23687
23688 * Makefile.am (grubdata_DATA): Add euro.pf2.
23689 (euro.pf2): New target.
23690 (CLEANFILES): Add euro.pf2.
23691
23692 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23693
23694 * configure.ac: Disable emu-usb by default to prevent inadvertent
23695 device takeover.
23696
23697 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23698
23699 Disable usbserial on grub-emu since our libusb code isn't good enough
23700 yet.
23701
23702 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23703 (usbserial_pl2303): Likewise.
23704 (usbserial_ftdi): Likewise.
23705
23706 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23707
23708 * include/grub/disk.h (grub_disk): Remove has_partitions.
23709 All users updated.
23710 * disk/loopback.c (grub_loopback): Remove has_partitions.
23711 All users updated.
23712 (options): Remove partitions. All users updated.
23713 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23714 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23715 actual partition table is found.
23716
23717 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23718
23719 Remove readability checks (too many false negatives).
23720
23721 * util/grub-install.in: Remove readability checks.
23722 * util/grub-mkconfig.in: Likewise.
23723 * util/grub.d/10_hurd.in: Likewise.
23724 * util/grub.d/10_kfreebsd.in: Likewise.
23725 * util/grub.d/10_linux.in: Likewise.
23726 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23727 way.
23728
23729 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23730
23731 Enable acpi shutdown on all ACPI platforms.
23732
23733 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23734 on coreboo, multiboot and EFI.
23735 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23736 (grub_acpi_halt): Likewise.
23737 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23738 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23739 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23740 * grub-core/lib/i386/halt.c (grub_halt)
23741 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23742
23743 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23744
23745 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23746 context.
23747
23748 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23749
23750 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23751 * grub-core/video/efi_uga.c: Likewise.
23752
23753 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23754
23755 Filter devaliases and never open same device twice.
23756
23757 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23758 (last_ihandle): Likewise.
23759 (ofdisk_hash_ent): New member shortest.
23760 (ofdisk_hash_add): Add canonical path too.
23761 (scan): New function.
23762 (grub_ofdisk_iterate): Iterate over hashed entries.
23763 (compute_dev_path): Don't add :0.
23764 (grub_ofdisk_open): Don't really open the disk.
23765 (grub_ofdisk_close): Avoid closing unrelated disk.
23766 (grub_ofdisk_read): Implement reopen logic.
23767 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23768 New function.
23769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23770 New proto.
23771
23772 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23773
23774 Fix sparc64.
23775
23776 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23777 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23778 right address. Add sparc64_ieee1275_ldflags.
23779 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23780 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23781 to grub_host_to_target_addr
23782 (load_image): Likewise.
23783
23784 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23785
23786 * grub-core/normal/completion.c (complete_file): Handle device
23787 containing slash.
23788 Fix based on patch by Doug Nazar.
23789
23790 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23791
23792 grub-mknetdir script.
23793
23794 * Makefile.util.def (grub-mknetdir): New module.
23795 * tests/util/grub-shell.in: Support boot=net
23796 * util/grub-mknetdir.in: New file.
23797
23798 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23799
23800 videoinfo on non-vbe.
23801
23802 * grub-core/Makefile.core.def (vbeinfo): Removed.
23803 (vbetest): Removed.
23804 (videoinfo): New module.
23805 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23806 * grub-core/commands/i386/pc/vbetest.c: Removed.
23807 * grub-core/commands/videoinfo.c: New file.
23808 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23809 specification.
23810 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23811 as vbetest.
23812 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23813 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23814 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23815 mode_number. New parameter mode. All users updated.
23816 (grub_video_gop_iterate): New function.
23817 (grub_video_efi_gop): New member iterate.
23818 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23819 (grub_vbe_set_video_mode): Remove setting useless fields.
23820 (vbe2videoinfo): New function.
23821 (grub_video_vbe_iterate): Likewise.
23822 (grub_video_vbe_setup): Use vbe2videoinfo.
23823 (grub_video_vbe_print_adapter_specific_info): New function.
23824 (grub_video_vbe_adapter): New fields iterate and
23825 print_adapter_specific_info.
23826 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23827 All users updated.
23828 (grub_video_mode_info): New field mode_number.
23829 (grub_video_adapter): New fields iterate and
23830 print_adapter_specific_info.
23831
23832 2010-09-13 Tristan Gingold <gingold@free.fr>
23833 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23834 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 * grub-core/commands/efi/lsefisystab.c: New file.
23837 * grub-core/commands/efi/lssal.c: Likewise.
23838 * grub-core/Makefile.core.def (lsacpi): New module.
23839 (lsefisystab): Likewise.
23840 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23841 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23842 (grub_efi_sal_system_table): New struct.
23843 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23844 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23845 (grub_efi_sal_system_table_platform_features): Likewise.
23846 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23847 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23848 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23849 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23850
23851 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23852
23853 Support explicit user claim that a device is BIOS-visible.
23854
23855 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23856 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23857 * grub-core/kern/emu/hostdisk.c
23858 (convert_system_partition_to_system_disk): Support mdX.
23859 (find_system_device): New parameter add. All users updated.
23860 (grub_util_biosdisk_is_present): New function.
23861 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23862 proto.
23863
23864 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23865
23866 Search hints support.
23867
23868 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23869 All users updated.
23870
23871 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23872
23873 Bash completion script for util commands
23874
23875 * Makefile.am: Add util/bash-completion.d directory
23876 * configure.ac: Likewise.
23877 * util/bash-completion.d/Makefile.am: New file.
23878 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23879
23880 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23881
23882 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23883 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23884 Reported by: Yves Blusseau.
23885
23886 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23887
23888 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23889 partition size and offset.
23890
23891 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23892
23893 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23894
23895 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23896
23897 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23898
23899 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23900
23901 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23902 (grub_xvasprintf): Likewise.
23903
23904 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23905
23906 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23907
23908 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23909
23910 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23911 args ending with NULL.
23912
23913 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23916 pointer.
23917
23918 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23919
23920 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23921
23922 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23923
23924 Shutdown using ACPI.
23925
23926 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23927 * grub-core/commands/acpihalt.c: New file.
23928 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23929 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23930 (grub_acpi_halt): New proto.
23931 (GRUB_ACPI_SLP_EN): New const.
23932 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23933 (GRUB_ACPI_OPCODE_*): New enum.
23934 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23935
23936 2010-09-11 Tristan Gingold <gingold@free.fr>
23937 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23938 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 * commands/lsacpi.c: New file.
23941 * grub-core/Makefile.core.def (lsacpi): New module.
23942 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23943 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23944 (grub_acpi_madt_entry_header): New struct.
23945 (grub_acpi_madt): Likewise.
23946 (grub_acpi_madt_entry_interrupt_override): Likewise.
23947 (grub_acpi_madt_entry_sapic): Likewise.
23948 (grub_acpi_madt_entry_lsapic): Likewise.
23949 (grub_acpi_madt_entry_platform_int_source): Likewise.
23950 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23951 (PRIuGRUB_UINT32_T): Likewise.
23952 (PRIxGRUB_UINT64_T): Likewise.
23953
23954 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23955
23956 Implement loading palette on ieee1275_fb.
23957
23958 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23959 (have_setcolors): Likewise.
23960 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23961 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23962 (grub_video_ieee1275_set_palette): Implement.
23963
23964 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23965 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23966
23967 * util/grub-install.in (grub_partition): New variable.
23968 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23969 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23970 Fixes a bug reported by Yves Blusseau.
23971
23972 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23973
23974 Fix emu on mipsel.
23975
23976 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23977 =grub_cpu_flush_cache on all mips and not only yeeloong.
23978 * configure.ac (COND_mips): New conditional.
23979 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23980 platforms.
23981 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23982 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23983 [GRUB_LINKER_HAVE_INIT]: New function.
23984 (grub_emu_post_init): Likewise.
23985 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23986 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23987 * include/grub/cache.h (_mips): Include mips/cache.h.
23988 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23989 LVM and RAID prototypes.
23990 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23991 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23992 function.
23993
23994 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23995
23996 * util/grub-install.in: Don't try to verify core.img until after
23997 running grub-mkimage to create it.
23998
23999 2010-09-10 Robert Millan <rmh@gnu.org>
24000
24001 * util/grub.d/10_hurd.in: Add misc readability checks.
24002 * util/grub.d/10_kfreebsd.in: Likewise.
24003 * util/grub.d/10_linux.in: Likewise.
24004
24005 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24006
24007 * util/grub-install.in: ${imgext} won't be defined here until the
24008 install branch is merged. For the meantime, only verify core.img on
24009 i386-pc and sparc64-ieee1275 platforms.
24010
24011 2010-09-10 Robert Millan <rmh@gnu.org>
24012
24013 Solaris support in grub_find_zpool_from_dir(). Thanks
24014 Seth Goldberg for referring to getextmntent() facility.
24015
24016 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24017 `sys/mkdev.h'.
24018 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24019 `<sys/mnttab.h>'.
24020 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24021 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24022 method for finding zpool name.
24023
24024 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24025
24026 grub-fstest needs the host and hostfs modules while other utilities
24027 actively require those modules to be absent, so grub-fstest needs
24028 its own initialisation and finalisation code.
24029
24030 * Makefile.am (grub_fstest.pp): New target.
24031 (grub_fstest_init.lst): Likewise.
24032 (grub_fstest_init.c): Likewise.
24033 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24034
24035 2010-09-10 Robert Millan <rmh@gnu.org>
24036
24037 * configure.ac: Check for `struct statfs.f_fstypename' and
24038 `struct statfs.f_mntfromname'.
24039
24040 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24041 kFreeBSD-specific code.
24042
24043 2010-09-10 Robert Millan <rmh@gnu.org>
24044
24045 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24046 on ZFS. Now non-main filesystems are supported as / too.
24047
24048 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24049
24050 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24051 and grub-core/disk/host.c to ...
24052 (grub-fstest): ... here. Having the host disk implementation
24053 present confuses grub-probe and other utility programs.
24054
24055 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24056 when writing to a file, not when writing to stdout.
24057
24058 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24059
24060 * tests/partmap_test.in: New test for partitions.
24061 * Makefile.util.def: Rules for new test.
24062
24063 2010-09-09 Robert Millan <rmh@gnu.org>
24064
24065 * util/grub-probe.c (probe): Fix a pair of unhandled error
24066 conditions.
24067
24068 2010-09-09 Robert Millan <rmh@gnu.org>
24069
24070 Basic Btrfs support (detection and UUID).
24071
24072 * grub-core/fs/btrfs.c: New file.
24073 * Makefile.util.def (library): Register btrfs.c.
24074 * grub-core/Makefile.core.def: Likewise.
24075
24076 2010-09-08 Robert Millan <rmh@gnu.org>
24077
24078 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24079 with (optional) parameters to specify device and relative path.
24080 * util/grub-install.in: Use is_path_readable_by_grub() to
24081 verify readability of a few critical files.
24082 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24083 verify readability of grub.cfg.new.
24084
24085 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24086
24087 Split minix.mod into minix.mod and minix2.mod.
24088
24089 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24090 * grub-core/Makefile.core.def (minix2): New module.
24091 * grub-core/fs/minix.c: Use definitions instead of runtime version
24092 checking.
24093 * grub-core/fs/minix2.c: New file.
24094
24095 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24096
24097 Add new --boot-directory option to replace --root-directory
24098
24099 * util/grub-install.in: Add new --boot-directory option
24100 * util/grub-reboot.in: Likewise.
24101 * util/grub-set-default.in: Likewise.
24102
24103 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24104
24105 * util/grub-mkconfig.in: Use new variable.
24106
24107 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24108
24109 * configure.ac: Define some useful variables.
24110
24111 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24114 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24115 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24116 Use terminfo and don't use cursor-on/cursor-off unless it's known
24117 to work.
24118 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24119 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24120
24121 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24122
24123 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24124 starts with "(,", fill the drive containing the loaded image in
24125 between those two characters, but expect that a full partition
24126 specification including partition map names will follow.
24127
24128 2010-09-08 Robert Millan <rmh@gnu.org>
24129
24130 * configure.ac: Remove `--enable-grub-fstest' option.
24131 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24132
24133 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24134 `grub-fstest' instead of `grub-probe' for readability verification.
24135 * util/grub-probe.c (probe): Remove readability verification kludge.
24136
24137 2010-09-08 Robert Millan <rmh@gnu.org>
24138
24139 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24140 initializing `GRUB_FS'.
24141
24142 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24143
24144 Not command (!) support to GRUB script.
24145
24146 * tests/grub_script_not.in: New test.
24147 * Makefile.util.def: Rules for new test.
24148
24149 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24150 ! command as a special case.
24151 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24152
24153 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24154
24155 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24156 grub_free.
24157
24158 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24159
24160 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24161
24162 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24163
24164 * docs/grub.texi (Shell-like scripting): Documentation for break,
24165 continue, shift and return commands.
24166
24167 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24168
24169 Rename CD-ROM to cd on BIOS.
24170
24171 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24172 "cd".
24173 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24174
24175 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24176
24177 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24178 * util/grub-probe.c (main): Likewise.
24179 * util/i386/pc/grub-setup.c (main): Likewise.
24180 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24181 Reported and debugged by: alexxy
24182
24183 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24184
24185 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24186 diagnostic info.
24187
24188 2010-09-05 Jo Shields <directhex@apebox.org>
24189
24190 * util/grub.d/30_os-prober.in: Add missing classes.
24191
24192 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24193
24194 * docs/grub.texi (Theme file format): Document new position format.
24195
24196 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24197
24198 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24199 a table. Use @code instead of @verbatim.
24200
24201 2010-09-05 Colin D Bennett <colin@gibibit.com>
24202
24203 Gfxmenu documentation.
24204
24205 * docs/grub.texi (Theme file format): New chapter.
24206
24207 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24208
24209 * grub-core/Makefile.core.def (xzio): New module.
24210 * grub-core/io/xzio.c: New file.
24211 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24212 * grub-core/lib/xzembed/xz_config.h: Likewise.
24213 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24214 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24215 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24216 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24217 * grub-core/lib/xzembed/xz_private.h: Likewise.
24218 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24219 * include/grub/file.h (grub_file_filter_id): New compression filter
24220 GRUB_FILE_FILTER_XZIO.
24221
24222 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24223
24224 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24225 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24226 size.
24227
24228 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24229
24230 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24231 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24232
24233 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24234
24235 Uncompressed checksum support.
24236
24237 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24238 (check_list): New parameter uncompress.
24239 (grub_cmd_hashsum): Handle --uncompress.
24240
24241 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24242
24243 Reintroduce testload.
24244
24245 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24246 from here ...
24247 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24248 (GRUB_MOD_INIT): New function.
24249 (GRUB_MOD_FINI): Likewise.
24250 * grub-core/Makefile.core.def (testload): New module.
24251
24252 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24253
24254 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24255 (uint8_t): New type.
24256 (uint16_t): Likewise.
24257 (uint32_t): Likewise.
24258 (uint64_t): Likewise.
24259
24260 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24261
24262 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24263
24264 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24265
24266 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24267 Made static.
24268 (grub_gzfile_open): Removed. All users updated.
24269 (GRUB_MOD_INIT): New function.
24270 (GRUB_MOD_FINI): Likewise.
24271 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24272 (grub_file_filters_enabled): Likewise.
24273 (grub_file_open): Handle filters.
24274 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24275 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24276 * include/grub/file.h (grub_file_filter_id_t): New type.
24277 (grub_file_filter_t): Likewise.
24278 (grub_file_filters_all): New extern variable.
24279 (grub_file_filters_enabled): Likewise.
24280 (grub_file_filter_register): New inline function.
24281 (grub_file_filter_unregister): Likewise.
24282 (grub_file_filter_disable): Likewise.
24283 (grub_file_filter_disable_compression): Likewise.
24284 * include/grub/gzio.h: Removed.
24285
24286 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24287
24288 Filename expansion support for wildcards in GRUB script.
24289
24290 * tests/grub_script_expansion.in: New test.
24291 * Makefile.util.def: Rule for new test.
24292
24293 * grub-core/commands/wildcard.c: New file, implements filename
24294 expansion support for GRUB script.
24295 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24296 * grub-core/script/argv.c: Cosmetic changes.
24297 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24298 Refactored to perform wildcard expansion on arguments.
24299 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24300 struct.
24301
24302 * tests/util/grub-shell.in: Fix quoting for read input.
24303
24304 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24305
24306 Support for updating environment variables with matched substrings
24307 of regexp.
24308
24309 * tests/grub_cmd_regexp.in: New test.
24310 * Makefile.util.def: Rule for new test.
24311
24312 * grub-core/commands/regexp.c: New option -s to update environment
24313 variables with regexp matches.
24314
24315 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24316
24317 * include/grub/file.h (grub_file): New member not_easly_seekable.
24318 (grub_file_seekable): New inline function.
24319 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24320 easily seekable.
24321 (grub_gzio_open): Set not_easly_seekable.
24322 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24323 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24324
24325 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24326
24327 Support for options to appear multiple times on cmdline.
24328
24329 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24330 * grub-core/commands/extcmd.c: Support for repeatable option.
24331 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24332 repeatable option support.
24333
24334 Refactor menuentry into a regular command.
24335
24336 * grub-core/commands/menuentry.c: New file, menuentry command
24337 implementation.
24338 * grub-core/Makefile.core.def: Rule update for normal.mod.
24339 * grub-core/normal/main.c: Moved menuentry creation to
24340 grub-core/commands/menuentry.c.
24341 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24342 (grub_menu_execute_entry_real): Removed.
24343 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24344 function.
24345 (grub_script_execute_menuentry): Removed.
24346 * grub-core/script/parser.y (menuentry): Removed.
24347 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24348 * grub-core/script/yylex.l (menuentry): Removed.
24349 * include/grub/menu.h (grub_menu_init): New prototype.
24350 (grub_menu_fini): New prototype.
24351 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24352 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24353 (grub_script_execute_sourcecode): New prototype.
24354
24355 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24356
24357 "return" command for GRUB script functions.
24358
24359 * tests/grub_script_return.in: New test.
24360 * Makefile.util.def: Rules for new test.
24361
24362 * grub-core/script/execute.c (grub_script_return): New function.
24363 * grub-core/script/main.c: Register/unregister return commaond.
24364 * include/grub/script_sh.h (grub_script_return): New prototype.
24365
24366 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24367
24368 "setparams" command to update positional parameters.
24369
24370 * tests/grub_script_setparams.in: New test.
24371 * Makefile.util.def: Rules for new test.
24372
24373 * grub-core/script/argv.c (grub_script_argv_make): New function.
24374 * grub-core/script/execute.c (replace_scope): New function.
24375 (grub_script_setparams): New function.
24376 * grub-core/script/lexer.c: Remove unused variables.
24377 * grub-core/script/main.c: Register/unregister setparams command.
24378 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24379 (grub_script_setparams): New prototype.
24380
24381 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24382
24383 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24384 grub_free order.
24385
24386 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24387
24388 Support for passing block of commands as an argument to extcmds.
24389
24390 * Makefile.util.def: Rules for new test.
24391 * tests/grub_script_blockarg.in: New test.
24392 * grub-core/tests/test_blockarg.c: New file, block argument
24393 command used in the test.
24394
24395 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24396 (grub_register_extcmd_prio): New function prototype.
24397 (grub_extcmd_dispatcher): New function prototype.
24398 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24399 type.
24400 * include/grub/script_sh.h (struct grub_script): New members
24401 `children', `next_siblings' and `refcnt' for block arguments and
24402 reference counting.
24403 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24404 (grub_script_arg): New member `script' for block argument.
24405 (grub_script_argv): New member `script' for block argument.
24406 (grub_parser_param): New member `scripts' for block argument.
24407 (grub_script_mem_free): New extern function prototype.
24408 (grub_script_ref): New function prototype.
24409 (grub_script_unref): New function prototype.
24410
24411 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24412 extcmd form to support block arguments.
24413 * grub-core/script/argv.c: Block arguments support.
24414 * grub-core/script/execute.c: Likewise.
24415 * grub-core/script/lexer.c: Likewise.
24416 * grub-core/script/main.c: Likewise.
24417 * grub-core/script/script.c: Likewise.
24418 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24419 non-terminals.
24420
24421 * grub-core/commands/acpi.c: Update extcmd implementations with
24422 grub_extcmd_context_t.
24423 * grub-core/commands/cat.c: Likewise.
24424 * grub-core/commands/echo.c: Likewise.
24425 * grub-core/commands/extcmd.c: Likewise.
24426 * grub-core/commands/hashsum.c: Likewise.
24427 * grub-core/commands/hdparm.c: Likewise.
24428 * grub-core/commands/help.c: Likewise.
24429 * grub-core/commands/hexdump.c: Likewise.
24430 * grub-core/commands/i386/cpuid.c: Likewise.
24431 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24432 * grub-core/commands/i386/pc/halt.c: Likewise.
24433 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24434 * grub-core/commands/iorw.c: Likewise.
24435 * grub-core/commands/keystatus.c: Likewise.
24436 * grub-core/commands/loadenv.c: Likewise.
24437 * grub-core/commands/ls.c: Likewise.
24438 * grub-core/commands/lspci.c: Likewise.
24439 * grub-core/commands/memrw.c: Likewise.
24440 * grub-core/commands/probe.c: Likewise.
24441 * grub-core/commands/search_wrap.c: Likewise.
24442 * grub-core/commands/setpci.c: Likewise.
24443 * grub-core/commands/sleep.c: Likewise.
24444 * grub-core/disk/loopback.c: Likewise.
24445 * grub-core/hello/hello.c: Likewise.
24446 * grub-core/loader/i386/bsd.c: Likewise.
24447 * grub-core/loader/xnu.c: Likewise.
24448 * grub-core/term/gfxterm.c: Likewise.
24449 * grub-core/term/serial.c: Likewise.
24450 * grub-core/tests/lib/functional_test.c: Likewise.
24451
24452 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24453
24454 Multi-line quoted strings support.
24455
24456 * grub-core/script/lexer.c (append_newline): Removed.
24457 (grub_script_lexer_yywrap): Refactored.
24458 (grub_script_lexer_init): Refactored.
24459 * grub-core/script/yylex.l (yywrap): New function.
24460 (grub_lexer_resplit): New function.
24461 (grub_lexer_unput): New function.
24462 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24463 and resplit.
24464 * tests/grub_script_echo1.in: Added few more testcases.
24465
24466 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24467
24468 * grub-core/kern/misc.c: Don't add abort alias in utils.
24469 Reported by: echoline.
24470
24471 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24472
24473 Add missing files into "make dist" tarball for other platforms.
24474
24475 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24476 * conf/Makefile.common (dist_noinst_DATA): New variable.
24477 * conf/Makefile.extra-dist: Added missing make dist files.
24478 * grub-core/Makefile.core.def: Likewise.
24479
24480 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24481
24482 Compress grub_prefix.
24483
24484 * grub-core/boot/i386/pc/lnxboot.S: Use
24485 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24486 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24487 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24488 GRUB_MACHINE_PREFIX_END. All users updated.
24489 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24490 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24491 + 0x40.
24492 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24493 * util/grub-mkimage.c (image_target_desc): Change data_end to
24494 prefix_end. All users updated.
24495
24496 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24497
24498 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24499 value.
24500 (grub_openbsd_boot): Likewise.
24501 (grub_netbsd_boot): Likewise.
24502 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24503 (grub_xnu_boot): Likewise.
24504
24505 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24506
24507 * configure.ac: Clean LIBS variable after tests.
24508
24509 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24510
24511 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24512
24513 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24514
24515 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24516 echo if libdevmapper will be used.
24517
24518 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24519
24520 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24521 constant for the same file.
24522
24523 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24524
24525 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24526
24527 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24528
24529 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24530 grub-core/*.pp.
24531
24532 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24533
24534 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24535 required by the boot protocol.
24536
24537 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24538 ebp and edi members.
24539 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24540 state.ebp and state.edi.
24541 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24542 %ebp and %edi according to grub_relocator32_ebp and
24543 grub_relocator32_edi respectively.
24544 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24545 and state.edi.
24546
24547 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24548
24549 Add i386-pc-pxe image target.
24550
24551 * util/grub-mkimage.c (image_target_desc): New enum value
24552 IMAGE_I386_PC_PXE.
24553 (image_targets): New target i386-pc-pxe.
24554 (generate_image): Handle i386-pc-pxe image.
24555
24556 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24557
24558 Fix grub_pxe_scan.
24559
24560 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24561 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24562 All users updated.
24563 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24564 (grub_pxe_pxenv): Correct type.
24565
24566 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24567
24568 * NEWS: Document most of the important changes since 1.98.
24569
24570 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24571
24572 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24573 generated manual page) a little.
24574
24575 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24576
24577 * docs/grub.texi: Add myself as an author.
24578
24579 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24580
24581 * Makefile.util.def (libgrub.a): Add missing sunpc.
24582 Reported by: Seth Goldberg.
24583
24584 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24585
24586 Interrupt wrapping and code simplifications.
24587
24588 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24589 x86_noieee1275 which are functionaly equivalent in this case.
24590 (grub-install): Make source on each platform explicit. Enable on
24591 all noemu.
24592 * gentpl.py (x86_efi_pc): Removed group.
24593 (x86_noefi): Likewise.
24594 (i386_noefi): Likewise.
24595 (x86_noieee1275): Likewise.
24596 (i386_noieee1275): Likewise.
24597 (i386_noefi_noieee1275): Likewise.
24598 (i386_pc_qemu_coreboot): Likewise.
24599 (i386_coreboot_multiboot): Likewise.
24600 (i386_pc_coreboot_multiboot_qemu): Likewise.
24601 (x86_noefi_mips): Likewise.
24602 (noieee1275): Likewise.
24603 (ieee1275_mips): Likewise.
24604 (noemu_noieee1275): Likewise.
24605 (cmos): New group.
24606 (usb): Likewise.
24607 (videoinkernel): Likewise.
24608 (videomodules): Likewise.
24609 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24610 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24611 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24612 include/grub/loader.h, include/grub/msdos_partition.h,
24613 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24614 include/grub/machine/console.h, include/grub/machine/vga.h,
24615 include/grub/machine/vbe.h, include/grub/machine/init.h,
24616 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24617 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24618 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24619 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24620 * grub-core/Makefile.core.def (kernel): Explicit the source for
24621 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24622 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24623 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24624 Use videoinkernel tag.
24625 (usb): Enable on all usb.
24626 (usbserial_common): Likewise.
24627 (usbserial_pl2303): Likewise.
24628 (usbserial_ftdi): Likewise.
24629 (uhci): Enable on all x86.
24630 (ohci): Enable on all pci.
24631 (cmostest): Enable on all CMOS.
24632 (acpi): Include commands/acpi.c on all platforms.
24633 (halt): Add relevant lib/*/halt.c.
24634 (hdparm): Enable on all pci.
24635 (lspci): Likewise.
24636 (usbtest): Enable on all usb.
24637 (ata): Enable on all pci.
24638 (ata_pthru): Likewise.
24639 (usbms): Enable on all usb.
24640 (usb_keyboard): Likewise.
24641 (font): Use tag videomodules.
24642 (bufio): Likewise.
24643 (datetime): Use tag cmos. Enable on all noemu.
24644 (mmap): Use tags common and x86.
24645 (gfxterm): Use tag videomodules.
24646 (bitmap): Likewise.
24647 (bitmap_scale): Likewise.
24648 (video_fb): Likewise.
24649 (video): Likewise.
24650 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24651 adjust padding accordingly. All users updated.
24652 (grub_ohci_transaction): Fix bad format specification.
24653 (GRUB_MOD_INIT): Add asserts for struct size.
24654 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24655 (grub_alloc_td): Likewise.
24656 (grub_free_queue): Likewise.
24657 (grub_uhci_transfer): Likewise.
24658 (grub_uhci_transaction): Fix bad format specification.
24659 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24660 (grub_usb_bulk_readwrite): Likewise.
24661 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24662 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24663 Made static.
24664 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24665 Made static.
24666 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24667 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24668 Transformed into C.
24669 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24670 Moved from here ...
24671 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24672 ... here. Transformed into C. Made static.
24673 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24674 Moved from here ...
24675 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24676 ... here. Transformed into C. Made static.
24677 * grub-core/kern/i386/pc/startup.S
24678 (grub_biosdisk_check_int13_extensions): Moved from here ...
24679 * grub-core/disk/i386/pc/biosdisk.c
24680 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24681 Made static.
24682 * grub-core/kern/i386/pc/startup.S
24683 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24684 * grub-core/disk/i386/pc/biosdisk.c
24685 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24686 Transformed into C. Made static.
24687 * grub-core/kern/i386/pc/startup.S
24688 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24689 * grub-core/disk/i386/pc/biosdisk.c
24690 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24691 Transformed into C. Made static.
24692 * grub-core/kern/i386/pc/startup.S
24693 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24694 * grub-core/disk/i386/pc/biosdisk.c
24695 (grub_biosdisk_get_diskinfo_standard): ... here.
24696 Transformed into C. Made static.
24697 * grub-core/kern/i386/pc/startup.S
24698 (grub_biosdisk_get_num_floppies): Moved from here ...
24699 * grub-core/disk/i386/pc/biosdisk.c
24700 (grub_biosdisk_get_num_floppies): ... here.
24701 Transformed into C. Made static.
24702 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24703 New function.
24704 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24705 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24706 Transformed into C. Made static.
24707 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24708 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24709 Transformed into C. Made static.
24710 * grub-core/kern/i386/ieee1275/init.c: Removed.
24711 * grub-core/kern/i386/misc.S: Likewise.
24712 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24713 Splitted from here ...
24714 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24715 Transformed into C. Made static. All users updated.
24716 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24717 Transformed into C. Made static. All users updated.
24718 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24719 Moved from here...
24720 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24721 Transformed into C. Made static. All users updated.
24722 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24723 Moved from here...
24724 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24725 Transformed into C. Made static. All users updated.
24726 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24727 Removed (replaced by C version).
24728 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24729 Moved from here...
24730 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24731 Transformed into C. Made static.
24732 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24733 Moved from here...
24734 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24735 ... here. Transformed into C.
24736 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24737 Moved from here...
24738 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24739 ... here. Transformed into C.
24740 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24741 Moved from here...
24742 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24743 ... here. Transformed into C. Made static.
24744 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24745 Moved from here...
24746 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24747 ... here. Transformed into C.
24748 * grub-core/kern/i386/pc/startup.S
24749 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24750 * grub-core/video/i386/pc/vbe.c
24751 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24752 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24753 Moved from here...
24754 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24755 ... here. Transformed into C.
24756 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24757 Moved from here...
24758 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24759 ... here. Transformed into C.
24760 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24761 Moved from here...
24762 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24763 ... here. Transformed into C.
24764 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24765 Moved from here...
24766 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24767 ... here. Transformed into C.
24768 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24769 Moved from here...
24770 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24771 ... here. Transformed into C. Made static.
24772 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24773 Moved from here...
24774 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24775 ... here. Transformed into C. Made static.
24776 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24777 Moved from here...
24778 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24779 ... here. Transformed into C. Made static.
24780 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24781 pxe_rm_entry as third argument.
24782 (grub_bios_interrupt): New function.
24783 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24784 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24785 of calling grub_stop.
24786 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24787 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24788 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24789 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24790 * grub-core/lib/i386/halt.c: Moved from here ...
24791 * grub-core/lib/i386/halt.c: ... here.
24792 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24793 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24794 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24795 grub_stop_floppy.
24796 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24797 * include/grub/i386/coreboot/init.h: Removed.
24798 * include/grub/i386/multiboot/init.h: Likewise.
24799 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24800 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24801 * include/grub/i386/pc/int.h: New file.
24802 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24803 (grub_pxe_scan): Removed.
24804 (grub_pxe_call): Update prototype.
24805 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24806 prototypes.
24807 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24808 * include/grub/i386/qemu/init.h: Removed.
24809 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24810 noreturn.
24811 (grub_halt): Likewise.
24812 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24813 (grub_reboot): Likewise.
24814 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24815 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24816 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24817
24818 2010-08-30 Robert Millan <rmh@gnu.org>
24819
24820 * NEWS: Document addition of ZFS support in `grub-install' and
24821 `grub-mkconfig'.
24822
24823 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24824
24825 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24826 dprintf output.
24827
24828 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24829
24830 Remove leftover embedding of font objects.
24831
24832 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24833 * util/grub-install.in (font): Removed.
24834 * util/grub-mkimage.c (generate_image): Remove font support. All users
24835 updated.
24836
24837 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24838
24839 Remove leftover embedding of font objects.
24840
24841 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24842 * util/grub-install.in (font): Removed.
24843 * util/grub-mkimage.c (generate_image): Remove font support. All users
24844 updated.
24845
24846 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24847
24848 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24849 Reported by: Ian Turner
24850
24851 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24852
24853 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24854 timeout to avoid indefinite boot stalling.
24855
24856 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24857
24858 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24859 (grub_env_write_color_highlight): Likewise.
24860
24861 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24862
24863 * grub-core/normal/term.c (print_more): Return to normal and not
24864 to standard state after printing "---MORE---".
24865
24866 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24867
24868 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24869 Mask out the bit 0x80 since it has other meaning that specifiing color.
24870
24871 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24872
24873 New relocator. Allows for more kernel support and more straightforward
24874 loader writing.
24875
24876 * Makefile.am (BOOTTARGET): New variable.
24877 (QEMU32): Likewise.
24878 (linux.init.x86_64): New target.
24879 (linux.init.i386): Likewise.
24880 (multiboot.elf): Likewise.
24881 (kfreebsd.elf): Likewise.
24882 (kfreebsd.aout): Likewise.
24883 (pc-chainloader.elf): Likewise.
24884 (pc-chainloader.bin): Likewise.
24885 (ntldr.elf): Likewise.
24886 (ntldr.bin): Likewise.
24887 (multiboot2.elf): Likewise.
24888 (kfreebsd.init.x86_64): Likewise.
24889 (kfreebsd.init.i386): Likewise.
24890 (knetbsd.init.i386): Likewise.
24891 (kopenbsd.init.i386): Likewise.
24892 (knetbsd.init.x86_64): Likewise.
24893 (kopenbsd.init.x86_64): Likewise.
24894 (linux-initramfs.i386): Likewise.
24895 (linux-initramfs.x86_64): Likewise.
24896 (kfreebsd-mfsroot.i386.img): Likewise.
24897 (knetbsd.image.i386): Likewise.
24898 (kopenbsd.image.i386): Likewise.
24899 (kopenbsd.image.x86_64): Likewise.
24900 (knetbsd.miniroot-image.i386.img): Likewise.
24901 (kfreebsd-mfsroot.x86_64.img): Likewise.
24902 (knetbsd.image.x86_64): Likewise.
24903 (knetbsd.miniroot-image.x86_64.img): Likewise.
24904 (kfreebsd-mfsroot.i386.gz): Likewise.
24905 (bootcheck-kfreebsd-i386): Likewise.
24906 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24907 (bootcheck-kfreebsd-x86_64): Likewise.
24908 (knetbsd.miniroot-image.i386.gz): Likewise.
24909 (bootcheck-knetbsd-i386): Likewise.
24910 (bootcheck-kopenbsd-i386): Likewise.
24911 (bootcheck-kopenbsd-x86_64): Likewise.
24912 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24913 (bootcheck-knetbsd-x86_64): Likewise.
24914 (bootcheck-linux-i386): Likewise.
24915 (bootcheck-linux-x86_64): Likewise.
24916 (bootcheck-linux16-i386): Likewise.
24917 (bootcheck-linux16-x86_64): Likewise.
24918 (bootcheck-multiboot): Likewise.
24919 (bootcheck-multiboot2): Likewise.
24920 (bootcheck-kfreebsd-aout): Likewise.
24921 (bootcheck-pc-chainloader): Likewise.
24922 (bootcheck-ntldr): Likewise.
24923 (CLEANFILES): Add new targets.
24924 (BOOTCHECKS): New variable.
24925 (.PHONY): Add bootchecks.
24926 (SUCCESSFUL_BOOT_STRING): New variable.
24927 (BOOTCHECK_TIMEOUT): Likewise.
24928 (bootcheck): New target
24929 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24930 * configure.ac: Correct efiemu excuse.
24931 * docs/grub.texi (Supported kernels): New chapter.
24932 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24933 include/grub/mm_private.h. Simplify inclusion of
24934 include/grub/boot.h, include/grub/loader.h
24935 and include/grub/msdos_partition.h
24936 (KERNEL_HEADER_FILES) [i386_coreboot]:
24937 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24938 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24939 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24940 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24941 include/grub/machine/loader.h.
24942 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24943 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24944 extra_dist.
24945 (pci.mod): Enable on i386-multiboot.
24946 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24947 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24948 i386-qemu.
24949 (relocator.mod): Rewritten.
24950 (aout.mod): Enable on all x86.
24951 (bsd.mod): Likewise.
24952 (ntldr.mod): New module.
24953 (linux.mod): Use loader/i386/linux.c on all x86.
24954 (xnu.mod): Enable on all x86.
24955 (vga_text.mod): disable on EFI and QEMU.
24956 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24957 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24958 * grub-core/efiemu/loadcore.c: Likewise.
24959 * grub-core/efiemu/main.c: Likewise.
24960 (grub_efiemu_exit_boot_services): Removed.
24961 (grub_efiemu_finish_boot_services): Likewise.
24962 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24963 function.
24964 * grub-core/efiemu/i386/nocfgtables.c: New file.
24965 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24966 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24967 (grub_efi_finish_boot_services): Moved from here ...
24968 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24969 Fille finish memory map and related data.
24970 (finish_mmap_buf): New variable.
24971 (grub_efi_uintn_t finish_mmap_size): Likewise.
24972 (grub_efi_uintn_t finish_key): Likewise.
24973 (grub_efi_uintn_t finish_desc_size): Likewise.
24974 (grub_efi_uint32_t finish_desc_version): Likewise.
24975 (grub_efi_is_finished): Likewise.
24976 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24977 finished.
24978 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24979 (grub_elf64_phdr_iterate): Likewise.
24980 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24981 (grub_os_area_size): Likewise.
24982 (grub_machine_init): Don't reserve os area.
24983 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24984 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24985 * grub-core/kern/i386/loader.S: Removed.
24986 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24987 (grub_os_area_size): Likewise.
24988 (grub_machine_init): Don't reserve os area.
24989 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24990 Don't call grub_dl_unload_all.
24991 Don't include loader.S.
24992 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24993 Declare the memory after _end as available.
24994 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24995 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24996 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24997 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24998 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24999 * include/grub/mm_private.h (grub_mm_header): ... here.
25000 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25001 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25002 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25003 (grub_mm_region): ..here. Removed addr. Added pre_size.
25004 All users updated.
25005 * grub-core/kern/mm.c (base): Renamed to ...
25006 (grub_mm_base): ... this. Made global.
25007 (grub_real_malloc): Alloc from end of region.
25008 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25009 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25010 * grub-core/kern/powerpc/cache_flush.S: ... here.
25011 * grub-core/lib/efi/relocator.c: New file.
25012 * grub-core/lib/i386/relocator.c: Rewritten.
25013 * grub-core/lib/i386/relocator16.S: New file.
25014 * grub-core/lib/i386/relocator32.S: Likewise.
25015 * grub-core/lib/i386/relocator64.S: Likewise.
25016 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25017 * grub-core/lib/i386/relocator_common.S: New file.
25018 * grub-core/lib/ieee1275/relocator.c: Likewise.
25019 * grub-core/lib/mips/relocator.c: Rewritten.
25020 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25021 stylistic adjustments.
25022 * grub-core/lib/powerpc/relocator.c: New file.
25023 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25024 * grub-core/lib/relocator.c: Rewritten.
25025 * grub-core/lib/x86_64/relocator_asm.S: New file.
25026 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25027 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25028 (bsd_tag): New struct.
25029 (tags): New variable.
25030 (tags_last): Likewise.
25031 (netbsd_module): New struct.
25032 (netbsd_mods): New variable.
25033 (netbsd_mods_last): Likewise.
25034 (openbsd_opts): New parameter "serial".
25035 (OPENBSD_SERIAL_ARG): New definition.
25036 (netbsd_opts): New parameter "serial".
25037 (NETBSD_SERIAL_ARG): New definition.
25038 (grub_freebsd_add_meta): Reorganised into ...
25039 (grub_bsd_add_meta): ...this. All users updated.
25040 (grub_freebsd_add_mmap): Reorganised into ...
25041 (generate_e820_mmap): ...this...
25042 (grub_bsd_add_mmap): ...and this. All users updated.
25043 (grub_freebsd_list_modules): Use tags.
25044 (grub_netbsd_add_meta_module): New function.
25045 (grub_netbsd_list_modules): Likewise.
25046 (grub_freebsd_boot): Use relocator and finish EFI.
25047 (grub_openbsd_boot): Likewise.
25048 (grub_netbsd_setup_video): New function.
25049 (grub_netbsd_add_modules): Likewise.
25050 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25051 and finish EFI.
25052 (grub_bsd_unload): Unload tags.
25053 (grub_bsd_load_aout): Use relocator.
25054 (grub_bsd_elf32_size_hook): New function.
25055 (grub_bsd_elf32_hook): Use relocator.
25056 (grub_bsd_elf64_size_hook): New function.
25057 (grub_bsd_elf64_hook): Use relocator.
25058 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25059 (grub_bsd_load): Zero-out openbsd_ramdisk.
25060 (grub_bsd_load): Use relocator.
25061 (grub_cmd_openbsd): Support serial.
25062 (grub_cmd_netbsd): Support modules.
25063 (grub_cmd_freebsd_module): Use relocator.
25064 (grub_netbsd_module_load): New function.
25065 (grub_cmd_netbsd_module): Likewise.
25066 (grub_cmd_openbsd_ramdisk): Likewise.
25067 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25068 kopenbsd_ramdisk.
25069 (GRUB_MOD_FINI): Unregister new commands.
25070 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25071 (grub_freebsd_load_elfmodule_obj): Use relocator.
25072 (grub_freebsd_load_elfmodule): Likewise.
25073 (grub_freebsd_load_elf_meta): Likewise.
25074 (grub_netbsd_load_elf_meta): New function.
25075 (grub_openbsd_find_ramdisk): Likewise.
25076 * grub-core/loader/i386/bsd_helper.S: Removed.
25077 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25078 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25079 * grub-core/loader/i386/efi/linux.c: Likewise.
25080 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25081 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25082 (DEFAULT_VIDEO_MODE): Likewise.
25083 (real_mode_target): New variable.
25084 (prot_mode_target): Likewise.
25085 (initrd_mem_target): Likewise.
25086 (relocator): Likewise.
25087 (efi_mmap_buf): Likewise.
25088 (efi_mmap_size): Likewise.
25089 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25090 (free_pages): Use relocator.
25091 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25092 (grub_linux_setup_video): Return error.
25093 (grub_linux_trampoline_start): Removed.
25094 (grub_linux_trampoline_end): Likewise.
25095 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25096 andd video parameters depending on firmware.
25097 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25098 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25099 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25100 (grub_cmd_initrd): Use relocator.
25101 * grub-core/loader/i386/linux_trampoline.S: Removed.
25102 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25103 (elf_sec_entsize): Likewise.
25104 (elf_sec_shstrndx): Likewise.
25105 (elf_sections): Likewise.
25106 (grub_multiboot_load): Use relocator.
25107 (grub_multiboot_get_mbi_size): Account for sections.
25108 (grub_multiboot_make_mbi): Use relocator and support sections.
25109 (grub_multiboot_add_elfsyms): New function.
25110 (grub_multiboot_free_mbi): Free sections.
25111 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25112 (grub_linux_real_target): Likewise.
25113 (grub_linux_real_chunk): Likewise.
25114 (grub_linux16_prot_size): Likewise.
25115 (grub_linux16_boot): Use relocator.
25116 (grub_linux_unload): Unload relocator.
25117 (grub_cmd_linux): Use relocator.
25118 (grub_cmd_initrd): Likewise.
25119 * grub-core/loader/i386/pc/ntldr.c: New file.
25120 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25121 Don't try to guess CPU frequency.
25122 (grub_xnu_set_video): Stretch bitmap.
25123 (grub_xnu_boot): Use relocator.
25124 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25125 (grub_linux_unload): Free relocator.
25126 (grub_linux_load32): Use relocator.
25127 (grub_linux_load64): Likewise.
25128 (grub_cmd_initrd): Likewise.
25129 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25130 (grub_multiboot_unload): Unload relocator.
25131 (grub_cmd_multiboot): Use relocator.
25132 (grub_cmd_module): Likewise.
25133 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25134 Use relocator and support sections.
25135 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25136 (elf_sec_entsize): Likewise.
25137 (elf_sec_shstrndx): Likewise.
25138 (elf_sections): Likewise.
25139 (grub_multiboot_load): Use relocator.
25140 (grub_multiboot_get_mbi_size): Account for sections.
25141 (grub_multiboot_make_mbi): Use relocator and support sections.
25142 (grub_multiboot_add_elfsyms): New function.
25143 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25144 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25145 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25146 Prototype changed. All users updated.
25147 (grub_xnu_align_heap): Simplified.
25148 (grub_xnu_writetree_toheap): Likewise.
25149 (grub_xnu_unload): Unload relocator.
25150 (grub_cmd_xnu_kernel): Use relocator.
25151 (grub_cmd_xnu_kernel64): Likewise.
25152 (grub_xnu_register_memory): Simplified.
25153 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25154 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25155 EFI is finished.
25156 (grub_console_checkkey): Likewise.
25157 (grub_console_getkey): Likewise.
25158 (grub_console_getwh): Likewise.
25159 (grub_console_getxy): Likewise.
25160 (grub_console_gotoxy): Likewise.
25161 (grub_console_cls): Likewise.
25162 (grub_console_setcolorstate): Likewise.
25163 (grub_console_setcursor): Likewise.
25164 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25165 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25166 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25167 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25168 * grub-core/tests/boot/kernel-8086.S: Likewise.
25169 * grub-core/tests/boot/kernel-i386.S: Likewise.
25170 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25171 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25172 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25173 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25174 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25175 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25176 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25177 * grub-core/tests/boot/linux.cfg: Likewise.
25178 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25179 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25180 * grub-core/tests/boot/linux16.cfg: Likewise.
25181 * grub-core/tests/boot/multiboot.cfg: Likewise.
25182 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25183 * grub-core/tests/boot/ntldr.cfg: Likewise.
25184 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25185 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25186 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25187 New definition.
25188 * include/grub/dl.h (grub_dl_unload_all): Removed.
25189 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25190 (grub_efi_finish_boot_services): Change prototype.
25191 (grub_efi_is_finished): New variable.
25192 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25193 Changed prototype.
25194 (grub_efiemu_finish_boot_services): Removed.
25195 (grub_machine_efiemu_init_tables): New prototype.
25196 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25197 (grub_elf64_phdr_iterate): Likewise.
25198 * include/grub/i386/bsd.h: Include relocator.h.
25199 (freebsd_tag_header): New struct.
25200 (grub_openbsd_bios_mmap): Removed.
25201 (grub_unix_real_boot): Removed.
25202 (grub_freebsd_load_elfmodule32): Changed prototype.
25203 (grub_freebsd_load_elfmodule_obj64): Likewise.
25204 (grub_freebsd_load_elf_meta32): Likewise.
25205 (grub_freebsd_load_elf_meta64): Likewise.
25206 (grub_freebsd_add_meta): Removed.
25207 (grub_netbsd_load_elf_meta32): New prototype.
25208 (grub_netbsd_load_elf_meta64): Likewise.
25209 (grub_bsd_add_meta): Likewise.
25210 (grub_openbsd_ramdisk_descriptor): New struct.
25211 (grub_openbsd_find_ramdisk32): New prototype.
25212 (grub_openbsd_find_ramdisk64): Likewise.
25213 * include/grub/i386/coreboot/loader.h: Removed.
25214 * include/grub/i386/efi/loader.h: Likewise.
25215 * include/grub/i386/ieee1275/loader.h: Likewise.
25216 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25217 to grub_uint32_t.
25218 * include/grub/i386/loader.h: Removed.
25219 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25220 value.
25221 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25222 (grub_phys_addr_t): New type.
25223 (grub_vtop): New inline function.
25224 (grub_map_memory): Likewise.
25225 (grub_unmap_memory): Likewise.
25226 * include/grub/i386/multiboot/loader.h: Removed.
25227 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25228 (NETBSD_BTINFO_CONSOLE): New definition.
25229 (NETBSD_BTINFO_SYMTAB): Likewise.
25230 (NETBSD_BTINFO_MODULES): Likewise.
25231 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25232 (grub_netbsd_bootinfo): New struct.
25233 (grub_netbsd_btinfo_common): Use explicit bitsize.
25234 (grub_netbsd_btinfo_mmap_entry): Removed.
25235 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25236 (grub_netbsd_btinfo_bootdisk): New struct.
25237 (grub_netbsd_btinfo_symtab): Likewise.
25238 (grub_netbsd_btinfo_serial): Likewise.
25239 (grub_netbsd_btinfo_modules): Likewise.
25240 (grub_netbsd_btinfo_framebuf): Likewise.
25241 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25242 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25243 Likewise.
25244 (grub_openbsd_bootargs): Use explicit bitsize.
25245 (grub_openbsd_bootarg_console): New struct.
25246 (GRUB_OPENBSD_COM_MAJOR): New definition.
25247 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25248 * include/grub/i386/pc/efiemu.h: Removed.
25249 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25250 * include/grub/i386/qemu/loader.h: Removed.
25251 * include/grub/i386/relocator.h: Rewritten.
25252 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25253 * include/grub/mips/memory.h: New file.
25254 * include/grub/mips/multiboot.h: Rewritten.
25255 * include/grub/mips/relocator.h: Rewritten.
25256 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25257 (grub_vtop): New function.
25258 (grub_map_memory): Likewise.
25259 (grub_unmap_memory): Likewise.
25260 * include/grub/misc.h (ALIGN_DOWN): New definition.
25261 * include/grub/mm.h (grub_mm_check_real): New proto.
25262 (GRUB_MM_CHECK): New definition.
25263 * include/grub/mm_private.h: New file.
25264 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25265 (grub_multiboot_get_mbi_size): Removed.
25266 (grub_multiboot_make_mbi): Change prottype.
25267 (grub_multiboot_set_accepts_video): New proto.
25268 (grub_multiboot_add_elfsyms): Likewise.
25269 (grub_multiboot_payload_eip): New variable.
25270 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25271 New prototype.
25272 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25273 New definition.
25274 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25275 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25276 * include/grub/powerpc/ieee1275/loader.h: Removed.
25277 * include/grub/powerpc/memory.h: New file.
25278 * include/grub/powerpc/relocator.h: Likewise.
25279 * include/grub/relocator.h: Likewise.
25280 * include/grub/relocator_private.h: Likewise.
25281 * include/grub/sparc64/ieee1275/loader.h: Removed.
25282 * include/grub/x86_64/memory.h: New file.
25283 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25284 (grub_xnu_heap_malloc): Likewise.
25285 (grub_xnu_heap_real_start): Removed.
25286 (grub_xnu_heap_start): Likewise.
25287 (grub_xnu_relocator): New variable.
25288 (grub_xnu_heap_target_start): Likewise.
25289 * tests/util/grub-shell.in: Support non-pc.
25290 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25291
25292 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25293
25294 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25295 on malloc error.
25296 (grub_bidi_logical_to_visual): Check that malloc succeded.
25297 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25298 puts.
25299 (grub_xputs_normal): Likewise.
25300
25301 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25302
25303 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25304 extra_dist.
25305
25306 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25307
25308 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25309
25310 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25311
25312 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25313
25314 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25315
25316 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25317 dprintf.
25318
25319 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25320
25321 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25322
25323 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25324
25325 * grub-core/normal/term.c (print_more): Fix a memory leak.
25326 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25327 (grub_xputs_normal): Likewise.
25328
25329 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25330
25331 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25332 the begining of the string
25333
25334 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25335
25336 * grub-core/script/script.c (grub_script_parse): Free parsed on
25337 failure.
25338
25339 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25340
25341 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25342 on failure.
25343
25344 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25345
25346 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25347 return.
25348
25349 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25350
25351 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25352 (scroll_up): Fix a memory leak.
25353
25354 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25355
25356 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25357 errors.
25358
25359 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25360
25361 Handle USB pendrives exposed as floppies.
25362
25363 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25364 floppy.
25365 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25366 Check for partitions on all devices.
25367
25368 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25369
25370 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25371 (readkey): Likewise.
25372
25373 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25374
25375 Multiple variable names support to "export" command.
25376
25377 * normal/context.c (grub_cmd_export): "export" command supports
25378 multiple variable names.
25379
25380 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25381
25382 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25383 --target=drive output to Mach device name.
25384
25385 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25386
25387 New Automake based build system for GRUB.
25388
25389 * ABOUT-NLS: New file.
25390 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25391 in Makefile.util.def file.
25392 * Makefile.util.def: New file. Autogen build definitions file for
25393 GRUB host utils.
25394 * conf/Makefile.common: New file. Common variables for GRUB host
25395 utils and target modules.
25396 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25397 * docs/Makefile.am: New file. Automake file for docs.
25398 * gentpl.py: New file. Python script to generate Autogen
25399 template.
25400 * grub-core/Makefile.am: New file. GRUB target modules' rules
25401 that doesn't fit in Makefile.core.def file.
25402 * grub-core/Makefile.core.def: New file. Autogen build
25403 definitions file for GRUB target modules.
25404 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25405 specific setjmp.S file.
25406 * po/Makefile.am: New file.
25407
25408 * .bzrignore: New ignores.
25409 * INSTALL: New requirements, without Ruby.
25410 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25411 * autogen.sh: Updated to invoke autogen as necessary.
25412 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25413 and defines for Automake conditionals.
25414 * geninit.sh: Refactoring.
25415
25416 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25417 necessary.
25418 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25419 New prototype.
25420
25421 * include/grub/test.h: Fix functional test modules' naming.
25422 * grub-core/tests/example_functional_test.c: Fix test module name.
25423
25424 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25425 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25426 * util/grub-editenv.c: Likewise.
25427 * util/grub-fstest.c: Likewise.
25428 * util/grub-mkdevicemap.c: Likewise.
25429 * util/grub-mkfont.c: Likewise.
25430 * util/grub-mkimage.c: Likewise.
25431 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25432 * util/grub-probe.c: Likewise.
25433 * util/grub-script-check.c: Likewise.
25434 * util/i386/pc/grub-setup.c: Likewise.
25435 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25436
25437 * tests/util/grub-shell.in: Fix override directory path.
25438 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25439 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25440
25441 * util/lvm.c: Update #includes.
25442 * util/raid.c: Likewise.
25443 * util/resolve.c: Likewise.
25444 * grub-core/bus/emu/pci.c: Likewise.
25445 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25446 * grub-core/lib/posix_wrap/string.h: Likewise.
25447 * grub-core/kern/emu/main.c: Likewise.
25448
25449 * grub-core/gensymlist.sh: New file. Script for generating kernel
25450 symbols file.
25451 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25452
25453 * grub-core/gentrigtables.c: Fix unused variable warnings.
25454
25455 * Makefile.in: Removed.
25456 * conf/any-emu.rmk: Removed.
25457 * conf/common.rmk: Removed.
25458 * conf/i386-coreboot.rmk: Removed.
25459 * conf/i386-efi.rmk: Removed.
25460 * conf/i386-ieee1275.rmk: Removed.
25461 * conf/i386-multiboot.rmk: Removed.
25462 * conf/i386-pc.rmk: Removed.
25463 * conf/i386-qemu.rmk: Removed.
25464 * conf/i386.rmk: Removed.
25465 * conf/mips-yeeloong.rmk: Removed.
25466 * conf/mips.rmk: Removed.
25467 * conf/powerpc-ieee1275.rmk: Removed.
25468 * conf/sparc64-ieee1275.rmk: Removed.
25469 * conf/tests.rmk: Removed.
25470 * conf/x86-efi.rmk: Removed.
25471 * conf/x86_64-efi.rmk: Removed.
25472 * gendistlist.sh: Removed.
25473 * geninitheader.sh: Removed.
25474 * genkernsyms.sh.in: Removed.
25475 * genmk.rb: Removed.
25476 * gensymlist.sh.in: Removed.
25477 * mkinstalldirs: Removed.
25478 * boot: Moved ...
25479 * grub-core/boot: ... to here.
25480 * bus: Moved ...
25481 * grub-core/bus: ... to here.
25482 * commands: Moved ...
25483 * grub-core/commands: ... to here.
25484 * disk: Moved ...
25485 * grub-core/disk: ... to here.
25486 * efiemu: Moved ...
25487 * grub-core/efiemu: ... to here.
25488 * font: Moved ...
25489 * grub-core/font: ... to here.
25490 * fs: Moved ...
25491 * grub-core/fs: ... to here.
25492 * gencmdlist.sh: Moved ...
25493 * grub-core/gencmdlist.sh: ... to here.
25494 * genemuinit.sh: Moved ...
25495 * grub-core/genemuinit.sh: ... to here.
25496 * genemuinitheader.sh: Moved ...
25497 * grub-core/genemuinitheader.sh: ... to here.
25498 * genfslist.sh: Moved ...
25499 * grub-core/genfslist.sh: ... to here.
25500 * genhandlerlist.sh: Moved ...
25501 * grub-core/genhandlerlist.sh: ... to here.
25502 * genmoddep.awk: Moved ...
25503 * grub-core/genmoddep.awk: ... to here.
25504 * genmodsrc.sh: Moved ...
25505 * grub-core/genmodsrc.sh: ... to here.
25506 * genpartmaplist.sh: Moved ...
25507 * grub-core/genpartmaplist.sh: ... to here.
25508 * genparttoollist.sh: Moved ...
25509 * grub-core/genparttoollist.sh: ... to here.
25510 * genterminallist.sh: Moved ...
25511 * grub-core/genterminallist.sh: ... to here.
25512 * gentrigtables.c: Moved ...
25513 * grub-core/gentrigtables.c: ... to here.
25514 * genvideolist.sh: Moved ...
25515 * grub-core/genvideolist.sh: ... to here.
25516 * gettext: Moved ...
25517 * grub-core/gettext: ... to here.
25518 * gfxmenu: Moved ...
25519 * grub-core/gfxmenu: ... to here.
25520 * gnulib: Moved ...
25521 * grub-core/gnulib: ... to here.
25522 * hello: Moved ...
25523 * grub-core/hello: ... to here.
25524 * hook: Moved ...
25525 * grub-core/hook: ... to here.
25526 * io: Moved ...
25527 * grub-core/io: ... to here.
25528 * kern: Moved ...
25529 * grub-core/kern: ... to here.
25530 * lib: Moved ...
25531 * grub-core/lib: ... to here.
25532 * loader: Moved ...
25533 * grub-core/loader: ... to here.
25534 * mmap: Moved ...
25535 * grub-core/mmap: ... to here.
25536 * normal: Moved ...
25537 * grub-core/normal: ... to here.
25538 * partmap: Moved ...
25539 * grub-core/partmap: ... to here.
25540 * parttool: Moved ...
25541 * grub-core/parttool: ... to here.
25542 * script: Moved ...
25543 * grub-core/script: ... to here.
25544 * term: Moved ...
25545 * grub-core/term: ... to here
25546 * tests/example_functional_test.c: Moved ...
25547 * grub-core/tests/example_functional_test.c: ... to here.
25548 * tests/lib/functional_test.c: Moved ...
25549 * grub-core/tests/lib/functional_test.c: ... to here.
25550 * tests/lib/test.c: Moved ...
25551 * grub-core/tests/lib/test.c: ... to here.
25552 * video: Moved ...
25553 * grub-core/video: ... to here.
25554
25555 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25556
25557 Replace --enable-grub-emu-modules with grub-emu-lite.
25558
25559 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25560 cache.S.
25561
25562 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25563 * kern/emu/full.c: New file. For grub-emu specific initialization.
25564 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25565 * kern/emu/main.c: Call initialization function grub_emu_init.
25566
25567 * Makefile.in: Include grub-emu-lite in install.
25568 * commands/parttool.c: Use grub_no_autoload to differentiate
25569 between grub-emu and grub-emu-lite.
25570 * include/grub/misc.h: New variable grub_no_autoload.
25571
25572 * conf/any-emu.rmk: New rules for grub-emu-lite.
25573 * configure.ac: Remove --enable-grub-emu-modules.
25574 * genmk.rb: Cleanup unnecessary rules.
25575 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25576
25577 * normal/main.c: Don't load list files on grub-emu-lite.
25578 * util/misc.c (grub_arch_sync_caches): Removed.
25579
25580 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25581
25582 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25583 grub-mkimage rather than grub-mkelfimage.
25584 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25585
25586 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25587
25588 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25589 a key after CapsLock or NumLock. It's just a qemu bug.
25590
25591 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25592
25593 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25594 needed by libusb wrapper.
25595
25596 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25597
25598 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25599
25600 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25601
25602 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25603 --nounzip is passed.
25604
25605 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25606
25607 USB hotunplugging and USB serial support.
25608
25609 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25610 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25611 (grub_uhci_transfer): Respect timeout and set *actual.
25612 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25613 non-standard length.
25614 (grub_usb_device_attach): Autoload modules.
25615 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25616 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25617 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25618 users updated.
25619 (grub_usb_add_hub): Fill nports and children.
25620 (attach_root_port): Receive hub instead of controller.
25621 All users updated. Fill hub->devices.
25622 (grub_usb_root_hub): Allocate hub->devices.
25623 (detach_device): New function.
25624 (poll_nonroot_hub): Fill children and detach devices.
25625 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25626 actual arguments. All users updated.
25627 (grub_usb_bulk_read_extended): New function.
25628 * bus/usb/serial/common.c: New file.
25629 * bus/usb/serial/ftdi.c: Likewise.
25630 * bus/usb/serial/pl2303.c: Likewise.
25631 * commands/terminal.c (handle_command): Support wildcard.
25632 * commands/usbtest.c: Output "Unknown" instead of empty string.
25633 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25634 (usbserial_common_mod_SOURCES): New variable.
25635 (usbserial_common_mod_CFLAGS): Likewise.
25636 (usbserial_common_mod_LDFLAGS): Likewise.
25637 (pkglib_MODULES): Add usbserial_pl2303.mod.
25638 (usbserial_pl2303_mod_SOURCES): New variable.
25639 (usbserial_pl2303_mod_CFLAGS): Likewise.
25640 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25641 (pkglib_MODULES): Add usbserial_ftdi.mod.
25642 (usbserial_ftdi_mod_SOURCES): New variable.
25643 (usbserial_ftdi_mod_CFLAGS): Likewise.
25644 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25645 (pkglib_MODULES): Add serial.mod.
25646 (serial_mod_SOURCES): New variable.
25647 (serial_mod_CFLAGS): Likewise.
25648 (serial_mod_LDFLAGS): Likewise.
25649 * conf/i386-pc.rmk: Likewise.
25650 * conf/mips-yeeloong.rmk: Likewise.
25651 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25652 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25653 * disk/usbms.c (first_available_slot): New variable.
25654 (grub_usbms_attach): Don't reuse free slots due to potential cache
25655 problems.
25656 * include/grub/serial.h: Moved to ..
25657 * include/grub/ns8250.h: ...this.
25658 * include/grub/serial.h: New file.
25659 * include/grub/term.h (grub_term_poll_usb): New variable.
25660 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25661 readkey. All users updated.
25662 (grub_terminfo_output_state): Pass term to put.
25663 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25664 (grub_usb_controller_dev): Add timeout and actual arguments to
25665 transfer. All users updated.
25666 (grub_usb_interface): New field detach_data.
25667 (grub_usb_device): New fields children and nports.
25668 (grub_usb_ep_type_t): New type.
25669 (grub_usb_get_ep_type): New function.
25670 (grub_usb_bulk_read_extended): Likewise.
25671 * include/grub/usbdesc.h (grub_usb_desc): New type.
25672 * include/grub/usbserial.h: New file.
25673 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25674 * kern/term.c (grub_term_poll_usb): New variable.
25675 (grub_getkey): Call grub_term_poll_usb if set.
25676 (grub_checkkey): Likewise.
25677 (grub_getkeystatus): Likewise.
25678 * term/serial.c: Moved controller-specific parts to ...
25679 * term/ns8250.c: ... here.
25680 * term/serial.c: Mostly rewritten.
25681 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25682 according to spec.
25683
25684 2010-08-20 Robert Millan <rmh@gnu.org>
25685
25686 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25687 a separate module and maybe other interesting combinations.
25688
25689 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25690 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25691 (kfreebsd_entry): Add generic filesystem module load routine.
25692 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25693
25694 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25695
25696 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25697 "numcenter" (I misunderstood the purpose of this entry).
25698 * docs/grub.texi (sendkey): Likewise.
25699
25700 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25701
25702 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25703 status flag options; simply omitting the option is equivalent and
25704 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25705 (keysym_table): Rename "num5numlock" to "numlock".
25706 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25707 can uniformly say that only the last of multiple `sendkey'
25708 invocations has any effect.
25709 * docs/grub.texi (sendkey): New section.
25710
25711 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25712
25713 * commands/i386/pc/sendkey.c (options): Fix three typos.
25714
25715 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25716
25717 Implement sendkey support.
25718
25719 * commands/i386/pc/sendkey.c: New file.
25720 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25721 (sendkey_mod_SOURCES): New variable.
25722 (sendkey_mod_CFLAGS): Likewise.
25723 (sendkey_mod_LDFLAGS): Likewise.
25724
25725 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25726
25727 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25728 fix warnings from Autoconf.
25729
25730 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25731
25732 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25733 to avoid false positives with some assemblers that output things
25734 like "someprefix_func" as part of their output.
25735
25736 2010-08-15 Robert Millan <rmh@gnu.org>
25737
25738 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25739 errors.
25740 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25741 grub_get_libzfs_handle() errors.
25742
25743 2010-08-14 Robert Millan <rmh@gnu.org>
25744
25745 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25746 filesystem is not ZFS.
25747
25748 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25749
25750 Fix for misspelled color names defaulting to black/black (bug
25751 reported by Doug Nazar)
25752
25753 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25754 status to prototype.
25755 * normal/color.c (grub_parse_color_name_pair): Return failure
25756 status.
25757 (grub_env_write_color_normal): Ignore bad color names.
25758 (grub_env_write_color_highlight): Likewise.
25759 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25760
25761 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25762
25763 "shift" command support to GRUB script.
25764
25765 * include/grub/script_sh.h (grub_script_shift): New prototype.
25766 * script/execute.c (grub_script_shift): New function.
25767 * script/main.c (grub_script_init): Register shift command.
25768 (grub_script_fini): Unregister shift command.
25769 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25770
25771 * tests/grub_script_shift.in: New testcase.
25772 * conf/tests.rmk: Rules for new testcase.
25773
25774 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25775
25776 "continue" command support to GRUB script.
25777
25778 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25779 (grub_script_break): Continue support.
25780 * script/main.c (grub_script_init): Register continue command.
25781 (grub_script_fini): Unregister continue command.
25782
25783 * tests/grub_script_continue.in: New testcase.
25784 * conf/tests.rmk: Rules for new testcase.
25785
25786 2010-08-12 BVK Chaitanya <bvk@dbook>
25787
25788 "break" command support to GRUB script.
25789
25790 * conf/common.rmk: Rule updates to grub-script-check.
25791 * include/grub/misc.h (grub_min): New function.
25792 * include/grub/script_sh.h (grub_script_init): New prototype.
25793 (grub_script_fini): New prototype.
25794 (grub_script_break): New prototype.
25795 * script/main.c (grub_script_init): New function.
25796 (grub_script_fini): New function.
25797 * script/execute.c (grub_script_break): New function.
25798 * normal/main.c: Calls to grub_script_{init,fini}.
25799 * util/grub-script-check.c (grub_script_break): New function.
25800
25801 * tests/grub_script_break.in: New testcase.
25802 * conf/tests.rmk: Rules for new test case.
25803
25804 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25805
25806 Function parameters support to GRUB script.
25807
25808 * script/yylex.l (VARIABLE): Regular expression update.
25809 * script/function.c (grub_script_function_call): Moved ...
25810 * script/execute.c (grub_script_function_call): ... to here.
25811 (grub_script_execute_arglist_to_argv): Removed.
25812 (grub_script_arglist_to_argv): New function.
25813 * script/argv.c: New file.
25814 (grub_script_argv_free): New function.
25815 (grub_script_argv_next): Likewise.
25816 (grub_script_argv_append): Likewise.
25817 (grub_script_argv_split_append): Likewise.
25818 * include/grub/script_sh.h (grub_script_argv): New struct.
25819 (grub_script_argv_free): New function.
25820 (grub_script_argv_next): Likewise.
25821 (grub_script_argv_append): Likewise.
25822 (grub_script_argv_split_append): Likewise.
25823
25824 * conf/common.rmk (normal.mod): New source script/argv.c.
25825
25826 * tests/grub_script_echo1.in: More tests.
25827 * tests/grub_script_vars1.in: Likewise.
25828 * tests/grub_script_functions.in: New test case.
25829 * conf/tests.rmk: Rules for new testcase.
25830
25831 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25832
25833 Remove grub_script_cmdblock struct.
25834
25835 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25836 * script/parser.y: Likewise.
25837 * script/execute.c: Rename cmdblock suffix to cmdlist.
25838 * script/script.c: Likewise.
25839 * util/grub-script-check.c: Likewise.
25840
25841 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25842
25843 * .bzrignore: add grub-macho2img
25844
25845 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25846
25847 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25848
25849 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25850
25851 Remove the dump of sm712 initialisation sequence.
25852
25853 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25854 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25855 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25856 (GRUB_VGA_CR_*): Added many registers.
25857 (GRUB_VGA_SR_*): Likewise.
25858 (GRUB_VGA_GR_*): Likewise.
25859 (grub_vga_write_arx): New function.
25860 (grub_video_hw_config): New struct.
25861 (grub_vga_set_geometry): New function.
25862 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25863 GRUB_PCI_CLASS_SUBCLASS_VGA.
25864 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25865 * video/sm712.c (grub_sm712_write_reg): New function
25866 (grub_sm712_read_reg): Likewise.
25867 (grub_sm712_sr_write): Likewise.
25868 (grub_sm712_gr_write): Likewise.
25869 (grub_sm712_cr_write): Likewise.
25870 (grub_sm712_write_arx): Likewise.
25871 (grub_sm712_cr_shadow_write): Likewise.
25872 (grub_sm712_write_dda_lookup): Likewise.
25873 (grub_video_sm712_setup): Initialise the video rather then
25874 blindly replay the dump.
25875 (main) [TEST]: Add a routine to be able to compile as standalone for
25876 tests.
25877 * video/sm712_init.c (sm712_init): Removed.
25878 (sm712_sr_seq1): New array.
25879 (sm712_sr_seq2): Likewise.
25880
25881 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25882
25883 * include/grub/vga.h: Add missing grub/pci.h include.
25884
25885 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25886
25887 * util/grub-macho2img.c (main): fix typo
25888
25889 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25890
25891 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25892 (grub_vga_gr_read): Likewise.
25893 (grub_vga_cr_write): Likewise.
25894 (grub_vga_cr_read): Likewise.
25895 (grub_vga_sr_write): Likewise.
25896 (grub_vga_sr_read): Likewise.
25897 (grub_vga_palette_read): Likewise.
25898 (grub_vga_palette_write): Likewise.
25899 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25900 (grub_sm712_sr_read): New function.
25901 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25902 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25903
25904 2010-08-09 Robert Millan <rmh@gnu.org>
25905
25906 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25907 out unused variables on non-ZFS build.
25908
25909 2010-08-08 Robert Millan <rmh@gnu.org>
25910
25911 Fix path generation for sub-filesystems in ZFS.
25912
25913 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25914 missing slash.
25915
25916 2010-08-08 Robert Millan <rmh@gnu.org>
25917
25918 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25919
25920 2010-08-08 Robert Millan <rmh@gnu.org>
25921
25922 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25923 exist, issue a proper error message (rely on `ls' for translated
25924 strings).
25925
25926 2010-08-08 Robert Millan <rmh@gnu.org>
25927
25928 Fix grub-probe invocation.
25929
25930 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25931
25932 2010-08-04 Robert Millan <rmh@gnu.org>
25933
25934 * configure.ac: Remove checks for getfsstat() and getmntany().
25935 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25936 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25937 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25938 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25939 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25940 function.
25941 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25942 via find_mount_point_from_dir() and getfsstat() / getmntany().
25943
25944 2010-08-04 Robert Millan <rmh@gnu.org>
25945
25946 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25947 (grub_find_zpool_from_mount_point): Merge into ...
25948 (grub_find_zpool_from_dir): ... this.
25949 * kern/emu/misc.c: Likewise.
25950
25951 * kern/emu/misc.c
25952 (grub_make_system_path_relative_to_its_root): Replace
25953 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25954 with grub_find_zpool_from_dir().
25955 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25956
25957 2010-08-04 Robert Millan <rmh@gnu.org>
25958
25959 Support OpenSolaris in ZFS device resolution.
25960
25961 * configure.ac: Check for getmntany().
25962 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25963 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25964 support.
25965
25966 2010-08-03 Robert Millan <rmh@gnu.org>
25967
25968 Fix grub-emu build.
25969
25970 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25971 * include/grub/emu/misc.h: ... here.
25972
25973 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25974 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25975
25976 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25977 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25978 (grub_get_libzfs_handle): Move to ...
25979 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25980 (grub_get_libzfs_handle): ... here.
25981
25982 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25983
25984 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25985 as command name case.
25986
25987 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25988
25989 * disk/raid.c (insert_array): Select unique numbers for named arrays
25990 as well, for use as keys in the disk cache.
25991
25992 2010-08-01 Robert Millan <rmh@gnu.org>
25993
25994 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25995 kFreeBSD device name, except on ZFS where the filesystem label is
25996 used.
25997 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25998 `/boot/zfs/zpool.cache'.
25999 Set mountfrom kernel variable using ${kfreebsd_device}.
26000
26001 2010-08-01 Robert Millan <rmh@gnu.org>
26002
26003 Make it even harder to use uninitialized `libzfs_handle' (and
26004 make the interface a bit simpler).
26005
26006 * include/grub/util/misc.h (grub_util_init_libzfs)
26007 (libzfs_handle): Remove.
26008 (grub_get_libzfs_handle): New prototype.
26009
26010 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26011 attribute.
26012 (grub_util_init_libzfs): Remove.
26013 (grub_get_libzfs_handle): New function.
26014
26015 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26016 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26017 accessing `libzfs_handle' directly.
26018
26019 2010-08-01 Robert Millan <rmh@gnu.org>
26020
26021 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26022 (grub_find_zpool_from_mount_point): New function prototypes.
26023
26024 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26025 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26026
26027 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26028 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26029 `static' attribute.
26030
26031 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26032 finding zpool from mount point into ...
26033 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26034
26035 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26036 requested path is part of a ZFS pool, use
26037 grub_find_zpool_from_mount_point() to detect its filesystem name,
26038 and generate a path with `/fsname@path' syntax.
26039
26040 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26041
26042 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26043 (void) rather than () so that this is a proper prototype.
26044
26045 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26046
26047 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26048
26049 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26050
26051 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26052 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26053
26054 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26055
26056 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26057
26058 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26059
26060 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26061
26062 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26063
26064 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26065 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26066 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26067 disable gfxpayload.
26068 (Shell-like scripting): Add real content.
26069 (Serial terminal): Suggest `terminal_input serial; terminal_output
26070 serial' rather than putting the two commands on separate lines,
26071 since console input will be inoperative after the first command.
26072 (menuentry): Document --class, --users, and --hotkey options.
26073 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26074 Vladimir Serbinenko).
26075
26076 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26077 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26078
26079 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26080
26081 2010-08-01 Robert Millan <rmh@gnu.org>
26082
26083 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26084 (grub_find_zpool_from_mount_point): New function prototypes.
26085
26086 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26087 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26088
26089 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26090 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26091 `static' attribute.
26092
26093 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26094 finding zpool from mount point into ...
26095 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26096
26097 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26098 requested path is part of a ZFS pool, use
26099 grub_find_zpool_from_mount_point() to detect its filesystem name,
26100 and generate a path with `/fsname@path' syntax.
26101
26102 2010-08-01 Robert Millan <rmh@gnu.org>
26103
26104 Prevent accidental use of uninitialized libzfs_handle.
26105
26106 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26107 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26108 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26109
26110 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26111
26112 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26113 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26114
26115 2010-08-01 Robert Millan <rmh@gnu.org>
26116
26117 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26118
26119 2010-07-31 Robert Millan <rmh@gnu.org>
26120
26121 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26122
26123 2010-07-31 Robert Millan <rmh@gnu.org>
26124
26125 * kern/emu/misc.c: Add missing license header.
26126
26127 2010-07-31 Robert Millan <rmh@gnu.org>
26128
26129 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26130
26131 * include/grub/util/libnvpair.h: Include `<config.h>'.
26132 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26133 declaring libnvpair prototypes ourselves.
26134 * include/grub/util/libzfs.h: Include `<config.h>'.
26135 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26136 declaring libzfs prototypes ourselves.
26137
26138 (libzfs_handle): Moved to ...
26139 * include/grub/util/misc.h (libzfs_handle): ... here.
26140 Include `<grub/util/libzfs.h>'.
26141
26142 2010-07-30 Robert Millan <rmh@gnu.org>
26143
26144 * include/grub/emu/misc.h: Add missing license header.
26145
26146 2010-07-30 Robert Millan <rmh@gnu.org>
26147
26148 Enable `grub-probe -t device' resolution on ZFS.
26149
26150 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26151 * include/grub/util/libnvpair.h: New file.
26152 * include/grub/util/libzfs.h: New file.
26153
26154 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26155 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26156 `<grub/util/libnvpair.h>'.
26157 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26158
26159 (find_mount_point_from_dir): New static function.
26160 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26161 function.
26162 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26163 find_root_device_from_libzfs() before ressorting to find_root_device().
26164
26165 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26166 prototype.
26167 * util/misc.c: Include `<grub/util/libzfs.h>'.
26168 (grub_util_init_libzfs): New function.
26169 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26170 [HAVE_LIBZFS] (fini_libzfs): New static function.
26171 (grub_util_init_libzfs): New function.
26172 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26173
26174 2010-07-30 Robert Millan <rmh@gnu.org>
26175
26176 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26177 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26178 `warn_unused_result' attribute.
26179 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26180 (grub_xasprintf, grub_xvasprintf): Likewise.
26181 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26182
26183 2010-07-29 Robert Millan <rmh@gnu.org>
26184
26185 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26186 (probe): Handle `PRINT_FS_LABEL'.
26187 (main): Handle `-t fs_label'.
26188
26189 2010-07-29 Robert Millan <rmh@gnu.org>
26190
26191 * configure.ac: Remove grub-mkisofs checks.
26192
26193 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26194
26195 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26196 Reported by: Lennart Sorensen.
26197
26198 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26199
26200 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26201 prior to terminal_input/terminal_output separation. It's been over 1.5
26202 years and those versions weren't widely deployed.
26203
26204 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26205
26206 * disk/raid.c (insert_array): Don't count named arrays when looking
26207 for unused array numbers.
26208 Reported and tested by: Michael Guntsche.
26209
26210 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26211
26212 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26213 implementation of this so that grub-emu links again, with a note
26214 that this should support hotplugging in the future.
26215
26216 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26217
26218 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26219
26220 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26221
26222 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26223 handle on failure.
26224 (grub_loopback_close): Remove empty function.
26225 (grub_loopback_dev): Remove close method.
26226
26227 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26228
26229 Disable EFI cursor when the EFI console becomes inactive.
26230
26231 * term/efi/console.c (grub_efi_console_init): New function.
26232 (grub_efi_console_fini): New function.
26233 (grub_console_term_output): Register init and fini methods.
26234
26235 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26236
26237 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26238 sh script.
26239
26240 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26241
26242 * disk/loopback.c (grub_loopback): Replace filename with file.
26243 (delete_loopback): Handle new semantics.
26244 (grub_cmd_loopback): Likewise.
26245 (grub_loopback_iterate): Likewise.
26246 (grub_loopback_close): Likewise.
26247
26248 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26249
26250 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26251 with -p "".
26252 Reported by: Tito Keitel.
26253
26254 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26255
26256 * docs/grub.texi (Naming convention): Document new naming convention.
26257
26258 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26259 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26260
26261 Generate device.map in something closer to the old ordering.
26262
26263 * util/deviceiter.c (struct device): New declaration.
26264 (compare_file_names): Rename to ...
26265 (compare_devices): ... this. Sort by kernel name in preference to
26266 the stable by-id name, but keep the latter as a fallback comparison.
26267 Update header comment.
26268 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26269 of `struct device' rather than of plain file names.
26270
26271 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26272
26273 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26274 on i386.
26275
26276 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26277
26278 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26279 hardcoding size.
26280 (setv1table): Likewise.
26281
26282 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26283
26284 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26285 removing the homehost if present.
26286 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26287 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26288 removing the homehost if present.
26289 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26290 if possible.
26291 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26292
26293 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26294 parameter. Set its pointer target to 0.
26295 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26296 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26297 `data_offset' value from the superblock for 1.x metadata.
26298 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26299 data on the device.
26300 (insert_array): Record the start sector of data on the device.
26301 (grub_raid_register): Pass start_sector parameters to
26302 grub_raid_list->detect and insert_array.
26303 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26304 member.
26305 (struct grub_raid): Add start_sector parameter to `detect'.
26306
26307 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26308 __attribute__ ((packed)), leaving a comment.
26309 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26310 (grub_mdraid_detect_09): ... here and ...
26311 (grub_mdraid_detect_1x): ... here.
26312
26313 2010-07-20 Peter Henn <peter.henn@web.de>
26314
26315 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26316 chunk size and disk size, which are already given as sector counts
26317 as distinct from the 0.90 units. Fetch the correct device number
26318 from the role table instead of using the table index.
26319
26320 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26321
26322 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26323 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26324 (WriteMostly1): New macro.
26325 Set array->name to NULL for metadata format 0.90. Add support for
26326 metadata 1.x. Fix some comments.
26327 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26328 few comments.
26329 * util/getroot.c (grub_util_get_grub_dev): Add support for
26330 /dev/md/name style devices.
26331
26332 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26333
26334 * .bzrignore: Ignore 20_linux_xen.
26335
26336 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26337
26338 * util/import_unicode.py: Remove unnecessary imports.
26339
26340 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26341
26342 Hotplugging and USB hub support.
26343
26344 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26345 (grub_ohci): Likewise.
26346 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26347 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26348 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26349 (GRUB_OHCI_CTRL_EDS): Likewise.
26350 (GRUB_OHCI_BULK_EDS): Likewise.
26351 (GRUB_OHCI_TDS): Likewise.
26352 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26353 (grub_ohci_ed_phys2virt): New function.
26354 (grub_ohci_virt_to_phys): Likewise.
26355 (grub_ohci_td_phys2virt): Likewise.
26356 (grub_ohci_td_virt2phys): Likewise.
26357 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26358 attachment.
26359 (grub_ohci_find_ed): New function.
26360 (grub_ohci_alloc_td): Likewise.
26361 (grub_ohci_free_td): Likewise.
26362 (grub_ohci_free_tds): Likewise.
26363 (grub_ohci_transfer): Use previously allocated memory.
26364 (grub_ohci_portstatus): Reset status changed bit.
26365 (grub_ohci_detect_dev): Supply status changed.
26366 (grub_ohci_fini_hw): Free memory.
26367 (grub_ohci_restore_hw): Reallocate memory.
26368 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26369 Reset status change.
26370 (grub_uhci_detect_dev): Supply status_change.
26371 * bus/usb/usb.c (attach_hooks): New var.
26372 (grub_usb_device_attach): New function.
26373 (grub_usb_register_attach_hook_class): Likewise.
26374 (grub_usb_unregister_attach_hook_class): Likewise.
26375 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26376 (grub_usb_add_hub): Reset connection changed bit.
26377 (attach_root_port): New function.
26378 (grub_usb_root_hub): Likewise.
26379 (poll_nonroot_hub): Likewise.
26380 (grub_usb_poll_devices): Likewise.
26381 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26382 * disk/usbms.c (grub_usbms_open): Use device hooks.
26383 (grub_usbms_iterate) :Poll devices.
26384 (grub_usbms_finddevs): Split into ...
26385 (grub_usbms_attach): ... this ...
26386 (grub_usbms_attach): ... and this.
26387 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26388 in detect_dev.
26389 (grub_usb_interface): New fields attached and detach_hook.
26390 (grub_usb_attach_hook_class): New type.
26391 (grub_usb_attach_desc): New struct.
26392 (grub_usb_register_attach_hook_class): New function.
26393 (grub_usb_unregister_attach_hook_class): Likewise.
26394 (grub_usb_poll_devices): Likewise.
26395 (grub_usb_device_attach): Likewise.
26396 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26397 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26398
26399 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26400
26401 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26402 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26403 delta determination style. Works with most NetBSD partitions too.
26404
26405 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26406
26407 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26408 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26409
26410 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26411
26412 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26413
26414 2010-07-14 Anton Blanchard <anton@samba.org>
26415
26416 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26417 ET_DYN files.
26418
26419 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26420
26421 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26422
26423 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26424
26425 * kern/partition.c (grub_partition_check_containment): New function to
26426 check that a partition is physically contained in a parent. Since
26427 offsets are relative (and non-negative), this reduces to checking that
26428 the partition ends before its parent.
26429 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26430 (grub_partition_iterate): Likewise.
26431 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26432 comments.
26433 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26434 partitions that start before their parent, and add debug printfs.
26435
26436 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26437
26438 * Makefile.in (.SUFFIX): Spell correctly, as ...
26439 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26440 bare module name without `.mod', e.g. `test') tried to invoke a
26441 Modula-2 compiler.
26442
26443 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26444
26445 * README: Point to the Info manual.
26446
26447 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26448
26449 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26450 2nd superblock position from partition size.
26451
26452 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26453
26454 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26455 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26456 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26457 outputs.
26458
26459 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 Restructure SCSI .id handling.
26462 Reported and tested by: Aleš Nesrsta.
26463
26464 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26465 (grub_atapi_dev): Changed .name to "ata". New field .id.
26466 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26467 (grub_usbms_dev): New field .id.
26468 * disk/scsi.c (grub_scsi_iterate): Generate name.
26469 (grub_scsi_open): Parse name.
26470 * include/grub/scsi.h (grub_make_scsi_id): New function.
26471 (grub_scsi_dev): Change iterate and open to number instead of naming
26472 busses. All users updated.
26473 (grub_scsi): Remove name. Add .bus.
26474
26475 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * commands/help.c (grub_cmd_help): Fix a typo.
26478
26479 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26480
26481 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26482 Reported and tested by: Colin Watson.
26483
26484 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26485
26486 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26487 in this context.
26488
26489 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26490
26491 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26492
26493 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26494
26495 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26496 indentation.
26497
26498 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26499
26500 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26501 and disk/raid6_recover.c.
26502 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26503 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26504
26505 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26506
26507 * term/gfxterm.c (repaint_schedulded): Rename to ...
26508 (repaint_scheduled): ... this. Update all callers.
26509 (repaint_was_schedulded): Rename to ...
26510 (repaint_was_scheduled): ... this. Update all callers.
26511
26512 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26513
26514 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26515 which we expect to be handled by upper layers.
26516
26517 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26518
26519 * bus/usb/usbhub.c: #include time.h header.
26520
26521 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26522
26523 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26524 entry_name also for entries without stat blocks (e.g. ".."); fixes
26525 corruption of the first entry in a directory.
26526
26527 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26528
26529 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26530 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26531 doesn't work otherwise.
26532
26533 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26534
26535 * docs/grub.texi (Features): Update list of supported file systems.
26536 (GNU/Linux): Update for GRUB 2.
26537 (Serial terminal): Remove mention of --disable-serial, which was a
26538 GRUB Legacy configure option. Update instructions to use
26539 `terminal_input' and `terminal_output' rather than `terminal'.
26540 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26541 configuration' and `Installing GRUB using grub-install'.
26542 (Menu entry editor): Update for GRUB 2.
26543 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26544 Document new -a, -u, and -v options.
26545 (initrd): New section.
26546 (initrd16): New section.
26547 (linux): New section.
26548 (linux16): New section.
26549 (search): The `var' argument to `--set' is optional.
26550 (GRUB only offers a rescue shell): Go into a little more detail on
26551 drive ordering.
26552
26553 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26554
26555 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26556
26557 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26558
26559 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26560 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26561
26562 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26563
26564 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26565 install_prefix, in line with install_dos_part and install_bsd_part.
26566 Add new prefix variable, which is copied to install_prefix after
26567 comparing core.img in memory with the one read from disk in the
26568 no-embedding case, and use that rather than overwriting
26569 install_prefix immediately when installing to a partition.
26570 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26571 Bicakci.
26572
26573 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26574
26575 * configure.ac: Avoid == in test command, it's not portable.
26576 * util/grub.d/30_os-prober.in: Likewise.
26577
26578 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26579
26580 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26581
26582 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26583
26584 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26585 multiple (top-level) partmaps.
26586
26587 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26588
26589 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26590 Reported by: Tino Keitel.
26591
26592 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26593
26594 Bidi and diacritics support.
26595
26596 * Makefile.in (widthspec.bin): New target.
26597 (widthspec.h): Likewise.
26598 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26599 * autogen.sh: Generate unidata.c.
26600 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26601 * commands/ls.c (grub_ls_list_devices): Likewise.
26602 (grub_ls_list_files): Likewise.
26603 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26604 (grub_mini_cmd_lsmod): Likewise.
26605 * commands/read.c: Likewise.
26606 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26607 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26608 * lib/arg.c (grub_arg_show_help): Likewise.
26609 * lib/crypto.c (grub_password_get): Likewise.
26610 * normal/auth.c (grub_username_get): Likewise.
26611 * normal/misc.c (grub_normal_print_device_info): Likewise.
26612 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26613 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26614 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26615 (normal/charset.c_DEPENDENCIES): New variable.
26616 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26617 (pkglib_MODULES): Remove charset.mod.
26618 (charset_mod_SOURCES): Removed.
26619 (charset_mod_CFLAGS): Likewise.
26620 (charset_mod_LDFLAGS): Likewise.
26621 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26622 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26623 and term/tparm.c.
26624 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26625 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26626 (kernel_img_HEADERS): Add terminfo.h.
26627 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26628 Fill ->font. Reverse ascii bitmaps.
26629 (grub_font_get_xheight): New function.
26630 * font/font.c (grub_font_get_string_width): Moved from here ...
26631 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26632 * font/font.c (grub_font_draw_string): Moved from here ...
26633 * gfxmenu/font.c (grub_font_draw_string): ... here.
26634 * font/font.c (grub_font_dup_glyph): New function.
26635 (grub_font_blit_glyph): Likewise.
26636 (grub_font_blit_glyph_mirror): Likewise.
26637 (blit_comb): Likewise.
26638 (grub_font_construct_dry_run): Likewise.
26639 (grub_font_get_constructed_device_width): Likewise.
26640 (grub_font_construct_glyph): Likewise.
26641 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26642 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26643 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26644 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26645 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26646 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26647 (grub_font_get_xheight): New proto.
26648 (grub_font_get_constructed_device_width): Likewise.
26649 (grub_font_construct_glyph): Likewise.
26650 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26651 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26652 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26653 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26654 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26655 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26656 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26657 (grub_console_getcharwidth): Likewise.
26658 * include/grub/misc.h (grub_xputs): New proto.
26659 (grub_puts): Inlined.
26660 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26661 (grub_normal_get_line_counter): Removed.
26662 (grub_install_newline_hook): Likewise.
26663 (grub_normal_get_char_counter): New proto.
26664 (grub_normal_reset_more): Likewise.
26665 (grub_xputs_normal): Likewise.
26666 * include/grub/powerpc/ieee1275/console.h: Removed.
26667 * include/grub/sparc64/ieee1275/console.h: Likewise.
26668 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26669 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26670 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26671 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26672 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26673 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26674 (grub_term_input): Pass reference to self. All users updated.
26675 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26676 Pass reference to self. New fields normal_color, highlight_color and
26677 data. All users updated.
26678 (grub_putchar): Removed.
26679 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26680 (grub_unicode_estimate_width): New function.
26681 (grub_term_getcharwidth): Add defaults.
26682 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26683 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26684 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26685 (grub_cls): Remove EXPORT_FUNC.
26686 (grub_setcolorstate): Inline.
26687 (grub_newline_hook): Removed.
26688 * include/grub/terminfo.h: Rewritten. All users updated.
26689 * include/grub/unicode.h: New file.
26690 * include/grub/video.h (grub_video_signed_rect): New type.
26691 * kern/emu/console.c (grub_console_highlight_color): Removed.
26692 (grub_console_normal_color): Likewise.
26693 (grub_console_standard_color): Made static.
26694 (grub_ncurses_putchar): Remove mapping.
26695 (grub_ncurses_getcharwidth): Removed.
26696 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26697 (grub_ncurses_setcolor): Removed.
26698 (grub_ncurses_getcolor): Likewise.
26699 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26700 (grub_console_putchar): ... this.
26701 (grub_console_putchar): Handle argument difference.
26702 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26703 console_init_early and console_init_lately.
26704 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26705 * kern/misc.c (grub_puts): Removed.
26706 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26707 (grub_vsnprintf_real): Remove str = NULL support.
26708 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26709 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26710 * kern/term.c (grub_putcode): Renamed to ...
26711 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26712 (grub_putchar): Removed.
26713 (grub_xputs_dumb): New function.
26714 (grub_xputs): New variable.
26715 * lib/charset.c: Move from here ...
26716 * normal/charset.c: ... to here.
26717 (grub_ucs4_to_utf8): New function.
26718 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26719 (join_types): New variable.
26720 (unpack_join): New function.
26721 (bidi_types): New variable.
26722 (unpack_bidi): New function.
26723 (get_bidi_type): Likewise.
26724 (get_join_type): Likewise.
26725 (is_mirrored): Likewise.
26726 (grub_unicode_get_comb_type): Likewise.
26727 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26728 (is_type_after): Likewise.
26729 (grub_unicode_aglomerate_comb): Likewise.
26730 (bidi_line_wrap): Likewise.
26731 (grub_bidi_line_logical_to_visual): Likewise.
26732 (grub_bidi_logical_to_visual): Likewise.
26733 (grub_unicode_mirror_code): Likewise.
26734 (grub_unicode_shape_code): Likewise.
26735 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26736 Don't use grub_putchar.
26737 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26738 (grub_normal_reader_init): Likewise.
26739 (grub_xputs_saved): New variable.
26740 (GRUB_MOD_INIT): Set grub_xputs.
26741 (GRUB_MOD_FINI): Restore grub_xputs.
26742 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26743 (menu_init): Avoid printing gfxmenu error.
26744 (show_menu): Use grub_normal_get_char_counter.
26745 * normal/menu_entry.c (update_screen): Fix out-of-array.
26746 (complete): Avoid NULL dereferencing.
26747 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26748 * normal/menu_text.c (print_spaces): Removed.
26749 (grub_print_ucs4): Likewise.
26750 (grub_print_message_indented): Use grub_print_ucs4.
26751 (print_message): Use grub_putcode.
26752 (print_entry): Hanlde diacritics.
26753 * normal/term.c (term_state): New type.
26754 (grub_more_lines): Removed.
26755 (term_states): New variable.
26756 (grub_normal_line_counter): Renamed to ..
26757 (grub_normal_char_counter): ...this. All users updated.
26758 (grub_normal_get_line_counter): Renamed to ...
26759 (grub_normal_get_char_counter): ... this.
26760 (grub_normal_reset_more): New function.
26761 (process_newline): Removed.
26762 (print_more): New function.
26763 (grub_install_newline_hook): Removed.
26764 (map_code): New function.
26765 (grub_puts_terminal): Use grub_print_ucs4.
26766 (putglyph): New function.
26767 (putcode_real): Likewise.
26768 (grub_putcode): Use putcode_real.
26769 (get_maxwidth): New function.
26770 (get_startwidth): Likewise.
26771 (print_ucs4_terminal): Likewise.
26772 (find_term_state): Likewise.
26773 (put_glyphs_terminal): Likewise.
26774 (print_backlog): Likewise.
26775 (print_ucs4_real): Likewise.
26776 (grub_print_ucs4): Likewise.
26777 (grub_xputs_normal): Likewise.
26778 * term/efi/console.c (grub_console_putchar): Output diacritics.
26779 (grub_console_getcharwidth): Removed.
26780 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26781 * term/gfxterm.c (clear_char): Free chars.
26782 (scroll_up): Avoid leaking memory.
26783 (grub_gfxterm_putchar): Support diacritics.
26784 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26785 * term/i386/pc/console.c (grub_console_term_output): Declare as
26786 GRUB_TERM_CODE_TYPE_VGA.
26787 * term/i386/pc/vga.c (grub_vga_term): Declare as
26788 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26789 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26790 GRUB_TERM_CODE_TYPE_VGA.
26791 * term/i386/vga_common.c (map_char): Removed.
26792 (grub_console_putchar): Likewise.
26793 (grub_console_getcharwidth): Likewise.
26794 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26795 (colors): Reordered to match terminfo.
26796 (grub_ofconsole_normal_color): Removed.
26797 (grub_ofconsole_writeesc): Likewise.
26798 (grub_ofconsole_highlight_color): Likewise.
26799 (grub_ofconsole_getcharwidth): Likewise.
26800 (grub_ofconsole_setcolorstate): Likewise.
26801 (grub_ofconsole_setcolor): Likewise.
26802 (grub_ofconsole_getcolor): Likewise.
26803 (grub_ofconsole_readkey): Renamed to ...
26804 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26805 key.
26806 (grub_ofconsole_checkkey): Removed.
26807 (grub_ofconsole_getkey): Likewise.
26808 (grub_ofconsole_getxy): Likewise.
26809 (grub_ofconsole_gotoxy): Likewise.
26810 (grub_ofconsole_cls): Likewise.
26811 (grub_ofconsole_refresh): Likewise.
26812 (grub_ofconsole_terminfo_input): New struct.
26813 (grub_ofconsole_terminfo_output): Likewise.
26814 (grub_ofconsole_term_input): Use terminfo.
26815 (grub_ofconsole_term_output): Likewise.
26816 (grub_console_init): Split into ...
26817 (grub_console_init_early): ...this and ...
26818 (grub_console_init_lately): ...this. Use terminfo.
26819 (grub_ofconsole_putchar): Renamed to ...
26820 (put): ... this. Remove mapping.
26821 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26822 * term/serial.c: Simplify using terminfo.
26823 (xpos): Removed.
26824 (ypos): Likewise.
26825 (keep_track): Likewise.
26826 (registered): Likewise.
26827 (input_buf): Likewise.
26828 (npending): Likewise.
26829 (serial_translate_key_sequence): Likewise.
26830 (fill_input_buf): Likewise.
26831 (grub_serial_checkkey): Likewise.
26832 (grub_serial_getkey): Likewise.
26833 (grub_serial_getxy): Likewise.
26834 (grub_serial_gotoxy): Likewise.
26835 (grub_serial_putchar): Likewise.
26836 (grub_serial_cls): Likewise.
26837 (grub_serial_setcolorstate): Likewise.
26838 (grub_serial_setcursor): Likewise.
26839 (serial_hw_init): Use serial_hw_fetch.
26840 (grub_serial_terminfo_input): New variable.
26841 (grub_serial_terminfo_output): Likewise.
26842 (grub_serial_term_input): Use terminfo.
26843 (grub_serial_term_output): Likewise.
26844 * term/terminfo.c (putstr): Use put.
26845 (grub_terminfo_all_free): New function
26846 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26847 (grub_terminfo_output_register): New function.
26848 (grub_terminfo_output_unregister): Likewise.
26849 (grub_terminfo_getxy): Likewise.
26850 (grub_terminfo_readkey): Likewise.
26851 (grub_terminfo_checkkey): Likewise.
26852 (grub_terminfo_getkey): Likewise.
26853 (grub_terminfo_input_init): Likewise.
26854 (print_terminfo): Likewise.
26855 (grub_cmd_terminfo): Handle encoding.
26856 (grub_terminfo_gotoxy): Track position.
26857 (grub_terminfo_cls): Likewise.
26858 (grub_terminfo_putchar): Likewise.
26859 (grub_terminfo_setcolorstate): Handle colors
26860 (grub_terminfo_cursor_on): This ...
26861 (grub_terminfo_cursor_off): ... and this merged into ...
26862 (grub_terminfo_setcursor): ... this.
26863 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26864 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26865 * unicode/BidiMirroring.txt: Likewise.
26866 * unicode/UnicodeData.txt: Likewise.
26867 * unicode/COPYING: Likewise.
26868 * util/grub-editenv.c (grub_putchar): Removed.
26869 (grub_xputs_real): New function.
26870 (grub_xputs): New variable.
26871 * util/grub-fstest.c (grub_putchar): Removed.
26872 (grub_xputs_real): New function.
26873 (grub_xputs): New variable.
26874 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26875 (grub_xputs_real): New function.
26876 (grub_xputs): New variable.
26877 * util/grub-probe.c (grub_putchar): Removed.
26878 (grub_xputs_real): New function.
26879 (grub_xputs): New variable.
26880 * util/grub-script-check.c (grub_putchar): Removed.
26881 (grub_xputs_real): New function.
26882 (grub_xputs): New variable.
26883 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26884 (grub_xputs_real): New function.
26885 (grub_xputs): New variable.
26886 * util/import_unicode.py: New file.
26887 * util/grub-mkfont.c (ft_errmsgs): New array.
26888 (grub_glyph_info): Make bitmap a pointer.
26889 (file_formats): New type WIDTH_SPEC.
26890 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26891 (options): Add width-spec.
26892 (help): Likewise.
26893 (add_char): Renamed to ...
26894 (add_glyph): ... this.
26895 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26896 (glyph_replace): New type.
26897 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26898 (add_char): New function.
26899 (add_subst): Likewise.
26900 (process_cursive): Likewise.
26901 (add_font): Handle GSUB.
26902 (write_font_width_spec): New function.
26903 (main): Sort glyphs.
26904 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26905 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26906 * kern/term.c (grub_cls): Moved from here...
26907 * normal/term.c (grub_cls): ... here.
26908
26909 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26910
26911 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26912 suitable for using within the format argument of printf when
26913 converting grub_size_t.
26914 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26915 "x" to convert grub_size_t arguments.
26916
26917 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26918
26919 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26920 too long captions.
26921 (list_get_minimal_size): Take selection box into account.
26922
26923 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26924
26925 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26926 NULL font.
26927
26928 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26929
26930 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26931 devices when iterating over /dev/disk/by-id; they will be handled
26932 later if appropriate, which they aren't always (e.g. LVM).
26933
26934 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26935
26936 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26937 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26938 fails.
26939 (grub_halt): Likewise.
26940 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26941 reset-all fails.
26942 (grub_halt): Don't return, even if all of shut-down, power-off, and
26943 poweroff fail.
26944
26945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26946
26947 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26948 arguments, not three.
26949
26950 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26951
26952 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26953 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26954 LVM-on-RAID is handled correctly.
26955
26956 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26957
26958 * docs/grub.texi (Changes from GRUB Legacy): New section.
26959 (Future): Fix typo.
26960
26961 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26962
26963 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26964 grub.d/README accidentally ends up executable for one reason or
26965 another. Ignore it.
26966
26967 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26968
26969 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26970 (gpt_partition_map_iterate): Support non-512B sectors.
26971
26972 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26973
26974 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26975 Tested by: Seth Goldberg.
26976
26977 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26978
26979 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26980 Properly align mbi.
26981 Reported by: Seth Goldberg.
26982
26983 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26984
26985 * util/grub-mkrescue.in: Avoid module duplication.
26986
26987 2010-07-01 Sean Finney <seanius@seanius.net>
26988
26989 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26990
26991 2010-07-01 Sean Finney <seanius@seanius.net>
26992
26993 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26994
26995 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26996
26997 * disk/lvm.c (grub_lvm_checkvalue): New function.
26998 (grub_lvm_check_flag): Likewise.
26999
27000 2010-07-01 Robert Millan <rmh@gnu.org>
27001
27002 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27003 Support 'p' as partition separator on kernel of FreeBSD (used
27004 with GPT labels).
27005 (grub_util_biosdisk_get_grub_dev): Likewise.
27006
27007 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27008
27009 Yeeloong firmware port.
27010
27011 * boot/mips/yeeloong/fwstart.S: New file.
27012 * bus/cs5536.c (gpiodump): New const.
27013 (set_io_space): New function.
27014 (set_iod): Likewise.
27015 (set_p2d): Likewise.
27016 (grub_cs5536_init_geode): Likewise.
27017 * commands/mips/yeeloong/lsspd.c: New file.
27018 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27019 (serial_mod_SOURCES): New variable.
27020 (serial_mod_CFLAGS): Likewise.
27021 (serial_mod_LDFLAGS): Likewise.
27022 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27023 term/terminfo.c and term/tparm.c.
27024 (pkglib_IMAGES): Add fwstart.img.
27025 (fwstart_img_SOURCES): New variable.
27026 (fwstart_img_CFLAGS): Likewise.
27027 (fwstart_img_ASFLAGS): Likewise.
27028 (fwstart_img_LDFLAGS): Likewise.
27029 (fwstart_img_FORMAT): Likewise.
27030 (pkglib_MODULES): Add lsspd.mod.
27031 (lsspd_mod_SOURCES): New variable.
27032 (lsspd_mod_CFLAGS): Likewise.
27033 (lsspd_mod_LDFLAGS): Likewise.
27034 (pkglib_MODULES): Add halt.mod.
27035 (halt_mod_SOURCES): New variable.
27036 (halt_mod_CFLAGS): Likewise.
27037 (halt_mod_LDFLAGS): Likewise.
27038 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27039 (serial_mod_SOURCES): Removed.
27040 (serial_mod_CFLAGS): Likewise.
27041 (serial_mod_LDFLAGS): Likewise.
27042 * disk/ata.c (check_device): New function.
27043 (grub_ata_device_initialize): Use check_device.
27044 (grub_ata_iterate): Recheck devices.
27045 (grub_ata_open): Likewise.
27046 (grub_atapi_iterate): Likewise.
27047 (grub_atapi_open): Likewise.
27048 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27049 (GRUB_ATA_CH1_PORT1): Likewise.
27050 (GRUB_ATA_CH0_PORT2): Likewise.
27051 (GRUB_ATA_CH1_PORT2): Likewise.
27052 * include/grub/mips/loongson.h: New file.
27053 * include/grub/mips/yeeloong/ec.h: Likewise.
27054 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27055 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27056 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27057 * include/grub/misc.h (grub_halt): Declare as noreturn.
27058 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27059 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27060 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27061 (UART_ENABLE_DTRRTS): Likewise.
27062 (UART_ENABLE_MODEM): Removed.
27063 (UART_ENABLE_OUT2): New const.
27064 * include/grub/term.h (grub_term_register_input_active): New function.
27065 (grub_term_register_output_active): Likewise.
27066 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27067 argument.
27068 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27069 (init_pci): New function.
27070 (grub_machine_init): Execute platform init when firmware. Init serial.
27071 (grub_halt): Implement.
27072 (grub_exit): Likewise.
27073 (grub_reboot): Likewise.
27074 * term/serial.c (serial_hw_init): Update macros.
27075 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27076 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27077 (image_targets): New target mipsel-yeeloong-flash.
27078 (generate_image): Support IMAGE_YEELOONG_FLASH.
27079 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27080 (grub_video_sm712_setup): Init card.
27081 (grub_video_sm712_set_palette): Removed.
27082 * video/sm712_init.c: New file.
27083
27084 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27085
27086 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27087 PATH when running help2man and then run it on the unadorned
27088 executable names, rather than passing $(builddir)/* paths to
27089 help2man. This avoids the build directory ending up in generated
27090 manual pages.
27091
27092 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27093
27094 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27095 to avoid accidents when debugging with 'sh -x'.
27096 * util/grub-mkrescue.in: Likewise.
27097 * util/grub.d/00_header.in: Likewise.
27098 * util/grub.d/10_hurd.in: Likewise.
27099 * util/grub.d/10_kfreebsd.in: Likewise.
27100 * util/grub.d/10_linux.in: Likewise.
27101 * util/grub.d/10_netbsd.in: Likewise.
27102 * util/grub.d/10_windows.in: Likewise.
27103 * util/grub.d/20_linux_xen.in: Likewise.
27104 * util/grub.d/30_os-prober.in: Likewise.
27105 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27106
27107 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27108
27109 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27110 last character in the buffer.
27111 Reported by: Vladimir Serbinenko.
27112
27113 2010-06-29 Robert Millan <rmh@gnu.org>
27114
27115 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27116 (Command-line and menu entry commands): Document `badram' command.
27117
27118 2010-06-28 Robert Millan <rmh@gnu.org>
27119
27120 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27121 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27122 command using ${GRUB_BADRAM} as parameter.
27123
27124 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27125
27126 * docs/grub.texi (Device map): New section.
27127 (Themes): New section (stub).
27128 * Makefile.in (docs/grub.info): The info documentation now builds
27129 without errors. Make sure it stays that way.
27130
27131 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27132
27133 Use normal parser for menu entries.
27134 Reported by: Thomas Frauendorfer
27135
27136 * include/grub/parser.h (grub_parser_execute): Don't export.
27137 * normal/menu.c (grub_menu_execute_entry_real): New function.
27138 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27139
27140 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27141
27142 * docs/grub.texi (Embedded configuration): New section (replacing
27143 old "Preset Menu" stub).
27144 (Images): New section.
27145 (configfile): Note that any menu entries defined in `file' are shown
27146 immediately.
27147
27148 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27149
27150 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27151
27152 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27153
27154 * util/grub-install.in: Add --debug-image= option.
27155
27156 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27157
27158 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27159 possible on Linux.
27160
27161 * util/deviceiter.c (check_device): Rename to ...
27162 (check_device_readable_unique): ... this. Update all callers.
27163 Maintain and check a list of which devices (by canonicalized name)
27164 have already been seen.
27165 (clear_seen_devices): New function.
27166 (compare_file_names) [__linux__]: New function.
27167 (grub_util_iterate_devices): Clear the list of seen devices on exit
27168 and (just in case) on entry.
27169 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27170 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27171 seen-devices list, superseded by general code in check_device.
27172
27173 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27174
27175 * commands/cat.c (options): New variable.
27176 (grub_cmd_cat): Parse options. If the --dos option is given, print
27177 DOS-style "\r\n" line endings as simple newlines (Debian bug
27178 #586358).
27179 (GRUB_MOD_INIT): Use extcmd.
27180 (GRUB_MOD_FINI): Likewise.
27181 * docs/grub.texi (cat): Document --dos.
27182
27183 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27184
27185 XEN with Linux grub-mkconfig support.
27186
27187 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27188 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27189 GRUB_CMDLINE_XEN_DEFAULT.
27190 * util/grub.d/20_linux_xen.in: New file.
27191
27192 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27193
27194 Initialise VGA video on qemu ourselves.
27195
27196 * boot/i386/qemu/boot.S: Don't call 0xc000.
27197 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27198 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27199 (kernel_img_HEADERS): Add pci.h.
27200 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27201 * configure.ac: Force unifont on qemu and yeeloong.
27202 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27203 (grub_vga_palette_write): Use correct register.
27204 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27205 Call grub_qemu_init_cirrus.
27206 * kern/i386/qemu/init.c: New file.
27207 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27208
27209 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27210
27211 2010-06-26 Pavel Roskin <proski@gnu.org>
27212
27213 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27214 13.
27215
27216 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27217
27218 * docs/grub.texi (Simple configuration): Explain that
27219 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27220 set to `true' to disable their respective recovery entries, not
27221 merely set.
27222
27223 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27224
27225 Make the `source' command slightly faster.
27226
27227 * normal/main.c (grub_normal_execute): Don't re-read list files when
27228 nested.
27229
27230 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27231
27232 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27233 field position and mask size to red fields from mode_info, not
27234 green.
27235 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27236 Remove redundant tag->common.framebuffer_type assignment.
27237 Reported by: Seth Goldberg.
27238
27239 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27240
27241 Sync up other versions of the Linux loader with Robert Millan's
27242 change of 2010-01-09, "Make loader output a bit more user-friendly".
27243
27244 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27245 grub_dprintf().
27246 (grub_cmd_linux): Likewise.
27247 (grub_cmd_initrd): Likewise.
27248 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27249 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27250
27251 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27252
27253 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27254 larger than MEMORY_MAP_SIZE.
27255
27256 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27257
27258 Fix parallel build.
27259
27260 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27261 dependency.
27262 * script/parser.y: #include grub_script.tab.h header.
27263
27264 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27265
27266 Support >3GiB and <16MiB RAM in i386-qemu.
27267
27268 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27269 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27270 (grub_lower_mem): Removed.
27271 (grub_upper_mem): Likewise.
27272 (mem_size): Made static.
27273 (above_4g): New variable.
27274 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27275 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27276 support.
27277
27278 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27279
27280 Cirrus 5446 and Bochs video cards support.
27281
27282 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27283 video_bochs.mod
27284 (video_cirrus_mod_SOURCES): New variable.
27285 (video_cirrus_mod_CFLAGS): Likewise.
27286 (video_cirrus_mod_LDFLAGS): Likewise.
27287 (video_bochs_mod_SOURCES): Likewise.
27288 (video_bochs_mod_CFLAGS): Likewise.
27289 (video_bochs_mod_LDFLAGS): Likewise.
27290 * include/grub/vga.h: New file.
27291 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27292 (grub_video_fb_set_page_t): New type.
27293 (grub_video_fb_setup): New prototype.
27294 (grub_video_fb_swap_buffers): Likewise.
27295 (grub_video_fb_get_info_and_fini): Likewise.
27296 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27297 (CRTC_DATA_PORT): Likewise.
27298 (CRTC_CURSOR): Likewise.
27299 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27300 (CRTC_CURSOR_ADDR_LOW): Likewise.
27301 (CRTC_CURSOR_DISABLE): Likewise.
27302 (update_cursor): Use grub_vga_cr_write.
27303 (grub_vga_text_setcursor): Likewise.
27304 * video/bochs.c: New file.
27305 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27306 (palette): Likewise.
27307 (palette_size): Likewise.
27308 (framebuffer): New variable.
27309 (grub_video_fb_init): Use 'framebuffer'.
27310 (grub_video_fb_fini): Likewise.
27311 (grub_video_fb_get_info): Likewise.
27312 (grub_video_fb_get_palette): Likewise.
27313 (grub_video_fb_set_palette): Likewise.
27314 (grub_video_fb_set_viewport): Likewise.
27315 (grub_video_fb_get_viewport): Likewise.
27316 (grub_video_fb_map_color): Likewise.
27317 (grub_video_fb_map_rgb): Likewise.
27318 (grub_video_fb_map_rgba): Likewise.
27319 (grub_video_fb_unmap_color): Likewise.
27320 (grub_video_fb_unmap_color_int): Likewise.
27321 (grub_video_fb_fill_rect): Likewise.
27322 (grub_video_fb_blit_bitmap): Likewise.
27323 (grub_video_fb_blit_render_target): Likewise.
27324 (grub_video_fb_scroll): Likewise.
27325 (grub_video_fb_create_render_target): Likewise.
27326 (grub_video_fb_doublebuf_blit_init): Likewise.
27327 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27328 (doublebuf_pageflipping_update_screen): New function.
27329 (doublebuf_pageflipping_init): Likewise.
27330 (grub_video_fb_setup): Likewise.
27331 (grub_video_fb_swap_buffers): Likewise.
27332 (grub_video_fb_get_info_and_fini): Likewise.
27333 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27334 All users updated.
27335 (doublebuf_pageflipping_commit): Restructured into ...
27336 (doublebuf_pageflipping_set_page): ... this.
27337 (doublebuf_pageflipping_update_screen): Removed.
27338 (doublebuf_pageflipping_init): Likewise.
27339 (double_buffering_init): Likewise.
27340 (grub_video_vbe_setup): Use grub_video_fb_setup.
27341 (grub_video_vbe_swap_buffers): Removed.
27342 (grub_video_vbe_set_active_render_target): Likewise.
27343 (grub_video_vbe_get_active_render_target): Likewise.
27344 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27345 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27346 grub_video_fb_set_active_render_target and
27347 grub_video_fb_get_active_render_target.
27348 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27349 (SEQUENCER_DATA_PORT): Likewise.
27350 (MAP_MASK_REGISTER): Likewise.
27351 (CRTC_ADDR_PORT): Likewise.
27352 (CRTC_DATA_PORT): Likewise.
27353 (START_ADDR_HIGH_REGISTER): Likewise.
27354 (START_ADDR_LOW_REGISTER): Likewise.
27355 (GRAPHICS_ADDR_PORT): Likewise.
27356 (GRAPHICS_DATA_PORT): Likewise.
27357 (READ_MAP_REGISTER): Likewise.
27358 (INPUT_STATUS1_REGISTER): Likewise.
27359 (INPUT_STATUS1_VERTR_BIT): Likewise.
27360 (get_map_mask): Use grub_vga_sr_read.
27361 (set_map_mask): Use grub_vga_sr_write.
27362 (set_read_map): Use grub_vga_gr_write.
27363 (set_start_address): Use grub_vga_cr_write.
27364 * video/sm712.c (framebuffer): Remove leftover fields.
27365
27366 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27367
27368 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27369 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27370 instead. Replace the gfxterm backend check with a check that
27371 ${GRUB_PREFIX}/video.lst is non-empty.
27372 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27373 again.
27374 (load_video): New generated function. Call it before loading
27375 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27376 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27377 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27378 * docs/grub.texi (Simple configuration): Document
27379 GRUB_VIDEO_BACKEND.
27380
27381 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27382
27383 Use video functions in linux and xnu loaders.
27384
27385 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27386 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27387 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27388 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27389 loader/i386/pc/linux.c.
27390 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27391 (find_line_len): Removed.
27392 (find_framebuf): Likewise.
27393 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27394 * loader/i386/efi/xnu.c: Removed.
27395 * loader/i386/pc/xnu.c: Moved from here...
27396 * loader/i386/xnu.c: ...here.
27397
27398 Enable priorities in video drivers.
27399
27400 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27401 (grub_video_adapter): New field prio.
27402 (grub_video_register): Respect prio when inserting.
27403 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27404 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27405 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27406 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27407 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27408 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27409 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27410
27411 Fix SDL driver ID.
27412
27413 * include/grub/video.h (grub_video_driver_id_t): New value
27414 GRUB_VIDEO_DRIVER_SDL.
27415 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27416
27417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27418
27419 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27420 argument to printf.
27421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27422
27423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27424
27425 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27426 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27427
27428 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27429
27430 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27431 directly, and recommend grub-install instead.
27432 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27433
27434 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27435
27436 Fix i386-pc prefix handling with nested partitions (Debian bug
27437 #585068). Note that the case where the core image is booted using
27438 multiboot and relocated from its original location still requires
27439 more work.
27440
27441 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27442 with "(,", fill the boot drive in between those two characters, but
27443 expect that a full partition specification including partition map
27444 names will follow.
27445 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27446 specified, write a prefix without the drive name but including a
27447 full partition specification.
27448
27449 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27450
27451 * util/grub-mkconfig.in: Ignore non-option arguments, for
27452 compatibility with older versions (before 2010-06-12) which did the
27453 same. In particular, this makes it easier to ship an update-grub
27454 wrapper which is compatible with that used with GRUB Legacy (Debian
27455 bug #586056).
27456
27457 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27458
27459 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27460 for manual page generation.
27461
27462 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27463
27464 * po/POTFILES: Remove leftover commands/handler.c.
27465
27466 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27467
27468 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27469 left this script non-functional.
27470
27471 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27472
27473 * docs/man/grub-emu.h2m: New file.
27474
27475 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27476
27477 * docs/grub.texi (Commands): Document reduced command set in rescue
27478 mode.
27479 (cpuid): New section.
27480
27481 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27482
27483 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27484 new partition naming style.
27485 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27486
27487 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27488
27489 Add "-o grub.iso" like cmdline options support.
27490
27491 * util/grub-install.in: Improve cmdline option parsing.
27492 * util/grub-mkconfig.in: Likewise.
27493 * util/grub-mkrescue.in: Likewise.
27494 * util/grub-reboot.in: Likewise.
27495 * util/grub-set-default.in: Likewise.
27496 * util/i386/efi/grub-install.in: Likewise.
27497 * util/ieee1275/grub-install.in: Likewise.
27498 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27499
27500 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27501
27502 * .bzrignore: Ignore 41_custom.
27503
27504 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27505
27506 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27507
27508 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27509
27510 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27511 prototype declarations.
27512
27513 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27514 generating fs, partmap, and video lists.
27515 * include/grub/fs.h (grub_fs_register): Omit prototype if
27516 GRUB_LST_GENERATOR is defined.
27517 * include/grub/partition.h (grub_partition_map_register): Likewise.
27518 * include/grub/video.h (grub_video_register): Likewise.
27519
27520 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27521
27522 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27523
27524 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27525
27526 * util/grub-mkrescue.in: Support --xorriso argument.
27527
27528 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27529
27530 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27531 Suggested by: Thomas Schmitt.
27532
27533 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27534
27535 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27536 Suggested by: Thomas Schmitt.
27537
27538 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27539
27540 custom.cfg support.
27541
27542 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27543 * util/grub.d/41_custom.in: New file.
27544
27545 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27546
27547 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27548 been merged back into normal.
27549
27550 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27551
27552 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27553 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27554
27555 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27556
27557 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27558 when generating manual pages.
27559 * docs/man/grub-bin2h.h2m: New file.
27560 * docs/man/grub-editenv.h2m: New file.
27561 * docs/man/grub-fstest.h2m: New file.
27562 * docs/man/grub-install.h2m: New file.
27563 * docs/man/grub-macho2img.h2m: New file.
27564 * docs/man/grub-mkconfig.h2m: New file.
27565 * docs/man/grub-mkdevicemap.h2m: New file.
27566 * docs/man/grub-mkfont.h2m: New file.
27567 * docs/man/grub-mkimage.h2m: New file.
27568 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27569 * docs/man/grub-mkrelpath.h2m: New file.
27570 * docs/man/grub-mkrescue.h2m: New file.
27571 * docs/man/grub-ofpathname.h2m: New file.
27572 * docs/man/grub-pe2elf.h2m: New file.
27573 * docs/man/grub-probe.h2m: New file.
27574 * docs/man/grub-reboot.h2m: New file.
27575 * docs/man/grub-script-check.h2m: New file.
27576 * docs/man/grub-set-default.h2m: New file.
27577 * docs/man/grub-setup.h2m: New file.
27578
27579 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27580
27581 Use FOR_* macros instead of *_iterate whenever possible.
27582
27583 * commands/handler.c: Removed.
27584 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27585 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27586 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27587 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27588 (grub_probe_SOURCES): Remove kern/parser.c.
27589 (util/grub-script-check.c_DEPENDENCIES): Removed.
27590 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27591 and grub_script_check_init.c.
27592 (grub_script_check_init.lst): Removed.
27593 (grub_script_check_init.h): Likewise.
27594 (grub_script_check_init.c): Likewise.
27595 (pkglib_MODULES): Remove handler.mod and sh.mod.
27596 (handler_mod_SOURCES): Removed.
27597 (handler_mod_CFLAGS): Likewise.
27598 (handler_mod_LDFLAGS): Likewise.
27599 (normal_mod_SOURCES): Remove normal/handler.c.
27600 Add script/main.c, script/script.c, script/execute.c,
27601 script/function.c, script/lexer.c, grub_script.tab.c
27602 and grub_script.yy.c.
27603 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27604 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27605 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27606 (grub_setup_SOURCES): Remove kern/parser.c.
27607 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27608 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27609 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27610 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27611 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27612 (grub_setup_SOURCES): Remove kern/parser.c.
27613 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27614 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27615 * include/grub/command.h (grub_command_iterate): Removed.
27616 (FOR_COMMANDS): New macro.
27617 * include/grub/dl.h (grub_dl): New member next.
27618 (grub_dl_iterate): Removed.
27619 (grub_dl_head): New variable declaration.
27620 (FOR_DL_MODULES): New macro.
27621 * include/grub/fs.h: Include list.h.
27622 (grub_fs): Make next first element.
27623 (grub_fs_list): New variable declaration.
27624 (grub_fs_register): Make inline.
27625 (grub_fs_unregister): Likewise.
27626 (grub_fs_iterate): Removed.
27627 (FOR_FILESYSTEMS): New macro.
27628 * include/grub/handler.h: Removed.
27629 * include/grub/list.h (grub_list_hook_t): Removed.
27630 (grub_list_test_t): Likewise.
27631 (grub_list_pop): Likewise.
27632 (grub_list_iterate): Likewise.
27633 (grub_list_insert): Likewise.
27634 (FOR_LIST_ELEMENTS): New macro.
27635 * include/grub/parser.h (grub_parser_class): Removed.
27636 (grub_parser_register): Likewise.
27637 (grub_parser_unregister): Likewise.
27638 (grub_parser_get_current): Likewise.
27639 (grub_parser_set_current): Likewise.
27640 (grub_register_rescue_parser): Likewise.
27641 (grub_rescue_parse_line): New function.
27642 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27643 * include/grub/script_sh.h (grub_script_function_list): New variable
27644 declaration.
27645 (FOR_SCRIPT_FUNCTIONS): New macro.
27646 (grub_script_function_iterate): Removed.
27647 (grub_normal_parse_line): New prototype.
27648 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27649 (FOR_DISABLED_TERM_INPUTS): Likewise.
27650 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27651 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27652 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27653 element.
27654 (grub_video_register): Inline.
27655 (grub_video_unregister): Likewise.
27656 (grub_video_adapter_list): New variable declaration.
27657 (grub_video_iterate): Removed.
27658 (FOR_VIDEO_ADAPTERS): New macro.
27659 * kern/dl.c (grub_dl_list): Removed. All users updated.
27660 (grub_dl_iterate): Removed.
27661 * kern/fs.c (grub_fs_list): Make global.
27662 (grub_fs_register): Removed.
27663 (grub_fs_unregister): Likewise.
27664 (grub_fs_iterate): Likewise.
27665 * kern/handler.c: Removed.
27666 * kern/list.c (grub_list_pop): Removed.
27667 (grub_list_iterate): Likewise.
27668 (grub_list_insert): Likewise.
27669 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27670 (grub_prio_list_insert): Don't use grub_list_insert.
27671 * kern/main.c (grub_register_rescue_parser): Don't call
27672 grub_register_rescue_parser.
27673 * kern/parser.c (grub_parser_class): Removed.
27674 (grub_parser_execute): Use grub_rescue_parse_line.
27675 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27676 (grub_rescue_parser): Removed.
27677 (grub_register_rescue_parser): Likewise.
27678 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27679 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27680 (grub_auth_check_authentication): Likewise.
27681 * normal/completion.c (iterate_command): Removed.
27682 (grub_normal_do_completion): Use FOR_COMMANDS.
27683 * normal/handler.c: Removed.
27684 * normal/main.c (read_config_file): Remove parser changing.
27685 (grub_normal_execute): Don't call read_handler_list.
27686 (grub_normal_read_line_real): Statically allocate prompt.
27687 (grub_cmdline_run): Use grub_normal_parse_line.
27688 (GRUB_MOD_FINI): Don't call free_handler_list.
27689 * normal/menu_entry.c (run): Likewise.
27690 * script/function.c (grub_script_function_list): Make global.
27691 (grub_script_function_iterate): Removed.
27692 * script/main.c (grub_normal_parse_line): Make global.
27693 (grub_sh_parser): Removed.
27694 (GRUB_MOD_INIT): Likewise.
27695 (GRUB_MOD_FINI): Likewise.
27696 * tests/lib/functional_test.c (grub_functional_test): Use
27697 FOR_LIST_ELEMENTS.
27698 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27699 (grub_test_run): Use FOR_LIST_ELEMENTS.
27700 * tests/lib/unit_test.c (main): Likewise.
27701 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27702 grub_list_pop.
27703 * util/grub-fstest.c (grub_term_input_class): Removed.
27704 (grub_term_output_class): Likewise.
27705 * util/grub-probe.c: Likewise.
27706 * util/i386/pc/grub-setup.c: Likewise.
27707 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27708 * util/grub-script-check.c (main): Don't call grub_init_all and
27709 grub_fini_all.
27710 * video/video.c (grub_video_adapter_list): Make global.
27711 (grub_video_register): Removed.
27712 (grub_video_unregister): Likewise.
27713 (grub_video_iterate): Likewise.
27714
27715 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27716
27717 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27718 reported by Henrique Ferreiro.
27719
27720 2010-06-09 Robert Millan <rmh@gnu.org>
27721
27722 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27723 ones, when both are available.
27724
27725 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27726
27727 Make --version uniform and avoid hard-coded program name.
27728
27729 * util/grub-mkimage.c (main): Use `program_name' instead of
27730 hard-coded string.
27731 * util/i386/pc/grub-setup.c (main): Likewise.
27732 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27733 * util/grub-install.in: Save the basename of $0 in $self, and use the
27734 latter in informational messages. Use the same format for --version
27735 as the binary programs.
27736 * util/grub-mkconfig.in: Likewise.
27737 * util/grub-mkrescue.in: Likewise.
27738 * util/grub-reboot.in: Likewise.
27739 * util/grub-set-default.in: Likewise.
27740 * util/i386/efi/grub-install.in: Likewise.
27741 * util/ieee1275/grub-install.in: Likewise.
27742 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27743
27744 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27745
27746 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27747 embedding area. Use <= instead of == when checking for non-emptiness.
27748
27749 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27750
27751 * configure.ac: Add `.' to the directories searched for unifont.
27752
27753 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27754
27755 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27756 grub_script.yy.h.
27757
27758 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27759
27760 * docs/grub.texi (History): Expand to cover GRUB 2.
27761 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27762 commands, not `terminal'.
27763 (serial): Likewise.
27764 (terminal_input): New section.
27765 (terminal_output): New section.
27766 (uppermem): New section (stub).
27767 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27768
27769 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27770
27771 * docs/grub.texi (Security): Menu entries are unrestricted by
27772 default, not restricted to superusers as I had previously thought.
27773 Reword to account for this.
27774
27775 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27776
27777 * kern/emu/misc.c (device_mapper_null_log): New function.
27778 (grub_device_mapper_supported): New function.
27779 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27780 prototype.
27781 * kern/emu/hostdisk.c (find_partition_start): Check whether
27782 device-mapper is supported before trying to use it.
27783 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27784
27785 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27786
27787 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27788 (File name syntax): Likewise.
27789 (help): --all is no longer supported in GRUB 2. Be more precise
27790 about pattern matching.
27791
27792 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27793
27794 * normal/completion.c (grub_normal_do_completion): When completing
27795 arguments to "set" and the current word contains an equals sign,
27796 skip to after the equals sign before starting completion.
27797
27798 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27799
27800 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27801
27802 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27803
27804 * docs/grub.texi (Network): New section.
27805 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27806 `(nd)' as in GRUB Legacy.
27807 (pxe_unload): New section.
27808
27809 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27810
27811 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27812 in the rescue shell, so recommend using `set' instead. Thanks,
27813 Jordan Uggla.
27814
27815 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27816
27817 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27818 (password): New section.
27819 (password_pbkdf2): New section.
27820 (search): New section.
27821 (Security): New section.
27822 (Troubleshooting): New section, currently very incomplete.
27823 (Invoking grub-mkpasswd-pbkdf2): New section.
27824 (Internals): New section, currently very incomplete.
27825
27826 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27827
27828 * util/grub.d/00_header.in: Add some more quoting (of
27829 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27830 work again.
27831 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27832
27833 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27834
27835 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27836 to `count', fixing variable shadowing that broke the -c option.
27837
27838 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27839
27840 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27841 in case they contain spaces.
27842
27843 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27844
27845 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27846 "part_" to partmap module names, in line with grub-install.
27847 Reported by: Jindřich Makovička (Debian bug #584426).
27848
27849 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27850
27851 * util/grub-mkimage.c: Make target-related error messages slightly
27852 more helpful; -O talks about "format". Explicitly point to the use
27853 of -O if no target is specified.
27854 Reported by: Didier Raboud (Debian bug #584415).
27855
27856 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27857
27858 * INSTALL: Document several build requirements for optional features
27859 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27860
27861 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27862
27863 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27864 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27865 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27866
27867 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27868
27869 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27870 Thanks to Jordan Uggla for spotting this.
27871
27872 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27873
27874 Finally make USB usable.
27875
27876 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27877 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27878 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27879 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27880 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27881 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27882 (GRUB_OHCI_FSMPS): Likewise.
27883 (GRUB_OHCI_PERIODIC_START): Likewise.
27884 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27885 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27886 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27887 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27888 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27889 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27890 (grub_ohci_transaction): Likewise.
27891 (grub_ohci_transfer): Improve condition detection algorithms.
27892 Handle toggle property. Program the transactions correctly.
27893 Improve error handling. Various important fixups.
27894 (grub_ohci_portstatus): Put register writes in right order.
27895 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27896 (grub_uhci_transfer): Don't show "failed" message on success.
27897 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27898 array.
27899 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27900 determine its size.
27901 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27902 before initialization is completed. Use IN direction for empty
27903 transfers. Use last_trans and compute toggle.
27904 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27905 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27906 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27907 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27908 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27909 (grub_usb_device): Increase toggle to 256.
27910 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27911 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27912 GRUB_USBMS_SUBCLASS_SFF8070.
27913 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27914 (grub_scsi_inquiry): New member page and alloc_length.
27915 (grub_scsi_request_sense): New structure.
27916 (grub_scsi_request_sense_data): Likewise.
27917 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27918 control.
27919 * disk/scsi.c (grub_scsi_request_sense): New function.
27920 (grub_scsi_test_unit_ready): Likewise.
27921 (grub_scsi_inquiry): Fill new fields.
27922 (grub_scsi_read_capacity): Likewise.
27923 (grub_scsi_read10): Add request sense at the end.
27924 (grub_scsi_read12): Likewise.
27925 (grub_scsi_write10): Likewise.
27926 (grub_scsi_write12): Likewise.
27927 (grub_scsi_open): Add Test Unit Ready.
27928 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27929 Support additional subclasses. Con't clear halt yet. Activate the
27930 proper config. Calculate LUNs correctly.
27931 (grub_usbms_transfer): Various important fixups.
27932
27933 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27934
27935 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27936 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27937 (grub_ohci_fini_hw): New function.
27938 (grub_ohci_restore_hw): Likewise.
27939 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27940 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27941 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27942
27943 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27944
27945 Dedicated DMA allocations.
27946
27947 * bus/pci.c (grub_memalign_dma32): New function
27948 (grub_dma_free): Likewise.
27949 (grub_dma_get_virt): Likewise.
27950 (grub_dma_get_phys): Likewise.
27951 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27952 (grub_ohci_pci_iter): Use dma32_alloc.
27953 (grub_ohci_transfer): Likewise.
27954 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27955 (grub_usb_bulk_readwrite): Likewise.
27956 * include/grub/pci.h: Add declarations.
27957
27958 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27959
27960 CS5536 support.
27961
27962 * bus/cs5536.c: New file.
27963 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27964 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27965 (cs5536_mod_SOURCES): New variable.
27966 (cs5536_mod_CFLAGS): Likewise.
27967 (cs5536_mod_LDFLAGS): Likewise.
27968 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27969 machine/pci.h.
27970 (kernel_img_SOURCES): Add bus/cs5536.c.
27971 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27972 usb_keyboard.mod.
27973 (usb_mod_SOURCES): New variable.
27974 (usb_mod_CFLAGS): New variable.
27975 (usb_mod_LDFLAGS): New variable.
27976 (usbtest_mod_SOURCES): New variable.
27977 (usbtest_mod_CFLAGS): New variable.
27978 (usbtest_mod_LDFLAGS): New variable.
27979 (ohci_mod_SOURCES): New variable.
27980 (ohci_mod_CFLAGS): New variable.
27981 (ohci_mod_LDFLAGS): New variable.
27982 (usbms_mod_SOURCES): New variable.
27983 (usbms_mod_CFLAGS): New variable.
27984 (usbms_mod_LDFLAGS): New variable.
27985 (usb_keyboard_mod_SOURCES): New variable.
27986 (usb_keyboard_mod_CFLAGS): New variable.
27987 (usb_keyboard_mod_LDFLAGS): New variable.
27988 * include/grub/smbus.h: New file.
27989 * include/grub/cs5536.h: New file.
27990
27991 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27992
27993 * util/grub.d/00_header.in: Add safety check to make sure that
27994 ${locale_dir} exists before trying to probe it.
27995
27996 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27997
27998 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27999 per the GNU Coding Standards; this is now too obscure to be worth
28000 documenting.
28001 (QNX): Likewise.
28002 (chainloader): Remove cross-reference to `SCO UnixWare'.
28003
28004 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28005
28006 * docs/grub.texi (Chain-loading): New section.
28007 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28008 adjusted for GRUB 2.
28009 (SCO UnixWare): Likewise.
28010 (QNX): Likewise.
28011 (chainloader): Add reference to `Block list syntax'.
28012 (drivemap): New section.
28013 (parttool): New section.
28014
28015 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28016
28017 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28018 the grub shell'.
28019 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28020 (Installing GRUB using grub-install): Remove reference to the grub
28021 shell; mention `grub-mkimage' and `grub-setup' instead.
28022 (Invoking grub-install): Likewise.
28023 (Interface): Add reference to `Menu entry editor'.
28024 (serial): Remove `--device' option.
28025
28026 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28027
28028 * docs/grub.texi (Configuration): New section, documenting
28029 configuration file generation using grub-mkconfig. I've left a slot
28030 for documenting the full shell scripting format but have not yet
28031 started on writing that up.
28032 (Invoking grub-mkconfig): New section.
28033
28034 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28035
28036 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28037 (GNU GRUB manual): Likewise.
28038 (General commands): Update description of `terminfo' for GRUB 2.
28039
28040 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28041
28042 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28043 (GRUB_MOD_INIT): Fix capitalisation.
28044 * docs/grub.texi (Command-line and menu entry commands): Document
28045 gettext and gptsync commands.
28046
28047 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28048
28049 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28050 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28051
28052 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28053
28054 Add btrfs probing support, currently only in the single-device case.
28055
28056 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28057 function.
28058 (grub_guess_root_device): Call find_root_device_from_mountinfo
28059 before looking in /dev.
28060
28061 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28062
28063 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28064 GRUB_DISK_SIZE_UNKNOWN.
28065 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28066
28067 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28068
28069 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28070 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28071 corrupted or not synced properly.
28072
28073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28074
28075 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28076 Reported by: Seth Goldberg.
28077
28078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28079
28080 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28081 addition of dest.
28082 Reported by: Seth Goldberg.
28083
28084 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28087 Reported by: Seth Goldberg.
28088
28089 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28090
28091 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28092 64-bit address as signed on MIPS.
28093
28094 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28095
28096 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28097 to the empty string.
28098
28099 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28100
28101 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28102
28103 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28104 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28105 * kern/misc.c (__enable_execute_stack): Disable on
28106 GRUB_MACHINE_EMU.
28107
28108 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28109
28110 Make grub-probe work with symbolic links under /dev/mapper as well
28111 as with real block devices. The Linux world seems to be (at best)
28112 in transition here, and GRUB shouldn't get caught in the middle.
28113
28114 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28115 /dev/mapper.
28116
28117 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28118
28119 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28120 input files (in which case exit zero).
28121
28122 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28123
28124 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28125 return NULL for various reasons even if it has a maximum-length
28126 buffer: for example, there might be a symlink loop, or the path
28127 might exceed PATH_MAX. If this happens, return NULL.
28128
28129 2010-05-27 Robert Millan <rmh@gnu.org>
28130
28131 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28132 partmap module to handle cross-partmap setups.
28133 Reported by Orestes Mas. Gràcies!
28134
28135 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28136
28137 * util/grub-mkrescue.in: Initialise override_dir rather than
28138 assuming that it's unset or empty in the environment.
28139
28140 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28141
28142 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28143 variable index into p_index to suppress a warning with -Wshadow.
28144
28145 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28146
28147 * INSTALL: Added flex >= 2.5.35 requirement.
28148
28149 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28150
28151 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28152
28153 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28154
28155 cmostest support.
28156
28157 * commands/i386/cmostest.c: New file.
28158 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28159 (cmostest_mod_SOURCES): New variable.
28160 (cmostest_mod_CFLAGS): Likewise.
28161 (cmostest_mod_LDFLAGS): Likewise.
28162 * conf/i386-pc.rmk: Likewise.
28163 * docs/grub.texi (Vendor power-on keys): New section.
28164 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28165 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28166 and GRUB_BUTTON_CMOS_ADDRESS.
28167 * util/grub.d/00_header.in: Handle powering-on by separate button.
28168
28169 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28170
28171 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28172 Removed drawing_scrollbar argument. All users updated
28173 Fixes #29792.
28174 Reported by Jo Shields
28175
28176 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28177
28178 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28179 buffer since gfxterm handles double repaint.
28180
28181 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28182
28183 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28184 * term/gfxterm.c (real_scroll): Likewise.
28185
28186 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28187
28188 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28189 before calling BIOS.
28190
28191 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28192
28193 * include/grub/i18n.h: Always enable grub_gettext.
28194
28195 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28196
28197 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28198 partition naming style.
28199
28200 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28201
28202 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28203 not the first option.
28204
28205 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28206
28207 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28208
28209 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28210
28211 * util/misc.c: Move inclusion of <limits.h> to ...
28212 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28213
28214 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28215
28216 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28217 Fix merge error in NetBSD code.
28218 (find_partition_start) [__NetBSD__]: Likewise.
28219
28220 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28221
28222 Fix grub-mkrescue usage unit testing.
28223
28224 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28225
28226 2010-05-18 Christian Franke <franke@computer.org>
28227
28228 * util/grub.d/10_windows.in: Use path names instead of
28229 drive letters to prevent warning from Cygwin 1.7.
28230 Add drivemap command to menuentry if needed.
28231
28232 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28233
28234 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28235 gnumach and gnumach.gz.
28236
28237 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28238
28239 * include/grub/i18n.h (gettext): Inline instead of using #define.
28240 (grub_gettext): Likewise.
28241 (_): Likewise.
28242
28243 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28244
28245 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28246 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28247 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28248 (main): Add a slash after pkglibdirroot.
28249
28250 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28251
28252 * util/grub-install.in: Add missing "in" keyword.
28253
28254 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28255
28256 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28257 Reported by: Seth Goldberg.
28258
28259 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28260
28261 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28262
28263 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28264
28265 * configure.ac: Check for Linux device-mapper support.
28266
28267 * util/hostdisk.c (device_is_mapped): New function.
28268 (find_partition_start): New function, partly broken out from
28269 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28270 device-mapper support added.
28271 (linux_find_partition): Use find_partition_start.
28272 (convert_system_partition_to_system_disk): Add `st' argument.
28273 Support Linux /dev/mapper/* devices if device-mapper support is
28274 available; only DM-RAID devices are understood at present.
28275 (find_system_device): Add `st' argument. Pass it to
28276 convert_system_partition_to_system_disk.
28277 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28278 find_system_device and convert_system_partition_to_system_disk. Use
28279 find_partition_start.
28280
28281 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28282 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28283 * util/deviceiter.c [__linux__]: Define MINOR.
28284 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28285 * util/mkdevicemap.c (grub_putchar): New function.
28286 (grub_getkey): New function.
28287 (grub_refresh): New function.
28288 (main): Set debug=all if -v -v is used.
28289
28290 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28291
28292 Fix build with non-GNU libcs.
28293
28294 * util/misc.c (canonicalize_file_name): Move to ...
28295 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28296 grub_make_system_path_relative_to_its_root.
28297
28298 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28299
28300 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28301 we handle finding grub-mkimage. Default to finding grub-mkimage in
28302 ${bindir} with program_transform_name applied, and provide a
28303 --grub-mkimage option to override this.
28304
28305 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28306
28307 Remove grub-mkisofs.
28308
28309 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28310 (grub_mkisofs_SOURCES): Removed.
28311 (grub_mkisofs_CFLAGS): Removed.
28312 * util/mkisofs/defaults.h: Removed.
28313 * util/mkisofs/eltorito.c: Likewise.
28314 * util/mkisofs/exclude.h: Likewise.
28315 * util/mkisofs/hash.c: Likewise.
28316 * util/mkisofs/include/: Likewise.
28317 * util/mkisofs/include/fctldefs.h: Likewise.
28318 * util/mkisofs/include/mconfig.h: Likewise.
28319 * util/mkisofs/include/prototyp.h: Likewise.
28320 * util/mkisofs/include/statdefs.h: Likewise.
28321 * util/mkisofs/iso9660.h: Likewise.
28322 * util/mkisofs/joliet.c: Likewise.
28323 * util/mkisofs/match.c: Likewise.
28324 * util/mkisofs/match.h: Likewise.
28325 * util/mkisofs/mkisofs.c: Likewise.
28326 * util/mkisofs/mkisofs.h: Likewise.
28327 * util/mkisofs/msdos_partition.h: Likewise.
28328 * util/mkisofs/multi.c: Likewise.
28329 * util/mkisofs/name.c: Likewise.
28330 * util/mkisofs/rock.c: Likewise.
28331 * util/mkisofs/tree.c: Likewise.
28332 * util/mkisofs/write.c: Likewise.
28333
28334 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28335
28336 Unify grub-mkimage accross platforms.
28337
28338 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28339 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28340 (grub_mkelfimage_SOURCES): Removed.
28341 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28342 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28343 (bin_UTILITIES): Add grub-mkimage.
28344 (grub_mkimage_SOURCES): New variable.
28345 (kernel_img_HEADERS): Remove machine/kernel.h.
28346 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28347 (pkglib_PROGRAMS): Add kernel.img.
28348 (kernel_img_HEADERS): Add machine/kernel.h.
28349 (kernel_img_FORMAT): Removed.
28350 (bin_UTILITIES): Remove grub-mkimage.
28351 (grub_mkimage_SOURCES): Removed.
28352 (grub_mkimage_CFLAGS): Likewise.
28353 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28354 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28355 (pkglib_PROGRAMS): Add kernel.img.
28356 (bin_UTILITIES): Remove grub-mkimage.
28357 (grub_mkimage_SOURCES): Removed.
28358 (grub_mkimage_CFLAGS): Likewise.
28359 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28360 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28361 (pkglib_PROGRAMS): Add kernel.img.
28362 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28363 (pkglib_PROGRAMS): Add kernel.img.
28364 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28365 (grub_mkimage_SOURCES): Removed.
28366 (grub_mkimage_CFLAGS): Likewise.
28367 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28368 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28369 (pkglib_PROGRAMS): Add kernel.img.
28370 (bin_UTILITIES): Remove grub-mkimage.
28371 (grub_mkimage_SOURCES): Removed.
28372 (grub_mkimage_CFLAGS): Likewise.
28373 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28374 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28375 (grub_mkimage_SOURCES): Removed.
28376 (grub_mkimage_CFLAGS): Likewise.
28377 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28378 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28379 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28380 (grub_pe32_optional_header): ... this.
28381 (grub_pe64_optional_header): ... and this. All users updated.
28382 (GRUB_PE32_PE32_MAGIC): Split into ..
28383 (GRUB_PE32_PE32_MAGIC): .. this.
28384 (GRUB_PE32_PE64_MAGIC): .. and this.
28385 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28386 * include/grub/elf.h (PT_GNU_STACK): New definition.
28387 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28388 * include/grub/i386/efi/kernel.h: Likewise.
28389 * include/grub/i386/kernel.h: Likewise.
28390 * include/grub/i386/pc/kernel.h: Likewise.
28391 * include/grub/i386/qemu/boot.h: Likewise.
28392 * include/grub/mips/kernel.h: Likewise.
28393 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28394 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28395 * include/grub/powerpc/kernel.h: Likewise.
28396 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28397 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28398 * include/grub/sparc64/kernel.h: Likewise.
28399 * include/grub/x86_64/efi/kernel.h: Likewise.
28400 * include/grub/x86_64/kernel.h: Likewise.
28401 * include/grub/offsets.h: New file.
28402 * include/grub/kernel.h (grub_module_info): Split into ...
28403 (grub_module_info32): ... this.
28404 (grub_module_info64): ... and this.
28405 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28406 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28407 (grub_boot_blocklist): Moved from here ...
28408 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28409 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28410 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28411 * include/grub/types.h (grub_target_to_host16): Removed.
28412 (grub_target_to_host32): Likewise.
28413 (grub_target_to_host64): Likewise.
28414 (grub_host_to_target16): Likewise.
28415 (grub_host_to_target32): Likewise.
28416 (grub_host_to_target64): Likewise.
28417 (grub_host_to_target_addr): Likewise.
28418
28419 Support grub-mkrescue for efi, coreboot and qemu.
28420
28421 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28422 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28423 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28424 * util/grub-mkrawimage.c: Moved from here ...
28425 * util/grub-mkimage.c: ... here. All users updated.
28426 (ALIGN_ADDR): Use image_target.
28427 (TARGET_NO_FIELD): New const.
28428 (image_target_desc): New type.
28429 (image_targets): New array.
28430 (grub_target_to_host64): Use image_target.
28431 (grub_target_to_host32): Likewise.
28432 (grub_target_to_host16): Likewise.
28433 (grub_host_to_target64): Likewise.
28434 (grub_host_to_target32): Likewise.
28435 (grub_host_to_target16): Likewise.
28436 (grub_host_to_target_addr): Likewise.
28437 (generate_image): Handle multiimage.
28438 (main): Require -O parameter. All users updated.
28439 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28440 util/efi/grub-mkimage.c
28441 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28442 New option --rom-directory.
28443 Use xorriso.
28444 * util/i386/efi/grub-mkimage.c: Removed.
28445 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28446 (grub_target_to_host32): Likewise.
28447 (grub_target_to_host64): Likewise.
28448 (grub_host_to_target16): Likewise.
28449 (grub_host_to_target32): Likewise.
28450 (grub_host_to_target64): Likewise.
28451 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28452 (grub_target_to_host32): Likewise.
28453 (grub_target_to_host64): Likewise.
28454 (grub_host_to_target16): Likewise.
28455 (grub_host_to_target32): Likewise.
28456 (grub_host_to_target64): Likewise.
28457
28458 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28459
28460 Source tree is reorganized for emu build.
28461
28462 * include/grub/util/console.h: Move from here...
28463 * include/grub/emu/console.h: ...to here.
28464 * include/grub/util/getroot.h: Move from here...
28465 * include/grub/emu/getroot.h: ...to here.
28466 * include/grub/util/hostdisk.h: Move from here...
28467 * include/grub/emu/hostdisk.h: ...to here.
28468 * util/console.c: Move from here...
28469 * kern/emu/console.c: ...to here.
28470 * util/getroot.c: Move from here...
28471 * kern/emu/getroot.c: ...to here.
28472 * util/grub-emu.c: Move from here...
28473 * kern/emu/main.c: ...to here.
28474 * util/hostdisk.c: Move from here...
28475 * kern/emu/hostdisk.c: ...to here.
28476 * util/hostfs.c: Move from here...
28477 * kern/emu/hostfs.c: ...to here.
28478 * util/mm.c: Move from here...
28479 * kern/emu/mm.c: ...to here.
28480 * util/pci.c: Move from here...
28481 * bus/emu/pci.c: ...to here.
28482 * util/sdl.c: Move from here...
28483 * video/emu/sdl.c: ...to here.
28484 * util/time.c: Move from here...
28485 * kern/emu/time.c: ...to here.
28486 * util/usb.c: Move from here...
28487 * bus/usb/emu/usb.c: ...to here.
28488
28489 * include/grub/emu/misc.h: New header for grub-emu functions.
28490 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28491
28492 * conf/any-emu.rmk: Rule updates for above renames.
28493 * conf/common.rmk: Likewise.
28494 * conf/i386-pc.rmk: Likewise.
28495 * conf/i386-qemu.rmk: Likewise.
28496 * conf/mips.rmk: Likewise.
28497 * conf/sparc64-ieee1275.rmk: Likewise.
28498 * conf/x86-efi.rmk: Likewise.
28499
28500 * disk/lvm.h: #include updates for above renames.
28501 * util/grub-mkrelpath.c: Likewise.
28502 * util/grub-probe.c: Likewise.
28503 * util/i386/pc/grub-setup.c: Likewise.
28504 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28505 * kern/emu/console.c: Likewise.
28506 * kern/emu/getroot.c: Likewise.
28507 * kern/emu/hostdisk.c: Likewise.
28508 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28509
28510 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28511 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28512 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28513 * util/misc.c: Remove grub-emu functions.
28514
28515 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28516
28517 Fix gfxmenu crash.
28518 Reported by: Thorsten Grützmacher.
28519
28520 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28521 timeout hook.
28522 (circprog_set_property): Register and unregister timeout hook.
28523 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28524 (label_destroy): Free template. and unregister hook.
28525 (label_set_state): New function.
28526 (label_set_property): Handle templates and hooks.
28527 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28528 timeout hook.
28529 (progress_bar_set_property): Register and unregister timeout hook.
28530 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28531 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28532 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28533 (update_timeout_visit): Removed.
28534 (update_timeouts): New function.
28535 (redraw_timeouts): Likewise.
28536 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28537 (grub_gfxmenu_clear_timeout): Likewise.
28538 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28539 (grub_gfxmenu_timeout_notify): Likewise.
28540 (grub_gfxmenu_timeout_notifications): New external variable.
28541 (grub_gfxmenu_timeout_register): New function.
28542 (grub_gfxmenu_timeout_unregister): Likewise.
28543
28544 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28545
28546 Transform (broken) vga terminal into (working) vga video driver.
28547
28548 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28549 video/i386/pc/vga.c.
28550 * include/grub/video.h (grub_video_driver_id):
28551 Add GRUB_VIDEO_DRIVER_VGA.
28552 * term/i386/pc/vga.c: Renamed to ...
28553 * video/i386/pc/vga.c: ...this
28554 (DEBUG_VGA): Removed.
28555 (CHAR_WIDTH): Likewise.
28556 (CHAR_HEIGHT): Likewise.
28557 (TEXT_WIDTH): Likewise.
28558 (TEXT_HEIGHT): Likewise.
28559 (DEFAULT_FG_COLOR): Likewise.
28560 (DEFAULT_BG_COLOR): Likewise.
28561 (colored_char): Likewise.
28562 (xpos): Likewise.
28563 (ypos): Likewise.
28564 (cursor_state): Likewise.
28565 (fg_color): Likewise.
28566 (bg_color): Likewise.
28567 (text_buf): Likewise.
28568 (page): Likewise.
28569 (font): Likewise.
28570 (framebuffer): New variable.
28571 (set_read_map): Disabled.
28572 (setup): New variable.
28573 (is_target): Likewise.
28574 (grub_vga_mod_init): Likewise.
28575 (grub_vga_mod_fini): Likewise.
28576 (check_vga_mem): Likewise.
28577 (write_char): Likewise.
28578 (write_cursor): Likewise.
28579 (scroll_up): Likewise.
28580 (grub_vga_putchar): Likewise.
28581 (grub_vga_getcharwidth): Likewise.
28582 (grub_vga_getwh): Likewise.
28583 (grub_vga_getxy): Likewise.
28584 (grub_vga_gotoxy): Likewise.
28585 (grub_vga_cls): Likewise.
28586 (grub_vga_setcolorstate): Likewise.
28587 (grub_vga_setcursor): Likewise.
28588 (grub_video_vga_init): New function.
28589 (grub_video_vga_setup): Likewise.
28590 (grub_video_vga_fini): Likewise.
28591 (update_target): Likewise.
28592 (grub_video_vga_blit_bitmap): Likewise.
28593 (grub_video_vga_blit_render_target): Likewise.
28594 (grub_video_vga_set_active_render_target): Likewise.
28595 (grub_video_vga_get_active_render_target): Likewise.
28596 (grub_video_vga_swap_buffers): Likewise.
28597 (grub_video_vga_set_palette): Likewise.
28598 (grub_video_vga_get_info_and_fini): Likewise.
28599 (grub_vga_term): Removed.
28600 (grub_video_vga_adapter): New variable.
28601 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28602 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28603
28604 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28605
28606 * video/readers/jpeg.c: Indented.
28607
28608 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28609
28610 Various jpeg cleanups.
28611
28612 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28613 (grub_jpeg_decode_quan_table): Use sizeof.
28614 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28615
28616 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28617
28618 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28619 tables. Ignore non-last ac bit.
28620 (grub_jpeg_decode_quan_table): Likewise.
28621
28622 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28623
28624 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28625 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28626 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28627 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28628 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28629 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28630
28631 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28632
28633 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28634 error.
28635
28636 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28637
28638 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28639
28640 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28641
28642 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28643 condition.
28644
28645 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28646
28647 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28648 part.
28649
28650 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28651
28652 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28653 pointers.
28654
28655 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28656
28657 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28658
28659 2010-05-01 Christian Franke <franke@computer.org>
28660
28661 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28662 Remove broken Cygwin path conversion.
28663 * util/misc.c: [__CYGWIN__] Add include and define.
28664 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28665 for Cygwin 1.7.
28666 (make_system_path_relative_to_its_root): Simplify loop, replace early
28667 return by break.
28668 [__CYGWIN__] Add conversion to win32 path.
28669 Include "/" case in trailing slash removal.
28670
28671 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28672
28673 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28674 Reported by: Seth Goldberg
28675
28676 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28677
28678 * commands/help.c (grub_cmd_help): Fix a typo.
28679 Reported by: Seth Goldberg
28680
28681 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28682
28683 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28684 name and add N_.
28685 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28686 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28687 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28688 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28689 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28690 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28691 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28692 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28693 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28694 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28695 * normal/context.c (GRUB_MOD_INIT): Likewise.
28696 * normal/main.c (GRUB_MOD_INIT): Likewise.
28697 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28698 * term/serial.c (GRUB_MOD_INIT): Likewise.
28699 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28700
28701 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28702
28703 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28704 extra == 0.
28705
28706 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28707
28708 * commands/iorw.c: New file.
28709 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28710 (iorw_mod_SOURCES): New variable.
28711 (iorw_mod_CFLAGS): Likewise.
28712 (iorw_mod_LDFLAGS): Likewise.
28713
28714 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28715
28716 Hotkey support
28717
28718 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28719 * normal/main.c (hotkey_aliases): New variable.
28720 (grub_normal_add_menu_entry): Parse "--hotkey".
28721 * normal/menu_text.c (run_menu): Handle hotkeys.
28722
28723 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28724
28725 * kern/i386/coreboot/init.c (grub_machine_init): Call
28726 grub_machine_mmap_init on qemu.
28727
28728 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28729
28730 * boot/i386/qemu/boot.S: Add a missing .code16.
28731
28732 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28733
28734 Use LBIO on coreboot.
28735
28736 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28737 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28738 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28739 New declaration.
28740 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28741 grub_machine_mmap_init on coreboot.
28742 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28743 GRUB_LINUXBIOS_MEMBER_LINK.
28744 (grub_machine_mmap_iterate): Fix declaration.
28745 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28746
28747 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28748
28749 Split coreboot and multiboot ports.
28750
28751 * conf/i386-multiboot.rmk: New file.
28752 * configure.ac: Add multiboot port.
28753 * include/grub/i386/multiboot/boot.h: New file.
28754 * include/grub/i386/multiboot/console.h: Likewise.
28755 * include/grub/i386/multiboot/init.h: Likewise.
28756 * include/grub/i386/multiboot/kernel.h: Likewise.
28757 * include/grub/i386/multiboot/loader.h: Likewise.
28758 * include/grub/i386/multiboot/memory.h: Likewise.
28759 * include/grub/i386/multiboot/serial.h: Likewise.
28760 * include/grub/i386/multiboot/time.h: Likewise.
28761 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28762 * loader/multiboot.c: Likewise.
28763 * loader/multiboot_mbi2.c: Likewise.
28764 * util/grub-mkrescue.in: Generate multiboot rescue.
28765
28766 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28767
28768 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28769
28770 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28771
28772 Merge handling of input and output terminals. Fix a hang.
28773
28774 * commands/terminal.c (abstract_terminal): New struct.
28775 (handle_command): New function. Based on grub_cmd_terminal_input.
28776 (grub_cmd_terminal_input): Use handle_command.
28777 (grub_cmd_terminal_output): Use handle_command.
28778
28779 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28780
28781 Fix comment handling.
28782
28783 * tests/grub_script_comments.in: New testcase.
28784 * conf/tests.rmk: Rules for new testcase.
28785 * script/yylex.l: Updated flex rules.
28786
28787 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28788
28789 * docs/grub.texi (play): Document that zero pitches produce rests.
28790 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28791 if argc is 1.
28792
28793 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28794
28795 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28796 autogen issues.
28797
28798 2010-04-26 Christian Franke <franke@computer.org>
28799
28800 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28801 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28802 (grub_get_prefix): Remove function.
28803 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28804 make_system_path_relative_to_its_root ().
28805 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28806
28807 2010-04-24 Christian Franke <franke@computer.org>
28808
28809 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28810 (kernel_img_LDFLAGS): Remove -static-libgcc.
28811
28812 2010-04-24 Christian Franke <franke@computer.org>
28813
28814 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28815 and CHECK_END_SYMBOL if grub-emu is built.
28816 Unset TARGET_OBJ2ELF if grub-emu is built
28817 without module support.
28818
28819 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28820
28821 Nilfs2 support.
28822
28823 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28824 (grub_fstest_SOURCES): Likewise.
28825 (pkglib_MODULES): Add nilfs2.mod.
28826 (nilfs2_mod_SOURCES): New variable.
28827 (nilfs2_mod_CFLAGS): Likewise.
28828 (nilfs2_mod_LDFLAGS): Likewise.
28829 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28830 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28831 * fs/nilfs2.c: New file.
28832
28833 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28836 is not supported.
28837
28838 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28839
28840 Add grub-mkconfig support for NetBSD.
28841
28842 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28843 * util/grub-mkconfig.in: export new NetBSD specific variables.
28844 * po/POTFILES-shell: added 10_netbsd.in.
28845 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28846
28847 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28848
28849 Fix emu build with grub-emu-pci and grub-emu-modules.
28850
28851 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28852 functions.
28853 * include/grub/libpciaccess.h: New file.
28854 * conf/any-emu.rmk: Update kernel headers for emu build.
28855
28856 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28859
28860 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28861
28862 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28863
28864 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28865
28866 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28867 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28868 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28869 util/ieee1275/ofpath.c.
28870 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28871 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28872 * include/grub/sparc64/ieee1275/boot.h
28873 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28874 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28875 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28876 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28877 const char *.
28878 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28879 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28880 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28881 install.
28882
28883 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28884
28885 * util/grub-mkconfig.in: Corrected two == equality tests.
28886 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28887 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28888 expect a number appended to it.
28889 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28890 expects a number appended to it.
28891
28892 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28893
28894 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28895
28896 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28897
28898 * util/hostdisk.c (make_device_name): Change to new partition naming.
28899
28900 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28901
28902 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28903
28904 2010-04-17 Christian Franke <franke@computer.org>
28905
28906 * Makefile.in: Add missing localedir setting.
28907
28908 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28909
28910 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28911 mistake in r2156. Noticed by Anthony Fok.
28912
28913 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28914 @localedir@.
28915 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28916
28917 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28918
28919 Fix a spurious, uninitialized variable warning.
28920
28921 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28922 Initialize variable, shdr.
28923 (grub_freebsd_load_elfmodule): Likewise.
28924 (grub_freebsd_load_elf_meta): Likewise.
28925
28926 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28927
28928 Fix for escaped dollar in double quoted strings.
28929
28930 * script/yylex.l: Updated flex rules.
28931 * conf/tests.rmk: Rule for new testcase.
28932 * tests/grub_script_dollar.in: New testcase.
28933
28934 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28935 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28936
28937 Enclose all translated strings in grub.cfg in single quotes, and
28938 escape them appropriately (Ubuntu bug #552921).
28939
28940 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28941 * util/grub.d/10_hurd.in: Use it.
28942 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28943 * util/grub.d/10_linux.in (linux_entry): Likewise.
28944
28945 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28946
28947 Fix cygwin compilation.
28948
28949 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28950 * include/grub/misc.h (__register_frame_info)
28951 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28952 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28953 * kern/misc.c (__register_frame_info)
28954 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28955 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28956
28957 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28958
28959 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28960
28961 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28962
28963 Unify libgcc processing.
28964
28965 * Makefile.in (kernel_img_LDFLAGS): New variable.
28966 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28967 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28968 overwriting.
28969 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28970 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28971 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28972 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28973 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28974 overwriting. Remove -lgcc and -static-libgcc
28975 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28976 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28977 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28978 (kernel_img_LDFLAGS): Append instead of overwriting.
28979 Remove -lgcc and -static-libgcc
28980 * conf/sparc64-ieee1275.rmk: Likewise.
28981 * include/grub/powerpc/libgcc.h: Move to ...
28982 * include/grub/libgcc.h: .. this.
28983 * include/grub/libgcc.h: Don't export most of the function on x86.
28984 (__bswapsi2): New export.
28985 (__bswapdi2): Likewise.
28986 * include/grub/mips/libgcc.h: Removed.
28987 * include/grub/sparc64/libgcc.h: Likewise.
28988
28989 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28990
28991 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28992 disk_info_msg (conflicts with gettexting into languages with cases).
28993
28994 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28995
28996 Add grub-probe support for NetBSD.
28997
28998 * util/getroot.c (find_root_device): Convert block device to
28999 character device on NetBSD.
29000 * util/probe.c (probe): Require character device on NetBSD.
29001 * util/hostdisk.c: NetBSD specific headers.
29002 (configure_device_driver): new function to tune device driver
29003 parameters (currently only for NetBSD floppy driver).
29004 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29005 via disklabel ioctl).
29006 (open_device): call configure_device_driver on NetBSD.
29007 (convert_system_partition_to_system_disk): NetBSD specific code.
29008 (device_is_wholedisk): Likewise.
29009 (grub_util_biosdisk_get_grub_dev): Likewise.
29010 (make_device_name): Fixed a typo in bsd_part_str.
29011 * configure.ac: check for opendisk() and getrawpartition() on
29012 NetBSD and set LIBUTIL.
29013 * Makefile.in: add LIBUTIL to LIBS.
29014
29015 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29016
29017 Documentation fix.
29018
29019 * util/grub-script-check.c: Better help message.
29020
29021 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29022
29023 Fix FreeBSD build.
29024
29025 * configure.ac: Flex version check.
29026 * conf/common.rmk: Add -Wno-error to sh.mod.
29027 * script/yylex.l: Remove all #pragma.
29028
29029 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29030
29031 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29032 prototype.
29033 Reported by: Seth Goldberg.
29034
29035 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29036
29037 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29038 Rename "module" to "module2".
29039 Reported by: Seth Goldberg.
29040
29041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29042
29043 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29044 EXPORT_FUNC.
29045 Reported by: Seth Goldberg.
29046
29047 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 * lib/posix_wrap/locale.h: Add missing file.
29050 Reported by: Seth Goldberg.
29051
29052 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29053
29054 grub-emu module load support.
29055
29056 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29057 NO_DYNAMIC_MODULES switched to this.
29058 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29059 (CFLAGS): Likewise.
29060 * conf/any-emu.rmk: Generate symlist.
29061 (kernel_img_HEADERS): Add util/datetime.h.
29062 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29063 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29064 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29065 kern/$(target_cpu)/cache.S.
29066 * configure.ac (grub-emu-modules): New option.
29067 * genmk.rb: Handle multiple source lists.
29068 * include/grub/sdl.h: New file.
29069 * include/grub/libusb.h: Likewise.
29070 * util/grub-emu.c (main): Hanle (host) root.
29071 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29072 GRUB_ERR_UNKNOWN_DEVICE.
29073 * util/misc.c: Move mm functions to ...
29074 * util/mm.c: ... here. All users updated.
29075
29076 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29077
29078 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29079 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29080 missing files.
29081 (maintainer-clean): Remove libgcrypt-grub.
29082
29083 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29084
29085 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29086
29087 2010-04-09 EFI Coder <eficoder@hotmail.com>
29088
29089 * normal/menu_text.c (print_message): Clean up the message and show
29090 the Fn information when on EFI
29091 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29092
29093 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29094
29095 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29096 All users updated.
29097 * normal/crypto.c (read_crypto_list): Likewise.
29098 * normal/dyncmd.c (read_command_list): Likewise.
29099 * normal/term.c (read_terminal_list): Likewise.
29100 * normal/main.c (read_lists): Use explicit prefix.
29101 (read_lists_hook): Use read_lists.
29102 (grub_normal_execute): Likewise.
29103
29104 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29105
29106 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29107 Reported by: Thomas Schmitt.
29108 Add -no-emul-boot to grub-mkisofs parameters.
29109
29110 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29111
29112 * font/font.c: Indented.
29113
29114 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29115
29116 Elif support to GRUB script (by Deepak Vankadaru).
29117
29118 * tests/grub_script_if.in: New testcase.
29119 * conf/tests.rmk: Rule for new testcase.
29120 * script/parser.y: Grammar rules for elif.
29121
29122 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29123
29124 While and until loops support to GRUB script.
29125
29126 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29127 (grub_script_create_cmdwhile): New function prototype.
29128 (grub_script_execute_cmdwhile): New function prototype.
29129 * script/execute.c (grub_script_execute_cmdwhile): New function.
29130 * script/parser.y (command): New commands.
29131 (whilecmd): New grammar rule.
29132 (untilcmd): New grammar rule.
29133 * script/script.c (grub_script_create_cmdwhile): New function.
29134 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29135 function.
29136
29137 * tests/grub_script_while1.in: New testcase.
29138 * conf/tests.rmk: Rule for new testcase.
29139
29140 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29141
29142 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29143 as *.jpg.
29144
29145 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29146
29147 GRUB_BACKGROUND support.
29148
29149 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29150 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29151
29152 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29153
29154 Load fonts and modules for gfxmenu in grub-mkconfig.
29155 Idea by: Mario Vazquez
29156
29157 * util/grub.d/00_header.in: Load pf2 and image modules.
29158
29159 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 grub-mkconfig multiple terminal support.
29162
29163 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29164 * util/grub.d/00_header.in: Likewise.
29165
29166 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29167
29168 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29169 we use cd $(srcdir).
29170
29171 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29172
29173 * util/grub.d/10_linux.in: Only use the first word of
29174 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29175 spaces in GRUB_DISTRIBUTOR.
29176 * util/grub.d/10_kfreebsd.in: Likewise.
29177 * util/grub.d/10_hurd.in: Likewise.
29178
29179 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29180
29181 Fix unit testing framework for Qemu 0.12.
29182
29183 * tests/util/grub-shell.in: Remove -serial stdio option.
29184
29185 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29186
29187 POSIX header file wrappers.
29188
29189 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29190 equivalents.
29191 * lib/posix_wrap/ctype.h: Likewise.
29192 * lib/posix_wrap/errno.h: Likewise.
29193 * lib/posix_wrap/langinfo.h: Likewise.
29194 * lib/posix_wrap/limits.h: Likewise.
29195 * lib/posix_wrap/localcharset.h: Likewise.
29196 * lib/posix_wrap/stdint.h: Likewise.
29197 * lib/posix_wrap/stdio.h: Likewise.
29198 * lib/posix_wrap/stdlib.h: Likewise.
29199 * lib/posix_wrap/string.h: Likewise.
29200 * lib/posix_wrap/sys/types.h: Likewise.
29201 * lib/posix_wrap/unistd.h: Likewise.
29202 * lib/posix_wrap/wchar.h: Likewise.
29203 * lib/posix_wrap/wctype.h: Likewise.
29204 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29205 (grub_script.yy.h): Likewise.
29206 * script/yylex.l: Remove POSIX emulation #defines.
29207 * Makefile.in (POSIX_CFLAGS): New variable.
29208 (GNULIB_UTIL_CFLAGS): Likewise.
29209
29210 Regexp support.
29211
29212 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29213 (regexp_mod_SOURCES): New variable.
29214 (regexp_mod_CFLAGS): Likewise.
29215 (regexp_mod_LDFLAGS): Likewise.
29216 * commands/regexp.c: New file.
29217 * gnulib/regcomp.c: New file. Imported from gnulib.
29218 * gnulib/regex.c: Likewise.
29219 * gnulib/regex_internal.c: Likewise.
29220 * gnulib/regex_internal.h: Likewise.
29221 * gnulib/regexec.c: Likewise.
29222 * gnulib/regex.h: Likewise.
29223
29224 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29225
29226 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29227 unsupported video mode types.
29228
29229 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29230
29231 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29232
29233 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29234
29235 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29236 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29237
29238 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29239
29240 Remove unused grub_vga_get_font.
29241
29242 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29243 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29244
29245 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29246
29247 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29248 * include/grub/misc.h: Likewise.
29249
29250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29251
29252 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29253 for which failure is fatal.
29254
29255 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29256
29257 * util/grub-install.in: Use mkdir -p to create grub directory.
29258 * util/i386/efi/grub-install.in: Likewise.
29259 * util/ieee1275/grub-install.in: Likewise.
29260
29261 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29262
29263 * Makefile.in (LEX): new variable.
29264
29265 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29266
29267 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29268 `=' and added double quotes on operands of this equality test.
29269
29270 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29271
29272 * Makefile.in (uninstall): Remove a leftover debug echo.
29273 Reported by: Grégoire Sutre
29274
29275 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29276
29277 MIPS multiboot2 support.
29278
29279 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29280 (multiboot2_mod_SOURCES): New variable.
29281 (multiboot2_mod_CFLAGS): Likewise.
29282 (multiboot2_mod_LDFLAGS): Likewise.
29283 (multiboot2_mod_ASFLAGS): Likewise.
29284 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29285 definition.
29286 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29287 (MULTIBOOT_MBI_REGISTER): Likewise.
29288 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29289 (MULTIBOOT_ELF32_MACHINE): Likewise.
29290 (MULTIBOOT_ELF64_MACHINE): Likewise.
29291 * include/grub/mips/multiboot.h: New file.
29292 * include/grub/video.h (grub_video_driver_id): New type
29293 GRUB_VIDEO_DRIVER_SM712.
29294 (grub_video_get_info_and_fini): Export.
29295 (grub_video_get_palette): Likewise.
29296 (grub_video_get_driver_id): Likewise.
29297 * include/multiboot2.h: Resynced with spec.
29298 * loader/i386/multiboot.c: Moved from here ...
29299 * loader/multiboot.c: ... here. All users updated.
29300 (grub_multiboot_boot): Use platform-specific macros.
29301 * loader/i386/multiboot_elfxx.c: Moved from here ...
29302 * loader/multiboot_elfxx.c: ... here. All users updated.
29303 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29304 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29305 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29306
29307 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29308
29309 Import gnulib argp module.
29310
29311 * gnulib/argp-ba.c: New file.
29312 * gnulib/argp-eexst.c: Likewise.
29313 * gnulib/argp-fmtstream.c: Likewise.
29314 * gnulib/argp-fmtstream.h: Likewise.
29315 * gnulib/argp-fs-xinl.c: Likewise.
29316 * gnulib/argp-help.c: Likewise.
29317 * gnulib/argp-namefrob.h: Likewise.
29318 * gnulib/argp-parse.c: Likewise.
29319 * gnulib/argp-pin.c: Likewise.
29320 * gnulib/argp-pv.c: Likewise.
29321 * gnulib/argp-pvh.c: Likewise.
29322 * gnulib/argp-version-etc.c: Likewise.
29323 * gnulib/argp-version-etc.h: Likewise.
29324 * gnulib/argp-xinl.c: Likewise.
29325 * gnulib/argp.h: Likewise.
29326
29327 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29328
29329 * kern/device.c (grub_device_iterate): Clear errors after failed
29330 opening device.
29331
29332 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29333
29334 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29335 returned by firmware.
29336
29337 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29338
29339 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29340 compilation on coreboot and qemu
29341
29342 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29343
29344 * include/multiboot2.h: Resync with spec.
29345
29346 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29347
29348 Multiboot2 tag support
29349
29350 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29351 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29352 Remove loader/multiboot_loader.c.
29353 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29354 (grub_multiboot2_real_boot): Likewise.
29355 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29356 (grub_get_multiboot_mmap_count): New proto.
29357 (grub_fill_multiboot_mmap): Likewise.
29358 (grub_multiboot_set_video_mode): Likewise.
29359 (grub_multiboot_set_console): Likewise.
29360 (grub_multiboot_load): Likewise.
29361 (grub_multiboot_load_elf): Likewise.
29362 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29363 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29364 * include/multiboot.h: Resynced with specification.
29365 * include/multiboot2.h: Resynced with specification.
29366 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29367 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29368 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29369 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29370 users updated.
29371 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29372 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29373 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29374 Removed.
29375 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29376 Moved from here...
29377 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29378 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29379 Moved from here...
29380 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29381 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29382 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29383 All users updated.
29384 * loader/i386/multiboot_mbi2.c: New file.
29385
29386 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29387
29388 Resync with gnulib.
29389
29390 * Makefile.in (GNULIB_CFLAGS): New variable.
29391 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29392 (grub_script_check_CFLAGS): New variable.
29393 * gnulib/alloca.h: Resync with gnulib.
29394 * gnulib/error.c: Likewise.
29395 * gnulib/error.h: Likewise.
29396 * gnulib/fnmatch.c: Likewise.
29397 * gnulib/fnmatch_loop.c: Likewise.
29398 * gnulib/getdelim.c: Likewise.
29399 * gnulib/getline.c: Likewise.
29400 * gnulib/getopt.c: Likewise.
29401 * gnulib/getopt1.c: Likewise.
29402 * gnulib/getopt_int.h: Likewise.
29403 * gnulib/gettext.h: Likewise.
29404 * gnulib/progname.c: Likewise.
29405 * gnulib/progname.h: Likewise.
29406
29407 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29408
29409 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29410 which is the case with --disabled-nls.
29411
29412 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29413 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29414 * util/misc.c: Likewise.
29415 * util/mkisofs/mkisofs.c: Likewise.
29416 * util/mkisofs/mkisofs.h: Likewise.
29417
29418 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29419
29420 Simplify Apple CC support.
29421
29422 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29423 Add 0 byte at the end not to have a symbol with empty target.
29424 * mmap/i386/pc/mmap_helper.S: Likewise.
29425 * genmk.rb: Ignore errors 2030 and 2050.
29426 * kern/i386/pc/startup.S: Use LOCAL when possible.
29427
29428 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29429
29430 Testcase and the fix for final semicolon on cmdline.
29431
29432 * tests/grub_script_final_semicolon.in: New testcase.
29433 * conf/tests.rmk: Rules for the new testcase.
29434 * script/parser.y: Grammar fix.
29435
29436 2010-03-26 BVK Chaitanya <bvk@localhost>
29437
29438 Blank lines testcase for GRUB script.
29439
29440 * tests/grub_script_blanklines.in: New testcase.
29441 * conf/tests.rmk: Rules for the new testcase.
29442
29443 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29444
29445 Don't use __FILE__.
29446
29447 * genmk.rb: Add -DGRUB_FILE to all C targets.
29448 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29449 * include/grub/list.h: Likewise.
29450 * include/grub/misc.h: Likewise.
29451 * include/grub/mm.h: Likewise.
29452 * include/grub/test.h: Likewise.
29453 * kern/mm.c: Likewise.
29454 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29455
29456 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29457
29458 Sunpc partitions support.
29459
29460 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29461 (grub_fstest_SOURCES): Likewise.
29462 (pkglib_MODULES): Add part_sunpc.mod.
29463 (part_sunpc_mod_SOURCES): New variable.
29464 (part_sunpc_mod_CFLAGS): Likewise.
29465 (part_sunpc_mod_LDFLAGS): Likewise.
29466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29467 * partmap/sunpc.c: New file.
29468
29469 2010-03-26 BVK Chaitanya <bvk@localhost>
29470
29471 For loop support to GRUB script.
29472
29473 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29474 (grub_script_create_cmdfor): New function prototype.
29475 (grub_script_execute_cmdfor): New function prototype.
29476 * script/execute.c (grub_script_execute_cmdfor): New function.
29477 * script/parser.y (command): New for command.
29478 (forcmd): New grammar rule.
29479 * script/script.c (grub_script_create_cmdfor): New function.
29480 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29481 function.
29482 * tests/grub_script_for1.in: New testcase.
29483 * conf/tests.rmk: Rules for new testcase.
29484
29485 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29486
29487 Nested partitions
29488
29489 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29490 'partition' is NULL, grub_partition_get_start already does that.
29491 * commands/loadenv.c (check_blocklists): Likewise.
29492 (write_blocklists): Likewise.
29493 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29494 (grub_fstest_SOURCES): Likewise.
29495 (pkglib_MODULES): Add part_bsd.mod.
29496 (part_bsd_mod_SOURCES): New variable.
29497 (part_bsd_mod_CFLAGS): Likewise.
29498 (part_bsd_mod_LDFLAGS): Likewise.
29499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29500 (grub_emu_SOURCES): Likewise.
29501 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29502 * include/grub/bsdlabel.h: New file.
29503 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29504 'get_name'.
29505 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29506 (grub_partition_map_list): New variable.
29507 (grub_partition_map_register): Inline.
29508 (grub_partition_map_unregister): Likewise.
29509 (FOR_PARTITION_MAPS): New macro.
29510 (grub_partition_map_iterate): Removed.
29511 (grub_partition_get_start): Handle nested partitions.
29512 * include/grub/msdos_partition.h: Remove bsd-related entries.
29513 (grub_pc_partition): Remove.
29514 * kern/disk.c (grub_disk_close): Free partition data.
29515 (grub_disk_adjust_range): Handle nested partitions.
29516 * kern/partition.c (grub_partition_map_probe): New function.
29517 (grub_partition_probe): Parse name to number, handle subpartitions.
29518 (get_partmap): New function.
29519 (grub_partition_iterate): Handle subpartitions.
29520 (grub_partition_get_name): Likewise.
29521 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29522 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29523 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29524 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29525 Set 'number'.
29526 (acorn_partition_map_probe): Remove.
29527 (acorn_partition_map_get_name): Likewise.
29528 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29529 Set 'number'.
29530 Set 'index' to 0 since there can be only one partition entry per sector.
29531 (amiga_partition_map_probe): Remove.
29532 (amiga_partition_map_get_name): Likewise.
29533 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29534 Set 'number'.
29535 Set 'offset' and 'index' to real positions of partitions.
29536 (apple_partition_map_probe): Remove.
29537 (apple_partition_map_get_name): Likewise.
29538 * partmap/bsdlabel.c: New file.
29539 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29540 Set 'number'.
29541 Allocate 'data' so it can be correctly freed.
29542 Set 'index' to offset inside sector.
29543 (gpt_partition_map_probe): Remove.
29544 (gpt_partition_map_get_name): Likewise.
29545 * partmap/msdos.c (grub_partition_parse): Remove.
29546 (pc_partition_map_iterate): Don't force raw access.
29547 Set 'number'.
29548 Make 'ext_offset' a local variable.
29549 (pc_partition_map_probe): Remove.
29550 (pc_partition_map_get_name): Remove.
29551 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29552 Set 'number'.
29553 (sun_partition_map_probe): Remove.
29554 (sun_partition_map_get_name): Likewise.
29555 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29556 (grub_pcpart_type): Likewise.
29557 * util/hostdisk.c (open_device): Handle new numbering scheme.
29558 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29559 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29560 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29561 * util/grub-install.in: Insert all subpartition modules.
29562 * util/ieee1275/grub-install.in: Likewise.
29563
29564 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29565
29566 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29567 grammar.
29568
29569 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29570
29571 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29572
29573 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29574
29575 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29576 match where 'make install' puts them.
29577 * util/i386/efi/grub-install.in: Likewise.
29578
29579 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29580
29581 * .bzrignore: Add gentrigtables, grub-script-check,
29582 grub_script_check_init.c, grub_script_check_init.h, and
29583 trigtables.c.
29584
29585 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29586
29587 * kern/parser.c: Indented.
29588
29589 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29590
29591 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29592
29593 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29594
29595 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29596 alpha_mask_size == 0 case.
29597
29598 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29599
29600 GRUB shell lexer and parser improvements.
29601
29602 * conf/any-emu.rmk: Build rule updates.
29603 * conf/common.rmk: Likewise.
29604 * conf/i386-coreboot.rmk: Likewise.
29605 * conf/i386-efi.rmk: Likewise.
29606 * conf/i386-ieee1275.rmk: Likewise.
29607 * conf/i386-pc.rmk: Likewise.
29608 * conf/powerpc-ieee1275.rmk: Likewise.
29609 * conf/x86_64-efi.rmk: Likewise.
29610
29611 * configure.ac: Configure check for flex.
29612
29613 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29614 types.
29615 (grub_lexer_param): Struct member updates.
29616 (grub_parser_param): Likewise.
29617 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29618 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29619 (grub_script_lexer_init): Prototype update.
29620 (grub_script_lexer_record_start): Likewise.
29621 (grub_script_lexer_record_stop): Likewise.
29622 (grub_script_lexer_yywrap): New function prototype.
29623 (grub_script_lexer_fini): Likewise.
29624 (grub_script_execute_argument_to_string): Removed by...
29625 (grub_script_execute_argument_to_argv): ...better version.
29626
29627 * script/execute.c (ROUND_UPTO): New macro.
29628 (grub_script_execute_cmdline): Out of memory fixes.
29629 (grub_script_execute_menuentry): Likewise.
29630 (grub_script_execute_argument_to_string): Removed. Update all
29631 users by...
29632 (grub_script_execute_argument_to_argv): ...better version.
29633 * script/function.c (grub_script_function_create): Use
29634 grub_script_execute_argument_to_argv instead of
29635 grub_script_execute_argument_to_string.
29636
29637 * script/lexer.c (check_varstate): Removed.
29638 (check_textstate): Removed.
29639 (grub_script_lexer_record_start): Likewise.
29640 (grub_script_lexer_record_stop): Likewise.
29641 (recordchar): Replaced with...
29642 (grub_script_lexer_record): ...new function.
29643 (nextchar): Removed.
29644 (grub_script_lexer_init): Rewritten.
29645 (grub_script_yylex): Rewritten.
29646 (append_newline): New function.
29647 (grub_script_lexer_yywrap): New function.
29648 (grub_script_lexer_fini): New function.
29649 (grub_script_yyerror): Sets error flag.
29650
29651 * script/yylex.l: New file.
29652 (grub_lexer_yyfree): Wrapper for flex yyffre.
29653 (grub_lexer_yyalloc): Likewise.
29654 (grub_lexer_yyrealloc): Likewise.
29655 * script/parser.y: Refactored.
29656
29657 * script/script.c (grub_script_arg_add): Out of memory fixes.
29658 (grub_script_add_arglist): Likewise.
29659 (grub_script_create_cmdline): Likewise.
29660 (grub_script_create_cmdmenu): Likewise.
29661 (grub_script_add_cmd): Likewise.
29662 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29663 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29664 unnecessary code.
29665
29666 * tests/grub_script_echo1.in: New testcase.
29667 * tests/grub_script_vars1.in: New testcase.
29668 * tests/grub_script_echo_keywords.in: New testcase.
29669
29670 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29671
29672 Remove some redundancy in build system.
29673
29674 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29675 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29676 (TARGET_LDFLAGS): Add -nostdlib.
29677 (TARGET_IMG_LDFLAGS): Likewise.
29678 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29679 anything since mmap isn't available.
29680 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29681 Add util/time.c.
29682 (pkglib_MODULES): Remove reboot.mod.
29683 (reboot_mod_SOURCES): Removed.
29684 (reboot_mod_CFLAGS): Likewise.
29685 (reboot_mod_LDFLAGS): Likewise.
29686 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29687 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29688 (DEFSYMFILES): Add kernel_syms.lst.
29689 (kernel_img_HEADERS): Add common headers.
29690 (symlist.c): New target.
29691 (kernel_syms.lst): Likewise.
29692 (pkglib_MODULES): Add memdisk.mod.
29693 (memdisk_mod_SOURCES): New variable.
29694 (memdisk_mod_CFLAGS): Likewise.
29695 (memdisk_mod_LDFLAGS): Likewise.
29696 (pkglib_MODULES): Add reboot.mod.
29697 (reboot_mod_SOURCES): New variable.
29698 (reboot_mod_CFLAGS): Likewise.
29699 (reboot_mod_LDFLAGS): Likewise.
29700 (pkglib_MODULES): Add date.mod.
29701 (date_mod_SOURCES): New variable.
29702 (date_mod_CFLAGS): Likewise.
29703 (date_mod_LDFLAGS): Likewise.
29704 (pkglib_MODULES): Add datehook.mod.
29705 (datehook_mod_SOURCES): New variable.
29706 (datehook_mod_CFLAGS): Likewise.
29707 (datehook_mod_LDFLAGS): Likewise.
29708 (pkglib_MODULES): Add lsmmap.mod.
29709 (lsmmap_mod_SOURCES): New variable.
29710 (lsmmap_mod_CFLAGS): Likewise.
29711 (lsmmap_mod_LDFLAGS): Likewise.
29712 (pkglib_MODULES): Add boot.mod.
29713 (boot_mod_SOURCES): New variable.
29714 (boot_mod_CFLAGS): Likewise.
29715 (boot_mod_LDFLAGS): Likewise.
29716 * conf/i386-coreboot.rmk: Removed redundant parts.
29717 * conf/i386-ieee1275.rmk: Likewise.
29718 * conf/i386-pc.rmk: Likewise.
29719 * conf/mips-yeeloong.rmk: Likewise.
29720 * conf/mips.rmk: Likewise.
29721 * conf/powerpc-ieee1275.rmk: Likewise.
29722 * conf/sparc64-ieee1275.rmk: Likewise.
29723 * conf/x86_64-efi.rmk: Likewise.
29724 * conf/i386-coreboot.rmk: Moved qemu parts ..
29725 * conf/i386-qemu.rmk: ... here
29726 * conf/i386-efi.rmk: Moved common parts to...
29727 * conf/x86-efi.rmk: ... here.
29728 * conf/i386.rmk: Added modules common to all x86 variants.
29729 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29730 * disk/memdisk.c: Remove grub/machine/kernel.h.
29731 * gensymlist.sh.in: Include symbol.h.
29732 * hook/datehook.c: Correct module name.
29733 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29734 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29735 * include/grub/i386/efi/serial.h: New file.
29736 * include/grub/x86_64/efi/serial.h: Likewise.
29737 * util/time.c: Likewise.
29738 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29739
29740 2010-03-14 Colin King <colin.king@ubuntu.com>
29741 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29742
29743 Shrink the pre-partition-table part of boot.img by eight bytes.
29744
29745 * boot/i386/pc/boot.S (ERR): New macro.
29746 (chs_mode): Use ERR.
29747 (geometry_error): Likewise.
29748 (hd_probe_error): Remove. This is only used once, so we wrwite
29749 it inline instead.
29750 (read_error): Instead of printing read_error_string, just set up
29751 %si and fall through to ...
29752 (error_message): ... this new function, also used by ERR.
29753
29754 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29755
29756 Speed up consecutive hostdisk operations on the same device.
29757
29758 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29759 (grub_util_biosdisk_open): Initialise disk->data.
29760 (struct linux_partition_cache): New structure.
29761 (linux_find_partition): Cache partition start positions; these are
29762 expensive to compute on every read and write.
29763 (open_device): Cache open file descriptor in disk->data, so that we
29764 don't have to reopen it and flush the buffer cache for consecutive
29765 operations on the same device.
29766 (grub_util_biosdisk_close): New function.
29767 (grub_util_biosdisk_dev): Set `close' member.
29768
29769 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29770 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29771 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29772 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29773 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29774
29775 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29776
29777 Compile parts of grub-emu as modules.
29778
29779 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29780 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29781 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29782 (all-local): Add $(GRUB_EMU).
29783 (install-local): Install $(GRUB_EMU).
29784 (uninstall): Uninstall $(GRUB_EMU).
29785 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29786 * kern/dl.c: Likewise.
29787 * commands/sleep.c: Not include machine/time.h.
29788 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29789 (COMMON_CFLAGS): Likewise.
29790 (sbin_UTILITIES): Remove grub-emu.
29791 (grub_emu_SOURCES): Removed.
29792 (kernel_img_RELOCATABLE): New variable.
29793 (pkglib_PROGRAMS): Add kernel.img.
29794 (kernel_img_SOURCES): New variable
29795 (kernel_img_CFLAGS): Likewise.
29796 (kernel_img_LDFLAGS): Likewise.
29797 (TARGET_NO_STRIP): Likewise.
29798 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29799 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29800 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29801 (grub-emu): New target.
29802 (GRUB_EMU): New variable.
29803 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29804 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29805 * loader/xnu.c: Likewise.
29806 * include/grub/pci.h: Likewise.
29807 * genemuinit.sh: New file.
29808 * genemuinitheader.sh: Likewise.
29809 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29810 Support TARGET_NO_DYNAMIC_MODULES.
29811 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29812 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29813 * disk/loopback.c: Likewise.
29814 * font/font_cmd.c: Likewise.
29815 * partmap/acorn.c: Likewise.
29816 * partmap/amiga.c: Likewise.
29817 * partmap/apple.c: Likewise.
29818 * partmap/gpt.c: Likewise.
29819 * partmap/msdos.c: Likewise.
29820 * partmap/sun.c: Likewise.
29821 * parttool/msdospart.c: Likewise.
29822 * term/gfxterm.c: Likewise.
29823 * video/bitmap.c: Likewise.
29824 * video/readers/jpeg.c: Likewise.
29825 * video/readers/png.c: Likewise.
29826 * video/readers/tga.c: Likewise.
29827 * video/video.c: Likewise.
29828 * util/grub-emu.c (read_command_list): Removed.
29829 (main): Don't call util_init_nls.
29830 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29831 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29832
29833 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29834
29835 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29836 date.mod, datehook.mod.
29837 (datetime_mod_SOURCES): New variable.
29838 (datetime_mod_CFLAGS): Likewise.
29839 (datetime_mod_LDFLAGS): Likewise.
29840 (date_mod_SOURCES): Likewise.
29841 (date_mod_CFLAGS): Likewise.
29842 (date_mod_LDFLAGS): Likewise.
29843 (datehook_mod_SOURCES): Likewise.
29844 (datehook_mod_CFLAGS): Likewise.
29845 (datehook_mod_LDFLAGS): Likewise.
29846 * conf/sparc64-ieee1275.rmk: Likewise.
29847 * lib/ieee1275/datetime.c: New file.
29848
29849 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29850
29851 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29852 (ieee1275_fb_mod_SOURCES): New variable.
29853 (ieee1275_fb_mod_CFLAGS): Likewise.
29854 (ieee1275_fb_mod_LDFLAGS): Likewise.
29855 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29856 New proto.
29857 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29858 (HEAP_MAX_ADDR): Likewise.
29859 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29860 type.
29861 Correct stop condition.
29862 (grub_ieee1275_devices_iterate): New function.
29863 * video/ieee1275.c: New file.
29864
29865 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29866
29867 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29868
29869 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29870 as scratch.
29871 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29872 SCRATCH_PAD_DISKBOOT as scratch.
29873 (bootit): Pass Openfirmware pointer in %o4.
29874 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29875 of 0x200000.
29876 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29877 with util/grub-mkrawimage.c.
29878 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29879 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29880 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29881 (grub_aout_load) [GRUB_UTIL]: Likewise.
29882 * include/grub/kernel.h (grub_modules_get_end): New proto.
29883 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29884 (SCRATCH_PAD_BOOT): New definition.
29885 (SCRATCH_PAD_DISKBOOT): Likewise.
29886 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29887 * include/grub/sparc64/ieee1275/ieee1275.h
29888 (grub_ieee1275_original_stack): New variable
29889 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29890 New definition
29891 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29892 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29893 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29894 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29895 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29896 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29897 (grub_platform_image_format_t): New type.
29898 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29899 * kern/main.c (grub_modules_get_end)
29900 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29901 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29902 (codestart): Switch stacks.
29903 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29904 variable.
29905 (grub_heap_init): Use grub_modules_get_end.
29906 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29907 stack.
29908 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29909 (main): Likewise.
29910 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29911
29912 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29913
29914 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29915
29916 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29917
29918 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29919 bug #559005).
29920
29921 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29922
29923 * genmoddep.awk: Output all missing symbols and not only first.
29924
29925 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29926
29927 * NEWS: Put the date of 1.98 release.
29928
29929 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29930
29931 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29932 ft2build.h.
29933
29934 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29935
29936 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29937 completition in the middle of string.
29938
29939 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29940
29941 * util/grub-mkrescue.in: Use mktemp with explicit template.
29942
29943 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29944
29945 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29946
29947 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29948
29949 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29950 right pointer.
29951
29952 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29953
29954 Fix FreeBSD compilation.
29955
29956 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29957 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29958
29959 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29960
29961 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29962
29963 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29964
29965 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29966
29967 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29968
29969 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29970
29971 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29972
29973 Support relative image path in theme file.
29974
29975 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29976 (image_set_property): Handle theme_dir and relative path.
29977
29978 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29979
29980 * configure.ac: Alias amd64 to x86_64.
29981
29982 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29983
29984 * NEWS: mention multiboot on EFI.
29985
29986 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29987
29988 * kern/main.c (grub_load_modules): Handle errors from init functions of
29989 embeded modules.
29990
29991 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29992
29993 * normal/autofs.c (autoload_fs_module): Handle errors.
29994
29995 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29996
29997 Disable linux.mod on qemu-mips since it's not functional and leads
29998 to compilation failure.
29999
30000 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30001 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30002 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30003 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30004 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30005 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30006 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30007 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30008 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30009 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30010 Reported by: BVK Chaitanya
30011
30012 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30013
30014 * INSTALL: Add gettext as a dependency and add qemu to a new section
30015 "Prerequisites for make-check".
30016
30017 2010-03-04 Christian Franke <franke@computer.org>
30018
30019 * util/grub-pe2elf.c: Add missing include "progname.h".
30020
30021 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30022
30023 * normal/crypto.c (read_crypto_list): Fix a typo.
30024 Reported by: Seth Goldberg.
30025
30026 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30027
30028 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30029 Reported by: Seth Goldberg.
30030
30031 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30032
30033 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30034 ascii.bitmaps.
30035
30036 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30037
30038 * genmk.rb: Remove terminal*.lst in make clean.
30039 Reported by: Seth Goldberg.
30040
30041 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30042
30043 * util/i386/efi/grub-install.in: Copy gettext files.
30044
30045 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30046
30047 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30048
30049 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 Wait for user entry basing on presence of output rather than on errors.
30052
30053 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30054 (grub_install_newline_hook): Likewise.
30055 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30056 * normal/menu.c (show_menu): Check line_counter to determine presence
30057 of output.
30058 * normal/term.c (grub_normal_line_counter): New variable.
30059 (grub_normal_get_line_counter): New function.
30060 (grub_install_newline_hook): Likewise.
30061
30062 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30063
30064 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30065
30066 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30067
30068 * configure.ac: Update version to 1.98.
30069
30070 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30071
30072 * util/grub.d/10_linux.in (linux_entry): Don't default to
30073 gfxpayload=keep if Linux doesn't support video handover.
30074
30075 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30076
30077 Don't compile video modules on yeeloong since video subsystem is part
30078 of kernel.
30079
30080 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30081 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30082 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30083 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30084 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30085 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30086 * include/grub/bitmap_scale.h: Likewise.
30087 * include/grub/bufio.h: Likewise.
30088 * include/grub/font.h: Likewise.
30089 * include/grub/gfxterm.h: Likewise.
30090 * include/grub/video.h: Likewise.
30091 * include/grub/vbe.h: Don't include video_fb.h.
30092 * video/i386/pc/vbe.c: Include video_fb.h.
30093 * commands/i386/pc/vbetest.c: Include video.h.
30094
30095 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30096
30097 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30098 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30099 default entry if GRUB_SAVEDEFAULT=true. This allows using
30100 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30101 saving a new default on every boot.
30102
30103 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30104
30105 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30106 * normal/term.c (read_terminal_list): Likewise.
30107 * normal/main.c (grub_normal_init_page): Likewise.
30108 (grub_normal_read_line_real): Likewise.
30109
30110 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30111
30112 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30113 memory leak.
30114 Reported by: Seth Goldberg.
30115
30116 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30117
30118 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30119 duplicate declaration of `start'.
30120
30121 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30124 filename.
30125 Reported by: Georgy Buranov
30126
30127 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30128
30129 * util/grub-mkrawimage.c (usage): Change string formatting to
30130 improve gettext.
30131
30132 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30133
30134 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30135 backspace keys.
30136
30137 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30138
30139 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30140 Reported by: Michael Suchanek.
30141
30142 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30143
30144 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30145 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30146
30147 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30148
30149 Remove any reference to non-free fonts.
30150
30151 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30152 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30153 uses non-free components.
30154 * font/font.c (grub_font_get_name): Remove example name.
30155 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30156 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30157 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30158 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30159
30160 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30161
30162 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30163
30164 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30165
30166 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30167 Double divisor.
30168 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30169 features.
30170 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30171
30172 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30173
30174 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30175
30176 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30177
30178 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30179 * docs/grub.texi (Command-line and menu entry commands): Document play
30180 command.
30181
30182 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30183
30184 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30185 parse arguments as inline tempo and notes. Move code for playing notes
30186 to...
30187 (play): ... new function.
30188
30189 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30190
30191 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30192 grub_uint16_t instead of short.
30193 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30194 disk from little endian to cpu endianness.
30195
30196 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30197
30198 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30199 GRUB_TICKS_PER_SECOND instead of 120.
30200
30201 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30202
30203 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30204 escape sequence after \e.
30205
30206 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30207
30208 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30209 non-ASCII characters.
30210
30211 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30214 set root in single quotes to prevent \, from being unescaped.
30215
30216 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30217
30218 Prevent unknown commands from stopping menuentry execution.
30219
30220 * script/execute.c (grub_script_execute_cmdline): Print error after
30221 unknown command.
30222
30223 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30224
30225 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30226 Reported by: Pavel Pisa.
30227
30228 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30229
30230 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30231
30232 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30233
30234 Merge grub_ieee1275_map_physical into grub_map and rename to
30235 grub_ieee1275_map
30236
30237 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30238 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30239 Remove.
30240 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30241 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30242 necessary.
30243 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30244
30245 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30246
30247 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30248 opening and not after.
30249
30250 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30251
30252 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30253 constants.
30254
30255 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30256
30257 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30258 (alloc_phys): Use ALIGN_UP instead of align_addr.
30259
30260 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30261
30262 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30263
30264 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30265
30266 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30267
30268 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30269
30270 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30271 verbose dprintf.
30272
30273 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30274
30275 Fix over-4GiB seek on sparc64.
30276
30277 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30278 Replace pos_i and pos_lo with pos. All users updated.
30279 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30280 New constant.
30281 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30282 Likewise.
30283 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30284 and pos_lo.
30285
30286 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30287
30288 * util/grub-mkrawimage.c (main): Call set_program_name.
30289
30290 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30291
30292 Properly align 64-bit targets.
30293
30294 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30295 (generate_image): Use ALIGN_ADDR.
30296
30297 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30298
30299 Properly create cross-endian images.
30300
30301 * include/grub/types.h (grub_host_to_target_addr): New macro
30302 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30303
30304 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30305
30306 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30307
30308 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30311
30312 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30313 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30314 (grub_linux_boot): Divide by 64K when on VESA.
30315
30316 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30317
30318 Support GRUB_GFXPAYLOAD_LINUX.
30319
30320 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30321 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30322
30323 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30324
30325 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30326 to show messages instead of discarding them.
30327 Process errors after executing command and not before. Keep old method
30328 too as precaution.
30329
30330 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30331
30332 * configure.ac: Check for ft2build.h.
30333
30334 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30335
30336 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30337
30338 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30339
30340 * genkernsyms.sh.in: Use TARGET_CC.
30341
30342 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30343
30344 * NEWS: Update.
30345
30346 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30347
30348 * include/grub/multiboot2.h: Remove leftover file.
30349 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30350 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30351
30352 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30353
30354 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30355
30356 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30357
30358 Fix warnings in grub-emu when compiling with maximum warning options.
30359
30360 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30361 (grub_arch_modules_addr): Return 0 and not NULL.
30362 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30363 (xstrdup): Use newstr instead of dup.
30364 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30365 of disk to dsk to avoid shadowing.
30366 (find_free_slot): Fix prototype.
30367 * util/getroot.c (grub_util_is_dmraid): Make static.
30368 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30369 Add missing prototype.
30370 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30371
30372 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30375 appropriately.
30376
30377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30380 code out.
30381
30382 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30383
30384 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30385 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30386 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30387 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30388 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30389 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30390
30391 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30392
30393 * include/grub/err.h (grub_err_printf): Don't export.
30394
30395 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30396
30397 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30398
30399 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30402 * kern/misc.c (grub_gettext_dummy): Make static.
30403
30404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30407 by non-valid ones.
30408 * kern/term.c (grub_putchar): Likewise.
30409
30410 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30411
30412 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30413 buggy hook call and memory leak.
30414
30415 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30416
30417 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30418
30419 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30420
30421 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30422
30423 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30424
30425 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30426 modevar.
30427 Return grub_errno on allocation error.
30428
30429 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30430
30431 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30432
30433 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30434
30435 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30436 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30437
30438 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30439
30440 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30441 non-pxe disk.
30442 (grub_pxefs_open): Likewise.
30443
30444 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30445
30446 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30447 * util/grub.d/10_kfreebsd.in: Likewise.
30448 * util/grub.d/10_linux.in: Likewise.
30449
30450 2010-02-06 Colin D Bennett <colin@gibibit.com>
30451
30452 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30453 (gfxmenu_mod_SOURCES): New variable.
30454 (gfxmenu_mod_CFLAGS): Likewise.
30455 (gfxmenu_mod_LDFLAGS): Likewise.
30456 * include/grub/term.h (grub_term_set_current_output): Declare
30457 argument as const.
30458 * docs/gfxmenu-theme-example.txt: New file.
30459 * gfxmenu/gfxmenu.c: Likewise.
30460 * gfxmenu/gui_box.c: Likewise.
30461 * gfxmenu/gui_canvas.c: Likewise.
30462 * gfxmenu/gui_circular_progress.c: Likewise.
30463 * gfxmenu/gui_image.c: Likewise.
30464 * gfxmenu/gui_label.c: Likewise.
30465 * gfxmenu/gui_list.c: Likewise.
30466 * gfxmenu/gui_progress_bar.c: Likewise.
30467 * gfxmenu/gui_string_util.c: Likewise.
30468 * gfxmenu/gui_util.c: Likewise.
30469 * gfxmenu/icon_manager.c: Likewise.
30470 * gfxmenu/model.c: Likewise.
30471 * gfxmenu/named_colors.c: Likewise.
30472 * gfxmenu/theme_loader.c: Likewise.
30473 * gfxmenu/view.c: Likewise.
30474 * gfxmenu/widget-box.c: Likewise.
30475 * include/grub/gfxmenu_model.h: Likewise.
30476 * include/grub/gfxmenu_view.h: Likewise.
30477 * include/grub/gfxwidgets.h: Likewise.
30478 * include/grub/gui.h: Likewise.
30479 * include/grub/gui_string_util.h: Likewise.
30480 * include/grub/icon_manager.h: Likewise.
30481
30482 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30483
30484 Agglomerate scrolling in gfxterm.
30485
30486 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30487 (grub_virtual_screen_setup): Initialise 'total_screen'.
30488 (write_char): Split to ...
30489 (paint_char): ... this ...
30490 (write_char): ... and this.
30491 (paint_char): Handle delayed scrolling.
30492 (draw_cursor): Likewise.
30493 (scroll_up): Split to ...
30494 (real_scroll): ... this ...
30495 (scroll_up): ... and this.
30496 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30497 characters.
30498 (grub_gfxterm_refresh): Call real_scroll.
30499
30500 2010-02-06 Colin D Bennett <colin@gibibit.com>
30501
30502 * include/grub/misc.h (grub_iscntrl): New inline function.
30503 (grub_isalnum): Likewise.
30504 (grub_strtol): Likewise.
30505
30506 2010-02-06 Colin D Bennett <colin@gibibit.com>
30507
30508 * normal/menu_text.c (get_entry_number): Move from here ...
30509 * normal/menu.c (get_entry_number): ... moved here.
30510 * include/grub/menu.h (grub_menu_get_default_entry_index):
30511 New prototype.
30512 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30513 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30514 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30515 (grub_menu_viewer_should_return): Likewise.
30516 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30517 * normal/menu_text.c (run_menu): Enable menu switching.
30518 * normal/menu_viewer.c (should_return): New variable.
30519 (menu_viewer_changed): Likewise.
30520 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30521 (grub_menu_viewer_should_return): New function.
30522 (menuviewer_write_hook): Likewise.
30523 (grub_menu_viewer_init): Likewise.
30524
30525 2010-02-06 Colin D Bennet <colin@gibibit.com>
30526 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30527
30528 Support for gfxterm in a window.
30529
30530 * include/grub/gfxterm.h: New file.
30531 * include/grub/video.h (struct grub_video_rect): New declaration.
30532 (grub_video_rect_t): Likewise.
30533 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30534 (refcount): New variable.
30535 (render_target): Likewise.
30536 (window): Likewise.
30537 (repaint_callback): Likewise.
30538 (grub_virtual_screen_setup): Use 'render_target'.
30539 (init_window): New function.
30540 (grub_gfxterm_init_window): Likewise.
30541 (grub_gfxterm_init): Check reference counter.
30542 Use init_window.
30543 (destroy_window): New function.
30544 (grub_gfxterm_destroy_window): Likewise.
30545 (grub_gfxterm_fini): Check reference counter.
30546 Use destroy_window.
30547 (redraw_screen_rect): Restore viewport.
30548 Use 'render_target' and 'window'.
30549 Call 'repaint_callback'.
30550 (write_char): Use 'render_target'.
30551 (draw_cursor): Likewise.
30552 (scroll_up): Restore viewport.
30553 Use 'render_target' and 'window'.
30554 Call 'repaint_callback'.
30555 (grub_gfxterm_cls): Likewise.
30556 (grub_gfxterm_refresh): Use 'window'.
30557 (grub_gfxterm_set_repaint_callback): New function.
30558 (grub_gfxterm_background_image_cmd): Use 'window'.
30559 (grub_gfxterm_get_term): New function.
30560 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30561
30562 2010-02-06 Colin D Bennett <colin@gibibit.com>
30563
30564 Bitmap scaling support.
30565
30566 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30567 (bitmap_scale_mod_SOURCES): New variable.
30568 (bitmap_scale_mod_CFLAGS): Likewise.
30569 (bitmap_scale_mod_LDFLAGS): Likewise.
30570 * include/grub/bitmap_scale.h: New file.
30571 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30572 (background_image_cmd_options): New variable.
30573 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30574 (cmd): Rename and change type to ...
30575 (background_image_cmd_handle): ... this. All users updated.
30576 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30577 * video/bitmap_scale.c: New file.
30578
30579 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30580
30581 SDL support.
30582
30583 * Makefile.in (LIBSDL): New variable.
30584 (enable_grub_emu_sdl): Likewise.
30585 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30586 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30587 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30588 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30589 * util/sdl.c: New file.
30590
30591 2010-02-06 Colin D Bennett <colin@gibibit.com>
30592 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30593
30594 Double buffering support.
30595
30596 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30597 * include/grub/video.h: Update comment.
30598 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30599 New type.
30600 (grub_video_fb_doublebuf_blit_init): New prototype.
30601 * term/gfxterm.c (scroll_up): Support double buffering.
30602 (grub_gfxterm_refresh): Likewise.
30603 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30604 (grub_video_fb_doublebuf_blit_init): Likewise.
30605 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30606 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30607 'displayed_page', 'render_page' and 'update_screen'.
30608 (grub_video_vbe_fini): Free offscreen buffer.
30609 (doublebuf_pageflipping_commit): New function.
30610 (doublebuf_pageflipping_update_screen): Likewise.
30611 (doublebuf_pageflipping_init): Likewise.
30612 (double_buffering_init): Likewise.
30613 (grub_video_vbe_setup): Enable doublebuffering.
30614 (grub_video_vbe_swap_buffers): Implement.
30615 (grub_video_vbe_set_active_render_target): Handle double buffering.
30616 (grub_video_vbe_get_active_render_target): Likewise.
30617 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30618 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30619 (grub_video_vbe_enable_double_buffering): Likewise.
30620 (grub_video_vbe_swap_buffers): Use update_screen.
30621 (grub_video_set_mode): Use double buffering.
30622
30623 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30624
30625 * maintainance/gentrigtables.py: Remove.
30626 * lib/trig.c: Likewise.
30627
30628 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30629
30630 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30631 `trigtables.c'.
30632 (trigtables.c): New rule.
30633 (gentrigtables): Likewise.
30634 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30635
30636 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30637
30638 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30639 integer constants.
30640
30641 2010-02-06 Colin D Bennet <colin@gibibit.com>
30642
30643 Trigonometry support.
30644
30645 * include/grub/trig.h: New file.
30646 * lib/trig.c: Likewise.
30647 * maintainance/gentrigtables.py: Likewise.
30648 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30649 (trig_mod_SOURCES): New variable.
30650 (trig_mod_CFLAGS): Likewise.
30651 (trig_mod_LDFLAGS): Likewise.
30652
30653 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30654
30655 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30656 disk devices.
30657
30658 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30659
30660 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30661 error.
30662
30663 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30664
30665 * util/hostdisk.c (open_device): Don't use partition device when reading
30666 before the partition.
30667 (grub_util_biosdisk_read): Don't read from partition and before the
30668 partition in single operation.
30669 (grub_util_biosdisk_write): Don't write to partition and before the
30670 partition in single operation.
30671
30672 2010-02-03 Torsten Landschoff <torsten@debian.org>
30673
30674 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30675 last sectors.
30676
30677 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30678
30679 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30680 CDROM reads.
30681 (grub_biosdisk_write): Refuse to write to CDROM.
30682
30683 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30684
30685 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30686
30687 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30688
30689 * font/font.c (find_glyph): Check that bmp_idx is available before
30690 using it.
30691 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30692 with (font == NULL).
30693
30694 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30695
30696 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30697
30698 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30699
30700 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30701 * util/grub-script-check.c (getline): Fix empty lines case.
30702
30703 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30704
30705 * Makefile.in (check): Exit with fail status when one of the tests
30706 fails.
30707 * tests/example_functional_test.c (example_test): Fix reversed assert.
30708 * tests/example_unit_test.c (example_test): Likewise.
30709
30710 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30711
30712 * util/grub.d/10_linux.in: This script does not use any of the
30713 contents of gettext.sh, only the external command `gettext', so stop
30714 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30715 the same prefix as GRUB.)
30716 * util/grub.d/10_kfreebsd.in: Likewise.
30717
30718 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30719
30720 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30721 of the line.
30722
30723 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30724
30725 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30726 last sectors.
30727
30728 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30729
30730 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30731 having a 4KiB and not 32KiB buffer size.
30732
30733 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30734
30735 * util/hostfs.c: Include `<errno.h>'.
30736 (grub_hostfs_read): Handle errors from fseeko() and fread().
30737
30738 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30739
30740 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30741 loop when using read hooks on files whose size isn't sector-aligned.
30742
30743 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30744
30745 Remove unused parameter.
30746
30747 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30748 (grub_iso9660_open): Remove initialization of `data->length'.
30749
30750 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30751
30752 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30753 memleak conditions.
30754
30755 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30756
30757 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30758 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30759
30760 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30761
30762 * util/bin2h.c (usage): Fix warning (space after backslash).
30763
30764 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30765
30766 * font/font.c: Include `grub/fontformat.h.
30767 Remove font file format constants.
30768 (grub_font_load): Use the new macros.
30769 * include/grub/fontformat.h: New file.
30770 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30771 (write_font_pf2): Use the new macros.
30772
30773 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30774
30775 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30776 does.
30777
30778 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30779
30780 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30781
30782 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30783 (_start): Macroify `0x7F'.
30784
30785 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30786 (make_install_device): Use "(pxe)" as fallback prefix when booting
30787 via PXE.
30788
30789 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30790
30791 * configure.ac: Reset LIBS after check for libgcc symbols.
30792
30793 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30794
30795 * util/hostdisk.c (open_device): Add trailing newline to debug
30796 message.
30797
30798 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30799
30800 * configure.ac: Check for `limits.h'.
30801 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30802
30803 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30804
30805 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30806 capitalize error strings.
30807
30808 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30809
30810 * util/grub.d/10_hurd.in: Add a recovery mode.
30811
30812 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30813
30814 * configure.ac: Check for libgcc symbols with -nostdlib.
30815
30816 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30817
30818 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30819
30820 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30821
30822 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30823 stack since heap may be unavailable at that point.
30824 (grub_ofconsole_gotoxy): Likewise.
30825
30826 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30827
30828 * configure.ac: Check for _restgpr_14_x.
30829 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30830 and _savegpr_* prototypes.
30831
30832 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30833
30834 Use generic grub_reboot() for i386-efi.
30835
30836 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30837 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30838 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30839
30840 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30841
30842 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30843 presence of "prefix" variable as it breaks when normal.mod is
30844 embedded.
30845
30846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30847
30848 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30849 stack since heap is unavailable at that point.
30850
30851 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30852
30853 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30854 (grub_freebsd_bootinfo): Rewritten.
30855 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30856
30857 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30858
30859 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30860
30861 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30862
30863 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30864 domain now.
30865
30866 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30867
30868 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30869 around for handling "/" to the correct fix. Fix a memory leak. Use
30870 xstrdup instead of strdup.
30871
30872 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30873
30874 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30875
30876 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30877
30878 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30879
30880 * font/font.c (struct grub_font): New member 'bmp_idx'.
30881 (font_init): Initialise 'bmp_idx'.
30882 (load_font_index): Fill 'bmp_idx'.
30883 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30884
30885 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30886
30887 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30888 unnecessary calls.
30889
30890 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30891
30892 Move context handling out of the kernel.
30893
30894 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30895 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30896 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30897 * conf/i386-efi.rmk: Likewise.
30898 * conf/i386-ieee1275.rmk: Likewise.
30899 * conf/i386-pc.rmk: Likewise.
30900 * conf/powerpc-ieee1275.rmk: Likewise.
30901 * conf/sparc64-ieee1275.rmk: Likewise.
30902 * conf/x86_64-efi.rmk: Likewise.
30903 * include/grub/env.h: Include grub/menu.h.
30904 (grub_env_var_type): Removed.
30905 (grub_env_var): Replaced field 'type' with 'global'.
30906 (grub_env_find): New prototype.
30907 (grub_env_context_open): Remove EXPORT_FUNC.
30908 (grub_env_context_close): Likewise.
30909 (grub_env_export): Likewise.
30910 (grub_env_set_data_slot): Removed.
30911 (grub_env_get_data_slot): Likewise.
30912 (grub_env_unset_data_slot): Likewise.
30913 (grub_env_unset_menu): New prototype.
30914 (grub_env_set_menu): Likewise.
30915 (grub_env_get_menu): Likewise.
30916 * include/grub/env_private.h: New file.
30917 * include/grub/normal.h (grub_context_init): New prototype.
30918 (grub_context_fini): Likewise.
30919 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30920 * normal/context.c (grub_cmd_export): ... to here.
30921 * kern/env.c: Include env_private.h.
30922 (HASHSZ): Moved to include/grub/env_private.h.
30923 (grub_env_context): Likewise.
30924 (grub_env_sorted_var): Likewise.
30925 (current_context): Renamed from this ...
30926 (grub_current_context): ...to this. 'static' removed. All users updated.
30927 (grub_env_find): Removed 'static'.
30928 (grub_env_context_open): Moved to normal/context.c.
30929 (grub_env_context_close): Likewise.
30930 (grub_env_export): Likewise.
30931 (mangle_data_slot_name): Removed.
30932 (grub_env_set_data_slot): Likewise.
30933 (grub_env_get_data_slot): Likewise.
30934 (grub_env_unset_data_slot): Likewise.
30935 * kern/main.c (grub_set_root_dev): Don't export root.
30936 It will be done later.
30937 (grub_main): Don't export prefix.
30938 It will be done later.
30939 * normal/context.c: New file.
30940 * normal/main.c (free_menu): Use grub_env_unset_menu.
30941 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30942 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30943 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30944 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30945
30946 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30947
30948 setpci support.
30949
30950 * commands/setpci.c: New file.
30951 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30952 (setpci_mod_SOURCES): New variable.
30953 (setpci_mod_CFLAGS): Likewise.
30954 (setpci_mod_LDFLAGS): Likewise.
30955
30956 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30957
30958 Byte-addressable PCI configuration space.
30959
30960 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30961 dword address.
30962 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30963 GRUB_PCI_REG_CACHELINE.
30964 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30965 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30966 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30967 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30968 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30969 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30970 grub_pci_make_address.
30971 (lock_rom_area): Likewise.
30972 * commands/lspci.c (grub_lspci_iter): Use macroses
30973 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30974 of grub_pci_make_address.
30975 * disk/ata.c (grub_ata_pciinit): Likewise.
30976 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30977 (GRUB_PCI_REG_VENDOR): Likewise.
30978 (GRUB_PCI_REG_DEVICE): Likewise.
30979 (GRUB_PCI_REG_COMMAND): Likewise.
30980 (GRUB_PCI_REG_STATUS): Likewise.
30981 (GRUB_PCI_REG_REVISION): Likewise.
30982 (GRUB_PCI_REG_CLASS): Likewise.
30983 (GRUB_PCI_REG_CACHELINE): Likewise.
30984 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30985 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30986 (GRUB_PCI_REG_BIST): Likewise.
30987 (GRUB_PCI_REG_ADDRESSES): Likewise.
30988 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30989 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30990 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30991 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30992 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30993 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30994 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30995 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30996 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30997 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30998 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30999 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31000 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31001 (GRUB_PCI_REG_MIN_GNT): Likewise.
31002 (GRUB_PCI_REG_MAX_LAT): Likewise.
31003 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31004 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31005 * video/efi_uga.c (find_framebuf): Likewise.
31006 * video/sm712.c (grub_video_sm712_setup): Likewise.
31007 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31008 space.
31009
31010 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31013 can be reliably determined to be supported.
31014
31015 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31016
31017 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31018 that VESA is supported.
31019 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31020 supported.
31021
31022 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31023
31024 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31025
31026 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31027
31028 * util/misc.c (make_system_path_relative_to_its_root): Work around
31029 special-casing of "/", as previous incarnation of this routine did.
31030
31031 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31032
31033 Fix any-emu compilation.
31034
31035 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31036 * grub_bin2h_SOURCES: New variable.
31037
31038 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31039
31040 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31041
31042 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31043
31044 * util/grub.d/00_header.in: Fix handling of locale_dir.
31045
31046 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31047
31048 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31049 as possible unifont location (Gentoo).
31050 Reported by: Alexander Brüning
31051
31052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31053
31054 Don't try to generate lists for kernel.img.
31055
31056 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31057 (pkglib_MODULES): Remove kernel.img.
31058 (kernel_img_EXPORTS): Removed.
31059 (kernel_img_RELOCATABLE): New variable.
31060 * conf/x86_64-efi.rmk: Likewise.
31061 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31062
31063 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31064
31065 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31066 grub_xasprintf or grub_snprintf.
31067 (grub_vsprintf): Likewise.
31068 (grub_snprintf): New proto.
31069 (grub_vsnprintf): Likewise.
31070 (grub_xasprintf): Likewise.
31071 (grub_xvasprintf): Likewise.
31072 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31073 (grub_sprintf): Removed.
31074 (grub_vsnprintf): New function.
31075 (grub_snprintf): Likewise.
31076 (grub_xvasprintf): Likewise.
31077 (grub_xasprintf): Likewise.
31078 (grub_vsprintf): Renamed to ...
31079 (grub_vsnprintf_real): ...this. New argument max_len.
31080
31081 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31082
31083 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31084 fix grub-script-check warning.
31085
31086 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31087
31088 * include/grub/font.h (grub_font_load): Fix prototype.
31089
31090 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31091
31092 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31093
31094 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31095
31096 * include/grub/x86_64/at_keyboard.h: New file.
31097
31098 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31099
31100 * loader/mips/linux.c: Include missing grub/i18n.h.
31101
31102 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31103
31104 * normal/menu.c (notify_execution_failure): Clarify error message.
31105
31106 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31107
31108 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31109 return value (and revert all return statements). Update users.
31110
31111 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31112
31113 * kern/device.c (grub_device_iterate): Allocate new part_ent
31114 structure based on sizeof (*p) rather than sizeof (p->next), to
31115 account for structure padding.
31116
31117 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31118 disk is NULL, which might happen for LVM physical volumes with no
31119 LVM signature.
31120
31121 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31122
31123 * loader/mips/linux.c (grub_cmd_initrd)
31124 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31125
31126 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31127
31128 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31129 (grub_video_video_init, grub_video_bitmap_init)
31130 (grub_font_manager_init, grub_term_gfxterm_init)
31131 (grub_at_keyboard_init): New extern declarations.
31132 (grub_machine_init): Initialize gfxterm and at_keyboard.
31133
31134 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31135
31136 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31137 `gfxterm.mod' into core image.
31138
31139 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31140 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31141 (kernel_img_FORMAT): Copy to ...
31142
31143 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31144 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31145 (kernel_img_FORMAT): ... here, and ...
31146
31147 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31148 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31149 (kernel_img_FORMAT): ... here.
31150
31151 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31152 and input (at_keyboard) terminals in kernel.
31153 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31154
31155 (pkglib_MODULES): Remove `pci.mod'.
31156 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31157 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31158 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31159 (at_keyboard_mod_LDFLAGS): Remove variables.
31160
31161 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31162
31163 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31164
31165 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31166
31167 * include/grub/mips/libgcc.h: Only export symbols for functions
31168 that libgcc provides.
31169
31170 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31171
31172 MIPS support.
31173
31174 * bus/bonito.c: New file.
31175 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31176 GRUB_PCI_NUM_DEVICES.
31177 * term/i386/pc/serial.c: Move to ...
31178 * term/serial.c: ... here. All users updated.
31179 * util/i386/pc/grub-mkimage.c: Move to ...
31180 * util/grub-mkrawimage.c: ... here. All users updated.
31181 * term/i386/pc/at_keyboard.c: Move to ...
31182 * term/at_keyboard.c: ... here. All users updated.
31183 * conf/mips-qemu-mips.rmk: New file.
31184 * conf/mips-yeeloong.rmk: Likewise.
31185 * conf/mips.rmk: Likewise.
31186 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31187 mipsel-qemu-mips.
31188 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31189 to port addresses.
31190 (grub_ata_pciinit): Support CS5536.
31191 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31192 * font/font_cmd.c (loadfont_command): Open file before passing it to
31193 grub_font_load.
31194 (pseudo_file_read): New function.
31195 (pseudo_file_close): Likewise.
31196 (pseudo_fs): New structure.
31197 (load_font_module): New function.
31198 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31199 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31200 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31201 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31202 * include/grub/i386/at_keyboard.h: Split into ...
31203 * include/grub/at_keyboard.h: ... this ...
31204 * include/grub/i386/at_keyboard.h: ... and this.
31205 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31206 New prototype.
31207 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31208 updated.
31209 (grub_elf64_size): Likewise.
31210 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31211 filename.
31212 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31213 * include/grub/i386/coreboot/serial.h: Rewritten.
31214 * include/grub/i386/ieee1275/serial.h: Include
31215 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31216 * include/grub/i386/pc/serial.h: Moved from here ...
31217 * include/grub/serial.h: ... to here. All users updated.
31218 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31219 (GRUB_PCI_NUM_BUS): Likewise.
31220 (GRUB_PCI_NUM_DEVICES): Likewise.
31221 (grub_pci_device_map_range): Add missing volatile keyword.
31222 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31223 * include/grub/mips/at_keyboard.h: New file.
31224 * include/grub/mips/cache.h: Likewise.
31225 * include/grub/mips/io.h: Likewise.
31226 * include/grub/mips/kernel.h: Likewise.
31227 * include/grub/mips/libgcc.h: Likewise.
31228 * include/grub/mips/pci.h: Likewise.
31229 * include/grub/mips/qemu-mips/boot.h: Likewise.
31230 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31231 * include/grub/mips/qemu-mips/loader.h: Likewise.
31232 * include/grub/mips/qemu-mips/memory.h: Likewise.
31233 * include/grub/mips/qemu-mips/serial.h: Likewise.
31234 * include/grub/mips/qemu-mips/time.h: Likewise.
31235 * include/grub/mips/relocator.h: Likewise.
31236 * include/grub/mips/time.h: Likewise.
31237 * include/grub/mips/types.h: Likewise.
31238 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31239 * include/grub/mips/yeeloong/boot.h: Likewise.
31240 * include/grub/mips/yeeloong/kernel.h: Likewise.
31241 * include/grub/mips/yeeloong/loader.h: Likewise.
31242 * include/grub/mips/yeeloong/memory.h: Likewise.
31243 * include/grub/mips/yeeloong/pci.h: Likewise.
31244 * include/grub/mips/yeeloong/serial.h: Likewise.
31245 * include/grub/mips/yeeloong/time.h: Likewise.
31246 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31247 * kern/elf.c (grub_elf32_size): New parameter. All users
31248 updated.
31249 (grub_elf64_size): Likewise.
31250 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31251 Load modules before saying "Welcome to GRUB!".
31252 Call grub_refresh after saying "Welcome to GRUB!".
31253 * kern/mips/cache.S: New file.
31254 * kern/mips/cache_flush.S: Likewise.
31255 * kern/mips/dl.c: Likewise.
31256 * kern/mips/init.c: Likewise.
31257 * kern/mips/qemu-mips/init.c: Likewise.
31258 * kern/mips/startup.S: Likewise.
31259 * kern/mips/yeeloong/init.c: Likewise.
31260 * kern/term.c (grub_putcode): Handle NULL terminal.
31261 (grub_getcharwidth): Likewise.
31262 (grub_getkey): Likewise.
31263 (grub_checkkey): Likewise.
31264 (grub_getkeystatus): Likewise.
31265 (grub_getxy): Likewise.
31266 (grub_getwh): Likewise.
31267 (grub_gotoxy): Likewise.
31268 (grub_cls): Likewise.
31269 (grub_setcolorstate): Likewise.
31270 (grub_setcolor): Likewise.
31271 (grub_getcolor): Likewise.
31272 (grub_refresh): Likewise.
31273 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31274 (write_jump): Add hatch nop.
31275 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31276 * lib/mips/setjmp.S: New file.
31277 * loader/mips/linux.c: Likewise.
31278 * term/i386/pc/at_keyboard.c: Move from here ...
31279 * term/at_keyboard.c: ... to here.
31280 * term/i386/pc/serial.c: Moved from here ...
31281 * term/serial.c: ... to here. All users updated.
31282 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31283 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31284 (serial_translate_key_sequence): Avoid deadlock.
31285 (grub_serial_getkey): Handle backspace.
31286 (grub_serial_putchar): Fix newline handling.
31287 * util/i386/pc/grub-mkimage.c: Move from here ...
31288 * util/grub-mkrawimage.c: ... to here. All users updated.
31289 (generate_image): New parameters 'font_path' and 'format'.
31290 Support embedding font.
31291 Use grub_host_to_target* instead of grub_cpu_to_le*.
31292 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31293 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31294 (options): New option "--font".
31295 (usage): Likewise.
31296 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31297 (main): Handle "--font".
31298 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31299 (grub_virtual_screen_setup): Set bg_color_display.
31300 (redraw_screen_rect): Use bg_color_display instead of incorrect
31301 bg_color.
31302 (grub_gfxterm_cls): Likewise.
31303 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31304 Support embedding config file.
31305 (add_segments): Likewise.
31306 (options): New option "--config".
31307 (main): Handle "--config".
31308 * video/sm712.c: New file.
31309
31310 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31311
31312 Fix parallel builds.
31313
31314 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31315 font.c depend on ascii.h).
31316
31317 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31318
31319 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31320
31321 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31322
31323 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31324 By default: disabled.
31325 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31326 parameter.
31327
31328 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31329
31330 * font/font.c: Update copyright years.
31331 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31332
31333 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31334
31335 * font/font.c: Include `ascii.h'.
31336 (ASCII_BITMAP_SIZE): New macro.
31337 (ascii_font_glyph): Define.
31338 (ascii_glyph_lookup): New function.
31339 (grub_font_get_string_width): Change comment. If glyph not found, use
31340 ascii_glyph_lookup.
31341 (grub_font_get_glyph_with_fallback): If glyph not available returns
31342 ascii_glyph_lookup.
31343 * util/grub-mkfont.c (file_formats): New enum.
31344 (options): Add `ascii-bitmaps' new option.
31345 (usage): Add `asii-bitmaps' new option.
31346 (write_font_ascii_bitmap): New function.
31347 (write_font): Rename to ...
31348 (write_font_p2): ... this. Remove print_glyphs call.
31349 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31350 used. Call print_glyphs.
31351 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31352
31353 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31354
31355 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31356 (grub_bin2h_SOURCES): New variable.
31357 * util/bin2h.c: New file.
31358
31359 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31360
31361 * include/multiboot.h: Resynced with spec.
31362 * include/multiboot2.h: Likewise.
31363 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31364 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31365
31366 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31367
31368 * include/grub/term.h (grub_term_register_input,
31369 grub_term_register_output): Check return of terminal init()
31370 routines, and abort if errors are raised.
31371
31372 * commands/terminal.c: Update copyright year.
31373
31374 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31375
31376 * commands/terminal.c (grub_cmd_terminal_input)
31377 (grub_cmd_terminal_output): Check return of terminal init()
31378 routines, and abort if errors are raised.
31379
31380 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31381
31382 * include/grub/i386/bsd.h: Fix include pathes.
31383
31384 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31385
31386 Add missing *BSD copyright headers.
31387
31388 * include/grub/aout.h: Add BSD licence.
31389 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31390 * include/grub/i386/freebsd_linker.h: ... here,
31391 * include/grub/i386/freebsd_reboot.h: ... here,
31392 * include/grub/i386/netbsd_bootinfo.h: ... here,
31393 * include/grub/i386/netbsd_reboot.h: ... here,
31394 * include/grub/i386/openbsd_bootarg.h: ... here,
31395 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31396 licence to each file.
31397
31398 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31399
31400 * acinclude.m4: Remove `nop' assembly instruction; it's not
31401 implemented by all architectures.
31402
31403 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31404
31405 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31406 ELILO. This is no longer necessary.
31407
31408 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31409
31410 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31411
31412 * util/grub-script-check.c: grub-script-check tool.
31413 * conf/common.rmk: Make rules for grub-script-check.
31414
31415 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31416
31417 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31418 spotting it back in 2008. Shame on me for forgetting he did.
31419
31420 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31421
31422 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31423
31424 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31425 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31426 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31427 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31428 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31429 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31430
31431 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31432
31433 * include/grub/test.h: Add license header.
31434 * tests/example_functional_test.c: Likewise.
31435 * tests/example_unit_test.c: Likewise.
31436 * tests/lib/functional_test.c: Likewise.
31437 * tests/lib/test.c: Likewise.
31438 * tests/lib/unit_test.c: Likewise.
31439
31440 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31441
31442 Use flag-based instead of hook-based video mode selection and "auto"
31443 keyword.
31444
31445 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31446 (grub_video_set_mode): Changed prototype. All users updated.
31447 (grub_video_check_mode_flag): New inline function.
31448 * video/video.c (parse_modespec): New function.
31449 (grub_video_set_mode): Parse flags and keywords.
31450
31451 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31452
31453 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31454 fprintf call.
31455
31456 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31457
31458 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31459
31460 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31461
31462 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31463 string.
31464 * util/grub-emu.c (usage): Likewise.
31465 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31466 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31467 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31468 * util/i386/pc/grub-setup.c (usage): Likewise.
31469
31470 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31471
31472 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31473 the message.
31474 (grub_util_info): Likewise.
31475 (grub_util_error): Likewise.
31476 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31477 and/or new lines in `grub_util_warna', `grub_util_info',
31478 `grub_util_error' calls.
31479 * util/getroot.c: Likewise.
31480 * util/grub-editenv.c: Likewise.
31481 * util/grub-emu.c: Likewise.
31482 * util/grub-fstest.c: Likewise.
31483 * util/grub-mkdevicemap.c: Likewise.
31484 * util/grub-mkfont.c: Likewise.
31485 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31486 * util/grub-mkrelpath.c: Likewise.
31487 * util/grub-pe2elf.c: Likewise.
31488 * util/grub-probe.c: Likewise.
31489 * util/hostdisk.c: Likewise.
31490 * util/i386/efi/grub-mkimage.c: Likewise.
31491 * util/i386/pc/grub-mkimage.c: Likewise.
31492 * util/i386/pc/grub-setup.c: Likewise.
31493 * util/ieee1275/ofpath.c: Likewise.
31494 * util/mkisofs/eltorito.c: Likewise.
31495 * util/mkisofs/rock.c: Likewise.
31496 * util/mkisofs/write.c: Likewise.
31497 * util/raid.c: Likewise.
31498 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31499 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31500
31501 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31502
31503 Enable multiboot on non-pc.
31504
31505 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31506 multiboot.mod and multiboot2.mod to ...
31507 * conf/i386.rmk (pkglib_MODULES): ... here.
31508 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31509 Moved to ...
31510 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31511 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31512 Moved to ...
31513 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31514 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31515 Moved to ...
31516 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31517 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31518 Moved to ...
31519 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31520 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31521 relocator.mod.
31522 (ata_mod_SOURCES): Removed.
31523 (ata_mod_CFLAGS): Likewise.
31524 (ata_mod_LDFLAGS): Likewise.
31525 (relocator_mod_SOURCES): Removed.
31526 (relocator_mod_CFLAGS): Likewise.
31527 (relocator_mod_ASFLAGS): Likewise.
31528 (relocator_mod_LDFLAGS): Likewise.
31529 Include i386.mk.
31530 * include/grub/x86_64/multiboot.h: New file.
31531 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31532 Terminate EFI.
31533
31534 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31535
31536 Video multiboot support.
31537
31538 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31539 New prototype.
31540 * include/multiboot.h: Resynced with multiboot specification.
31541 * include/multiboot2.h: Likewise.
31542 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31543 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31544 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31545 (HAS_VGA_TEXT): Likewise.
31546 (accepts_video): New variable.
31547 (grub_multiboot_set_accepts_video): New function.
31548 (grub_multiboot_get_mbi_size): Account for video structures.
31549 (set_video_mode): New function.
31550 (retrieve_video_parameters): Likewise.
31551 (grub_multiboot_make_mbi): Fill video fields.
31552
31553 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31554
31555 Video driver ids.
31556
31557 * include/grub/video.h (grub_video_driver_id): New type.
31558 (grub_video_adapter): New member 'id'. All users updated.
31559 (grub_video_get_driver_id): New proto.
31560 * video/video.c (grub_video_get_driver_id): New function.
31561
31562 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31563
31564 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31565 `var=val'.
31566
31567 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31568
31569 * normal/cmdline.c (print_completion): Gettextizze.
31570
31571 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31572
31573 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31574
31575 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31576
31577 * gettext/gettext.c (grub_gettext_translate): Push and pop
31578 grub_errno.
31579 (grub_gettext_delete_list): Change comment style.
31580 * kern/err.c (grub_error): Gettextizze.
31581 (grub_fatal): Gettextizze.
31582
31583 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31584
31585 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31586 (grub_linux16_real_boot): ... this.
31587 * kern/i386/loader.S: Likewise.
31588 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31589 (grub_linux16_boot): New function. Switches to text mode and calls
31590 grub_linux16_real_boot().
31591
31592 * loader/i386/bsd.c: Include `<grub/video.h>'.
31593 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31594 text mode before calling grub_unix_real_boot().
31595
31596 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31597 (grub_multiboot_boot): Switch to text mode before calling
31598 grub_relocator32_boot().
31599
31600 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31601 (grub_chainloader_boot): Switch to text mode before calling
31602 grub_chainloader_real_boot().
31603
31604 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31605 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31606
31607 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31608 non-empty value.
31609
31610 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31611 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31612
31613 * util/grub.d/00_header.in: Define a "savedefault" function for use
31614 in menu entries.
31615 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31616
31617 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31618 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31619
31620 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31621 saved_entry if boot_once is unset.
31622 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31623 previous saved entry (i.e. grub-reboot).
31624
31625 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31626
31627 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31628
31629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31630
31631 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31632 `var=val'.
31633 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31634
31635 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31636
31637 * util/grub-reboot.in: Fix --version output.
31638 * util/grub-set-default.in: Likewise.
31639
31640 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31641
31642 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31643 blocks.
31644
31645 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31646
31647 * util/grub.d/00_header.in: Quote the value assigned to `default',
31648 in case it contains spaces.
31649
31650 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31651
31652 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31653 `save_default_entry' call from the macosx case to the linux case.
31654
31655 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31656 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31657
31658 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31659 in `chosen' environment variable.
31660 * normal/menu_text.c (get_entry_number): Check if the variable
31661 matches the title of a menu entry.
31662 (run_menu): Pass menu to get_entry_number.
31663
31664 * util/grub-reboot.in: New file.
31665 * util/grub-set-default.in: New file.
31666 * conf/common.rmk (grub-reboot): New utility.
31667 (grub-set-default): New utility.
31668
31669 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31670 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31671 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31672 move it to `saved_entry' for the next boot. Load environment on
31673 initialisation.
31674 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31675 * util/grub.d/10_hurd.in: Likewise.
31676 * util/grub.d/10_linux.in (linux_entry): Likewise.
31677 * util/grub.d/10_windows.in: Likewise.
31678 * util/grub.d/30_os-prober.in: Likewise.
31679
31680 * util/grub-install.in: Create environment block.
31681 * util/i386/efi/grub-install.in: Likewise.
31682 * util/ieee1275/grub-install.in: Likewise.
31683 * util/sparc64/ieee1275/grub-install.in: Likewise.
31684
31685 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31686
31687 Unit testing framework for GRUB.
31688
31689 * Makefile.in: Test framework build rules for 'make check'.
31690 * conf/tests.rmk: Build rules for individual tests and framework.
31691
31692 * include/grub/test.h: Header file for whitebox tests.
31693 * tests/lib/functional_test.c: Framework support for whitebox
31694 functional tests.
31695 * tests/lib/test.c: Common whitebox testing code for unit and
31696 functional tests.
31697 * tests/lib/unit_test.c: Framework support for whitebox unit
31698 tests.
31699
31700 * tests/util/grub-shell-tester.in: Support utility for grub-script
31701 tests.
31702 * tests/util/grub-shell.in: Utility to execute grub-script
31703 commands in a Qemu instance.
31704
31705 * tests/example_functional_test.c: Example whitebox functional
31706 test.
31707 * tests/example_grub_script_test.in: Example grub-script test.
31708 * tests/example_scripted_test.in: Example scripted test.
31709 * tests/example_unit_test.c: Example whitebox unit test.
31710
31711 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31712
31713 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31714 Add loader/i386/multiboot_mbi.c.
31715 (multiboot2_mod_SOURCES): Likewise.
31716 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31717 (multiboot2_mod_SOURCES): Likewise.
31718 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31719 (grub_multiboot_make_mbi): Likewise.
31720 (grub_multiboot_free_mbi): Likewise.
31721 (grub_multiboot_init_mbi): Likewise.
31722 (grub_multiboot_add_module): Likewise.
31723 (grub_multiboot_set_bootdev): Likewise.
31724 * loader/i386/multiboot.c (mbi): Removed.
31725 (mbi_dest): Likewise.
31726 (alloc_mbi): New variable.
31727 (grub_multiboot_payload_size): Removed. All users updated.
31728 (grub_multiboot_pure_size): New variable.
31729 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31730 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31731 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31732 (grub_fill_multiboot_mmap): Likewise.
31733 (grub_multiboot_get_bootdev): Likewise.
31734 (grub_multiboot): Use multiboot_mbi functions.
31735 * loader/i386/multiboot_mbi.c: New file.
31736
31737 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31738
31739 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31740 it would result in module crash.
31741
31742 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31743
31744 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31745 (grub_ofconsole_getwh): Split to ...
31746 (grub_ofconsole_getwh): ... this.
31747 (grub_ofconsole_dimensions): ...and this.
31748 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31749
31750 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31751
31752 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31753
31754 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31755
31756 * loader/i386/pc/multiboot2.c: Removed stalled file.
31757
31758 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31759
31760 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31761 Reported by: Grégoire Sutre
31762
31763 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31764
31765 * util/misc.c (canonicalize_file_name): New function.
31766 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31767 instead of realpath().
31768
31769 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31770
31771 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31772 and make it clearer that it's optional. Based on confusion
31773 witnessed on IRC.
31774
31775 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31776
31777 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31778 in premature implicit newline.
31779
31780 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31781
31782 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31783 which resulted in garbled command line at the end of screen.
31784
31785 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31786
31787 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31788 initialization with similar approach as with other Linux loaders.
31789
31790 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31791
31792 Fix i386-ieee1275 build.
31793
31794 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31795 and grub_term_height() for video_{width,height} initialization.
31796
31797 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31798
31799 Fix grub-emu build.
31800
31801 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31802
31803 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31804 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31805
31806 Support for multiple terminals.
31807
31808 * Makefile.in (pkglib_DATA): terminal.lst.
31809 (terminal.lst): New target.
31810 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31811 (GRUB_MOD_INIT(handler)): Likewise.
31812 (GRUB_MOD_FINI(handler)): Likewise.
31813 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31814 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31815 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31816 (grub_cmd_sleep): Use grub_term_save_pos.
31817 * commands/terminal.c: New file.
31818 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31819 commands/terminal.c and lib/charset.c.
31820 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31821 (pkglib_MODULES): Add terminal.mod.
31822 (terminal_mod_SOURCES): New variable.
31823 (terminal_mod_CFLAGS): Likewise.
31824 (terminal_mod_LDFLAGS): Likewise.
31825 * genhandlerlist.sh: Don't handle terminals.
31826 * genmk.rb: Generate terminal-*.lst.
31827 * genterminallist.sh: New file.
31828 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31829 (grub_is_valid_utf8): Likewise.
31830 (grub_utf8_to_ucs4_alloc): Likewise.
31831 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31832 (grub_menu_register_viewer): Changed argument.
31833 (grub_menu_try_text): New proto.
31834 (grub_gfxmenu_try_hook): New declaration.
31835 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31836 (grub_menu_init_page): Additional argument term.
31837 (grub_normal_init_page): Likewise.
31838 (grub_cmdline_get): Arguments simplified.
31839 (grub_utf8_to_ucs4_alloc): Removed.
31840 (grub_print_ucs4): Additional argument term.
31841 (grub_getstringwidth): Likewise.
31842 (grub_print_message_indented): Likewise.
31843 (grub_menu_text_register_instances): New proto.
31844 (grub_show_menu): Likewise.
31845 (read_terminal_list): Likewise.
31846 (grub_set_more): Likewise.
31847 * include/grub/parser.h: Include handler.h.
31848 * include/grub/reader.h: Rewritten.
31849 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31850 (GRUB_TERM_WIDTH): Changed to function.
31851 (GRUB_TERM_HEIGHT): Likewise.
31852 (GRUB_TERM_BORDER_WIDTH): Likewise.
31853 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31854 (GRUB_TERM_NUM_ENTRIES): Likewise.
31855 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31856 (GRUB_TERM_CURSOR_X): Likewise.
31857 (grub_term_input_class): Likewise.
31858 (grub_term_output_class): Likewise.
31859 (grub_term_outputs_disabled): New declaration.
31860 (grub_term_inputs_disabled): Likewise.
31861 (grub_term_outputs): Likewise.
31862 (grub_term_inputs): Likewise.
31863 (grub_term_register_input): Rewritten.
31864 (grub_term_register_output): Likewise.
31865 (grub_term_unregister_input): Likewise.
31866 (grub_term_unregister_output): Likewise.
31867 (FOR_ACTIVE_TERM_INPUTS): New macro.
31868 (FOR_DISABLED_TERM_INPUTS): Likewise.
31869 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31870 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31871 * include/grub/terminfo.h: Add oterm argument to all protypes.
31872 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31873 Use grub_rescue_run.
31874 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31875 All users updated.
31876 * kern/reader.c: Removed. All users updated.
31877 * kern/rescue_reader.c (grub_rescue_init): Removed.
31878 (grub_rescue_reader): Likewise.
31879 (grub_register_rescue_reader): Likewise.
31880 (grub_rescue_run): New function based on kern/reader.c.
31881 * kern/term.c: Adapted for multiterm.
31882 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31883 (grub_is_valid_utf8): Likewise.
31884 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31885 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31886 right terminal.
31887 * loader/i386/linux.c (grub_linux_boot): Likewise.
31888 * normal/auth.c (grub_username_get): New function.
31889 (grub_auth_check_authentication): Use grub_username_get.
31890 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31891 * normal/color.c: Adapt for multiterm.
31892 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31893 (grub_normal_init_page): Additional argument term.
31894 (read_lists): Call read_terminal_lists.
31895 (grub_enter_normal_mode): Call grub_cmdline_run.
31896 Handle grub_normal_exit_level.
31897 (grub_cmd_normal): Make reentrant.
31898 (grub_cmd_normal_exit): New function.
31899 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31900 * normal/menu.c: Adapt for multiterm.
31901 * normal/menu_entry.c: Likewise.
31902 * normal/menu_text.c: Likewise.
31903 * normal/menu_viewer.c: Removed. All users updated.
31904 * normal/term.c: New file.
31905 * util/console.c: Change order of includes to workaround a bug in
31906 ncurses headers.
31907 * term/terminfo.c: New argument oterm on all exported functions.
31908 All users updated.
31909 * util/grub-editenv.c (grub_term_input_class): Removed.
31910 (grub_term_output_class): Likewise.
31911
31912 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31913
31914 Make loader output a bit more user-friendly.
31915
31916 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31917 is being loaded. Likewise for the Hurd.
31918
31919 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31920 that kernel of FreeBSD ${version} is being loaded.
31921
31922 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31923 grub_dprintf().
31924 (grub_cmd_initrd): Likewise.
31925 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31926 that Linux ${version} is being loaded. Likewise for initrd.
31927
31928 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31929
31930 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31931
31932 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31933
31934 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31935 (GRUB_MOD_INIT): Gettextizze.
31936 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31937 (GRUB_MOD_INIT): Gettextizze.
31938 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31939 (grub_cmd_linux): Capitalise Linux.
31940 (GRUB_MOD_INIT): Gettextizze.
31941 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31942 (grub_cmd_linux): Capitalise Linux.
31943 (GRUB_MOD_INIT): Gettextizze.
31944 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31945 (grub_cmd_linux): Capitalise Linux.
31946 (GRUB_MOD_INIT): Gettextizze.
31947 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31948 (GRUB_MOD_INIT): Gettextizze.
31949 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31950 (grub_cmd_linux): Capitalise Linux.
31951 (GRUB_MOD_INIT): Gettextizze.
31952 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31953 (grub_cpu_xnu_init): Gettextizze.
31954 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31955 (GRUB_MOD_INIT): Gettextizze.
31956 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31957 (GRUB_MOD_INIT): Gettextizze.
31958 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31959 (grub_linux_load64): Capitalise Linux.
31960 (GRUB_MOD_INIT): Gettextizze.
31961 * loader/xnu.c: Include `<grub/i18n.h>'.
31962 (GRUB_MOD_INIT): Gettextizze.
31963 * po/POTFILES: Add `loader/efi/appleloader.c',
31964 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31965 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31966 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31967 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31968 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31969 and `loader/xnu.c'.
31970
31971 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31972
31973 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31974
31975 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31976
31977 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31978 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31979 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31980
31981 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31982
31983 Reset Multiboot 2 support. New loader implements the draft in
31984 /branches/multiboot2 and shares as much code as possible with the
31985 production Multiboot 1 implementation.
31986
31987 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31988 * loader/multiboot2.c: Likewise.
31989 * loader/i386/multiboot_helper.S: Likewise.
31990 * include/multiboot2.h: Replace with latest version from the draft
31991 in /branches/multiboot2.
31992
31993 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31994 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31995 and `loader/multiboot2.c'.
31996 (pkglib_MODULES): Add `multiboot2.mod'.
31997 (multiboot2_mod_SOURCES): New variable.
31998 (multiboot2_mod_LDFLAGS): Likewise.
31999 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32000
32001 * conf/i386-pc.rmk: Likewise.
32002
32003 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32004 (multiboot_mod_SOURCES): Remove variable.
32005 (multiboot_mod_LDFLAGS): Likewise.
32006 (multiboot_mod_CFLAGS): Likewise.
32007
32008 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32009 `<multiboot2.h>' instead of `<multiboot.h>'.
32010 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32011 (MULTIBOOT_HEADER_MAGIC): New macros.
32012
32013 * loader/multiboot_loader.c (module_version_status): Remove variable.
32014 (find_multi_boot2_header): Remove function.
32015 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32016 logic. Always check for the Multiboot version we're compiling for.
32017 (grub_cmd_module_loader): Likewise.
32018 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32019 command instead of `multiboot'.
32020
32021 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32022
32023 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32024 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32025 all users.
32026
32027 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32028 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32029
32030 Fix breakage introduced with previous commit.
32031
32032 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32033 commands.
32034 * normal/handler.c (read_handler_list): Revert part of previous commit
32035 affecting this file.
32036 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32037 (grub_normal_execute): ... here.
32038
32039 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32040
32041 Merge prefix-redefinition-fix branch.
32042
32043 * normal/autofs.c (read_fs_list): Make function capable of being
32044 run multiple times, gracefuly replacing the previous data
32045 structures.
32046 * normal/dyncmd.c (read_command_list): Likewise.
32047 * normal/handler.c (read_handler_list): Likewise.
32048 * normal/main.c (read_lists): New function. Calls all the
32049 list reading functions.
32050 (grub_normal_execute): Use read_lists() instead of calling all
32051 list reading functions explicitly. Register read_lists() as a
32052 variable hook attached to ${prefix}.
32053
32054 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32055
32056 Merge crypto branch.
32057
32058 * Makefile.in (pkglib_DATA): Add crypto.lst.
32059 (crypto.lst): New target.
32060 * commands/hashsum.c: New file.
32061 * commands/password.c (check_password): Use grub_crypto_memcmp.
32062 * commands/password_pbkdf2.c: New file.
32063 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32064 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32065 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32066 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32067 -I$(srcdir)/lib/libgcrypt_wrap.
32068 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32069 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32070 password_pbkdf2.mod.
32071 (crypto_mod_SOURCES): New variable.
32072 (crypto_mod_CFLAGS): Likewise.
32073 (crypto_mod_LDFLAGS): Likewise.
32074 (hashsum_mod_SOURCES): New variable.
32075 (hashsum_mod_CFLAGS): Likewise.
32076 (hashsum_mod_LDFLAGS): Likewise.
32077 (pbkdf2_mod_SOURCES): New variable.
32078 (pbkdf2_mod_CFLAGS): Likewise.
32079 (pbkdf2_mod_LDFLAGS): Likewise.
32080 (password_pbkdf2_mod_SOURCES): New variable.
32081 (password_pbkdf2_mod_CFLAGS): Likewise.
32082 (password_pbkdf2_mod_LDFLAGS): Likewise.
32083 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32084 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32085 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32086 Include conf/gcry.rmk.
32087 * include/grub/auth.h: Rewritten.
32088 * include/grub/crypto.h: New file.
32089 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32090 * include/grub/normal.h (read_crypto_list): New prototype.
32091 * lib/crypto.c: New file.
32092 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32093 * lib/pbkdf2.c: Likewise.
32094 * normal/auth.c (grub_auth_strcmp): Removed.
32095 (grub_iswordseparator): Likewise.
32096 (grub_auth_strword): Likewise.
32097 (is_authenticated): Use grub_strword.
32098 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32099 and grub_strword. Pass entered password to authentication callback.
32100 * normal/crypto.c: New file.
32101 * normal/main.c: Call read_crypto_list.
32102 * util/grub-mkpasswd-pbkdf2.c: New file.
32103 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32104
32105 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32106
32107 Fix descent and ascent calculation.
32108
32109 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32110 (options): New option "asce".
32111 (usage): Likewise.
32112 (add_char): Ignore invalid glyphs for descent calculation.
32113 Calculate ascent from actual content.
32114 (print_glyphs): Use 'asce'.
32115 (write_font): Likewise. Allow ascent override.
32116 (main): Handle "asce" option.
32117
32118 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32119
32120 * kern/err.c: Include `<grub/i18n.h>'.
32121 (grub_print_error): Add full stop. Gettextizze.
32122 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32123 (grub_bsd_load_elf): Capitalise ELF.
32124 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32125 (grub_cmd_freebsd_module): Likewise.
32126 (grub_cmd_freebsd_module_elf): Likewise.
32127 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32128
32129 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32130
32131 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32132 * commands/search_file.c (HELP_MESSAGE): New macro.
32133 * commands/search_label.c (HELP_MESSAGE): Likewise.
32134 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32135 * po/POTFILES: Add `commands/search_file.c',
32136 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32137 `commands/search.c'.
32138
32139 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32140
32141 * config.rpath: Update from Gnulib.
32142
32143 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32144
32145 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32146
32147 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32148
32149 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32150
32151 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32152
32153 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32154 arguments to fread so that we get a return value in bytes, rather
32155 than something that will normally be rounded down to 0.
32156 Adjust error handling to avoid producing garbage when size_t is not
32157 the same size as long long.
32158
32159 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32160
32161 * util/mkisofs/write.c (padblock_write): Check return value of
32162 fread.
32163
32164 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32165
32166 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32167 floppy images now.
32168
32169 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32170
32171 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32172
32173 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32174 instead of manual alignment.
32175 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32176 verbose). Avoid attempts to read past end of the device
32177 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32178 but GRUB_DISK_CACHE_SIZE may exceed that).
32179
32180 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32181
32182 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32183 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32184 it to upper layer.
32185
32186 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32187
32188 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32189 New constant.
32190 (grub_efi_piwg_device_path): New structure
32191 (grub_efi_piwg_device_path_t): New type.
32192 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32193 (devpath_1): Transform to a structure. All users updated.
32194 (devpath_2): Likewise.
32195 (devpath_3): Likewise.
32196 (devpath_4): Likewise.
32197 (devpath_5): Likewise.
32198
32199 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32200
32201 * loader/efi/appleloader.c: Restored. Update all users.
32202
32203 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32204
32205 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32206
32207 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32208 (struct boot_blocklist): Move from here ...
32209 * include/grub/i386/pc/boot.h [ASM_FILE]
32210 (struct grub_boot_blocklist): ... to here. Update all users.
32211 (setup): Only initialize `start' member of `first_block'
32212 structure. Add assert() calls to verify the other members.
32213
32214 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32215 (generate_image): Fix broken blocklist length initialization.
32216 Add assert() call to verify blocklist `segment' field.
32217
32218 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32219
32220 * loader/efi/appleloader.c: Remove. Update all users.
32221
32222 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32223
32224 * boot/i386/pc/boot.S: Update copyright year.
32225 * boot/i386/pc/cdboot.S: Likewise.
32226 * boot/i386/pc/diskboot.S: Likewise.
32227 * boot/i386/pc/lnxboot.S: Likewise.
32228 * boot/i386/pc/pxeboot.S: Likewise.
32229 * bus/pci.c: Likewise.
32230 * commands/cmp.c: Likewise.
32231 * commands/help.c: Likewise.
32232 * commands/hexdump.c: Likewise.
32233 * commands/i386/pc/halt.c: Likewise.
32234 * commands/i386/pc/play.c: Likewise.
32235 * commands/i386/pc/vbeinfo.c: Likewise.
32236 * commands/ls.c: Likewise.
32237 * commands/test.c: Likewise.
32238 * disk/dmraid_nvidia.c: Likewise.
32239 * disk/i386/pc/biosdisk.c: Likewise.
32240 * disk/ieee1275/nand.c: Likewise.
32241 * disk/ieee1275/ofdisk.c: Likewise.
32242 * disk/lvm.c: Likewise.
32243 * disk/raid.c: Likewise.
32244 * disk/raid6_recover.c: Likewise.
32245 * disk/scsi.c: Likewise.
32246 * fs/affs.c: Likewise.
32247 * fs/cpio.c: Likewise.
32248 * fs/ext2.c: Likewise.
32249 * fs/hfs.c: Likewise.
32250 * fs/iso9660.c: Likewise.
32251 * fs/ntfs.c: Likewise.
32252 * fs/sfs.c: Likewise.
32253 * fs/udf.c: Likewise.
32254 * fs/ufs.c: Likewise.
32255 * fs/xfs.c: Likewise.
32256 * gencmdlist.sh: Likewise.
32257 * genmk.rb: Likewise.
32258 * include/grub/disk.h: Likewise.
32259 * include/grub/efi/api.h: Likewise.
32260 * include/grub/efi/efi.h: Likewise.
32261 * include/grub/efi/pe32.h: Likewise.
32262 * include/grub/elf.h: Likewise.
32263 * include/grub/fs.h: Likewise.
32264 * include/grub/i386/at_keyboard.h: Likewise.
32265 * include/grub/i386/pc/memory.h: Likewise.
32266 * include/grub/i386/pc/vbe.h: Likewise.
32267 * include/grub/i386/pci.h: Likewise.
32268 * include/grub/i386/tsc.h: Likewise.
32269 * include/grub/ieee1275/ieee1275.h: Likewise.
32270 * include/grub/ntfs.h: Likewise.
32271 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32272 * include/grub/sparc64/libgcc.h: Likewise.
32273 * include/grub/symbol.h: Likewise.
32274 * include/grub/types.h: Likewise.
32275 * include/multiboot2.h: Likewise.
32276 * io/gzio.c: Likewise.
32277 * kern/device.c: Likewise.
32278 * kern/disk.c: Likewise.
32279 * kern/efi/efi.c: Likewise.
32280 * kern/efi/mm.c: Likewise.
32281 * kern/elf.c: Likewise.
32282 * kern/file.c: Likewise.
32283 * kern/i386/dl.c: Likewise.
32284 * kern/i386/pc/init.c: Likewise.
32285 * kern/i386/pc/startup.S: Likewise.
32286 * kern/ieee1275/ieee1275.c: Likewise.
32287 * kern/ieee1275/init.c: Likewise.
32288 * kern/main.c: Likewise.
32289 * kern/mm.c: Likewise.
32290 * kern/powerpc/dl.c: Likewise.
32291 * kern/sparc64/dl.c: Likewise.
32292 * kern/x86_64/dl.c: Likewise.
32293 * lib/hexdump.c: Likewise.
32294 * loader/efi/appleloader.c: Likewise.
32295 * loader/i386/ieee1275/linux.c: Likewise.
32296 * loader/i386/pc/chainloader.c: Likewise.
32297 * loader/i386/pc/linux.c: Likewise.
32298 * loader/i386/pc/multiboot2.c: Likewise.
32299 * loader/ieee1275/multiboot2.c: Likewise.
32300 * loader/multiboot2.c: Likewise.
32301 * loader/multiboot_loader.c: Likewise.
32302 * loader/powerpc/ieee1275/linux.c: Likewise.
32303 * normal/completion.c: Likewise.
32304 * normal/menu_entry.c: Likewise.
32305 * partmap/apple.c: Likewise.
32306 * util/grub.d/10_hurd.in: Likewise.
32307 * util/hostfs.c: Likewise.
32308 * video/readers/png.c: Likewise.
32309
32310 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32311
32312 * include/grub/misc.h (GNUC_PREREQ): New macro.
32313 (ATTRIBUTE_ERROR): New macro.
32314 * include/grub/list.h (grub_bad_type_cast_real): Use
32315 ATTRIBUTE_ERROR.
32316
32317 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32318
32319 * normal/menu_text.c (print_message): Change messages.
32320
32321 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32322
32323 * normal/menu_entry.c (store_completion): Gettextizze.
32324
32325 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32326
32327 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32328
32329 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32330
32331 * po/POTFILES: Sort correctly.
32332
32333 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32334
32335 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32336 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32337 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32338 full stop.
32339 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32340 summary. Gettextizze the strings.
32341 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32342 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32343 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32344 full stop.
32345 (GRUB_MOD_INIT): Remove command name from summary.
32346 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32347 summary.
32348 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32349 * term/i386/pc/serial.c (options): Add full stops.
32350 (GRUB_MOD_INIT): Remove command name from the summary.
32351
32352 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32353
32354 * commands/acpi.c: Gettextizze help strings and/or options. Include
32355 `grub/i18n.h' if needed.
32356 * commands/blocklist.c: Likewise.
32357 * commands/boot.c: Likewise.
32358 * commands/cat.c: Likewise.
32359 * commands/cmp.c: Likewise.
32360 * commands/configfile.c: Likewise.
32361 * commands/crc.c: Likewise.
32362 * commands/date.c: Likewise.
32363 * commands/echo.c: Likewise.
32364 * commands/efi/fixvideo.c: Likewise.
32365 * commands/efi/loadbios.c: Likewise.
32366 * commands/gptsync.c: Likewise.
32367 * commands/halt.c: Likewise.
32368 * commands/handler.c: Likewise.
32369 * commands/hdparm.c: Likewise.
32370 * commands/hexdump.c: Likewise.
32371 * commands/i386/cpuid.c: Likewise.
32372 * commands/i386/pc/drivemap.c: Likewise.
32373 * commands/i386/pc/halt.c: Likewise.
32374 * commands/i386/pc/pxecmd.c: Likewise.
32375 * commands/i386/pc/vbeinfo.c: Likewise.
32376 * commands/i386/pc/vbetest.c: Likewise.
32377 * commands/ieee1275/suspend.c: Likewise.
32378 * commands/keystatus.c: Likewise.
32379 * commands/loadenv.c: Likewise.
32380 * commands/ls.c: Likewise.
32381 * commands/lsmmap.c: Likewise.
32382 * commands/lspci.c: Likewise.
32383 * commands/memrw.c: Likewise.
32384 * commands/minicmd.c: Likewise.
32385 * commands/parttool.c: Likewise.
32386 * commands/password.c: Likewise.
32387 * commands/probe.c: Likewise.
32388 * commands/read.c: Likewise.
32389 * commands/reboot.c: Likewise.
32390 * commands/search.c: Likewise.
32391 * commands/sleep.c: Likewise.
32392 * commands/test.c: Likewise.
32393 * commands/true.c: Likewise.
32394 * commands/usbtest.c: Likewise.
32395 * commands/videotest.c: Likewise.
32396 * commands/xnu_uuid.c: Likewise.
32397 * disk/loopback.c: Likewise.
32398 * hello/hello.c: Likewise.
32399 * loader/i386/bsd.c: Likewise.
32400 * term/i386/pc/serial.c: Likewise.
32401 * po/POTFILES: Add new files.
32402
32403 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32404
32405 * term/i386/pc/at_keyboard.c
32406 (keyboard_controller_wait_untill_ready): Rename to ...
32407 (keyboard_controller_wait_until_ready): ... this. Update all users.
32408
32409 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32410
32411 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32412 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32413 string using string width.
32414 * normal/menu_text.c (grub_print_message_indented): Use
32415 grub_print_spaces and not print_spaces.
32416 (print_timeout): Likewise.
32417 (print_spaces): Move to...
32418 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32419
32420 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32421
32422 Import from Gnulib.
32423
32424 * gnulib/getdelim.c: New file.
32425 * gnulib/getline.c: Likewise.
32426
32427 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32428
32429 * include/grub/list.h (grub_assert_fail): Removed.
32430 (grub_bad_type_cast_real): New function.
32431 (grub_bad_type_cast): New macro.
32432 (GRUB_AS_LIST): Use grub_bad_type_cast.
32433 (GRUB_AS_LIST_P): Likewise.
32434 (GRUB_AS_NAMED_LIST): Likewise.
32435 (GRUB_AS_NAMED_LIST_P): Likewise.
32436 (GRUB_AS_PRIO_LIST): Likewise.
32437 (GRUB_AS_PRIO_LIST_P): Likewise.
32438 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32439
32440 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32441
32442 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32443 Fix syntax error.
32444
32445 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32446
32447 * configure.ac: Check for TARGET_CFLAGS initialization before we
32448 initialize it ourselves (sigh).
32449 Move a few modifications to TARGET_CFLAGS to be unconditional
32450 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32451 eh_frame)
32452
32453 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32454 * term/i386/pc/at_keyboard.c
32455 (keyboard_controller_wait_untill_ready): Likewise.
32456 (keyboard_controller_led): Rename `led_status' paramter to avoid
32457 name conflict.
32458
32459 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32460
32461 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32462 quotes.
32463
32464 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32465
32466 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32467
32468 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32469
32470 * normal/menu_text.c (grub_print_message_indented): Prevent
32471 past-the-end-of-array dereference.
32472
32473 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32474
32475 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32476 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32477
32478 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32479
32480 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32481 * normal/main.c (grub_normal_read_line): Remove a space from the
32482 default prompt.
32483
32484 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32485
32486 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32487 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32488 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32489 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32490 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32491 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32492 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32493
32494 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32495
32496 * video/readers/jpeg.c (cmd): Declare.
32497 (grub_cmd_jpegtest): Use `grub_command_t' type.
32498 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32499 Assign to `cmd'.
32500 (GRUB_MOD_FINI): Use `cmd' to unregister.
32501 * video/readers/png.c (cmd): Declare.
32502 (grub_cmd_pngtest): Use `grub_command_t' type.
32503 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32504 Assign to `cmd'.
32505 (GRUB_MOD_FINI): Use `cmd' to unregister.
32506 * video/readers/tga.c (cmd): Declare.
32507 (grub_cmd_tgatest): Use `grub_command_t' type.
32508 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32509 Assign to `cmd'.
32510 (GRUB_MOD_FINI): Use `cmd' to unregister.
32511
32512 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32513
32514 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32515 stops.
32516 * kern/corecmd.c (grub_register_core_commands): Likewise.
32517 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32518 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32519 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32520 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32521 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32522 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32523 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32524 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32525 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32526 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32527 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32528 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32529 * normal/handler.c (insert_handler): Likewise.
32530 * normal/main.c (GRUB_MOD_INIT): Likewise.
32531 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32532
32533 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32534
32535 * commands/help.c (grub_cmd_help): Print the command name before the
32536 summary.
32537 (GRUB_MOD_INIT): Remove command name from the summary.
32538 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32539 string as summary.
32540 * lib/arg.c (find_long): Print the command name before the summary.
32541 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32542 summary.
32543 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32544 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32545 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32546 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32547 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32548 * commands/date.c (GRUB_MOD_INIT): Likewise.
32549 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32550 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32551 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32552 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32553 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32554 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32555 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32556 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32557 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32558 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32559 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32560 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32561 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32562 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32563 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32564 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32565 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32566 * commands/password.c (GRUB_MOD_INIT): Likewise.
32567 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32568 * commands/read.c (GRUB_MOD_INIT): Likewise.
32569 * commands/search.c (GRUB_MOD_INIT): Likewise.
32570 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32571 * commands/test.c (GRUB_MOD_INIT): Likewise.
32572 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32573 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32574 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32575 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32576 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32577 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32578 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32579 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32580 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32581 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32582 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32583 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32584 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32585 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32586
32587 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32588
32589 Use search command for preliminar UUID search.
32590
32591 * commands/search.c: Split into ...
32592 * commands/search_wrap.c: ...this
32593 * commands/search.c: ...and this.
32594 * commands/search_file.c: New file.
32595 * commands/search_label.c: New file.
32596 * commands/search_uuid.c: New file.
32597 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32598 Add commands/search_wrap.c, commands/search_file.c,
32599 commands/search_label.c and commands/search_uuid.c.
32600 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32601 (search_mod_SOURCES): Set to commands/search_wrap.c.
32602 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32603 search_label.mod.
32604 (search_fs_file_mod_SOURCES): New variable.
32605 (search_fs_file_mod_CFLAGS): Likewise.
32606 (search_fs_file_mod_LDFLAGS): Likewise.
32607 (search_label_mod_SOURCES): Likewise.
32608 (search_label_mod_CFLAGS): Likewise.
32609 (search_label_mod_LDFLAGS): Likewise.
32610 (search_fs_uuid_mod_SOURCES): New variable.
32611 (search_fs_uuid_mod_CFLAGS): Likewise.
32612 (search_fs_uuid_mod_LDFLAGS): Likewise.
32613 (fs_file_mod_SOURCES): Removed.
32614 (fs_file_mod_CFLAGS): Likewise.
32615 (fs_file_mod_LDFLAGS): Likewise.
32616 (fs_uuid_mod_SOURCES): Removed.
32617 (fs_uuid_mod_CFLAGS): Likewise.
32618 (fs_uuid_mod_LDFLAGS): Likewise.
32619 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32620 Set to util/grub-install.in.
32621 * disk/fs_file.c: Removed.
32622 * disk/fs_uuid.c: Likewise.
32623 * include/grub/search.h: New file.
32624 * util/grub-install.in: Handle sparc64.
32625 Create and use load.cfg.
32626 * util/sparc64/ieee1275/grub-install.in: Removed.
32627
32628 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32629
32630 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32631 Ignore return status if CF is cleared.
32632 (grub_biosdisk_get_diskinfo_standard): Likewise.
32633
32634 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32635
32636 * term/i386/pc/at_keyboard.c
32637 (keyboard_controller_wait_untill_ready): New function.
32638 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32639 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32640 for keyboard polling, rather than duplicate the same loop. This
32641 saves a few bytes in code size.
32642
32643 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32644
32645 Support for (pxe[:server[:gateway]]) syntax and
32646 use environment variable for PXE.
32647
32648 * commands/i386/pc/pxecmd.c (options): Removed.
32649 (print_ip): Removed.
32650 (grub_cmd_pxe): Removed
32651 (grub_cmd_pxe_unload): New function.
32652 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32653 (grub_pxe_your_ip): Made static.
32654 (grub_pxe_default_server_ip): Likewise.
32655 (grub_pxe_default_gateway_ip): Likewise.
32656 (grub_pxe_blksize): Likewise.
32657 (parse_ip): New function.
32658 (grub_pxe_open): Support server and gateway specification.
32659 (grub_pxe_close): Free disk->data.
32660 (grub_pxefs_open): Use disk->data.
32661 (grub_pxefs_read): Likewise.
32662 (grub_env_write_readonly): New function.
32663 (set_mac_env): Likewise.
32664 (set_env_limn_ro): Likewise.
32665 (parse_dhcp_vendor): Likewise.
32666 (grub_pxe_detect): Set the environment variables.
32667 (set_ip_env): New function.
32668 (write_ip_env): Likewise.
32669 (grub_env_write_pxe_default_server): Likewise.
32670 (grub_env_write_pxe_default_gateway): Likewise.
32671 (grub_env_write_pxe_blocksize): Likewise.
32672 (GRUB_MOD_INIT(pxe)): Set environment variables.
32673 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32674 (grub_pxe_mac_addr_t): ... this. All users updated.
32675 (grub_pxe_your_ip): Removed.
32676 (grub_pxe_server_ip): Likewise.
32677 (grub_pxe_gateway_ip): Likewise.
32678 (grub_pxe_blksize): Likewise.
32679
32680 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32681
32682 * commands/help.c: Include `<grub/i18n.h>'.
32683 (grub_cmd_help): Gettextizze.
32684 (GRUB_MOD_INIT): Likewise.
32685 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32686 (GRUB_MOD_INIT): Gettextizze.
32687 * commands/search.c: Include `<grub/i18n.h>'.
32688 (options): Gettextizze.
32689 (GRUB_MOD_INIT): Gettextizze.
32690 * lib/arg.c: Include `<grub/i18n.h>'.
32691 (help_options): Gettextizze.
32692 (find_long): Likewise.
32693 (grub_arg_show_help): Likewise.
32694 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32695 (read_command_list): Gettextizze.
32696 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32697 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32698
32699 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32700
32701 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32702 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32703 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32704 (led_status): New variable.
32705 (keyboard_controller_led): New function.
32706 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32707 update led status for caps lock, num lock and scroll lock.
32708
32709 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32710
32711 * util/hostdisk.c (open_device): Fix a comment.
32712
32713 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32714
32715 * util/grub-install.in (host_os): New variable.
32716 * util/i386/efi/grub-install.in (host_os): Likewise.
32717
32718 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32719
32720 * util/mkisofs/write.c (padblock_write): Abort when given an
32721 excedingly large embed image, instead of silently truncating it.
32722
32723 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32724
32725 * include/multiboot.h: Indentation fixes.
32726
32727 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32728
32729 * include/multiboot.h (struct multiboot_aout_symbol_table)
32730 (struct multiboot_elf_section_header_table): New structure
32731 declarations (stolen from GRUB Legacy).
32732 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32733 table information.
32734
32735 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32736 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32737 type aliases.
32738
32739 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32740
32741 * include/multiboot.h: Make comments src2texi-friendly.
32742
32743 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32744
32745 For consistency with [multiboot]/docs/boot.S.
32746
32747 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32748 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32749 (MULTIBOOT_MAGIC2): Rename from this ...
32750 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32751
32752 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32753
32754 * include/multiboot.h: Remove `<grub/types.h>'.
32755 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32756 types. Update all users.
32757
32758 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32759
32760 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32761 `couldn't' and `can not' by `cannot'.
32762 * commands/i386/pc/drivemap.c: Likewise.
32763 * disk/ata.c: Likewise.
32764 * disk/ieee1275/nand.c: Likewise.
32765 * fs/affs.c: Likewise.
32766 * fs/fat.c: Likewise.
32767 * fs/hfs.c: Likewise.
32768 * fs/hfsplus.c: Likewise.
32769 * fs/iso9660.c: Likewise.
32770 * fs/jfs.c: Likewise.
32771 * fs/minix.c: Likewise.
32772 * fs/reiserfs.c: Likewise.
32773 * fs/sfs.c: Likewise.
32774 * fs/udf.c: Likewise.
32775 * fs/ufs.c: Likewise.
32776 * fs/xfs.c: Likewise.
32777 * loader/powerpc/ieee1275/linux.c: Likewise.
32778 * loader/sparc64/ieee1275/linux.c: Likewise.
32779 * util/grub-probe.c: Likewise.
32780 * util/misc.c: Likewise.
32781
32782 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32783
32784 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32785 grub_errno calls.
32786 * commands/acpi.c: Likewise.
32787 * commands/blocklist.c: Likewise.
32788 * commands/efi/loadbios.c: Likewise.
32789 * commands/i386/pc/drivemap.c: Likewise.
32790 * commands/loadenv.c: Likewise.
32791 * commands/memrw.c: Likewise.
32792 * commands/password.c: Likewise.
32793 * commands/videotest.c: Likewise.
32794 * disk/ata.c: Likewise.
32795 * disk/ata_pthru.c: Likewise.
32796 * disk/dmraid_nvidia.c: Likewise.
32797 * disk/ieee1275/nand.c: Likewise.
32798 * disk/ieee1275/ofdisk.c: Likewise.
32799 * disk/loopback.c: Likewise.
32800 * disk/lvm.c: Likewise.
32801 * disk/mdraid_linux.c: Likewise.
32802 * disk/raid.c: Likewise.
32803 * disk/raid6_recover.c: Likewise.
32804 * disk/scsi.c: Likewise.
32805 * efiemu/main.c: Likewise.
32806 * efiemu/mm.c: Likewise.
32807 * efiemu/pnvram.c: Likewise.
32808 * efiemu/symbols.c: Likewise.
32809 * font/font.c: Likewise.
32810 * fs/cpio.c: Likewise.
32811 * fs/hfsplus.c: Likewise.
32812 * fs/iso9660.c: Likewise.
32813 * fs/jfs.c: Likewise.
32814 * fs/minix.c: Likewise.
32815 * fs/ntfs.c: Likewise.
32816 * fs/ntfscomp.c: Likewise.
32817 * fs/reiserfs.c: Likewise.
32818 * fs/ufs.c: Likewise.
32819 * fs/xfs.c: Likewise.
32820 * gettext/gettext.c: Likewise.
32821 * include/grub/auth.h: Likewise.
32822 * kern/elf.c: Likewise.
32823 * kern/file.c: Likewise.
32824 * kern/ieee1275/init.c: Likewise.
32825 * kern/ieee1275/mmap.c: Likewise.
32826 * kern/ieee1275/openfw.c: Likewise.
32827 * kern/powerpc/dl.c: Likewise.
32828 * kern/sparc64/dl.c: Likewise.
32829 * lib/arg.c: Likewise.
32830 * loader/i386/bsd.c: Likewise.
32831 * loader/i386/bsdXX.c: Likewise.
32832 * loader/i386/efi/linux.c: Likewise.
32833 * loader/i386/efi/xnu.c: Likewise.
32834 * loader/i386/ieee1275/linux.c: Likewise.
32835 * loader/i386/linux.c: Likewise.
32836 * loader/i386/multiboot.c: Likewise.
32837 * loader/i386/pc/linux.c: Likewise.
32838 * loader/i386/pc/multiboot2.c: Likewise.
32839 * loader/i386/xnu.c: Likewise.
32840 * loader/ieee1275/multiboot2.c: Likewise.
32841 * loader/macho.c: Likewise.
32842 * loader/machoXX.c: Likewise.
32843 * loader/multiboot2.c: Likewise.
32844 * loader/multiboot_loader.c: Likewise.
32845 * loader/powerpc/ieee1275/linux.c: Likewise.
32846 * loader/sparc64/ieee1275/linux.c: Likewise.
32847 * loader/xnu.c: Likewise.
32848 * loader/xnu_resume.c: Likewise.
32849 * mmap/i386/pc/mmap.c: Likewise.
32850 * normal/menu_viewer.c: Likewise.
32851 * partmap/acorn.c: Likewise.
32852 * partmap/amiga.c: Likewise.
32853 * partmap/apple.c: Likewise.
32854 * script/lexer.c: Likewise.
32855 * term/gfxterm.c: Likewise.
32856 * term/i386/pc/serial.c: Likewise.
32857 * term/i386/pc/vga.c: Likewise.
32858 * term/ieee1275/ofconsole.c: Likewise.
32859 * term/terminfo.c: Likewise.
32860 * video/bitmap.c: Likewise.
32861 * video/efi_gop.c: Likewise.
32862 * video/efi_uga.c: Likewise.
32863 * video/fb/video_fb.c: Likewise.
32864 * video/i386/pc/vbe.c: Likewise.
32865 * video/readers/tga.c: Likewise.
32866 * video/video.c: Likewise.
32867
32868 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32869
32870 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32871 * commands/lspci.c: Likewise.
32872 * commands/probe.c: Likewise.
32873 * commands/xnu_uuid.c: Likewise.
32874 * conf/i386-coreboot.rmk: Likewise.
32875 * conf/i386-efi.rmk: Likewise.
32876 * conf/i386-ieee1275.rmk: Likewise.
32877 * conf/i386-pc.rmk: Likewise.
32878 * conf/powerpc-ieee1275.rmk: Likewise.
32879 * conf/sparc64-ieee1275.rmk: Likewise.
32880 * conf/x86_64-efi.rmk: Likewise.
32881 * fs/i386/pc/pxe.c: Likewise.
32882 * gettext/gettext.c: Likewise.
32883 * include/grub/efi/graphics_output.h: Likewise.
32884 * include/grub/i386/pc/memory.h: Likewise.
32885 * kern/env.c: Likewise.
32886 * kern/i386/qemu/startup.S: Likewise.
32887 * lib/i386/pc/biosnum.c: Likewise.
32888 * lib/i386/relocator.c: Likewise.
32889 * lib/i386/relocator_asm.S: Likewise.
32890 * lib/relocator.c: Likewise.
32891 * loader/i386/bsd.c: Likewise.
32892 * loader/i386/multiboot.c: Likewise.
32893 * loader/i386/pc/chainloader.c: Likewise.
32894 * loader/i386/xnu.c: Likewise.
32895 * loader/xnu.c: Likewise.
32896 * normal/main.c: Likewise.
32897 * normal/menu_text.c: Likewise.
32898 * util/getroot.c: Likewise.
32899 * util/grub-mkconfig_lib.in: Likewise.
32900 * util/grub.d/00_header.in: Likewise.
32901 * util/i386/pc/grub-mkimage.c: Likewise.
32902 * util/mkisofs/eltorito.c: Likewise.
32903 * util/mkisofs/exclude.h: Likewise.
32904 * util/mkisofs/hash.c: Likewise.
32905 * util/mkisofs/iso9660.h: Likewise.
32906 * util/mkisofs/joliet.c: Likewise.
32907 * util/mkisofs/mkisofs.c: Likewise.
32908 * util/mkisofs/mkisofs.h: Likewise.
32909 * util/mkisofs/multi.c: Likewise.
32910 * util/mkisofs/name.c: Likewise.
32911 * util/mkisofs/rock.c: Likewise.
32912 * util/mkisofs/tree.c: Likewise.
32913 * util/mkisofs/write.c: Likewise.
32914 * video/efi_gop.c: Likewise.
32915
32916 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32917
32918 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32919 size counting.
32920
32921 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32922
32923 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32924 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32925
32926 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32927
32928 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32929 (GRUB_MOD_INIT(memrw)): Update help line.
32930
32931 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32932
32933 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32934 Use grub_extcmd_t. All users updated.
32935 (options): New variable.
32936 (grub_cmd_read): Restructure for readability. Support "-v" option.
32937 (grub_cmd_write): Restructure for readability.
32938
32939 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32940
32941 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32942
32943 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32944
32945 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32946 with the actual contents of the correspondending make variable.
32947 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32948 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32949 specifying `*.lst' and `efiemu??.o'
32950
32951 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32952
32953 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32954 after function name.
32955 Noticed by Rene Engelhard <rene@debian.org>.
32956
32957 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32958
32959 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32960 (options): New variable.
32961 (iospace): Likewise.
32962 (grub_lspci_iter): List IO spaces if "-i" was given.
32963 (grub_cmd_lspci): Parse options.
32964 (GRUB_MOD_INIT(lspci)): Use extcmd.
32965 (GRUB_MOD_FINI(lspci)): Likewise.
32966
32967 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32968
32969 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32970 `function' keyword.
32971 Patch by Tony Mancill <tmancill@debian.org>.
32972
32973 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32974
32975 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32976 (grub_uhci_portstatus): Likewise.
32977 (grub_uhci_portstatus): Add necessary delay.
32978 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32979
32980 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32981
32982 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32983 (GRUB_MOD_INIT): Likewise.
32984 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32985 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32986 * commands/echo.c (options): Fix capitalizations and/or full stops.
32987 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32988 (enable_rom_area): Likewise.
32989 (GRUB_MOD_INIT): Likewise.
32990 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32991 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32992 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32993 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32994 * commands/hexdump.c (options): Likewise.
32995 * commands/i386/cpuid.c (options): Likewise.
32996 (GRUB_MOD_INIT): Likewise.
32997 * commands/i386/pc/drivemap.c (options): Likewise.
32998 (GRUB_MOD_INIT): Likewise.
32999 * commands/i386/pc/halt (options): Likewise.
33000 (GRUB_MOD_INIT): Likewise.
33001 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33002 * commands/i386/pc/pxecmd.c (options): Likewise.
33003 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33004 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33005 * commands/keystatus.c (options): Likewise.
33006 (GRUB_MOD_INIT): Likewise.
33007 * commands/loadenv.c (options): Likewise.
33008 * commands/ls.c (options): Likewise.
33009 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33010 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33011 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33012 * commands/parttool.c (helpmsg): Likewise.
33013 * commands/probe.c (options): Likewise.
33014 * commands/read.c (GRUB_MOD_INIT): Likewise.
33015 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33016 * commands/search.c (options): Likewise.
33017 * commands/sleep.c (options): Likewise.
33018 * commands/test.c (GRUB_MOD_INIT): Likewise.
33019 * commands/true.c (GRUB_MOD_INIT): Likewise.
33020 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33021 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33022 * lib/arg.c (help_options): Likewise.
33023 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33024 `$(XGETTEXT)'.
33025 * po/POTFILES: Add `commands/loadenv.c'.
33026
33027 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33028
33029 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33030 instead of specifying them explicit.
33031
33032 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33033
33034 * NEWS: Add grub-probe support for GNU/Hurd.
33035
33036 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33037
33038 * NEWS: gettext was added after 1.97.
33039
33040 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33041
33042 * util/mkisofs/msdos_partition.h: New file (based on
33043 include/grub/msdos_partition.h).
33044 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33045 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33046 (ld_options, main): Recognize --protective-msdos-label.
33047 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33048 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33049 (padblock_write): If `use_protective_msdos_label' is set, patch a
33050 protective DOS-style label in the output image.
33051
33052 * util/grub-mkrescue.in: Use --protective-msdos-label.
33053
33054 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33055
33056 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33057 boot.
33058
33059 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33060
33061 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33062 variables.
33063 (ld_options, main): Recognize `--embedded-boot'.
33064 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33065 declarations.
33066 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33067 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33068 (padblock_write): Likewise. Rewrite to support embedded boot image.
33069
33070 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33071 for BIOS-based disk boot instead of only ElTorito.
33072
33073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33074
33075 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33076 build (not needed for bootstrap).
33077
33078 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33079
33080 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33081 from i386-pc build (not needed for bootstrap).
33082 Rewrite a pair of strings.
33083
33084 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33085
33086 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33087
33088 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33089
33090 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33091
33092 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33093
33094 * kern/env.c (grub_env_context_open): Mark exported variable for
33095 reexport.
33096
33097 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33098
33099 * kern/env.c (grub_env_export): Create nonexistent variables before
33100 exporting.
33101
33102 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33103
33104 * include/grub/auth.h: Include `<grub/i18n.h>'.
33105 (GRUB_GET_PASSWORD): Gettextizze string.
33106 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33107 menu_text.c.
33108 (grub_utf8_to_ucs4_alloc): Fix indentation.
33109 (grub_print_ucs4): Likewise.
33110 (grub_getstringwidth): Likewise.
33111 (print_message_indented): New declaration.
33112 * normal/auth.c: Include `<grub/i18n.h>'.
33113 (grub_auth_check_authentication): Gettexttize string.
33114 * normal/cmdline.c: Include `<grub/i18n.h>'.
33115 (grub_cmdline_get): Gettextizze.
33116 * normal/color.c: Include `<grub/i18n.h>'.
33117 (grub_parse_color_name_pair): Gettexttize strings.
33118 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33119 string (use `print_message_indented').
33120 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33121 `include/grub/normal.h'.
33122 (print_message_indented): Renamed to ...
33123 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33124 used in normal/main.c).
33125 (print_message): Use `grub_print_message_indented' instead of
33126 `print_message_indented'.
33127 (print_timeout): Likewise.
33128 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33129 (grub_normal_print_device_info): Gettexttize strings.
33130 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33131
33132 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33133
33134 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33135 of arguments. Return number of tokens and not arguments. All users
33136 updated.
33137
33138 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33139
33140 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33141 non-MSDOS paritions.
33142
33143 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33144
33145 * include/grub/types.h (UNUSED): Removed since it conflicts with
33146 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33147 Reported by Grégoire Sutre.
33148
33149 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33150
33151 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33152 (grub_print_ucs4_alloc): Likewise.
33153 (grub_getstringwidth): Likewise.
33154 * normal/main.c (grub_normal_init_page): Gettextize version string.
33155 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33156 (getstringwidth): Renamed to ...
33157 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33158 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33159 (grub_print_ucs4): Remove `static' qualifer (now used in
33160 normal/main.c).
33161 * po/POTFILES: Add normal/main.c.
33162
33163 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33164
33165 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33166 (print_message_indented): Add `margin_left' and `margin_right'
33167 parameters.
33168 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33169 strings.
33170 (print_timeout): Use `print_message_indented' to print the message.
33171 Deletes `second_stage' parameter.
33172 (run_menu): Update `print_timeout' calls.
33173
33174 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33175
33176 Fix console palette on OpenFirmware.
33177
33178 * term/ieee1275/ofconsole.c (MAX): Removed.
33179 (colors): Redone based on VGA palette.
33180 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33181 colors are supported.
33182 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33183
33184 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33185
33186 Fix potential EfiEmu double prepare.
33187
33188 * efiemu/main.c (prepared): New variable
33189 (grub_efiemu_unload): Set prepare to '0'.
33190 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33191
33192 set_virtual_address_map support.
33193
33194 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33195 prototype.
33196 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33197 prototype.
33198 (grub_efiemu_crc32): Likewise.
33199 (grub_efiemu_crc64): Likewise.
33200 (grub_efiemu_set_virtual_address_map): Likewise.
33201 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33202 New definition.
33203 (grub_autoefi_set_virtual_address_map): Likewise.
33204 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33205 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33206 Restructure flow to accomodate it.
33207 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33208 (grub_efiemu_crc): Recompute CRC32.
33209 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33210 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33211 * efiemu/symbols.c (relocated_handle): New variable.
33212 (grub_efiemu_free_syms): Free relocated_handle.
33213 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33214 (grub_efiemu_write_sym_markers): New function.
33215 (grub_efiemu_set_virtual_address_map): Likewise.
33216
33217 Newer XNU parameters.
33218
33219 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33220 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33221 (grub_xnu_fill_devicetree): New prototype.
33222 (grub_xnu_heap_real_start): New variable.
33223 * loader/xnu.c (get_name_ptr): New function.
33224 (grub_xnu_load_driver): Fill namelen and name.
33225
33226 64-bit xnu support.
33227
33228 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33229 and 'loader/macho64.c'.
33230 * conf/i386-pc.rmk: Likewise.
33231 * conf/x86_64-efi.rmk: Likewise.
33232 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33233 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33234 * include/grub/macho.h (grub_macho_segment64): New structure.
33235 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33236 (grub_macho_size32): ... to this.
33237 (grub_macho32_get_entry_point): Renamed from ...
33238 (grub_macho_get_entry_point32): ... to this.
33239 (grub_macho_contains_macho64): New prototype.
33240 (grub_macho_size64): Likewise.
33241 (grub_macho_get_entry_point64): Likewise.
33242 (grub_macho32_load): Renamed from ...
33243 (grub_macho_load32): ... to this.
33244 (grub_macho32_filesize): Renamed from ...
33245 (grub_macho_filesize32): ... to this.
33246 (grub_macho32_readfile): Renamed from ...
33247 (grub_macho_readfile32): ... to this.
33248 (grub_macho_filesize64): New prototype.
33249 (grub_macho_readfile64): Likewise.
33250 (grub_macho_parse32): Likewise.
33251 (grub_macho_parse64): Likewise.
33252 * loader/macho.c: Split into ...
33253 * loader/machoXX.c: ... and this. Replace 32 with XX.
33254 * loader/macho32.c: New file.
33255 * loader/macho64.c: Likewise.
33256 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33257 (grub_cmd_xnu_kernel): Make 32-bit only.
33258 (grub_cmd_xnu_kernel64): New function.
33259 (grub_xnu_load_driver): Support Mach-O 64.
33260 (grub_cmd_xnu_mkext): Likewise.
33261 * util/grub.d/30_os-prober.in (osx_entry): New function.
33262 Generate entries for 64-bit boot too.
33263
33264 Eliminate ad-hoc tree format in XNU and EfiEmu.
33265
33266 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33267 * efiemu/pnvram.c: Rewritten to use environment variables.
33268 All users updated.
33269
33270 Inline utf16_to_utf8.
33271
33272 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33273 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33274 All users updated.
33275 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33276
33277 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33278 * commands/usbtest.c (grub_usb_get_string): ... move here.
33279 (usb_print_str): Fix error handling.
33280 * include/grub/usb.h (grub_usb_get_string): Remove.
33281
33282 UTF-8 to UTF-16 transformation.
33283
33284 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33285 (charset_mod_SOURCES): New variable.
33286 (charset_mod_CFLAGS): Likewise.
33287 (charset_mod_LDFLAGS): Likewise.
33288 * include/grub/utf.h: New file.
33289 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33290
33291 Support for device properties.
33292
33293 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33294 (grub_xnu_devprop_device_header): Likewise.
33295 (grub_xnu_devprop_device_descriptor): Likewise.
33296 (grub_xnu_devprop_add_device): New prototype.
33297 (grub_xnu_devprop_remove_device): Likewise.
33298 (grub_xnu_devprop_remove_property): Likewise.
33299 (grub_xnu_devprop_add_property_utf8): Likewise.
33300 (grub_xnu_devprop_add_property_utf16): Likewise.
33301 (grub_cpu_xnu_init): Likewise.
33302 (grub_cpu_xnu_fini): Likewise.
33303 (grub_cpu_xnu_unload): Likewise.
33304 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33305 (property_descriptor): Likewise.
33306 (devices): New variable.
33307 (grub_xnu_devprop_remove_property): New function.
33308 (grub_xnu_devprop_add_device): Likewise.
33309 (grub_xnu_devprop_remove_device): Likewise.
33310 (grub_xnu_devprop_add_property): Likewise.
33311 (grub_xnu_devprop_add_property_utf8): Likewise.
33312 (grub_xnu_devprop_add_property_utf16): Likewise.
33313 (hextoval): Likewise.
33314 (grub_cpu_xnu_fill_devprop): Likewise.
33315 (grub_cmd_devprop_load): Likewise.
33316 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33317 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33318 (cmd_devprop_load): New variable.
33319 (grub_cpu_xnu_init): New function.
33320 (grub_cpu_xnu_fini): Likewise.
33321 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33322 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33323 (grub_cmd_xnu_devtree): Likewise.
33324 (hextoval): New function.
33325 (unescape): Likewise.
33326 (grub_xnu_fill_devicetree): Likewise.
33327
33328 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33329 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33330
33331 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33332
33333 Workaround for broken ATI VBE.
33334
33335 * video/i386/pc/vbe.c (last_set_mode): New variable.
33336 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33337 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33338 (grub_video_vbe_setup): Don't check for reserved flag.
33339
33340 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33341
33342 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33343 the `find' command.
33344
33345 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33346
33347 UUID support for HFS.
33348
33349 * fs/hfs.c (grub_hfs_uuid): New function.
33350 (grub_hfs_fs): New value .uuid.
33351 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33352
33353 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33354
33355 Fix a segfault with parsing unknown long options.
33356
33357 * util/grub-mkrelpath.c (options): Zero terminate it.
33358
33359 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33360
33361 * include/grub/misc.h (grub_puts): New declaration.
33362 (grub_puts_): Likewise.
33363 * kern/misc.c (grub_puts): New definition.
33364 (grub_puts_): Likewise.
33365
33366 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33367
33368 * util/grub-probe.c (probe): Improve error message.
33369
33370 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33371
33372 * loader/i386/multiboot_elfxx.c
33373 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33374 initialization.
33375
33376 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33377
33378 Relocator framework
33379
33380 * loader/i386/xnu_helper.S: Removed. All users updated.
33381 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33382 (relocator_mod_SOURCES): New variable.
33383 (relocator_mod_CFLAGS): Likewise.
33384 (relocator_mod_LDFLAGS): Likewise.
33385 (relocator_mod_ASFLAGS): Likewise.
33386 * conf/x86_64.rmk: Likewise.
33387 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33388 (grub_multiboot_payload_entry_offset): Likewise.
33389 (grub_multiboot_forward_relocator): Likewise.
33390 (grub_multiboot_forward_relocator_end): Likewise.
33391 (grub_multiboot_backward_relocator): Likewise.
33392 (grub_multiboot_backward_relocator_end): Likewise.
33393 (grub_multiboot_payload_eip): New variable.
33394 (grub_multiboot_payload_orig): Likewise.
33395 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33396 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33397 * include/grub/i386/memory.h
33398 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33399 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33400 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33401 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33402 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33403 * include/grub/i386/relocator.h: New file.
33404 * include/grub/x86_64/relocator.h: Likewise.
33405 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33406 (XNU_RELOCATOR): New macro.
33407 (grub_xnu_launcher_start): Remove.
33408 (grub_xnu_launcher_end): Likewise.
33409 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33410 (grub_xnu_heap_real_start): Remove.
33411 (grub_xnu_heap_start): Change to void *. All users updated.
33412 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33413 * lib/i386/relocator.c: New file.
33414 * lib/i386/relocator_asm.S: Likewise.
33415 * lib/i386/relocator_backward.S: Likewise.
33416 * lib/mips/relocator.c: Likewise.
33417 * lib/mips/relocator_asm.S: Likewise.
33418 * lib/relocator.c: Likewise.
33419 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33420 (entry): Removed.
33421 (playground): Likewise.
33422 (grub_multiboot_payload_orig): New variable.
33423 (grub_multiboot_payload_dest): Likewise.
33424 (grub_multiboot_payload_size): Likewise.
33425 (grub_multiboot_payload_eip): Likewise.
33426 (grub_multiboot_payload_esp): Likewise.
33427 (grub_multiboot_boot): Use grub_relocator32_boot.
33428 (grub_multiboot_unload): Free relocators.
33429 (grub_multiboot): Setup stack. Use relocators.
33430 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33431 (grub_multiboot_load_elfXX): Use relocators.
33432 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33433 (grub_multiboot_payload_size): Likewise.
33434 (grub_multiboot_payload_dest): Likewise.
33435 (grub_multiboot_payload_entry_offset): Likewise.
33436 (grub_multiboot_forward_relocator): Likewise.
33437 (grub_multiboot_backward_relocator): Likewise.
33438 (grub_multiboot_real_boot): Likewise.
33439 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33440 (grub_xnu_entry_point): Likewise.
33441 (grub_xnu_arg1): Likewise.
33442 (grub_xnu_stack): Likewise.
33443 (grub_xnu_launch): Removed.
33444 (grub_xnu_boot_resume): New function.
33445 (grub_xnu_boot): Use relocators.
33446 * loader/i386/xnu_helper.S: Removed.
33447 * loader/xnu.c (grub_xnu_heap_start): New variable.
33448 (grub_xnu_heap_size): Likewise.
33449 (grub_xnu_heap_malloc): Use relocators.
33450 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33451
33452 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33453
33454 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33455 anything.
33456
33457 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33458
33459 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33460 GRUB_ERR_NONE before calling grub_env_set.
33461
33462 2009-12-12 Robert Millan <rmh@aybabtu.com>
33463
33464 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33465 * genmk.rb (video): New variable.
33466 (CLEANFILES, VIDEOFILES): Add #{video}.
33467 (#{video}): New target rule.
33468 * genvideolist.sh: New file.
33469 * Makefile.in (pkglib_DATA): Add video.lst.
33470 (video.lst): New target rule.
33471 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33472 `video.lst'.
33473 * util/grub.d/30_os-prober.in: Replace `vbe' with
33474 ${GRUB_VIDEO_BACKEND}.
33475
33476 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33477
33478 * THANKS: Add David Miller.
33479
33480 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33481
33482 libpciaccess support.
33483
33484 * Makefile.in (LIBPCIACCESS): New variable.
33485 (enable_grub_emu_pci): Likewise.
33486 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33487 util/pci.c and commands/lspci.c.
33488 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33489 * configure.ac (grub-emu-pci): New option.
33490 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33491 (grub_pci_device_unmap_range): Likewise.
33492 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33493 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33494 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33495 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33496 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33497 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33498 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33499 * include/grub/pciutils.h: New file.
33500 * util/pci.c: Likewise.
33501
33502 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33503
33504 * util/misc.c: Don't include <errno.h> twice.
33505
33506 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33507
33508 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33509 name in an error message.
33510 (grub_biosdisk_rw): Likewise.
33511
33512 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33513
33514 Eliminate NTFS 4Gib barrier.
33515
33516 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33517 (read_run_data): Likewise.
33518 (grub_ntfs_read_run_list): Likewise.
33519 (grub_ntfs_read_block): Likewise.
33520 (grub_ntfs_iterate_dir): Likewise.
33521 (read_mft): Likewise.
33522 (read_data): Likewise.
33523 Use COM_LOG_LEN.
33524 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33525 to avoid 64-bit division
33526 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33527 (grub_ntfs_rlst): Use grub_disk_addr_t.
33528
33529 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33530
33531 Eliminate grub-fstest 4Gib barrier.
33532
33533 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33534 (read_file): Fix error reporting.
33535
33536 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33537
33538 Eliminate hexdump 4Gib barrier.
33539
33540 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33541 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33542
33543 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33544
33545 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33546 Fixes amarsh bug.
33547
33548 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33549
33550 Remove miscellaneous files in distclean target.
33551
33552 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33553
33554 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33555
33556 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33557 if they're already set. This resolves the conflict between my
33558 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33559 fixing the --grub-probe option again.
33560 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33561 change on 2009-10-06, so that we now once again source
33562 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33563
33564 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33565
33566 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33567 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33568 `util/devicemap.c'.
33569
33570 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33571
33572 * include/grub/misc.h (grub_printf_): New declaration.
33573 * kern/misc.c (grub_printf_): New definition.
33574 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33575 instead of `grub_printf' and `_'.
33576 * normal/menu_entry.c (store_completion): Likewise.
33577 (run): Likewise.
33578 (grub_menu_entry_run): Likewise.
33579 * normal/menu_text.c (grub_wait_after_message): Likewise.
33580 (notify_booting): Likewise.
33581 (notify_fallback): Likewise.
33582 (notify_execution_failure): Likewise.
33583
33584 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33585
33586 * configure.ac: Check for vasprintf.
33587 * util/misc.c (asprintf): Move allocation from here ...
33588 (vasprintf): ... to here. New function.
33589 (xasprintf): New function.
33590 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33591 prototypes.
33592 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33593 * util/grub-mkfont.c (write_font): Likewise.
33594 * util/grub-probe.c (probe): Likewise.
33595 * util/hostdisk.c (make_device_name): Likewise.
33596
33597 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33598
33599 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33600 anything even prefixed with 'cdrom' as a cdrom.
33601
33602 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33603
33604 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33605 mount points.
33606
33607 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33608
33609 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33610 grub_gettext_msg_list.
33611 (grub_gettext_gettranslation_from_position): Return const char *
33612 and not char *.
33613 (grub_gettext_translate): Add the translated strings into a list,
33614 returns from the list if existing there.
33615 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33616 (grub_gettext_delete_list): Delete the list.
33617 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33618 lang environment variable is changed.
33619 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33620
33621 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33622
33623 Rename kernel.mod to kernel.img.
33624
33625 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33626 (kernel_mod_EXPORTS): Rename to ...
33627 (kernel_img_EXPORTS): ... this.
33628 (kernel_mod_SOURCES): Rename to ...
33629 (kernel_img_SOURCES): ... this.
33630 (kernel_mod_HEADERS): Rename to ...
33631 (kernel_img_HEADERS): ... this. All users updated.
33632 (kernel_mod_CFLAGS): Rename to ...
33633 (kernel_img_CFLAGS): ... this.
33634 (kernel_mod_ASFLAGS): Rename to ...
33635 (kernel_img_ASFLAGS): ... this.
33636 (kernel_mod_LDFLAGS): Rename to ...
33637 (kernel_img_LDFLAGS): ... this.
33638 * conf/x86_64-efi.rmk: Likewise.
33639 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33640 (read_kernel_image): ... this. All users updated.
33641 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33642
33643 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33644
33645 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33646 (print_spaces): New function.
33647 (grub_print_ucs4): New function.
33648 (getstringwidth): New function.
33649 (print_message_indented): New function.
33650 (print_message): Gettexttize strings using print_message_indented.
33651 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33652 width.
33653 (get_entry_number): Gettextize and uses dynamic terminal width.
33654 (notify_booting, notify_fallback, notify_execution_failure):
33655 Gettextize.
33656 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33657 string.
33658 (run): Likewise.
33659 (grub_menu_entry_run): Likewise.
33660 * PO/POTFILES: Add normal/menu_entry.c.
33661
33662 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33663
33664 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33665
33666 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33667
33668 * util/grub-install.in: Install gettext .mo files.
33669 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33670
33671 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33672
33673 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33674 grub_dprintf.
33675
33676 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33677
33678 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33679 non-firmware-dependant one in realmode.S takes precedence.
33680
33681 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33682
33683 * commands/halt.c: Replace misc arch-specific headers with
33684 `<grub/misc.h>'.
33685 * commands/reboot.c: Likewise.
33686 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33687 `<grub/misc.h>'.
33688 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33689 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33690 (kernel_img_SOURCES): ... to here.
33691
33692 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33693 * include/grub/i386/pc/init.h: Likewise.
33694 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33695 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33696
33697 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33698
33699 * include/grub/i386/halt.h: Remove.
33700 * include/grub/i386/reboot.h: Likewise.
33701
33702 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33703
33704 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33705
33706 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33707 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33708 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33709 "progname.h"
33710 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33711 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33712 (usage): Add missing comma in printf.
33713
33714 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33715
33716 Use the same reboot approach on i386 coreboot and qemu as we do on
33717 BIOS.
33718
33719 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33720 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33721 * kern/i386/reboot.c: Remove.
33722 * include/grub/i386/reboot.h (grub_reboot): Export function.
33723 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33724 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33725 0xf000:0xfff0 instead of 0xffff:0x0000.
33726 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33727 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33728
33729 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33730
33731 Fix $srcdir != $objdir build.
33732
33733 * Makefile.in (po/%.po): Rewrite as ...
33734 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33735
33736 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33737
33738 Fix GNU/Hurd grub-install crash.
33739 * util/grub-probe.c (probe): Try to access `path' only when it is not
33740 NULL.
33741
33742 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33743
33744 Correct module naming.
33745
33746 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33747 (GRUB_MOD_INIT(efi_uga)): ... to this
33748 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33749 (GRUB_MOD_FINI(efi_uga)): ... to this
33750 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33751 (GRUB_MOD_INIT(efi_gop)): ... to this
33752 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33753 (GRUB_MOD_FINI(efi_gop)): ... to this
33754
33755 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33756
33757 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33758 translatable.
33759 (usage): Translate `arg' strings using gettext().
33760 Thanks to Jordi Mallach for the suggestion.
33761
33762 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33763
33764 GOP support. Based on patch from Bean
33765 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33766
33767 * video/efi_gop.c: New file.
33768 * include/grub/efi/graphics_output.h: Likewise.
33769 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33770 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33771 variables.
33772 * conf/x86_64-efi.rmk: Likewise.
33773
33774 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33775
33776 Rename efi_fb to efi_uga.
33777
33778 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33779 'efi_uga.mod'.
33780 (efi_fb_mod_SOURCES): Rename this ...
33781 (efi_uga_mod_SOURCES): ... to this.
33782 (efi_fb_mod_CFLAGS): Rename this ...
33783 (efi_uga_mod_CFLAGS): ... to this.
33784 (efi_fb_mod_LDFLAGS): Rename this ...
33785 (efi_uga_mod_LDFLAGS): ... to this.
33786 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33787 'efi_uga.mod'.
33788 (efi_fb_mod_SOURCES): Rename this ...
33789 (efi_uga_mod_SOURCES): ... to this.
33790 (efi_fb_mod_CFLAGS): Rename this ...
33791 (efi_uga_mod_CFLAGS): ... to this.
33792 (efi_fb_mod_LDFLAGS): Rename this ...
33793 (efi_uga_mod_LDFLAGS): ... to this.
33794 * video/efi_fb.c: Move this ...
33795 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33796
33797 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33798
33799 * po/README: New file. Explain our PO file workflow.
33800
33801 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33802
33803 * po/ChangeLog: Remove. Move relevant entries back to ...
33804 * ChangeLog: ... here.
33805 * po/ca.po: Remove (now handled by TLP).
33806 * po/id.po: Likewise.
33807 * po/zh_CN.po: Likewise.
33808 * Makefile.in (LINGUAS): Initialize in a way that supports
33809 empty set.
33810
33811 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33812
33813 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33814 reliing on po/LINGUAS.
33815 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33816 (po/%.po): ... this.
33817
33818 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33819
33820 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33821 (main): Use `program_name' instead of nonexistent `progname'.
33822
33823 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33824
33825 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33826 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33827
33828 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33829
33830 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33831 commit.
33832 * conf/i386-efi.rmk: Likewise.
33833 * conf/i386-ieee1275.rmk: Likewise.
33834 * conf/powerpc-ieee1275.rmk: Likewise.
33835 * conf/sparc64-ieee1275.rmk: Likewise.
33836 * conf/x86_64-efi.rmk: Likewise.
33837
33838 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33839
33840 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33841
33842 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33843
33844 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33845
33846 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33847
33848 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33849 (grub_mkdevicemap_SOURCES): New variable.
33850 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33851 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33852 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33853 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33854 (grub_mkdevicemap_SOURCES): Remove.
33855 * conf/i386-efi.rmk: Likewise.
33856 * conf/i386-ieee1275.rmk: Likewise.
33857 * conf/i386-pc.rmk: Likewise.
33858 * conf/powerpc-ieee1275.rmk: Likewise.
33859 * conf/sparc64-ieee1275.rmk: Likewise.
33860 * conf/x86_64-efi.rmk: Likewise.
33861 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33862 (usage): Fix strings to use `program_name'.
33863 (main): Initialize gettext.
33864 * util/grub-editenv.c: Likewise.
33865 * util/grub-emu.c: Likewise.
33866 * util/grub-fstest.c: Likewise.
33867 * util/grub-mkdevicemap.c: Likewise.
33868 * util/grub-mkfont.c: Likewise.
33869 * util/grub-mkrelpath.c: Likewise.
33870 * util/grub-pe2elf.c: Likewise.
33871 * util/grub-probe.c: Likewise.
33872 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33873 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33874 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33875
33876 * util/misc.c: Include `"progname.h"'.
33877 (progname): Remove variable.
33878 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33879
33880 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33881
33882 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33883 printf and print a newline after the menuentry header line.
33884 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33885
33886 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33887
33888 autoconf >= 2.60 support $(localedir).
33889
33890 * INSTALL: Note that autoconf 2.60 is required.
33891 * configure.ac (AC_PREREQ): Bump to 2.60.
33892 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33893 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33894
33895 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33896
33897 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33898 aclocal is run.
33899
33900 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33901
33902 * normal/main.c (grub_normal_read_line): Fix off-by-one
33903 buffer overflow.
33904
33905 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33906
33907 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33908 "parser.grub" in grub_command_execute() call.
33909
33910 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33911
33912 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33913 * conf/i386-efi.rmk: Likewise.
33914 * conf/i386-ieee1275.rmk: Likewise.
33915 * conf/i386-pc.rmk: Likewise.
33916 * conf/powerpc-ieee1275.rmk: Likewise.
33917 * conf/sparc64-ieee1275.rmk: Likewise.
33918 * conf/x86_64-efi.rmk: Likewise.
33919 * gettext/gettex.c: Include <grub/i18n.h>.
33920 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33921 here ...
33922 * include/grub/i18n.h: ... to here
33923 * include/grub/i18n.h: ... to here.
33924 * kern/misc.c: Include <grub/i18n.h>
33925 (grub_gettext_dummy): Move above user.
33926
33927 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33928
33929 * util/Makefile.in (install-local): Convert a `for' into a normal
33930 shell expansion.
33931
33932 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33933
33934 * autogen.sh: Add automake call.
33935 * config.guess: Remove.
33936 * config.sub: Likewise.
33937 * install-sh: Likewise.
33938
33939 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33940
33941 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33942
33943 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33944
33945 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33946 function to a normal shell `for'.
33947
33948 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33949
33950 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33951
33952 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33953
33954 * util/grub-mkrelpath.c: New file.
33955 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33956 (grub_mkrelpath_SOURCES): New variable.
33957 * include/grub/util/misc.h: New function prototype.
33958 * util/misc.c (make_system_path_relative_to_its_root): New function.
33959
33960 * util/grub-mkconfig_lib.in (bindir): New variable.
33961 (grub_mkrelpath): Likewise.
33962 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33963
33964 * util/probe.c (probe): Make the file path relative to its root.
33965 Change a info message to use the GRUB path. Enable again the
33966 check if we can read the file with GRUB facilities.
33967
33968 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33969 to its root.
33970
33971 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33972
33973 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33974 platform.
33975
33976 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33977
33978 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33979 strncmp().
33980
33981 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33982
33983 * util/getroot.c (grub_util_is_dmraid): New function.
33984 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33985 devices as normal ones, not as LVM.
33986
33987 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33988
33989 * conf/common.rmk: Add grub-gettext_lib target and updates
33990 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33991 LDFLAGS.
33992 * gettext/gettext.c: New file. (Reads mo files).
33993 * include/grub/file.h (grub_file_pread): New prototype.
33994 * include/grub/i18n.h (_): New prototype.
33995 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33996 prototypes.
33997 * kern/misc.c (grub_gettext_dummy): New function.
33998 * normal/menu_text.c: Include <grub/i18n.h>.
33999 * normal/menu_text.c (print_timeout): Gettexttize string.
34000 * normal/menu_text.c (print_message): Gettexttize string.
34001 * po/POTFILES: Add `normal/menu_text.c'.
34002 * po/ca.po: Add new translations.
34003 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34004 gettext module and defines locale_dir and lang in grub.cfg.
34005 * NEWS: Add gettext support.
34006
34007 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34008
34009 * util/hostdisk.c: Include `<grub/i18n.h>'.
34010 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34011 (make_device_name): Rewrite using asprintf.
34012 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34013 (find_system_device): If a device is not found, generate one just
34014 by reusing the OS path name.
34015 (read_device_map): Make it permissible for device.map not to exist.
34016
34017 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34018
34019 * script/sh/execute.c: Move from here ...
34020 * script/execute.c: ... to here. Update all users.
34021 * script/sh/function.c: Move from here ...
34022 * script/function.c: ... to here. Update all users.
34023 * script/sh/lexer.c: Move from here ...
34024 * script/lexer.c: ... to here. Update all users.
34025 * script/sh/main.c: Move from here ...
34026 * script/main.c: ... to here. Update all users.
34027 * script/sh/parser.y: Move from here ...
34028 * script/parser.y: ... to here. Update all users.
34029 * script/sh/script.c: Move from here ...
34030 * script/script.c: ... to here. Update all users.
34031
34032 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34033
34034 * configure.ac: Detect all `emu' platforms. Define
34035 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34036 --enable-grub-emu logic. Disable include/grub/machine
34037 symlink on `emu' platforms.
34038
34039 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34040 * gensymlist.sh.in: Likewise.
34041
34042 * include/grub/i386/coreboot/machine.h: Remove file.
34043 * include/grub/i386/efi/machine.h: Likewise.
34044 * include/grub/i386/ieee1275/machine.h: Likewise.
34045 * include/grub/i386/pc/machine.h: Likewise.
34046 * include/grub/i386/qemu/machine.h: Likewise.
34047 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34048 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34049 * include/grub/x86_64/efi/machine.h: Likewise.
34050
34051 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34052 * commands/halt.c: Likewise.
34053 * commands/reboot.c: Likewise.
34054 * include/grub/autoefi.h: Likewise.
34055 * include/grub/i386/at_keyboard.h: Likewise.
34056 * include/grub/i386/kernel.h: Likewise.
34057 * include/grub/i386/loader.h: Likewise.
34058 * include/grub/i386/pc/memory.h: Likewise.
34059 * kern/dl.c: Likewise.
34060 * kern/i386/coreboot/init.c: Likewise.
34061 * loader/i386/bsd.c: Likewise.
34062 * loader/i386/linux.c: Likewise.
34063 * loader/multiboot_loader.c: Likewise.
34064 * term/i386/pc/serial.c: Likewise.
34065 * term/usb_keyboard.c: Likewise.
34066
34067 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34068 `<grub/machine/machine.h>'
34069 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34070 * util/misc.c: Remove `<grub/machine/machine.h>' and
34071 `<grub/machine/time.h>'.
34072
34073 * Makefile.in (enable_grub_emu): Remove variable.
34074 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34075
34076 * conf/any-emu.rmk: New file.
34077 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34078 (grub_emu_init.c): Move from here ...
34079 * conf/any-emu.rmk: ... to here.
34080
34081 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34082 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34083 * conf/any-emu.rmk: ... to here.
34084
34085 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34086
34087 * include/grub/parser.h (grub_parser_register): Document need
34088 of `name' parameter.
34089 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34090 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34091 "sh" to "grub".
34092
34093 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34094
34095 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34096 `$(XGETTEXT)'.
34097 * include/grub/i18n.h (N_): New macro.
34098 * util/mkisofs/mkisofs.h: Likewise.
34099 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34100 around N_().
34101 (usage): Use gettext() to translate help strings when printing them.
34102
34103 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34104
34105 Based on patch from Bean
34106 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34107
34108 * video/efi_fb.c: New file.
34109 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34110 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34111 variables.
34112 * conf/x86_64-efi.rmk: Likewise.
34113
34114 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34115
34116 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34117 * util/i386/pc/grub-setup.c: Likewise.
34118
34119 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34120
34121 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34122 <hurd/fs.h>
34123 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34124 file_get_storage_info to implement grub_guess_root_device.
34125
34126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34127
34128 * Makefile.in (target): Use make's builtin $(shell) function
34129 instead of calling directly $(SHELL) to create the locale directories,
34130 inside the $(foreach) function.
34131
34132 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34133
34134 * util/grub-mkrescue.in: Print an error and usage if output option
34135 has not been given.
34136
34137 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34138
34139 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34140 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34141 root and /boot are on different devices.
34142
34143 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34144
34145 Fix build for srcdir != objdir.
34146
34147 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34148 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34149 $(srcdir).
34150 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34151 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34152 reference for input.
34153
34154 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34155
34156 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34157 or hardlinking it). Remove -J option, Joliet is not compatible with
34158 multiple source directories.
34159
34160 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34161 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34162
34163 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34164 (process_input_dir): New function. Process an arbitrary input
34165 directory.
34166 Misc adjustments to support both "override mode" and system-wide mode.
34167
34168 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34169
34170 * configure.ac (UNIFONT_BDF): Rename to ...
34171 (FONT_SOURCE): ... this. Update all users.
34172
34173 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34174
34175 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34176 to the list of unifont files to look for.
34177
34178 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34179
34180 Patch from Joe Auricchio <jauricchio@gmail.com>
34181 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34182 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34183 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34184
34185 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34186
34187 * Makefile.in (install-local): Add a missing backslash.
34188
34189 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34190
34191 * include/grub/x86_64/io.h: New file.
34192
34193 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34194
34195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34196 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34197 Include `"progname.h"'.
34198 (main): Initialize gettext.
34199 * util/i386/pc/grub-setup.c: Gettexttize.
34200 * util/i386/pc/grub-mkimage.c: Likewise.
34201
34202 * Makefile.in (po/*.po): Redefine as ...
34203 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34204
34205 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34206
34207 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34208
34209 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34210 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34211 (program_name): Remove.
34212 (main): Initialize gettext support.
34213 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34214 Include `<libintl.h>'.
34215 (_): New macro.
34216
34217 * util/mkisofs/eltorito.c: Gettexttize.
34218 * util/mkisofs/joliet.c: Likewise.
34219 * util/mkisofs/mkisofs.c: Likewise.
34220 * util/mkisofs/multi.c: Likewise.
34221 * util/mkisofs/rock.c: Likewise.
34222 * util/mkisofs/tree.c: Likewise.
34223 * util/mkisofs/write.c: Likewise.
34224
34225 * po/POTFILES: Update with new files.
34226
34227 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34228
34229 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34230 * util/mkisofs/iso9660.h: Likewise.
34231 * util/mkisofs/joliet.c: Likewise.
34232 * util/mkisofs/mkisofs.c: Likewise.
34233 * util/mkisofs/mkisofs.h: Likewise.
34234 * util/mkisofs/rock.c: Likewise.
34235 * util/mkisofs/tree.c: Likewise.
34236 * util/mkisofs/write.c: Likewise.
34237
34238 * util/mkisofs/eltorito.c (rcsid): Remove.
34239 * util/mkisofs/hash.c: Likewise.
34240 * util/mkisofs/joliet.c: Likewise.
34241 * util/mkisofs/name.c: Likewise.
34242 * util/mkisofs/rock.c: Likewise.
34243 * util/mkisofs/tree.c: Likewise.
34244 * util/mkisofs/write.c: Likewise.
34245
34246 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34247
34248 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34249 instead of static allocation.
34250 * util/mkisofs/match.h: Likewise.
34251
34252 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34253
34254 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34255 and `util/grub.d/10_linux.in'.
34256 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34257 translatable Shell files.
34258
34259 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34260
34261 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34262
34263 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34264
34265 * INSTALL: Document Automake is needed for bootstrap.
34266 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34267 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34268 Add gettext initialization.
34269 (kfreebsd_entry): Make menuentry output translatable.
34270
34271 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34272
34273 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34274 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34275 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34276 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34277 (LINGUAS): Auto-generate using `po/LINGUAS'.
34278 * po/LINGUAS: New file.
34279
34280 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34281
34282 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34283 other things).
34284 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34285 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34286 bindtextdomain() calls for gettext initialization.
34287
34288 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34289
34290 * gnulib/progname.c: New file (imported from Gnulib).
34291 * gnulib/progname.h: Likewise.
34292 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34293 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34294 (usage): Replace `progname' with `program_name'.
34295 (main): Use set_program_name() for program name initialization.
34296
34297 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34298
34299 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34300 from here ...
34301 * Makefile.in (CPPFLAGS): ... to here.
34302
34303 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34304
34305 * aclocal.m4: Move from here ...
34306 * acinclude.m4: ... to here.
34307 * autogen.sh: Add call to `aclocal'.
34308 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34309
34310 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34311
34312 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34313 (LINGUAS): New variable.
34314 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34315 (install-local): Install MO files.
34316 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34317 * include/grub/i18n.h: New file.
34318 * po/POTFILES: New file.
34319 * po/ca.po: New file.
34320 * util/grub.d/10_linux.in (bindir): New variable.
34321 Add gettext initialization.
34322 (linux_entry): Make menuentry output translatable.
34323 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34324 (usage): Make --help output translatable.
34325 (main): Initialize gettext.
34326
34327 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34328
34329 * import_gcry.py: New file (written by Vladimir with minor
34330 adjustments).
34331 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34332 ciphers.
34333 * INSTALL: Document that Python is required for bootstrap.
34334
34335 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34336
34337 Import ciphers from libgcrypt 1.4.4.
34338
34339 * lib/libgcrypt/cipher/ChangeLog
34340 * lib/libgcrypt/cipher/ac.c
34341 * lib/libgcrypt/cipher/arcfour.c
34342 * lib/libgcrypt/cipher/bithelp.h
34343 * lib/libgcrypt/cipher/blowfish.c
34344 * lib/libgcrypt/cipher/camellia-glue.c
34345 * lib/libgcrypt/cipher/camellia.c
34346 * lib/libgcrypt/cipher/camellia.h
34347 * lib/libgcrypt/cipher/cast5.c
34348 * lib/libgcrypt/cipher/cipher.c
34349 * lib/libgcrypt/cipher/crc.c
34350 * lib/libgcrypt/cipher/des.c
34351 * lib/libgcrypt/cipher/dsa.c
34352 * lib/libgcrypt/cipher/ecc.c
34353 * lib/libgcrypt/cipher/elgamal.c
34354 * lib/libgcrypt/cipher/hash-common.c
34355 * lib/libgcrypt/cipher/hash-common.h
34356 * lib/libgcrypt/cipher/hmac-tests.c
34357 * lib/libgcrypt/cipher/md.c
34358 * lib/libgcrypt/cipher/md4.c
34359 * lib/libgcrypt/cipher/md5.c
34360 * lib/libgcrypt/cipher/primegen.c
34361 * lib/libgcrypt/cipher/pubkey.c
34362 * lib/libgcrypt/cipher/rfc2268.c
34363 * lib/libgcrypt/cipher/rijndael-tables.h
34364 * lib/libgcrypt/cipher/rijndael.c
34365 * lib/libgcrypt/cipher/rmd.h
34366 * lib/libgcrypt/cipher/rmd160.c
34367 * lib/libgcrypt/cipher/rsa.c
34368 * lib/libgcrypt/cipher/seed.c
34369 * lib/libgcrypt/cipher/serpent.c
34370 * lib/libgcrypt/cipher/sha1.c
34371 * lib/libgcrypt/cipher/sha256.c
34372 * lib/libgcrypt/cipher/sha512.c
34373 * lib/libgcrypt/cipher/tiger.c
34374 * lib/libgcrypt/cipher/twofish.c
34375 * lib/libgcrypt/cipher/whirlpool.c
34376
34377 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34378
34379 Fix build for systems without error().
34380
34381 * gnulib/error.c: New file (imported from Gnulib).
34382 * gnulib/error.h: Likewise.
34383 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34384 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34385 (this variable is now used by error()).
34386
34387 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34388
34389 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34390 instead of relying that char is signed.
34391
34392 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34393
34394 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34395 blocksize different from specified.
34396 (grub_pxefs_read): Likewise.
34397
34398 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34399
34400 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34401
34402 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34403 (grub_ata_readwrite): Likewise. Update 2 format strings.
34404 (grub_atapi_read): Likewise.
34405
34406 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34407 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34408 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34409 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34410 (ata_mod_LDFLAGS): Move from here ...
34411 * conf/i386.rmk: ... to here ...
34412 * conf/x86_64-efi.rmk: ... and here.
34413 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34414 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34415
34416 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34417
34418 Relicense multiboot.h, with RMS' blessing.
34419
34420 * include/multiboot.h: Change to X11 license.
34421
34422 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34423
34424 Support --version in grub-mkisofs.
34425
34426 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34427 (OPTION_VERSION): New macro.
34428 (ld_options): Recognize --version.
34429 (usage): Move `program_name' from here ...
34430 (program_name): ... to here. Add `static' qualifier.
34431 (main): Recognize `OPTION_VERSION'.
34432
34433 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34434
34435 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34436 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34437
34438 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34439
34440 Fix help2man generation for mkisofs.
34441
34442 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34443 (usage): Send output to stdout (rather than stderr).
34444
34445 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34446
34447 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34448 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34449 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34450 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34451 (bin_SCRIPTS): Add `grub-mkfloppy'.
34452 (grub_mkfloppy_SOURCES): New variable.
34453
34454 * util/grub-mkrescue.in: New file.
34455 * util/i386/pc/grub-mkfloppy.in: New file.
34456
34457 * util/i386/coreboot/grub-mkrescue.in: Remove.
34458 * util/i386/pc/grub-mkrescue.in: Remove.
34459
34460 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34461
34462 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34463 from here ...
34464 * include/multiboot.h (struct multiboot_header): ... to here. Update
34465 all users.
34466 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34467 from here ...
34468 * include/multiboot.h (struct multiboot_info): ... to here. Update
34469 all users.
34470 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34471 from here ...
34472 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34473 Update all users.
34474 * include/grub/multiboot.h (struct grub_mod_list): Move
34475 from here ...
34476 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34477 Update all users.
34478
34479 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34480
34481 * include/multiboot2.h (multiboot_word): Rename from this ...
34482 (multiboot2_word): ... to this. Update all users.
34483 (multiboot_header): Rename from this ...
34484 (multiboot2_header): ... to this. Update all users.
34485 (multiboot_tag_header): Rename from this ...
34486 (multiboot2_tag_header): ... to this. Update all users.
34487 (multiboot_tag_start): Rename from this ...
34488 (multiboot2_tag_start): ... to this. Update all users.
34489 (multiboot_tag_name): Rename from this ...
34490 (multiboot2_tag_name): ... to this. Update all users.
34491 (multiboot_tag_module): Rename from this ...
34492 (multiboot2_tag_module): ... to this. Update all users.
34493 (multiboot_tag_memory): Rename from this ...
34494 (multiboot2_tag_memory): ... to this. Update all users.
34495 (multiboot_tag_unused): Rename from this ...
34496 (multiboot2_tag_unused): ... to this. Update all users.
34497 (multiboot_tag_end): Rename from this ...
34498 (multiboot2_tag_end): ... to this. Update all users.
34499
34500 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34501
34502 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34503 this platform we should support Multiboot1 first.
34504
34505 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34506 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34507 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34508
34509 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34510
34511 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34512 of write calls (converting them to fwrite() if they aren't already).
34513 (get_torito_desc): Likewise.
34514 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34515
34516 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34517
34518 * util/i386/pc/grub-install.in: Move from here ...
34519 * util/grub-install.in: ... to here. Update all users.
34520
34521 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34522
34523 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34524
34525 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34526
34527 Support for El Torito without floppy emulation.
34528
34529 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34530 (init_boot_catalog): Improve error handling.
34531 (get_torito_desc): Don't use floppy emulation unless requested by
34532 user. Patch boot information table when requested via
34533 `-boot-info-table'.
34534 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34535 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34536 (use_boot_info_table): New variables.
34537 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34538 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34539 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34540 `--eltorito-emul-floppy'.
34541 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34542 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34543 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34544 (use_boot_info_table, get_731): New prototypes.
34545 * util/mkisofs/write.c (get_731): New function.
34546
34547 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34548
34549 Fix the generation of the man page.
34550
34551 * util/pc/i386/grub-install.in: Source
34552 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34553
34554 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34555
34556 Large file support for grub-mkisofs.
34557
34558 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34559 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34560 (session_start): Upgrade type to `uint64_t'. Update all users.
34561 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34562 (struct directory_entry): Upgrade type of `starting_block' and
34563 `size' to `uint64_t'. Update all users.
34564 (struct deferred): Remove unused structure.
34565 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34566 Update all users.
34567 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34568 file is larger than `UINT32_MAX'.
34569 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34570 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34571 return value.
34572 (struct deferred_write): Upgrade type of `extent' and `size' to
34573 `uint64_t'. Update all users.
34574 (last_extent_written): Upgrade type to `uint64_t'. Update all
34575 users.
34576 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34577 Update all users. Upgrade type of `remain' to `int64_t' and
34578 `use' to `size_t'. Use error() to handle fread() errors.
34579 (write_files): Rely on write_one_file() rather than calling
34580 xfwrite() directly.
34581
34582 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34583
34584 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34585
34586 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34587
34588 * util/mkisofs/fnmatch.c: Remove.
34589 * util/mkisofs/getopt1.c: Likewise.
34590 * util/mkisofs/getopt.c: Likewise.
34591 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34592 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34593 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34594 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34595 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34596
34597 * configure.ac: Detect `mingw32msvc' host_os.
34598 Check for lstat(), getuid() and getgid().
34599
34600 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34601 instances of `u_char' with `uint8_t'.
34602
34603 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34604 [!HAVE_GETUID] (getuid): New function (stub).
34605 [!HAVE_GETGID] (getgid): Likewise.
34606 [!HAVE_LSTAT] (lstat): Likewise.
34607 [!S_IROTH] (S_IROTH): New macro (dummy).
34608 [!S_IRGRP] (S_IRGRP): Likewise.
34609
34610 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34611
34612 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34613 conditional expression).
34614
34615 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34616
34617 Import from Gnulib.
34618
34619 * gnulib/fnmatch.c: New file.
34620 * gnulib/fnmatch.h: Likewise.
34621 * gnulib/fnmatch_loop.c: Likewise.
34622 * gnulib/getopt.c: Likewise.
34623 * gnulib/getopt.h: Likewise.
34624 * gnulib/getopt1.c: Likewise.
34625 * gnulib/getopt_int.h: Likewise.
34626 * gnulib/gettext.h: Likewise.
34627
34628 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34629
34630 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34631 * normal/handler.c (read_handler_list): Likewise.
34632
34633 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34634
34635 Misc cleanup.
34636
34637 * kern/command.c (grub_register_command_prio): Use
34638 grub_zalloc() instead of explicitly zeroing data.
34639 * kern/list.c: Include `<grub/mm.h>'.
34640 (grub_named_list_find): Replace `0' with `NULL'.
34641 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34642 (fs_module_list): Change type to `grub_named_list_t'. Update all
34643 users.
34644 * normal/dyncmd.c (read_command_list): Add space between function
34645 call and parenthesis.
34646 * normal/handler.c (read_handler_list): Likewise.
34647
34648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34649
34650 * normal/auth.c (punishment_delay): Moved from here ...
34651 (grub_auth_strcmp): ... to here (inside function).
34652
34653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34654
34655 * include/grub/list.h (struct grub_named_list): Remove `const'
34656 qualifier from `name'.
34657 (struct grub_prio_list): Likewise.
34658
34659 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34660
34661 * normal/auth.c: Include `<grub/time.h>'.
34662 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34663
34664 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34665
34666 * normal/auth.c (punishment_delay): New variable.
34667 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34668 (grub_auth_check_authentication): Punish failed login attempts with
34669 an incremental (2^N) delay.
34670
34671 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34672
34673 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34674 path with $(srcdir).
34675
34676 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34677
34678 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34679
34680 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34681
34682 * util/i386/coreboot/grub-mkrescue.in: New file.
34683 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34684 variables.
34685
34686 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34687 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34688 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34689 requirements.
34690 * util/mkisofs/defaults.h: New file.
34691 * util/mkisofs/eltorito.c: Likewise.
34692 * util/mkisofs/exclude.h: Likewise.
34693 * util/mkisofs/fnmatch.c: Likewise.
34694 * util/mkisofs/getopt.c: Likewise.
34695 * util/mkisofs/getopt1.c: Likewise.
34696 * util/mkisofs/hash.c: Likewise.
34697 * util/mkisofs/include/fctldefs.h: Likewise.
34698 * util/mkisofs/include/mconfig.h: Likewise.
34699 * util/mkisofs/include/prototyp.h: Likewise.
34700 * util/mkisofs/include/statdefs.h: Likewise.
34701 * util/mkisofs/iso9660.h: Likewise.
34702 * util/mkisofs/joliet.c: Likewise.
34703 * util/mkisofs/match.c: Likewise.
34704 * util/mkisofs/match.h: Likewise.
34705 * util/mkisofs/mkisofs.c: Likewise.
34706 * util/mkisofs/mkisofs.h: Likewise.
34707 * util/mkisofs/multi.c: Likewise.
34708 * util/mkisofs/name.c: Likewise.
34709 * util/mkisofs/rock.c: Likewise.
34710 * util/mkisofs/tree.c: Likewise.
34711 * util/mkisofs/write.c: Likewise.
34712
34713 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34714
34715 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34716 being insecure.
34717
34718 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34719
34720 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34721 `grub-mkimage' (and use $0 when possible).
34722
34723 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34724
34725 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34726 error message for excessively large memory map.
34727
34728 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34729
34730 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34731 executable bit.
34732
34733 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34734
34735 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34736 message for coreboot users.
34737
34738 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34739
34740 Fix build with GNU gold.
34741
34742 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34743 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34744 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34745 link addresses.
34746 * aclocal.m4: Likewise.
34747
34748 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34749
34750 * configure.ac (AC_PREREQ): Bump to 2.59d.
34751 * INSTALL: Make it more clear when Autoconf and Ruby are
34752 needed and when to run `./autogen.sh'.
34753
34754 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34755
34756 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34757 OSes.
34758
34759 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34760
34761 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34762
34763 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34764
34765 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34766 giving it to GNU Mach.
34767
34768 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34769
34770 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34771 GNU partition number to get internal GRUB partition number.
34772
34773 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34774
34775 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34776 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34777
34778 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34779
34780 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34781 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34782 case.
34783
34784 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34785
34786 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34787
34788 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34789
34790 Fix build problem.
34791
34792 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34793 `-isystem=$(srcdir)/include'.
34794
34795 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34796
34797 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34798 checked (grub-install doesn't currently rely on it).
34799
34800 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34801
34802 Revert SVN r2660.
34803
34804 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34805 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34806 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34807 * conf/i386-ieee1275.rmk: Likewise.
34808 * conf/i386-pc.rmk: Likewise.
34809 * conf/powerpc-ieee1275.rmk: Likewise.
34810 * conf/sparc64-ieee1275.rmk: Likewise.
34811 * conf/x86_64-efi.rmk: Likewise.
34812
34813 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34814
34815 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34816
34817 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34818
34819 * include/grub/misc.h: Stop checking for APPLE_CC.
34820
34821 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34824 doesn't cause an infinite call loop.
34825
34826 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34827
34828 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34829 strings.
34830
34831 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34832
34833 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34834 variable.
34835 * Makefile.in: Likewise.
34836
34837 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34838
34839 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34840
34841 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34842
34843 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34844
34845 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34846
34847 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34848
34849 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34850
34851 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34852 from here ...
34853 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34854
34855 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34856
34857 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34858 in $(MAKEINFO) invocation. This makes it clear in output that
34859 errors are being ignored.
34860
34861 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34862
34863 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34864 from here ...
34865 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34866 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34867 * conf/i386-ieee1275.rmk: Likewise.
34868 * conf/i386-pc.rmk: Likewise.
34869 * conf/powerpc-ieee1275.rmk: Likewise.
34870 * conf/sparc64-ieee1275.rmk: Likewise.
34871 * conf/x86_64-efi.rmk: Likewise.
34872
34873 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34874
34875 * util/grub-editenv.c (main): If only a command is given, use
34876 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34877 (usage): FILENAME is now optional and has a default.
34878
34879 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34880
34881 Improve grub-mkconfig performance when there are several menu
34882 entries on a single filesystem.
34883
34884 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34885 prepare_grub_to_access_device.
34886 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34887 * util/grub.d/30_os-prober.in: Likewise.
34888
34889 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34890
34891 * util/grub.d/10_freebsd.in: Remove.
34892 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34893 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34894
34895 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34896
34897 * docs/grub.cfg: Fix example usage of *BSD loaders.
34898
34899 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34900
34901 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34902 grub_util_error() call.
34903
34904 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34905
34906 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34907 `reserved_first_sector' member.
34908 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34909 `reserved_first_sector' to 1.
34910 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34911 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34912 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34913 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34914 filesystems which begin at first sector.
34915 (options): New option --skip-fs-probe.
34916 (main): Handle --skip-fs-probe and pass it to setup().
34917
34918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34919
34920 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34921 (memset): Fix function prototype.
34922
34923 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34924 2009-10-25 Vasily Averin <vvs@parallels.com>
34925
34926 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34927 `dirent.direntlen == 0'.
34928
34929 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34930
34931 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34932 `cpio'.
34933 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34934
34935 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34936
34937 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34938 `__trampoline_setup' and `__ucmpdi2'.
34939 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34940 that libgcc provides.
34941
34942 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34943
34944 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34945 * include/grub/sparc64/libgcc.h (memset): Likewise.
34946 * include/grub/misc.h (memset, memcmp): New function prototypes.
34947
34948 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34949
34950 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34951 `cpio'.
34952 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34953
34954 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34955
34956 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34957 * docs/grub.cfg: Compensate for recent change in multiboot
34958 loader (since 2009-08-14 it won't pass filename to payload).
34959 * util/grub.d/10_hurd.in: Likewise.
34960
34961 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34962
34963 * config.guess: Update to latest version from config git
34964 repository.
34965 * config.sub: Likewise.
34966
34967 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34968
34969 Fix build on sparc64.
34970
34971 * configure.ac: Perform checks for libgcc symbols before
34972 adding `-nostdlib' to LDFLAGS.
34973
34974 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34975
34976 Let user specify OpenBSD root device.
34977
34978 * loader/i386/bsd.c (openbsd_root): New variable.
34979 (openbsd_opts): New option 'root'.
34980 (OPENBSD_ROOT_ARG): New macro.
34981 (grub_openbsd_boot): Use 'openbsd_root'.
34982 (grub_cmd_openbsd): Fill 'openbsd_root'.
34983
34984 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34985
34986 * NEWS: Misc adjustments.
34987
34988 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34989
34990 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34991
34992 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34993
34994 * configure.ac: Bump version to 1.97.
34995
34996 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34997
34998 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34999 -mno-3dnow on x86 architectures. Some toolchains enable these
35000 features by default, but they rely on registers that aren't enabled
35001 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35002
35003 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35004
35005 Make entry text a bit more readable.
35006
35007 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35008
35009 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35010
35011 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35012
35013 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35014
35015 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35016 operations.
35017
35018 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35019
35020 * configure.ac: Add missing dollar.
35021
35022 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35023
35024 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35025
35026 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35027 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35028 exports.
35029 * include/grub/sparc64/libgcc.h: Likewise. Use
35030 preprocessor conditionals.
35031
35032 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35033
35034 * conf/common.rmk (grub-dumpbios): Remove rule.
35035 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35036 * util/grub-dumpbios.in: Remove file.
35037
35038 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35039
35040 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35041 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35042
35043 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35044 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35045 users.
35046
35047 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35048 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35049 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35050 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35051 users.
35052
35053 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35054
35055 * term/tparm.c: Switch to GPLv3.
35056
35057 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35058
35059 * include/grub/i386/cpuid.h: Add header protection.
35060
35061 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35062
35063 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35064
35065 * include/grub/i386/cpuid.h: New file.
35066 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35067 (has_longmode): Rename to ...
35068 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35069 `static' attribute.
35070 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35071 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35072 on a CPU that doesn't implement AMD64 instruction set.
35073
35074 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35075
35076 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35077 that version.texi is rebuilt on version number changes.
35078
35079 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35080
35081 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35082 Fixes bug #27602.
35083
35084 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35085
35086 * util/i386/pc/grub-install.in: Source
35087 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35088 that the --grub-probe option will work.
35089 * util/sparc64/ieee1275/grub-install.in: Likewise.
35090
35091 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35092
35093 * configure.ac: Bump version to 1.97~beta4.
35094
35095 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35096
35097 Resync grub-mkdevicemap in x86_64-efi.
35098
35099 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35100 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35101 `util/devicemap.c'.
35102
35103 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35104
35105 * util/grub-editenv.c (create_envblk_file): Write new block with a
35106 .new suffix and then rename it into place, to ensure atomic
35107 creation.
35108
35109 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35110
35111 Do not automatically install headers.
35112
35113 * Makefile.in (include_DATA): Remove. Update all users.
35114
35115 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35116
35117 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35118 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35119
35120 * util/osdetect.lua: Remove.
35121 * script/lua/lauxlib.c: Likewise.
35122 * script/lua/ldebug.c: Likewise.
35123 * script/lua/grub_main.c: Likewise.
35124 * script/lua/lauxlib.h: Likewise.
35125 * script/lua/ldebug.h: Likewise.
35126 * script/lua/ltablib.c: Likewise.
35127 * script/lua/liolib.c: Likewise.
35128 * script/lua/lstrlib.c: Likewise.
35129 * script/lua/lualib.h: Likewise.
35130 * script/lua/ldo.c: Likewise.
35131 * script/lua/ldump.c: Likewise.
35132 * script/lua/ldo.h: Likewise.
35133 * script/lua/loslib.c: Likewise.
35134 * script/lua/lundump.c: Likewise.
35135 * script/lua/grub_lib.c: Likewise.
35136 * script/lua/ldblib.c: Likewise.
35137 * script/lua/lundump.h: Likewise.
35138 * script/lua/lmem.c: Likewise.
35139 * script/lua/grub_lib.h: Likewise.
35140 * script/lua/lmathlib.c: Likewise.
35141 * script/lua/lstate.c: Likewise.
35142 * script/lua/ltm.c: Likewise.
35143 * script/lua/lvm.c: Likewise.
35144 * script/lua/lmem.h: Likewise.
35145 * script/lua/lstate.h: Likewise.
35146 * script/lua/ltm.h: Likewise.
35147 * script/lua/ltable.c: Likewise.
35148 * script/lua/lvm.h: Likewise.
35149 * script/lua/llex.c: Likewise.
35150 * script/lua/lgc.c: Likewise.
35151 * script/lua/grub_lua.h: Likewise.
35152 * script/lua/loadlib.c: Likewise.
35153 * script/lua/lfunc.c: Likewise.
35154 * script/lua/lopcodes.c: Likewise.
35155 * script/lua/lparser.c: Likewise.
35156 * script/lua/ltable.h: Likewise.
35157 * script/lua/llex.h: Likewise.
35158 * script/lua/lgc.h: Likewise.
35159 * script/lua/lfunc.h: Likewise.
35160 * script/lua/lbaselib.c: Likewise.
35161 * script/lua/lopcodes.h: Likewise.
35162 * script/lua/lparser.h: Likewise.
35163 * script/lua/lzio.c: Likewise.
35164 * script/lua/linit.c: Likewise.
35165 * script/lua/lobject.c: Likewise.
35166 * script/lua/llimits.h: Likewise.
35167 * script/lua/lstring.c: Likewise.
35168 * script/lua/lzio.h: Likewise.
35169 * script/lua/lapi.c: Likewise.
35170 * script/lua/lcode.c: Likewise.
35171 * script/lua/lua.h: Likewise.
35172 * script/lua/lobject.h: Likewise.
35173 * script/lua/lstring.h: Likewise.
35174 * script/lua/lapi.h: Likewise.
35175 * script/lua/lcode.h: Likewise.
35176 * script/lua/luaconf.h: Likewise.
35177
35178 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35179
35180 * docs/grub.texi (Command-line and menu entry commands): Document
35181 date and echo commands.
35182
35183 2009-09-24 Pavel Roskin <proski@gnu.org>
35184
35185 * include/grub/kernel.h (struct grub_module_header): Remove
35186 `grub_module_header_types'. Make `type' unsigned. Make `size'
35187 32-bit on all platforms.
35188 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35189 8-bit field. Use grub_host_to_target32() for `size'.
35190 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35191 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35192 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35193
35194 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35195
35196 Fix "lost keypress" bug in at_keyboard.
35197
35198 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35199 Checks for readyness of input buffer (without flushing it).
35200 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35201 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35202
35203 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35204
35205 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35206 size check within GRUB_MACHINE_PCBIOS section.
35207
35208 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35209
35210 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35211 return value.
35212 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35213 KEYBOARD_ISREADY check.
35214 (grub_at_keyboard_checkkey): Rename to ...
35215 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35216 Remove gratuitous cast.
35217
35218 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35219
35220 * configure.ac: Call AC_PROG_MKDIR_P.
35221 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35222 version.texi in $(builddir) rather than $(srcdir).
35223 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35224 to makeinfo's @include search path.
35225
35226 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35227
35228 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35229
35230 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35231
35232 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35233 for `*.dpkg-new'.
35234
35235 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35236
35237 Build info documentation. Some code borrowed from Automake.
35238
35239 * configure.ac: Check for makeinfo.
35240 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35241 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35242 docs/version.texi.
35243 (MOSTLYCLEANFILES): Add vti.tmp.
35244 (docs/version.texi, docs/stamp-vti): Update automatically.
35245 (docs/grub.info): Build info documentation. Use --force and ignore
35246 errors for now.
35247 (all-local): Add $(INFOS).
35248 (install-local): Install info files.
35249 (uninstall): Uninstall info files.
35250 * docs/version.texi: Remove from revision control. This file is
35251 automatically generated on build now.
35252 * gendistlist.sh: Add `*.info'.
35253
35254 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35255
35256 * kern/term.c: Fix indentation.
35257
35258 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35259
35260 * util/hostdisk.c: Fix a comment.
35261
35262 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35263
35264 Fix regression introduced in r2539.
35265
35266 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35267 to 0xA1.
35268
35269 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35270
35271 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35272 os-prober. Under normal operation, it does not print anything to
35273 stderr; if it does, we need to debug it, and throwing away stderr
35274 makes that excessively difficult.
35275
35276 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35277
35278 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35279
35280 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35281
35282 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35283 AC_LANG_PROGRAM from autoconf.
35284 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35285 prototypes (fixes warning).
35286
35287 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35288 `--disable-werror' was used.
35289
35290 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35291
35292 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35293 uninitialized `lastaddr'.
35294
35295 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35296
35297 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35298
35299 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35300
35301 * commands/test.c (get_fileinfo): Return immediately if
35302 grub_fs_probe fails.
35303
35304 2009-09-14 José Martínez <xosemp@gmail.com>
35305
35306 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35307
35308 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35309
35310 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35311 output.
35312
35313 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35314
35315 * configure.ac: Remove --enable-grub-pe2elf. Only build
35316 grub-pe2elf when needed by the build system itself.
35317 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35318
35319 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35320
35321 * configure.ac: Bump version to 1.97~beta3.
35322 * docs/version.texi: Likewise.
35323
35324 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35325
35326 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35327 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35328 from here ...
35329 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35330 (grub_linux_setup_video): ... to here (with some adjustments).
35331
35332 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35333
35334 Fix memory corruption issue (spotted by Colin Watson).
35335
35336 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35337 causing returned size to be stored in an incorrect memory location.
35338 Fix use of uninitialized value when storing the returned size.
35339
35340 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35341
35342 Change clean rules to properly remove files
35343
35344 * genmk.rb: add new clean rules
35345 * Makefile.in (clean): add the new targets
35346 (mostlyclean): likewise
35347
35348 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35349
35350 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35351 to grub_uint64_t.
35352 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35353 non-resident files.
35354
35355 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35356
35357 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35358 part of bug #27349.
35359
35360 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35361
35362 * util/grub-mkconfig.in: Make the created config mode 400 and
35363 print a warning if it fails.
35364
35365 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35366
35367 * util/grub.d/40_custom.in: Ask user to type custom entries below
35368 comment, rather than below 'exec tail' line.
35369
35370 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35371
35372 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35373 visible in grub.cfg.
35374
35375 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35376
35377 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35378 file.
35379
35380 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35381
35382 * docs/grub.cfg: Add an example menu entry for memtest86+.
35383
35384 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35385
35386 * config.guess: Update to latest version from config git.
35387 * config.sub: Likewise.
35388
35389 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35390
35391 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35392 unknown-command case. Fixes bug #27320.
35393
35394 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35395
35396 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35397 `help' if the command exists.
35398
35399 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35400
35401 * INSTALL: Require GCC 4.1.3 or later.
35402
35403 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35404
35405 * Makefile.in (RMKFILES): add i386-qemu.rmk
35406 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35407 $(srcdir)/stamp-h.in
35408
35409 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35410
35411 * util/grub-probe.c (probe): Comment out buggy codepath, which
35412 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35413 should be re-enabled after 1.97.
35414
35415 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35416
35417 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35418 find searches for.
35419
35420 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35421
35422 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35423 unnecessary calls to grub_error.
35424
35425 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35426
35427 * NEWS: Mention `keystatus' and Unicode fonts.
35428
35429 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35430
35431 * configure.ac: Bump version to 1.97~beta2.
35432 * docs/version.texi: Likewise.
35433
35434 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35435
35436 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35437 containing unwind information in some cases where it previously did
35438 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35439 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35440 discussion.
35441
35442 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35443
35444 Embedding loadenv module into grub-emu
35445
35446 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35447 commands/loadenv.c
35448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35450 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35451 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35452 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35453 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35454
35455 2009-09-03 Magnus Granberg <zorry@ume.nu>
35456
35457 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35458 include -fPIE in the default specs.
35459 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35460 to TARGET_CFLAGS.
35461
35462 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35463
35464 * INSTALL: Note that GNU Bison 2.3 or later is required.
35465
35466 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35467
35468 * kern/i386/pc/startup.S: Fix typo.
35469
35470 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35471
35472 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35473 according to GCS.
35474
35475 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35476
35477 * docs/grub.texi (Naming convention): Describe one-based partition
35478 numbering.
35479 (Device syntax): Likewise.
35480 (File name syntax): Likewise.
35481 (Block list syntax): Likewise.
35482 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35483 menu.lst.
35484 (File name syntax): Likewise.
35485 (Command-line and menu entry commands): Document acpi, blocklist,
35486 crc, export, insmod, keystatus, ls, set, and unset commands.
35487
35488 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35489
35490 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35491 to avoid implying that only one of --shift, --ctrl, or --alt may be
35492 used.
35493
35494 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35495
35496 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35497 rather than comparing against S_IFREG, which will almost never work.
35498
35499 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35500
35501 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35502 (write_blocklists): Likewise.
35503
35504 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35505
35506 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35507 argument to grub_printf.
35508
35509 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35510
35511 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35512 non GNU test.
35513
35514 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35515
35516 * kern/file.c (grub_file_read): Spelling fix
35517
35518 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35519
35520 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35521 loading of headers in some cases.
35522
35523 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35524
35525 * configure.ac: Bump version to 1.97~beta1.
35526 * docs/version.texi: Likewise.
35527
35528 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35529
35530 * include/grub/i386/xnu.h: Add license header.
35531 include grub/err.h explicitly.
35532
35533 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35534
35535 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35536 to `ufs' in the vfs.root.mountfrom kernel parameter.
35537
35538 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35539
35540 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35541
35542 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35543 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35544
35545 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35546 `ARRAY_SIZE' macro.
35547
35548 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35549
35550 * kern/file.c (grub_file_read): Check offset.
35551 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35552 * fs/jfs.c (grub_jfs_read_file): Likewise.
35553 * fs/ntfs.c (grub_ntfs_read): Likewise.
35554 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35555 * fs/minix.c (grub_minix_read_file): Correct offset check.
35556 * fs/ufs.c (grub_ufs_read_file): Likewise.
35557
35558 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35559
35560 * term/i386/pc/console.c (bios_data_area): Cast
35561 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35562
35563 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35564
35565 1-bit optimised blitters.
35566
35567 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35568 prototype.
35569 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35570 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35571 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35572 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35573 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35574 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35575 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35576 function.
35577 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35578 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35579 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35580 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35581 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35582 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35583 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35584 when possible.
35585 * video/video.c (grub_video_get_blit_format): Return
35586 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35587
35588 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35589
35590 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35591 the first argument to grub_printf.
35592
35593 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35594 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35595
35596 Add `getkeystatus' terminal method. Add a new `keystatus' command
35597 to query it.
35598
35599 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35600 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35601 modifier key bitmasks.
35602 (struct grub_term_input): Add `getkeystatus' member.
35603 (grub_getkeystatus): Add prototype.
35604 * kern/term.c (grub_getkeystatus): New function.
35605
35606 * include/grub/i386/pc/memory.h
35607 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35608 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35609 Data Area layout.
35610 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35611 (grub_console_term_input): Set `getkeystatus' member.
35612 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35613 constants.
35614 (grub_usb_keyboard_getreport): Likewise.
35615 (grub_usb_keyboard_checkkey): Likewise.
35616 (grub_usb_keyboard_getkeystatus): New function.
35617 (grub_usb_keyboard_term): Set `getkeystatus' member.
35618
35619 * commands/keystatus.c: New file.
35620 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35621 (keystatus_mod_SOURCES): New variable.
35622 (keystatus_mod_CFLAGS): Likewise.
35623 (keystatus_mod_LDFLAGS): Likewise.
35624 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35625 commands/keystatus.c.
35626 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35627 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35628 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35630 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35631 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35632
35633 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35634
35635 Split befs.mod and afs.mod into *_be.mod and *.mod
35636
35637 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35638 (grub_fstest_SOURCES): Likewise.
35639 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35640 (afs_be_mod_SOURCES): New variable.
35641 (afs_be_mod_CFLAGS): Likewise.
35642 (afs_be_mod_LDFLAGS): Likewise.
35643 (befs_be_mod_SOURCES): Likewise.
35644 (befs_be_mod_CFLAGS): Likewise.
35645 (befs_be_mod_LDFLAGS): Likewise.
35646 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35647 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35648 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35649 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35650 (grub_emu_SOURCES): Likewise.
35651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35652 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35653 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35654 * fs/afs_be.c: New file.
35655 * fs/befs_be.c: New file.
35656 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35657 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35658 (U16): Replaced with ...
35659 (grub_afs_to_cpu16): ...this. All users updated.
35660 (U32): Replaced with ...
35661 (grub_afs_to_cpu32): ...this. All users updated.
35662 (U64): Replaced with ...
35663 (grub_afs_to_cpu64): ...this. All users updated.
35664 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35665 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35666 (grub_afs_validate_sblock): Check only one endianness.
35667 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35668 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35669 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35670 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35671 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35672 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35673 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35674 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35675
35676 2009-08-26 Bean <bean123ch@gmail.com>
35677
35678 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35679 64-bit number.
35680 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35681 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35682 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35683
35684 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35685
35686 NetBSD memory map support.
35687
35688 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35689 (grub_netbsd_btinfo_mmap_header): New structure.
35690 (grub_netbsd_btinfo_mmap_entry): Likewise.
35691 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35692
35693 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35694
35695 Enable bsd.mod on coreboot.
35696
35697 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35698 (bsd_mod_SOURCES): New variable.
35699 (bsd_mod_CFLAGS): Likewise.
35700 (bsd_mod_LDFLAGS): Likewise.
35701 (bsd_mod_ASFLAGS): Likewise.
35702 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35703 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35704
35705 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35706
35707 Cleanup NetBSD root support.
35708
35709 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35710 grub_bsd_get_device.
35711 Fix typo.
35712
35713 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35714
35715 * util/grub.d/00_header.in: Move check for the video backend of
35716 gfxterm from here ...
35717 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35718 a suitable video backend.
35719
35720 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35721
35722 Fix breakage in grub-setup.
35723
35724 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35725 "msdos_partition_map".
35726
35727 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35728
35729 Fix breakage in normal/auth.c.
35730
35731 * normal/auth.c (grub_iswordseparator): New function.
35732
35733 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35734
35735 Authentication support.
35736
35737 * commands/password.c: New file.
35738 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35739 (password_mod_SOURCES): New variable.
35740 (password_mod_CFLAGS): Likewise.
35741 (password_mod_LDFLAGS): Likewise.
35742 (normal_mod_SOURCES): Add normal/auth.c.
35743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35744 normal/auth.c.
35745 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35746 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35747 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35749 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35750 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35751 * include/grub/auth.h: New file.
35752 * include/grub/err.h (grub_err_t): New enum value
35753 GRUB_ERR_ACCESS_DENIED.
35754 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35755 'users'.
35756 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35757 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35758 users updated.
35759 * normal/auth.c: New file.
35760 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35761 (grub_cmdline_run): Don't allow to go to command line without
35762 authentication.
35763 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35764 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35765 menuentry without superuser rights.
35766 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35767 user isn't a superuser.
35768
35769 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35770
35771 Save space by inlining misc.c functions.
35772
35773 * kern/misc.c (grub_iswordseparator): Made static.
35774 * kern/misc.c (grub_strcat): Moved from here ...
35775 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35776 * kern/misc.c (grub_strncat): Moved from here ...
35777 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35778 * kern/misc.c (grub_strcasecmp): Moved from here ...
35779 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35780 * kern/misc.c (grub_strncasecmp): Moved from here ...
35781 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35782 * kern/misc.c (grub_isalpha): Moved from here ...
35783 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35784 * kern/misc.c (grub_isdigit): Moved from here ...
35785 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35786 * kern/misc.c (grub_isgraph): Moved from here ...
35787 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35788 * kern/misc.c (grub_tolower): Moved from here ...
35789 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35790
35791 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35792
35793 * script/sh/function.c (grub_script_function_find): Cut error message
35794 not to flood terminal.
35795 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35796 limit.
35797 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35798
35799 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35800
35801 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35802 `report' grub_uint8_t *.
35803 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35804 Use a 50-millisecond timeout rather than just repeating
35805 grub_usb_keyboard_getreport 50 times.
35806 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35807
35808 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35809
35810 Rename *_partition_map to part_*
35811
35812 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35813 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35814 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35815 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35816 All users updated.
35817 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35818 All users updated.
35819 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35820 * util/grub-probe.c (probe_partmap): Don't transform partition name
35821 to get module name.
35822
35823 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35824
35825 Fix OpenBSD and NetBSD support.
35826
35827 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35828 memory address conflict.
35829 (OPENBSD_MMAP_ACPI): New definition.
35830 (OPENBSD_MMAP_NVS): Likewise.
35831 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35832 and OPENBSD_MMAP_NVS.
35833 Add memory map terminator
35834 Explicit cast when calling grub_unix_real_boot.
35835 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35836
35837 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35838
35839 Let user specify NetBSD root device.
35840
35841 * loader/i386/bsd.c (netbsd_root): New variable.
35842 (netbsd_opts): New option 'root'.
35843 (NETBSD_ROOT_ARG): New macro.
35844 (grub_netbsd_boot): Use 'netbsd_root'.
35845 (grub_bsd_unload): Free 'netbsd_root'.
35846 (grub_cmd_netbsd): Fill 'netbsd_root'.
35847
35848 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35849
35850 Support for 64-bit NetBSD.
35851
35852 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35853 point when booting non-FreeBSD.
35854
35855 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35856
35857 Support --no-smp and --no-acpi for NetBSD.
35858
35859 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35860 (NETBSD_AB_NOACPI): Likewise.
35861 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35862 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35863
35864 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35865
35866 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35867 errors.
35868 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35869 errors. Call grub_error when needed.
35870
35871 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35872
35873 * commands/search.c (search_fs): Try searching without autoload first.
35874 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35875 filesystem module explicitly for faster booting.
35876
35877 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35878
35879 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35880
35881 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35882
35883 * util/grub.d/30_os-prober.in: Disable os-prober if
35884 `GRUB_DISABLE_OS_PROBER' was set to true.
35885
35886 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35887
35888 * partmap/pc.c: Rename to ...
35889 * partmap/msdos.c: ... this. Update all users.
35890 (grub_pc_partition_map): Rename to ...
35891 (grub_msdos_partition_map): ... this. Update all users.
35892
35893 * parttool/pcpart.c: Rename to ...
35894 * parttool/msdospart.c: ... this. Update all users.
35895
35896 * include/grub/pc_partition.h: Rename to ...
35897 * include/grub/msdos_partition.h: ... this. Update all users.
35898 (grub_pc_partition_bsd_entry): Rename to ...
35899 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35900 (grub_pc_partition_disk_label): Rename to ...
35901 (grub_msdos_partition_disk_label): ... this. Update all users.
35902 (grub_pc_partition_entry): Rename to ...
35903 (grub_msdos_partition_entry): ... this. Update all users.
35904 (grub_pc_partition_mbr): Rename to ...
35905 (grub_msdos_partition_mbr): ... this. Update all users.
35906 (grub_pc_partition): Rename to ...
35907 (grub_msdos_partition): ... this. Update all users.
35908 (grub_pc_partition_is_empty): Rename to ...
35909 (grub_msdos_partition_is_empty): ... this. Update all users.
35910 (grub_pc_partition_is_extended): Rename to ...
35911 (grub_msdos_partition_is_extended): ... this. Update all users.
35912 (grub_pc_partition_is_bsd): Rename to ...
35913 (grub_msdos_partition_is_bsd): ... this. Update all users.
35914
35915 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35916 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35917 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35918 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35919 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35920 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35921 (gpt_mod_LDFLAGS): Rename to ...
35922 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35923 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35924 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35925 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35926 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35927 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35928 (part_gpt_mod_LDFLAGS): ... this.
35929 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35930 `pcpart.mod' to `msdospart.mod'.
35931 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35932 to ...
35933 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35934 (msdospart_mod_LDFLAGS): ... this.
35935
35936 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35937
35938 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35939 (openbsd_opts): Likewise.
35940 (netbsd_opts): Likewise.
35941 (freebsd_flags): Added 0 terminator.
35942 (openbsd_flags): Likewise.
35943 (netbsd_flags): Likewise.
35944 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35945 (grub_cmd_freebsd): Transformed into extended command.
35946 (grub_cmd_openbsd): Likewise.
35947 (grub_cmd_netbsd): Likewise.
35948 (cmd_freebsd): Changed type to grub_extcmd_t.
35949 (cmd_openbsd): Likewise.
35950 (cmd_netbsd): Likewise.
35951 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35952 grub_cmd_openbsd as extended commands.
35953 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35954 cmd_netbsd and cmd_openbsd
35955
35956 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35957
35958 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35959
35960 2009-08-21 Pavel Roskin <proski@gnu.org>
35961
35962 * Makefile.in (install-local): When checking if a file is in the
35963 build directory, use "test -e" to detect symlinks.
35964
35965 * Makefile.in (install-local): Remove all files in
35966 $(DESTDIR)$(pkglibdir) before installing new files there.
35967
35968 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35969
35970 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35971 grub-mkelfimage.
35972
35973 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35974
35975 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35976 explicitly specified by the user.
35977
35978 2009-08-18 Pavel Roskin <proski@gnu.org>
35979
35980 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35981 grub_uint8_t pointer for data.
35982 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35983 Likewise.
35984 * video/fb/fbutil.c: Remove unnecessary casts.
35985
35986 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35987
35988 VBE cleanup.
35989
35990 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35991 (grub_vbe_set_video_mode): Save active mode info
35992 only after setting the mode.
35993 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35994 second argument.
35995
35996 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35997
35998 Rename variables for clarity.
35999
36000 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36001 (active_vbe_mode_info): ... this. All users updated.
36002 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36003 All users updated.
36004 (initial_mode): Rename to ...
36005 (initial_vbe_mode): ... this. All users updated.
36006 (mode_in_use): Rename to ..
36007 (vbe_mode_in_use): ... this. All users updated.
36008 (mode_list): Rename to ..
36009 (vbe_mode_list): ... this. All users updated.
36010 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36011 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36012 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36013 'mode_list_size' to 'vbe_mode_list_size'.
36014 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36015 'best_mode_info' to 'best_vbe_mode_info' and
36016 'best_mode' to 'best_vbe_mode'
36017
36018 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36019
36020 Remove duplicate grub_video_fb_get_video_ptr.
36021
36022 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36023 (grub_video_fb_get_video_ptr): ... this.
36024 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36025 * video/fb/fbutil.c: Add comment about addressing.
36026 (get_data_ptr): Rename to ...
36027 (grub_video_fb_get_video_ptr): ... this. All users updated.
36028 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36029
36030 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36031
36032 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36033 grub_dprintf() that was just added.
36034
36035 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36036
36037 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36038 (DEFAULT_VIDEO_MODE): Remove macros.
36039 (grub_linux_boot): Remove assumption that Linux has FB support,
36040 and use "text" as default video mode.
36041
36042 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36043
36044 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36045 grub_dprintf.
36046 * fs/fat.c (grub_fat_read_data): Likewise.
36047
36048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36049
36050 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36051 payload.
36052 (grub_module): Likewise.
36053
36054 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36055
36056 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36057 mbi->cmdline but free playground.
36058
36059 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36060
36061 Handle group offset on UFS1.
36062
36063 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36064 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36065
36066 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36067
36068 Split ufs.mod into ufs1.mod and ufs2.mod.
36069
36070 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36071 (grub_fstest_SOURCES): Likewise.
36072 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36073 (ufs_mod_SOURCES): Remove.
36074 (ufs_mod_CFLAGS): Likewise.
36075 (ufs_mod_LDFLAGS): Likewise.
36076 (ufs1_mod_SOURCES): New variable.
36077 (ufs1_mod_CFLAGS): Likewise.
36078 (ufs1_mod_LDFLAGS): Likewise.
36079 (ufs2_mod_SOURCES): New variable.
36080 (ufs2_mod_CFLAGS): Likewise.
36081 (ufs2_mod_LDFLAGS): Likewise.
36082 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36083 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36084 Likewise.
36085 (grub_emu_SOURCES): Likewise.
36086 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36087 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36088 (grub_setup_SOURCES): Likewise.
36089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36090 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36091 (grub_setup_SOURCES): Likewise.
36092 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36093 Likewise.
36094 * fs/ufs2.c: New file.
36095 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36096
36097 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36098
36099 Framebuffer split.
36100
36101 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36102 subsystem at the end.
36103 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36104 (video_fb_mod_SOURCES): New variable.
36105 (video_fb_mod_CFLAGS): Likewise.
36106 (video_fb_mod_LDFLAGS): Likewise.
36107 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36108 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36109 * video/i386/pc/vbeblit.c: Moved from here ...
36110 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36111 * video/i386/pc/vbefill.c: Moved from here ...
36112 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36113 * video/i386/pc/vbeutil.c: Moved from here ...
36114 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36115 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36116 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36117 * include/grub/i386/pc/vbefill.h: Moved from here ...
36118 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36119 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36120 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36121 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36122 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36123 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36124 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36125 (grub_video_adapter): Added 'get_info_and_fini'.
36126 (grub_video_get_info_and_fini): New prototype.
36127 (grub_video_set_mode): make modestring const char *.
36128 * loader/i386/linux.c (grub_linux_setup_video): Use
36129 grub_video_get_info_and_fini.
36130 (grub_linux_boot): Move modesetting just before booting.
36131 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36132 grub_video_get_info_and_fini.
36133 * video/i386/pc/vbe.c: Moved framebuffer part ...
36134 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36135 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36136 grub_video_fbstd_colors and grub_video_fb_set_palette.
36137 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36138 grub_video_fb_init.
36139 (grub_video_vbe_fini): Use grub_video_fb_fini.
36140 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36141 render_target and use grub_video_fb_set_active_render_target and
36142 grub_video_fb_set_palette.
36143 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36144 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36145 (grub_video_vbe_adapter): Use framebuffer.
36146 * video/video.c (grub_video_get_info_and_fini): New function.
36147 (grub_video_set_mode): Make modestring const char *.
36148 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36149 values are already initialised.
36150
36151 2009-08-14 Pavel Roskin <proski@gnu.org>
36152
36153 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36154 ABS and APPLE_CC.
36155 * boot/i386/pc/diskboot.S: Likewise.
36156 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36157 sectors allow compilation on MacOSX.
36158 * conf/i386-pc.rmk: Enable unconditional compilation of
36159 lnxboot.img.
36160
36161 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36162
36163 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36164 * util/grub.d/00_header.in: Enter interruptible sleep if
36165 GRUB_HIDDEN_TIMEOUT is set.
36166
36167 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36168
36169 * include/grub/symbol.h: Add the LOCAL macro.
36170 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36171 starting with "L_".
36172
36173 2009-08-13 Pavel Roskin <proski@gnu.org>
36174
36175 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36176 any modern compilers we support.
36177
36178 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36179 Use local labels starting with "L_" so that Apple assembler
36180 knows they are local.
36181
36182 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36183
36184 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36185 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36186 (bsd_kernel_types): ... this enum.
36187
36188 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36189 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36190 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36191
36192 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36193 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36194 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36195 messages.
36196
36197 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36198
36199 * util/grub-dumpdevtree: Moved from here ...
36200 * util/i386/efi/grub-dumpdevtree: ... to here.
36201 (hexify): New function. Converts a string to its hex version.
36202 Generate hex versions of "efi" and "device-properties" by calling
36203 hexify() on the ASCII strings rather than by hardcoding numbers.
36204
36205 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36206
36207 * fs/jfs.c: Update copyright year.
36208
36209 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36210
36211 * util/grub.d/00_header.in: Fix a comment.
36212 * util/grub.d/10_linux.in: Likewise.
36213 * util/grub.d/10_windows.in: Likewise.
36214 * util/grub.d/10_hurd.in: Likewise.
36215
36216 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36217
36218 * util/grub-mkconfig.in: Allow the user to specify the used font
36219 with GRUB_FONT.
36220
36221 2009-08-08 Pavel Roskin <proski@gnu.org>
36222
36223 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36224 available, xfs.mod needs it now.
36225
36226 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36227 the "g" modifier in sed when the intention is to strip something
36228 once. This fixes comparison of kernels with multiple dashes.
36229
36230 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36231 on it. Add missing space before closing bracket. Fix
36232 misleading formatting.
36233
36234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36235
36236 * docs/grub.texi: Major overhaul. Remove all sections that are
36237 specific to GRUB Legacy, or mostly composed of Legacy-specific
36238 information.
36239
36240 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36241
36242 * docs/version.texi: New file. Provides version information for
36243 grub.texi.
36244
36245 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36246
36247 * docs/grub.texi: Update CVS information to SVN.
36248 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36249
36250 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36251
36252 * util/grub-mkconfig.in: Remove a wrong `fi'.
36253
36254 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36255
36256 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36257 (grub_jfs_uuid): New function.
36258 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36259
36260 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36261
36262 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36263 of it to ...
36264 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36265 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36266
36267 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36268
36269 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36270 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36271 Update all users.
36272
36273 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36274 not just "vmlinu[zx]".
36275 Moved from here ...
36276 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36277 all users.
36278
36279 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36280 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36281 all users.
36282
36283 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36284
36285 * util/grub.d/10_freebsd.in: Use an absolute device path for
36286 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36287
36288 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36289
36290 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36291 handling of multiple abstraction modules.
36292
36293 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36294
36295 Fix a bug resulting in black screen when loading Linux using a
36296 packed video mode.
36297
36298 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36299 function.
36300
36301 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36302 (grub_vbe_bios_getset_dac_palette_width): New function.
36303 (grub_vbe_bios_get_dac_palette_width)
36304 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36305 grub_vbe_bios_getset_dac_palette_width()).
36306
36307 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36308 check for return status.
36309 (grub_vbe_get_video_mode_info): When getting information for a packed
36310 mode (<= 8 bpp), obtain DAC palette width using
36311 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36312 {red,green,blue}_mark_size.
36313
36314 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36315
36316 * commands/search.c (options): Fix help output to match actual code.
36317
36318 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36319
36320 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36321 of homegrown code.
36322
36323 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36324
36325 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36326 on XFS or ReiserFS.
36327
36328 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36329
36330 Support Apple partition map with sector size different from 512 bytes.
36331
36332 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36333 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36334 and 'apart.partmap_size'.
36335
36336 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36337 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36338
36339 Fix cpuid command.
36340
36341 * commands/i386/cpuid.c (options): New variable.
36342 (grub_cmd_cpuid): Return real error.
36343 (GRUB_MOD_INIT(cpuid)): Declare options.
36344
36345 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36346
36347 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36348 valid.
36349
36350 2009-07-31 Bean <bean123ch@gmail.com>
36351
36352 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36353 log2_inode.
36354 (grub_fshelp_node): Move inode field to the end.
36355 (grub_xfs_data): Remove inode field.
36356 (grub_xfs_inode_block): Calculate inode size using sblock.
36357 (grub_xfs_inode_offset): Likewise.
36358 (grub_xfs_read_inode): Calculate inode size using sblock.
36359 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36360 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36361 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36362 to match inode size.
36363 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36364 not accessible when data is null.
36365 (grub_xfs_open): Likewise.
36366
36367 2009-07-31 Bean <bean123ch@gmail.com>
36368
36369 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36370 Don't change pv->disk if it's already set.
36371
36372 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36373 (grub_raid_register): ... here.
36374 (grub_raid_rescan): Removed.
36375
36376 * include/grub/raid.h (grub_raid_rescan): Removed.
36377
36378 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36379 (fstest): Replace grub_raid_rescan with module fini function followed
36380 by init function.
36381
36382 * util/grub-probe.c: Add include file <grub/raid.h>.
36383 (probe_raid_level): New function.
36384 (probe): Detect abstraction by walking the disk device, support two
36385 level of abstraction (LVM on RAID) when detecting partition map.
36386
36387 2009-07-31 Pavel Roskin <proski@gnu.org>
36388
36389 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36390 to grub_zalloc(), it was erroneous.
36391 Reported by Bean <bean123ch@gmail.com>
36392
36393 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36394
36395 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36396 embedding zone, not only the first one.
36397
36398 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36399
36400 * term/gfxterm.c (clear_char): New function.
36401 (grub_virtual_screen_setup): Use clear_char.
36402 (scroll_up): Likewise.
36403 (grub_virtual_screen_cls): Likewise.
36404
36405 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36406
36407 * util/deviceiter.c (get_acceleraid_disk_name): New static
36408 function.
36409 (grub_util_iterate_devices): Handle Accelraid devices.
36410 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36411
36412 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36413
36414 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36415 separator for the suggested gfxpayload string (';' collides with the
36416 parser and needs escaping).
36417
36418 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36419
36420 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36421 Clear direction flag before jumping to OS.
36422 (grub_multiboot2_real_boot): Likewise.
36423
36424 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36425
36426 * util/i386/pc/grub-install: Fix parsing of --disk-module
36427 option.
36428
36429 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36430
36431 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36432 when embedding.
36433
36434 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36435
36436 * util/grub-mkconfig.in (package_version): New variable.
36437 Use it do display the version.
36438
36439 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36440
36441 * kern/file.c (grub_file_open): Revert to previous check with
36442 grub_errno.
36443
36444 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36445
36446 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36447 from help line. It's out of sync with code.
36448
36449 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36450
36451 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36452 entries on failed boot.
36453
36454 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36455
36456 * kern/file.c (grub_file_open): Fix an error check.
36457
36458 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36459
36460 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36461 partition map couldn't be identified.
36462
36463 2009-07-23 Pavel Roskin <proski@gnu.org>
36464
36465 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36466 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36467 case of little endian words becomes just an optimization.
36468 Respect const modifier.
36469 (md5_final): Use code that doesn't depend on endianness.
36470
36471 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36472 to avoid loss of upper bits if align is unsigned and shorter
36473 than addr.
36474
36475 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36476
36477 UUID support for UFS
36478
36479 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36480 (grub_ufs_uuid): New function.
36481 (grub_ufs_fs): add .uuid
36482
36483 2009-07-21 Pavel Roskin <proski@gnu.org>
36484
36485 * kern/dl.c (grub_dl_check_header): Make static.
36486
36487 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36488
36489 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36490 add drivemap for Vista. It breaks Windows 7.
36491
36492 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36493
36494 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36495 128 bytes
36496
36497 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36498
36499 Add BFS support
36500
36501 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36502 (grub_fstest_SOURCES): Likewise.
36503 (pkglib_MODULES): Add befs.mod.
36504 (befs_mod_SOURCES): New variable.
36505 (befs_mod_CFLAGS): Likewise.
36506 (befs_mod_LDFLAGS): Likewise.
36507 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36508 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36509 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36510 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36511 (grub_setup_SOURCES): Likewise.
36512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36513 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36514 (grub_setup_SOURCES): Likewise.
36515 * fs/befs.c: New file.
36516 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36517 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36518 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36519 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36520 (B_KEY_INDEX_ALIGN): New declaration.
36521 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36522 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36523 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36524 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36525 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36526 (grub_afs_mount) [MODE_BFS]: Likewise.
36527 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36528 (grub_afs_fs): Use GRUB_AFS_FSNAME
36529 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36530 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36531 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36532 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36533
36534 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36535
36536 * util/getroot.c (find_root_device): Add support for MacOSX.
36537 * util/hostdisk.c: Likewise.
36538
36539 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36540
36541 * font/font.c (find_glyph): Check whether a font is present to avoid
36542 segmentation fault.
36543
36544 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36545
36546 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36547
36548 2009-07-20 Pavel Roskin <proski@gnu.org>
36549
36550 * configure.ac: Trim excessively wordy excuses.
36551
36552 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36553
36554 Add symlink, mtime and label support to AtheFS.
36555
36556 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36557 (grub_afs_iterate_dir): Handle symlinks.
36558 (grub_afs_open): Use grub_afs_read_symlink.
36559 (grub_afs_dir): Likewise.
36560 Pass mtime.
36561 (grub_afs_label): New function.
36562 (grub_afs_fs): Add grub_afs_label.
36563 (grub_afs_read_symlink): New function.
36564
36565 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36566
36567 Fix AtheFS support.
36568
36569 * fs/afs.c: Fix comments style.
36570 (grub_afs_blockrun): Declare as packed.
36571 (grub_afs_datastream): Likewise.
36572 (grub_afs_bnode): Likewise.
36573 (grub_afs_btree): Likewise.
36574 (grub_afs_sblock): Likewise.
36575 Declare `name' as char.
36576 (grub_afs_inode): Declare as packed.
36577 Change void *vnode to grub_uint32_t unused.
36578 (grub_afs_iterate_dir): Check that key_size is positive.
36579 (grub_afs_mount): Don't read superblock twice.
36580 (grub_afs_dir): Don't free node in case of error,
36581 grub_fshelp_find_file already handles this.
36582 (grub_afs_open): Likewise.
36583
36584 2009-07-19 Pavel Roskin <proski@gnu.org>
36585
36586 * Makefile.in: Remove LIBLZO and enable_lzo.
36587 * conf/i386-pc.rmk: Remove lzo support.
36588 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36589 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36590 support.
36591 * kern/i386/pc/lzo1x.S: Remove.
36592 * kern/i386/pc/startup.S: Remove lzo support.
36593 * util/i386/pc/grub-mkimage.c: Likewise.
36594
36595 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36596
36597 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36598 * fs/xfs.c (grub_xfs_dir): Likewise.
36599 * fs/afs.c (grub_afs_dir): Likewise.
36600 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36601 (grub_iso9660_open): Likewise.
36602 * fs/jfs.c (grub_jfs_open): Likewise.
36603 * fs/ext2.c (grub_ext2_dir): Likewise.
36604 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36605 * script/sh/lexer.c (grub_script_yylex): Likewise.
36606
36607 2009-07-16 Pavel Roskin <proski@gnu.org>
36608
36609 * configure.ac: Never add "-c" to CFLAGS.
36610
36611 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36612
36613 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36614 grub_cv_cc_efiemu should be used.
36615
36616 * configure.ac: Typo fixes.
36617
36618 * kern/mm.c (grub_zalloc): New function.
36619 (grub_debug_zalloc): Likewise.
36620 * include/grub/mm.h: Declare grub_zalloc() and
36621 grub_debug_zalloc().
36622 * util/misc.c (grub_zalloc): New function.
36623 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36624 instead of grub_malloc(), remove unneeded initializations.
36625 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36626 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36627 * commands/parttool.c (grub_cmd_parttool): Likewise.
36628 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36629 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36630 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36631 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36632 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36633 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36634 (grub_cmd_efiemu_pnvram): Likewise.
36635 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36636 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36637 (grub_iso9660_iterate_dir): Likewise.
36638 * fs/jfs.c (grub_jfs_opendir): Likewise.
36639 * fs/ntfs.c (list_file): Likewise.
36640 (grub_ntfs_mount): Likewise.
36641 * kern/disk.c (grub_disk_open): Likewise.
36642 * kern/dl.c (grub_dl_load_core): Likewise.
36643 * kern/elf.c (grub_elf_file): Likewise.
36644 * kern/env.c (grub_env_context_open): Likewise.
36645 (grub_env_set): Likewise.
36646 (grub_env_set_data_slot): Likewise.
36647 * kern/file.c (grub_file_open): Likewise.
36648 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36649 * loader/i386/multiboot.c (grub_module): Likewise.
36650 * loader/xnu.c (grub_xnu_create_key): Likewise.
36651 (grub_xnu_create_value): Likewise.
36652 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36653 (read_config_file): Likewise.
36654 * normal/menu_entry.c (make_screen): Likewise.
36655 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36656 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36657 * script/sh/script.c (grub_script_parse): Likewise.
36658 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36659 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36660 * video/readers/png.c (grub_png_output_byte): Likewise.
36661 (grub_video_reader_png): Likewise.
36662
36663 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36664
36665 Enable all targets that can be built by default
36666
36667 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36668 grub-mkfont and grub-fstest if they can be built
36669
36670 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36671
36672 Fix hang and segmentation fault in grub-emu-usb
36673
36674 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36675 * util/usb.c (grub_libusb_devices): likewise
36676 (grub_libusb_init): rename to ...
36677 (GRUB_MOD_INIT (libusb)):...this
36678 (grub_libusb_fini): rename to ..
36679 (GRUB_MOD_FINI (libusb)):...this
36680 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36681 * include/grub/disk.h (grub_raid_init): removed, it's useless
36682 (grub_raid_fini): likewise
36683 (grub_lvm_init): likewise
36684 (grub_lvm_fini): likewise
36685 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36686 by grub_init_all
36687
36688 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36689
36690 Fix libusb
36691
36692 * Makefile.in (LIBUSB): new macro
36693 * genmk.rb (Utility/print_tail): new method
36694 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36695 (top level): call util.print_tail at the end.
36696
36697 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36698
36699 Make FreeBSD accept zpool.cache
36700
36701 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36702 type is /boot/zfs/zpool.cache
36703
36704 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36705
36706 Fix 64-bit efiemu
36707
36708 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36709 correct wrong typedef
36710 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36711
36712 2009-07-15 Pavel Roskin <proski@gnu.org>
36713
36714 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36715 * kern/disk.c (struct grub_disk_cache): Likewise.
36716
36717 * commands/probe.c (options): Typo fix.
36718
36719 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36720 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36721 accordingly.
36722 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36723
36724 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36725 the end of "Error" to make the message more readable.
36726
36727 * boot/i386/pc/boot.S (kernel_segment): Remove.
36728 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36729 for destination.
36730
36731 * boot/i386/pc/boot.S (boot_version): Remove.
36732 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36733 Remove.
36734
36735 * include/grub/i386/pc/boot.h: Sort all offsets.
36736 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36737 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36738 * boot/i386/pc/boot.S: Assert location of every offset listed in
36739 include/grub/i386/pc/boot.h.
36740
36741 2009-07-13 Pavel Roskin <proski@gnu.org>
36742
36743 * include/grub/i386/coreboot/machine.h: Rename
36744 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36745 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36746 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36747
36748 * kern/dl.c: Force native word size to suppress warnings when
36749 compiling grub-emu.
36750
36751 * kern/device.c (grub_device_iterate): Change struct part_ent to
36752 hold the name, not a pointer to it. Use one grub_malloc() per
36753 partition, not two. Free partition_name if grub_malloc() fails.
36754 Set ents to NULL only before grub_partition_iterate() is called.
36755
36756 2009-07-11 Bean <bean123ch@gmail.com>
36757
36758 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36759 childname.
36760
36761 2009-07-10 Bean <bean123ch@gmail.com>
36762 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36763
36764 * kern/ieee1275/openfw.c (grub_children_iterate)
36765 (grub_devalias_iterate): Fix size evaluation for property or path
36766 strings, which was broken since r2132.
36767
36768 2009-07-07 Pavel Roskin <proski@gnu.org>
36769
36770 * commands/search.c (search_file): Merge into ...
36771 (search_fs): ... this. Accept search type as argument.
36772 (grub_cmd_search): Pass search type to search_fs().
36773
36774 * include/grub/util/console.h: New file.
36775 * util/console.c: Use it instead of grub/machine/console.h.
36776 * util/grub-emu.c: Likewise.
36777
36778 * lib/arg.c (find_long_option): Remove.
36779 (find_long): Add `len' argument, make `s' const char *.
36780 (grub_arg_parse): Parse long options in place, not in a
36781 temporary buffer.
36782
36783 2009-07-06 Pavel Roskin <proski@gnu.org>
36784
36785 * commands/search.c (search_fs): Fix potential NULL pointer
36786 dereference.
36787
36788 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36789 function pointer.
36790
36791 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36792
36793 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36794 comparison.
36795
36796 2009-07-05 Pavel Roskin <proski@gnu.org>
36797
36798 * include/grub/i386/linux.h (struct linux_kernel_params):
36799 Restore padding3, it's still needed.
36800
36801 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36802 FreeBSD.
36803 * util/osdetect.lua: Likewise.
36804
36805 2009-07-05 Bean <bean123ch@gmail.com>
36806
36807 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36808
36809 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36810 (grub_lua_getenv): Likewise.
36811 (grub_lua_setenv): Likewise.
36812 (save_errno): New function.
36813 (push_result): Likewise.
36814 (grub_lua_enum_device): Likewise.
36815 (grub_lua_enum_file): Likewise.
36816 (grub_lua_file_open): Likewise.
36817 (grub_lua_file_close): Likewise.
36818 (grub_lua_file_seek): Likewise.
36819 (grub_lua_file_read): Likewise.
36820 (grub_lua_file_getline): Likewise.
36821 (grub_lua_file_getsize): Likewise.
36822 (grub_lua_file_getpos): Likewise.
36823 (grub_lua_file_eof): Likewise.
36824 (grub_lua_file_exist): Likewise.
36825 (grub_lua_add_menu): Likewise.
36826
36827 * script/lua/grub_lua.h (isupper): New inline function.
36828 (islower): Likewise.
36829 (ispunct): Likewise.
36830 (isxdigit): Likewise.
36831 (strcspn): Change to normal function.
36832 (strpbkr): New function declaration.
36833 (memchr): Likewise.
36834
36835 * script/lua/grub_main.c (scan_str): New function.
36836 (strcspn): Likewise.
36837 (strpbrk): Likewise.
36838 (memchr): Likewise.
36839
36840 * script/lua/linit.c (lualibs): Enable the string library.
36841
36842 * util/osdetect.lua: New file.
36843
36844 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36845
36846 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36847 `capabilities' member.
36848
36849 2009-07-02 Pavel Roskin <proski@gnu.org>
36850
36851 * genparttoollist.sh: Add missing newline at the end.
36852
36853 2009-07-01 Pavel Roskin <proski@gnu.org>
36854
36855 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36856
36857 * util/hostdisk.c (open_device): Remove `const' from
36858 `sysctl_size', as sysctlbyname() can change it (in this case it
36859 doesn't actually happen).
36860
36861 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36862 using signed long int constants.
36863
36864 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36865 constant to avoid a warning on FreeBSD.
36866
36867 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36868 where it's needed.
36869
36870 * Makefile.in: Install include/grub/machine symlink.
36871
36872 * Makefile.in: When installing symlinks, use "cp -fR", which
36873 works on FreeBSD and MacOSX.
36874 From Yves Blusseau <cl7m42e02@sneakemail.com>
36875
36876 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36877 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36878
36879 * util/misc.c: Move grub_reboot() and grub_halt() ...
36880 * util/grub-emu.c: ... here. Make main_env static.
36881 * include/grub/util/misc.h: Remove main_env.
36882
36883 * kern/mm.c: Use correct format to print size_t.
36884
36885 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36886 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36887 * kern/powerpc/dl.c: Likewise.
36888 * kern/sparc64/dl.c: Likewise.
36889 * kern/x86_64/dl.c: Likewise.
36890
36891 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36892
36893 Fix grub-emu build on sparc64-ieee1275.
36894
36895 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36897
36898 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36899
36900 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36901 (grub_reboot, grub_halt): New functions.
36902
36903 * util/i386/pc/misc.c: Delete. Update all users.
36904 * util/sparc64/ieee1275/misc.c: Likewise.
36905 * util/powerpc/ieee1275/misc.c: Likewise.
36906
36907 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36908
36909 * conf/i386.rmk (setjmp_mod_SOURCES)
36910 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36911 * conf/common.rmk (setjmp_mod_SOURCES)
36912 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36913 to use $(target_cpu).
36914 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36915 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36916 * conf/powerpc-ieee1275.rmk: Likewise.
36917 * conf/sparc64-ieee1275.rmk: Likewise.
36918
36919 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36920 $(target_cpu) for kern/$(target_cpu)/dl.c.
36921 * conf/i386-efi.rmk: Likewise.
36922 * conf/i386-ieee1275.rmk: Likewise.
36923 * conf/x86_64-efi.rmk: Likewise.
36924 * conf/i386-coreboot.rmk: Likewise.
36925 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36926 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36927 kern/$(target_cpu)/cache.S.
36928 * conf/sparc64-ieee1275.rmk: Likewise.
36929
36930 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36931
36932 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36933 type to `grub_uint8_t', and adjust `padding9' accordingly.
36934
36935 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36936
36937 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36938
36939 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36940 assembly in final jump, using register constraints.
36941
36942 (grub_linux_boot): For text mode, initialize `have_vga' using
36943 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36944
36945 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36946 right before the final jump.
36947
36948 Set `video_mode' to 0x3.
36949
36950 Document initialization of `video_page', `video_mode' and
36951 `video_ega_bx'.
36952
36953 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36954
36955 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36956 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36957 and set GRUB_LINUX_FLAG_QUIET appropriately.
36958
36959 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36960
36961 Fix build on Debian / sparc.
36962
36963 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36964
36965 2009-06-28 Pavel Roskin <proski@gnu.org>
36966
36967 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36968 fix a warning.
36969
36970 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36971
36972 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36973
36974 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36975 `err'.
36976
36977 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36978
36979 Revert r2338.
36980
36981 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36982 file can't be opened. grub_file_open() is already supposed to set
36983 grub_errno / grub_errmsg appropriately.
36984 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36985
36986 2009-06-27 Pavel Roskin <proski@gnu.org>
36987 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36988
36989 * include/grub/dl.h: Include grub/elf.h.
36990 (struct grub_dl): Add symtab field.
36991 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36992 GRUB_MODULES_MACHINE_READONLY.
36993 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36994 of the header for read-only modules.
36995 (grub_dl_unload): Free mod->symtab for read-only modules.
36996 * kern/i386/dl.c: Use mod->symtab.
36997 * kern/powerpc/dl.c: Likewise.
36998 * kern/sparc64/dl.c: Likewise.
36999 * kern/x86_64/dl.c: Likewise.
37000
37001 * conf/i386-qemu.rmk: New file.
37002 * kern/i386/qemu/startup.S: Likewise.
37003 * kern/i386/qemu/mmap.c: Likewise.
37004 * boot/i386/qemu/boot.S: Likewise.
37005 * include/grub/i386/qemu/time.h: Likewise.
37006 * include/grub/i386/qemu/serial.h: Likewise.
37007 * include/grub/i386/qemu/kernel.h: Likewise.
37008 * include/grub/i386/qemu/console.h: Likewise.
37009 * include/grub/i386/qemu/boot.h: Likewise.
37010 * include/grub/i386/qemu/init.h: Likewise.
37011 * include/grub/i386/qemu/machine.h: Likewise.
37012 * include/grub/i386/qemu/loader.h: Likewise.
37013 * include/grub/i386/qemu/memory.h: Likewise.
37014
37015 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37016 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37017 [qemu] (pkglib_IMAGES): Add `boot.img'.
37018 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37019 [qemu] (boot_img_FORMAT): New variables.
37020 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37021 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37022 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37023 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37024 [qemu] (kernel_img_FORMAT): New variables.
37025
37026 * configure.ac: Recognise `i386-qemu'.
37027
37028 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37029 (for no compression).
37030 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37031 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37032 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37033 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37034 ifdefs).
37035
37036 2009-06-27 Pavel Roskin <proski@gnu.org>
37037
37038 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37039 read.
37040 * efiemu/prepare32.c: Likewise.
37041 * efiemu/prepare64.c: Likewise.
37042
37043 2009-06-26 Pavel Roskin <proski@gnu.org>
37044
37045 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37046 * include/grub/elf.h: Define symbols without "32" or "64" based
37047 on GRUB_TARGET_WORDSIZE.
37048 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37049 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37050 ELF definitions.
37051 * efiemu/loadcore64.c: Likewise.
37052 * loader/i386/bsd32.c: Likewise.
37053 * loader/i386/bsd64.c: Likewise.
37054 * kern/dl.c: Remove own ELF definitions.
37055 * util/i386/efi/grub-mkimage.c: Likewise.
37056
37057 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37058
37059 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37060 segment 0x0 unconditionally, because the reference generated by
37061 GAS is an absolute address.
37062
37063 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37064
37065 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37066 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37067
37068 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37069
37070 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37071 indexes. Check for -f explicitly.
37072 (search_file): Improve error message.
37073 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37074
37075 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37076
37077 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37078 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37079
37080 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37081
37082 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37083 * conf/i386-ieee1275.rmk: Likewise.
37084 * conf/i386-coreboot.rmk: Likewise.
37085
37086 * kern/i386/pc/startup.S (grub_stop): Remove function.
37087 * kern/i386/ieee1275/startup.S: Likewise.
37088 * kern/i386/coreboot/startup.S: Likewise.
37089 * kern/i386/misc.S (grub_stop): New function.
37090
37091 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37092
37093 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37094 * kern/i386/realmode.S (real_to_prot): ... to here.
37095
37096 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37097
37098 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37099 with `kernel.img'.
37100 (kernel_elf_SOURCES): Rename to ...
37101 (kernel_img_SOURCES): ... this.
37102 (kernel_elf_HEADERS): Rename to ...
37103 (kernel_img_HEADERS): ... this. Update all users.
37104 (kernel_elf_ASFLAGS): Rename to ...
37105 (kernel_img_ASFLAGS): ... this.
37106 (kernel_elf_CFLAGS): Rename to ...
37107 (kernel_img_CFLAGS): ... this.
37108 (kernel_elf_LDFLAGS): Rename to ...
37109 (kernel_img_LDFLAGS): ... this.
37110 * conf/i386-coreboot.rmk: Likewise.
37111 * conf/powerpc-ieee1275.rmk: Likewise.
37112
37113 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37114 with "kernel.img".
37115
37116 2009-06-21 Pavel Roskin <proski@gnu.org>
37117
37118 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37119 to match nested functions.
37120 * loader/sparc64/ieee1275/linux.c: Likewise.
37121
37122 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37123
37124 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37125
37126 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37127 all i386 platforms.
37128
37129 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37130
37131 Fix asm file handling on ELF, and remove workarounds.
37132
37133 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37134 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37135 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37136 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37137
37138 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37139
37140 Load BSD ELF modules
37141
37142 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37143 and loader/i386/bsd64.c
37144 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37145 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37146 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37147 (grub_freebsd_load_elfmodule32): New declaration
37148 (grub_freebsd_load_elfmoduleobj64): Likewise
37149 (grub_freebsd_load_elf_meta32): Likewise
37150 (grub_freebsd_load_elf_meta64): Likewise
37151 (grub_freebsd_add_meta): Likewise
37152 (grub_freebsd_add_meta_module): Likewise
37153 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37154 (grub_freebsd_add_meta_module): Likewise and move module-specific
37155 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37156 (grub_cmd_freebsd): Add elf-kernel specific parts
37157 based on grub_freebsd_add_meta_module
37158 (grub_cmd_freebsd_module): Add type parsing moved from
37159 grub_freebsd_add_meta_module
37160 (grub_cmd_freebsd_module_elf): New function
37161 (cmd_freebsd_module_elf): New variable
37162 (GRUB_MOD_INIT): Register freebsd_module_elf
37163 * loader/i386/bsd32.c: New file
37164 * loader/i386/bsd64.c: Likewise
37165 * loader/i386/bsdXX.c: Likewise
37166 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37167 (grub_elf64_load): Likewise
37168 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37169 All users updated
37170 (grub_elf64_load_hook_t): Likewise
37171
37172 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37173
37174 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37175 variable.
37176 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37177 don't write a menu entry for recovery mode.
37178
37179 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37180
37181 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37182 after it's no longer needed.
37183
37184 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37185
37186 * include/grub/i386/loader.h (grub_linux_prot_size)
37187 (grub_linux_tmp_addr, grub_linux_real_addr)
37188 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37189 GRUB_MACHINE_PCBIOS.
37190 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37191 common grub_util_info() call to ...
37192 (generate_image): ... here.
37193 Fix use of uninitialized memory, comparison of signed with
37194 unsigned integers and memory leak.
37195 Remove bogus module address message.
37196
37197 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37198
37199 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37200 grub_raid_register
37201 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37202
37203 2009-06-19 Pavel Roskin <proski@gnu.org>
37204
37205 * configure.ac: Remove stray AC_MSG_CHECKING.
37206
37207 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37208
37209 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37210
37211 2009-06-18 Pavel Roskin <proski@gnu.org>
37212
37213 * conf/common.rmk: Add fs_file.mod.
37214 * disk/fs_file.c: New file.
37215 * include/grub/disk.h (enum grub_disk_dev_id): Add
37216 GRUB_DISK_DEVICE_FILE_ID.
37217
37218 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37219
37220 Fix build with Apple's toolchain. Part 2
37221
37222 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37223 a fake start
37224
37225 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37226
37227 Fix build with Apple's toolchain. Part 1
37228
37229 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37230 for long calls
37231 * configure.ac: remove a leftover AC_MSG_RESULT
37232 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37233 Apple's toolchain
37234
37235 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37236
37237 Fix warnings
37238
37239 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37240 (decomp_block): initialize ch
37241 use grub_memcpy instead of memcpy
37242
37243 2009-06-17 Pavel Roskin <proski@gnu.org>
37244
37245 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37246 version, use declarations needed to use vga_text as the startup
37247 console.
37248
37249 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37250 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37251 the kernel.
37252 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37253 and grub_at_keyboard_fini(), it's done on module load and
37254 unload.
37255
37256 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37257
37258 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37259 file can't be found.
37260 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37261
37262 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37263
37264 Fix newline handling
37265
37266 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37267 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37268 (grub_script_yylex): don't segfault on unterminated script
37269 newline terminates command and variable
37270
37271 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37272
37273 avoid double grub_adjust_range call. Bug reported by David Simner
37274
37275 * kern/disk.c (grub_disk_write): change to raw disk access before
37276 calling disk_read
37277
37278 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37279
37280 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37281 spaces, for the benefit of help2man.
37282 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37283
37284 2009-06-16 Pavel Roskin <proski@gnu.org>
37285
37286 * kern/i386/halt.c: Include grub/machine/init.h.
37287 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37288
37289 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37290
37291 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37292 drivemap menuentry.
37293
37294 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37295
37296 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37297 `echo' command.
37298
37299 2009-06-16 Pavel Roskin <proski@gnu.org>
37300
37301 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37302 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37303 save %dx, we only need %dl and we never change it.
37304 * boot/i386/pc/cdboot.S: Don't set the root drive.
37305 * boot/i386/pc/pxeboot.S: Likewise.
37306 * include/grub/i386/pc/boot.h: Remove
37307 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37308 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37309 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37310 * kern/i386/pc/init.c (make_install_device): Remove references
37311 to grub_root_drive.
37312 * kern/i386/pc/startup.S: Likewise.
37313 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37314
37315 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37316
37317 xnu_uuid command
37318
37319 * commands/xnu_uuid.c: new file
37320 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37321 (xnu_uuid_mod_SOURCES): new variable
37322 (xnu_uuid_mod_CFLAGS): likewise
37323 (xnu_uuid_mod_LDFLAGS): likewise
37324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37325 * conf/i386-ieee1275.rmk: likewise
37326 * conf/i386-pc.rmk: likewise
37327 * conf/powerpc-ieee1275.rmk: likewise
37328 * conf/sparc64-ieee1275.rmk: likewise
37329 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37330
37331 2009-06-16 Pavel Roskin <proski@gnu.org>
37332
37333 * configure.ac: Avoid '==' in test command, it's not portable.
37334
37335 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37336
37337 Probe command
37338
37339 * commands/probe.c: new file
37340 * conf/common.rmk (pkglib_MODULES): add probe.mod
37341 (probe_mod_SOURCES): new variable
37342 (probe_mod_CFLAGS): likewise
37343 (probe_mod_LDFLAGS): likewise
37344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37345 * conf/i386-ieee1275.rmk: likewise
37346 * conf/i386-pc.rmk: likewise
37347 * conf/powerpc-ieee1275.rmk: likewise
37348 * conf/sparc64-ieee1275.rmk: likewise
37349
37350 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37351
37352 Fix handling of string like \"hello\" and "a
37353 b"
37354
37355 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37356 (grub_script_yylex): fix parsing of quoting, escaping and newline
37357
37358 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37359
37360 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37361 handling
37362
37363 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37364
37365 * util/grub-mkconfig.in: Fix parsing of --output option.
37366
37367 2009-06-12 Pavel Roskin <proski@gnu.org>
37368
37369 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37370 genmk.rb don't need to be generated or installed.
37371
37372 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37373
37374 * commands/i386/pc/drivemap_int13h.S: add more comments
37375
37376 2009-06-11 Pavel Roskin <proski@gnu.org>
37377
37378 * Makefile.in (uninstall): Uninstall manuals.
37379
37380 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37381 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37382 and update-grub_lib in two places.
37383 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37384
37385 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37386 a compiler warning.
37387
37388 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37389 `entry_lo' to fix variable shadowing.
37390
37391 2009-06-11 Christian Franke <franke@computer.org>
37392
37393 * kern/misc.c (__enable_execute_stack): Add missing return type
37394 to prevent gcc warning.
37395
37396 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37397
37398 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37399
37400 2009-06-11 Pavel Roskin <proski@gnu.org>
37401
37402 * Makefile.in: Don't rely on any scripts being executable.
37403 Always use $(SHELL) to run shell scripts.
37404
37405 * configure.ac: Always define ___main if using -nostdlib. This
37406 fixes tests on Cygwin.
37407
37408 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37409
37410 UDF fix
37411
37412 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37413 is in bytes and not in blocks
37414
37415 2009-06-11 Pavel Roskin <proski@gnu.org>
37416
37417 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37418 warning.
37419
37420 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37421
37422 * util/grub.d/30_os-prober.in: Fix a comment. Source
37423 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37424 to set the root device. Place drivemap command in the generated
37425 chain entry.
37426
37427 2009-06-11 Pavel Roskin <proski@gnu.org>
37428
37429 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37430 have long been resolved.
37431
37432 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37433
37434 * util/grub.d/10_linux.in: Capitalise "Linux".
37435
37436 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37437
37438 2009-06-11 Pavel Roskin <proski@gnu.org>
37439
37440 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37441 fix a gcc warning and ensure that the function won't ever exit.
37442
37443 * kern/i386/ieee1275/init.c: Add missing prototype for
37444 grub_stop_floppy().
37445
37446 * loader/ieee1275/multiboot2.c [__i386__]: Include
37447 grub/cpu/multiboot.h.
37448
37449 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37450 casts to short - they are not portable and cause warnings. Fix
37451 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37452
37453 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37454
37455 Drivemap fixes
37456
37457 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37458 new function
37459 (grub_get_root_biosnumber_saved): new variable
37460 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37461 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37462 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37463 %dx after the call if necessary
37464 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37465 (boot_mod_SOURCES): remove
37466 (boot_mod_CFLAGS): remove
37467 (boot_mod_LDFLAGS): remove
37468 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37469 (boot_mod_SOURCES): new variable
37470 (boot_mod_CFLAGS): likewise
37471 (boot_mod_LDFLAGS): likewise
37472 * conf/i386-efi.rmk: likewise
37473 * conf/i386-ieee1275.rmk: likewise
37474 * conf/i386-pc.rmk: likewise
37475 * conf/powerpc-ieee1275.rmk: likewise
37476 * conf/sparc64-ieee1275.rmk: likewise
37477 * conf/x86_64-efi.rmk: likewise
37478 * include/grub/i386/pc/biosnum.h: new file
37479 * lib/i386/pc/biosnum.c: likewise
37480 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37482 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37483
37484 2009-06-10 Pavel Roskin <proski@gnu.org>
37485
37486 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37487 Use separate variables. Read only the file size at the end, but
37488 not the checksum that we don't use.
37489
37490 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37491 Adjust all callers.
37492
37493 * kern/ieee1275/openfw.c: Remove libc includes.
37494 * kern/ieee1275/cmain.c: Likewise.
37495 * include/grub/ieee1275/ieee1275.h: Likewise.
37496
37497 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37498 compiler warnings.
37499
37500 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37501
37502 * Makefile.in: Remove all trailing whitespace.
37503 * conf/i386-pc.rmk: Likewise.
37504 * conf/powerpc-ieee1275.rmk: Likewise.
37505 * conf/sparc64-ieee1275.rmk: Likewise.
37506 * docs/grub.texi: Likewise.
37507 * docs/texinfo.tex: Likewise.
37508 * disk/fs_uuid.c: Likewise.
37509 * disk/lvm.c: Likewise.
37510 * disk/scsi.c: Likewise.
37511 * disk/ata.c: Likewise.
37512 * disk/ieee1275/ofdisk.c: Likewise.
37513 * disk/i386/pc/biosdisk.c: Likewise.
37514 * disk/host.c: Likewise.
37515 * disk/raid.c: Likewise.
37516 * disk/efi/efidisk.c: Likewise.
37517 * disk/usbms.c: Likewise.
37518 * disk/memdisk.c: Likewise.
37519 * disk/loopback.c: Likewise.
37520 * kern/powerpc/dl.c: Likewise.
37521 * kern/device.c: Likewise.
37522 * kern/dl.c: Likewise.
37523 * kern/sparc64/dl.c: Likewise.
37524 * kern/ieee1275/ieee1275.c: Likewise.
37525 * kern/term.c: Likewise.
37526 * kern/fs.c: Likewise.
37527 * kern/i386/dl.c: Likewise.
37528 * kern/i386/pc/startup.S: Likewise.
37529 * kern/i386/pc/init.c: Likewise.
37530 * kern/i386/pc/mmap.c: Likewise.
37531 * kern/i386/pc/lzo1x.S: Likewise.
37532 * kern/i386/ieee1275/init.c: Likewise.
37533 * kern/i386/realmode.S: Likewise.
37534 * kern/i386/tsc.c: Likewise.
37535 * kern/partition.c: Likewise.
37536 * kern/corecmd.c: Likewise.
37537 * kern/file.c: Likewise.
37538 * kern/efi/efi.c: Likewise.
37539 * kern/efi/init.c: Likewise.
37540 * kern/efi/mm.c: Likewise.
37541 * kern/main.c: Likewise.
37542 * kern/err.c: Likewise.
37543 * kern/env.c: Likewise.
37544 * kern/disk.c: Likewise.
37545 * kern/generic/millisleep.c: Likewise.
37546 * kern/generic/rtc_get_time_ms.c: Likewise.
37547 * kern/misc.c: Likewise.
37548 * kern/parser.c: Likewise.
37549 * genmk.rb: Likewise.
37550 * configure.ac: Likewise.
37551 * boot/i386/pc/diskboot.S: Likewise.
37552 * boot/i386/pc/pxeboot.S: Likewise.
37553 * boot/i386/pc/boot.S: Likewise.
37554 * boot/i386/pc/lnxboot.S: Likewise.
37555 * boot/i386/pc/cdboot.S: Likewise.
37556 * parttool/pcpart.c: Likewise.
37557 * video/readers/tga.c: Likewise.
37558 * video/video.c: Likewise.
37559 * video/bitmap.c: Likewise.
37560 * lib/envblk.c: Likewise.
37561 * lib/i386/setjmp.S: Likewise.
37562 * fs/xfs.c: Likewise.
37563 * fs/afs.c: Likewise.
37564 * fs/fat.c: Likewise.
37565 * fs/ntfs.c: Likewise.
37566 * fs/udf.c: Likewise.
37567 * fs/affs.c: Likewise.
37568 * fs/iso9660.c: Likewise.
37569 * fs/hfs.c: Likewise.
37570 * fs/fshelp.c: Likewise.
37571 * fs/ext2.c: Likewise.
37572 * fs/jfs.c: Likewise.
37573 * fs/reiserfs.c: Likewise.
37574 * fs/hfsplus.c: Likewise.
37575 * fs/minix.c: Likewise.
37576 * fs/cpio.c: Likewise.
37577 * fs/sfs.c: Likewise.
37578 * fs/ufs.c: Likewise.
37579 * efiemu/prepare.c: Likewise.
37580 * efiemu/loadcore_common.c: Likewise.
37581 * efiemu/runtime/efiemu.sh: Likewise.
37582 * efiemu/runtime/efiemu.S: Likewise.
37583 * efiemu/runtime/efiemu.c: Likewise.
37584 * efiemu/pnvram.c: Likewise.
37585 * efiemu/main.c: Likewise.
37586 * efiemu/i386/pc/cfgtables.c: Likewise.
37587 * efiemu/i386/loadcore64.c: Likewise.
37588 * efiemu/i386/loadcore32.c: Likewise.
37589 * efiemu/loadcore.c: Likewise.
37590 * efiemu/symbols.c: Likewise.
37591 * efiemu/mm.c: Likewise.
37592 * include/grub/autoefi.h: Likewise.
37593 * include/grub/datetime.h: Likewise.
37594 * include/grub/term.h: Likewise.
37595 * include/grub/hfs.h: Likewise.
37596 * include/grub/lvm.h: Likewise.
37597 * include/grub/i386/tsc.h: Likewise.
37598 * include/grub/i386/linux.h: Likewise.
37599 * include/grub/i386/xnu.h: Likewise.
37600 * include/grub/i386/efiemu.h: Likewise.
37601 * include/grub/i386/pc/biosdisk.h: Likewise.
37602 * include/grub/i386/pc/memory.h: Likewise.
37603 * include/grub/i386/pc/vbe.h: Likewise.
37604 * include/grub/parttool.h: Likewise.
37605 * include/grub/video.h: Likewise.
37606 * include/grub/memory.h: Likewise.
37607 * include/grub/fs.h: Likewise.
37608 * include/grub/partition.h: Likewise.
37609 * include/grub/xnu.h: Likewise.
37610 * include/grub/efi/api.h: Likewise.
37611 * include/grub/efi/pe32.h: Likewise.
37612 * include/grub/efi/memory.h: Likewise.
37613 * include/grub/multiboot.h: Likewise.
37614 * include/grub/usbdesc.h: Likewise.
37615 * include/grub/multiboot2.h: Likewise.
37616 * include/grub/acpi.h: Likewise.
37617 * include/grub/efiemu/efiemu.h: Likewise.
37618 * include/grub/disk.h: Likewise.
37619 * include/grub/ieee1275/ieee1275.h: Likewise.
37620 * include/grub/net.h: Likewise.
37621 * include/grub/machoload.h: Likewise.
37622 * include/grub/macho.h: Likewise.
37623 * include/multiboot.h: Likewise.
37624 * genmoddep.awk: Likewise.
37625 * normal/main.c: Likewise.
37626 * normal/menu_entry.c: Likewise.
37627 * normal/menu_viewer.c: Likewise.
37628 * normal/completion.c: Likewise.
37629 * normal/cmdline.c: Likewise.
37630 * normal/misc.c: Likewise.
37631 * normal/datetime.c: Likewise.
37632 * bus/usb/usbtrans.c: Likewise.
37633 * bus/usb/ohci.c: Likewise.
37634 * bus/usb/uhci.c: Likewise.
37635 * bus/usb/usb.c: Likewise.
37636 * mmap/efi/mmap.c: Likewise.
37637 * mmap/i386/pc/mmap_helper.S: Likewise.
37638 * mmap/i386/pc/mmap.c: Likewise.
37639 * mmap/i386/mmap.c: Likewise.
37640 * mmap/i386/uppermem.c: Likewise.
37641 * mmap/mmap.c: Likewise.
37642 * commands/acpi.c: Likewise.
37643 * commands/echo.c: Likewise.
37644 * commands/blocklist.c: Likewise.
37645 * commands/loadenv.c: Likewise.
37646 * commands/usbtest.c: Likewise.
37647 * commands/boot.c: Likewise.
37648 * commands/parttool.c: Likewise.
37649 * commands/search.c: Likewise.
37650 * commands/cat.c: Likewise.
37651 * commands/i386/pc/play.c: Likewise.
37652 * commands/i386/pc/drivemap.c: Likewise.
37653 * commands/i386/pc/vbeinfo.c: Likewise.
37654 * commands/i386/pc/acpi.c: Likewise.
37655 * commands/i386/pc/vbetest.c: Likewise.
37656 * commands/ls.c: Likewise.
37657 * commands/cmp.c: Likewise.
37658 * commands/test.c: Likewise.
37659 * commands/efi/acpi.c: Likewise.
37660 * commands/gptsync.c: Likewise.
37661 * commands/help.c: Likewise.
37662 * partmap/amiga.c: Likewise.
37663 * partmap/apple.c: Likewise.
37664 * partmap/acorn.c: Likewise.
37665 * partmap/pc.c: Likewise.
37666 * partmap/sun.c: Likewise.
37667 * partmap/gpt.c: Likewise.
37668 * script/sh/lexer.c: Likewise.
37669 * script/sh/function.c: Likewise.
37670 * font/font.c: Likewise.
37671 * font/font_cmd.c: Likewise.
37672 * loader/powerpc/ieee1275/linux.c: Likewise.
37673 * loader/efi/chainloader.c: Likewise.
37674 * loader/multiboot_loader.c: Likewise.
37675 * loader/macho.c: Likewise.
37676 * loader/i386/multiboot.c: Likewise.
37677 * loader/i386/linux.c: Likewise.
37678 * loader/i386/pc/linux.c: Likewise.
37679 * loader/i386/pc/multiboot2.c: Likewise.
37680 * loader/i386/pc/chainloader.c: Likewise.
37681 * loader/i386/pc/xnu.c: Likewise.
37682 * loader/i386/bsd_trampoline.S: Likewise.
37683 * loader/i386/efi/linux.c: Likewise.
37684 * loader/i386/multiboot_elfxx.c: Likewise.
37685 * loader/i386/bsd_helper.S: Likewise.
37686 * loader/i386/bsd.c: Likewise.
37687 * loader/i386/linux_trampoline.S: Likewise.
37688 * loader/i386/xnu_helper.S: Likewise.
37689 * loader/i386/xnu.c: Likewise.
37690 * loader/i386/bsd_pagetable.c: Likewise.
37691 * loader/i386/multiboot_helper.S: Likewise.
37692 * loader/xnu.c: Likewise.
37693 * loader/xnu_resume.c: Likewise.
37694 * io/gzio.c: Likewise.
37695 * term/efi/console.c: Likewise.
37696 * term/terminfo.c: Likewise.
37697 * term/ieee1275/ofconsole.c: Likewise.
37698 * term/i386/pc/serial.c: Likewise.
37699 * term/i386/pc/vesafb.c: Likewise.
37700 * term/i386/pc/vga.c: Likewise.
37701 * term/usb_keyboard.c: Likewise.
37702 * term/gfxterm.c: Likewise.
37703 * aclocal.m4: Likewise.
37704 * util/lvm.c: Likewise.
37705 * util/grub.d/30_os-prober.in: Likewise.
37706 * util/grub.d/10_hurd.in: Likewise.
37707 * util/console.c: Likewise.
37708 * util/grub-macho2img.c: Likewise.
37709 * util/grub-probe.c: Likewise.
37710 * util/hostfs.c: Likewise.
37711 * util/i386/pc/grub-mkimage.c: Likewise.
37712 * util/i386/pc/grub-setup.c: Likewise.
37713 * util/i386/efi/grub-mkimage.c: Likewise.
37714 * util/grub-mkconfig.in: Likewise.
37715 * util/raid.c: Likewise.
37716 * util/resolve.c: Likewise.
37717 * util/grub-mkdevicemap.c: Likewise.
37718 * util/grub-emu.c: Likewise.
37719 * util/getroot.c: Likewise.
37720 * util/hostdisk.c: Likewise.
37721 * util/usb.c: Likewise.
37722 * util/grub-editenv.c: Likewise.
37723 * util/misc.c: Likewise.
37724
37725 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37726
37727 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37728 `genparttoollist.sh'.
37729 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37730 Add `*.sh' to the list find searches for and change `mdate.sh'
37731 to `mdate-sh'.
37732
37733 2009-06-10 Pavel Roskin <proski@gnu.org>
37734
37735 * include/grub/multiboot2.h: Provide compatibility defines for
37736 multiboot2.h.
37737 * include/multiboot2.h: Include stdint.h only if needed, using
37738 angle brackets.
37739 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37740 grub/multiboot2.h.
37741 * loader/ieee1275/multiboot2.c: Likewise.
37742 * loader/multiboot2.c: Likewise.
37743 * loader/multiboot_loader.c: Likewise.
37744
37745 * configure.ac: Use -nostdlib when probing for the target. It
37746 should not be required to have libc for the target.
37747
37748 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37749 they fail without libc headers for the target.
37750 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37751 exports.
37752 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37753 preprocessor conditionals.
37754
37755 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37756 build system doesn't need to be aware of the tar.c internals.
37757
37758 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37759
37760 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37761
37762 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37763
37764 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37765 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37766
37767 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37768
37769 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37770 aren't available if ata.mod gets used.
37771
37772 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37773
37774 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37775 initialising controller.
37776 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37777
37778 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37779
37780 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37781 to choose between ata and biosdisk module on i386-pc.
37782
37783 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37784
37785 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37786 Subclass and Programming Interface fields in terms of the 3 byte
37787 Class Code register.
37788 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37789
37790 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37791 interface is OHCI. Add grub_dprintf for symmetry with
37792 bus/usb/uhci.c.
37793 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37794 interface is UHCI. Add interf variable for programming
37795 interface. Print interface with class/subclass.
37796
37797 * bus/usb/ohci.c: Set interf with correct field.
37798
37799 * bus/usb/uhci.c: Remove unneeded doubled lines.
37800 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37801 Remove whitespace inside comment.
37802
37803 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37804
37805 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37806 as fallback an equivalent option without depth.
37807
37808 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37809
37810 Not fail if unable to retrieve C/H/S on LBA disks
37811
37812 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37813 if unable to retrieve C/H/S on LBA disks
37814
37815 2009-06-08 Pavel Roskin <proski@gnu.org>
37816
37817 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37818 about aliasing.
37819
37820 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37821
37822 * Makefile.in (uninstall): Remove all $lib_DATA files.
37823
37824 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37825
37826 Bugfix: install on partitionless device
37827
37828 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37829 is a whole disk
37830
37831 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37832
37833 * Makefile.in (uninstall): Remove all $include_DATA files.
37834
37835 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37836
37837 * commands/true.c: New file. Implement the true and false commands.
37838 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37839 (true_mod_SOURCES): New variable.
37840 (true_mod_CFLAGS): Likewise.
37841 (true_mod_LDFLAGS): Likewise.
37842
37843 2009-06-05 Colin D Bennett <colin@gibibit.com>
37844
37845 Optimized font character lookup using binary search instead of linear
37846 search. Fonts now are required to have the character index ordered by
37847 code point.
37848
37849 * font/font.c (load_font_index): Verify that fonts have ordered
37850 character indices.
37851 (find_glyph): Use binary search instead of linear search to find a
37852 character in a font.
37853
37854 2009-06-05 Michael Scherer <misc@mandriva.org>
37855
37856 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37857 uses case sensitive btree.
37858 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37859 only for case insensitive filesystems.
37860
37861 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37862
37863 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37864 * conf/common.rmk (search_mod_CFLAGS): likewise
37865
37866 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37867
37868 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37869 compensate a compiler bug
37870
37871 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37872
37873 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37874 instead of '\b'
37875
37876 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37877
37878 Definitions for creating asm symbols with Apple's CC
37879
37880 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37881 [APPLE_CC] (VARIABLE): likewise
37882
37883 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37884
37885 Disable lnxboot.img when compiled
37886 with Apple's CC
37887
37888 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37889 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37890 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37891 [! APPLE_CC] (CODE_LENG): skip
37892 [! APPLE_CC] (setup_sects): likewise
37893 [! APPLE_CC]: skip filling
37894
37895 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37896
37897 Address in trampolines based on 32-bit registers when compiled
37898 with Apple's CC
37899
37900 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37901 for addresses
37902 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37903
37904 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37905
37906 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37907
37908 * kern/misc.c [APPLE_CC] (memcpy): new function
37909 [APPLE_CC] (memmove): likewise
37910 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37911 (memcpy): define alias conditionally on !APPLE_CC
37912 (memset): likewise
37913 (abort): likewise
37914 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37915 APPLE_CC are defined
37916 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37917 (grub_assert_fail): make prototype conditional
37918
37919 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37920
37921 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37922
37923 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37924 grub-macho2img
37925 (CLEANFILES): add grub-macho2img
37926 (grub_macho2img_SOURCES): new variable
37927 * kern/i386/pc/startup.S (bss_start): new variable
37928 (bss_end): likewise
37929 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37930 * util/grub-macho2img.c: new file
37931
37932 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37933
37934 Use objconv when compiling with Apple's CC
37935
37936 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37937 (efiemu64.o): likewise
37938 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37939 when compiling with Apple's CC
37940 (efiemu64_s.o): likewise
37941 * configure.ac: check for objconv when compiling with Apple's CC
37942 * genmk.rb: use objconv for modules when compiled with Apple's CC
37943
37944 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37945
37946 Define segment as well as section when compiling with
37947 Apple's CC
37948
37949 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37950 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37951 (efiemu_convert_pointer): likewise
37952 (efiemu_set_virtual_address_map): likewise
37953 (efiemu_convert_pointer): likewise
37954 (efiemu_getcrc32): likewise
37955 (init_crc32_table): likewise
37956 (reflect): likewise
37957 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37958 (GRUB_MOD_DEP): likewise
37959
37960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37961
37962 Allow a compilation without -mcmodel=large
37963
37964 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37965 when compiled without -mcmodel=large
37966 (filter_memory_map): remove memory post 4 GiB when compiled
37967 without -mcmodel=large
37968 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37969 TARGET_CFLAGS when -mcmodel=large isn't supported
37970
37971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37972
37973 Remove nested functions in efiemu core
37974
37975 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37976
37977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37978
37979 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37980
37981 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37982 temporary storage
37983 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37984 using Apple's CC
37985 (grub_cpu_is_tsc_supported): likewise
37986 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37987
37988 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37989
37990 Absolute addressing through constant with Apple's cc
37991
37992 * kern/i386/pc/startup.S: Define necessary constants
37993 and address through it when using ABS with Apple's CC
37994 * boot/i386/pc/diskboot.S: likewise
37995 * boot/i386/pc/boot.S: likewise
37996 * boot/i386/pc/lnxboot.S: likewise
37997 * boot/i386/pc/cdboot.S: likewise
37998 * mmap/i386/pc/mmap_helper.S: likewise
37999 * commands/i386/pc/drivemap_int13h.S: likewise
38000
38001 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38002
38003 Check if compiler is apple cc
38004
38005 * Makefile.in (ASFLAGS): new variable
38006 (TARGET_ASFLAGS): likewise
38007 (TARGET_MODULE_FORMAT): likewise
38008 (TARGET_APPLE_CC): likewise
38009 (OBJCONV): likewise
38010 (TARGET_IMG_CFLAGS): likewise
38011 (TARGET_CPPFLAGS): add includedir
38012 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38013 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38014 Check for linker script only if compiler isn't Apple's CC
38015 (TARGET_MODULE_FORMAT): set
38016 (TARGET_APPLE_CC): likewise
38017 (TARGET_ASFLAGS): likewise
38018 (ASFLAGS): likewise
38019 Check for objcopy only if compiler isn't Apple's CC
38020 Check for BSS symbol only if compiler isn't Apple's CC
38021 * genmk.rb: adapt nm options if we use Apple's utils
38022 * aclocal.m4 (grub_apple_cc): new test
38023 (grub_apple_target_cc): likewise
38024
38025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38026
38027 Simplify sed expressions and improve awk
38028
38029 * Makefile.in (install-local): simplify sed expression
38030 * gencmdlist.sh: likewise
38031 * genmoddep.awk: avoid adding module as a dependency of itself
38032
38033 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38034
38035 Add missing start symbols
38036
38037 * boot/i386/pc/boot.S: add start
38038 * boot/i386/pc/pxeboot.S: likewise
38039
38040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38041
38042 Fix wrong assumptions with grub-mkimage on EFI
38043
38044 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38045 (relocate_addresses): consider both r_addend and value at offset
38046 (make_mods_section): zerofill modinfo and header
38047 (convert_elf): write prefix here
38048
38049 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38050
38051 Use .asciz instead of .string
38052
38053 * i386/pc/diskboot.S: use .asciz instead of .string
38054 * i386/pc/boot.S: likewise
38055 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38056 (GRUB_MOD_NAME): likewise
38057
38058 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38059
38060 gfxpayload support
38061
38062 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38063 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38064 (grub_video_setup): remove
38065 (grub_video_set_mode): new prototype
38066 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38067 (vid_mode): remove
38068 (linux_vesafb_res): compile only on PCBIOS
38069 (grub_linux_boot): support gfxpayload
38070 * loader/i386/pc/xnu.c (video_hook): new function
38071 (grub_xnu_set_video): support gfxpayload
38072 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38073 (DEFAULT_VIDEO_HEIGHT): likewise
38074 (DEFAULT_VIDEO_FLAGS): likewise
38075 (DEFAULT_VIDEO_MODE): new definition
38076 (video_hook): new function
38077 (grub_gfxterm_init): use grub_video_set_mode
38078 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38079 loading xnu
38080 * video/video.c (grub_video_setup): removed
38081 (grub_video_set_mode): new function based on grub_gfxterm_init and
38082 grub_video_setup
38083
38084 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38085
38086 Avoid calling biosdisk in drivemap
38087
38088 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38089 (revparse_biosdisk): likewise
38090 (list_mappings): derive name from id directly
38091 (grub_cmd_drivemap): use tryparse_diskstring
38092
38093 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38094
38095 Script fixes
38096
38097 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38098 (grub_lexer_param): add tokenonhold
38099 (grub_script_create_cmdline): remove cmdline. All callers updated
38100 (grub_script_function_create): make functionname
38101 grub_script_arg. All callers updated
38102 (grub_script_execute_argument_to_string): new prototype
38103 * kern/parser.c (state_transitions): reorder
38104 (grub_parser_cmdline_state): fix a bug and make more compact
38105 * script/sh/execute.c (grub_script_execute_argument_to_string):
38106 make global
38107 (grub_script_execute_cmdline): use new format
38108 * script/sh/function.c (grub_script_function_create): make functionname
38109 grub_script_arg. All callers updated
38110 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38111 (grub_script_yylex): remove
38112 (grub_script_yylex2): renamed to ...
38113 (grub_script_yylex): ...renamed
38114 parse the expressions like a${b}c
38115 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38116 (GRUB_PARSER_TOKEN_VAR): remove
38117 (GRUB_PARSER_TOKEN_NAME): likewise
38118 ("if"): declare as typeless
38119 ("while"): likewise
38120 ("function"): likewise
38121 ("else"): likewise
38122 ("then"): likewise
38123 ("fi"): likewise
38124 (text): remove
38125 (argument): likewise
38126 (script): accept empty scripts and make exit on error
38127 (arguments): use GRUB_PARSER_TOKEN_ARG
38128 (function): likewise
38129 (command): move error handling to script
38130 (menuentry): move grub_script_lexer_ref before
38131 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38132 argument. All callers updated
38133
38134 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38135
38136 Prevent GRUB from probing floppies during boot.
38137
38138 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38139 * commands/search.c (options): Add --no-floppy.
38140 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38141 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38142 --no-floppy when searching for UUIDs.
38143
38144 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38145
38146 Simplify the code duplication in commands/search.c.
38147
38148 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38149 (search_fs): ... this. Update all users.
38150
38151 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38152
38153 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38154
38155 2009-05-28 Pavel Roskin <proski@gnu.org>
38156
38157 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38158 Remove the original symlink explicitly.
38159
38160 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38161 just one slash. That's how grub_fshelp_find_file() does it.
38162
38163 2009-05-26 Pavel Roskin <proski@gnu.org>
38164
38165 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38166 to `str'.
38167
38168 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38169 possibly unused.
38170
38171 2009-05-25 Christian Franke <franke@computer.org>
38172
38173 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38174 register.
38175 (grub_atapi_identify): Add wait after drive select.
38176 (grub_ata_identify): Do more strict status register check before
38177 calling grub_atapi_identify (). Suppress error message if status
38178 register is 0x00 after command failure. Add status register
38179 check after PIO read to avoid bogus identify due to stuck DRQ.
38180 Thanks to Pavel Roskin for testing.
38181 (grub_device_initialize): Remove unsafe status register check.
38182 Thanks to 'phcoder' for problem report and patch.
38183 Prevent sign extension in debug message.
38184
38185 2009-05-23 Colin D Bennett <colin@gibibit.com>
38186
38187 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38188 definition file, and functions defined in `normal/menu.c' have had
38189 their prototypes moved to `include/grub/menu.h' for consistency.
38190
38191 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38192 from normal.h.
38193 (grub_menu_get_entry): Likewise.
38194 (grub_menu_get_timeout): Likewise.
38195 (grub_menu_set_timeout): Likewise.
38196 (grub_menu_execute_entry): Likewise.
38197 (grub_menu_execute_with_fallback): Likewise.
38198 (grub_menu_entry_run): Likewise.
38199
38200 * include/grub/normal.h: Re-ordered and grouped function
38201 prototypes by file that the function is defined in.
38202 (grub_menu_execute_callback): Removed; moved to menu.h.
38203 (grub_menu_get_entry): Likewise.
38204 (grub_menu_get_timeout): Likewise.
38205 (grub_menu_set_timeout): Likewise.
38206 (grub_menu_execute_entry): Likewise.
38207 (grub_menu_execute_with_fallback): Likewise.
38208 (grub_menu_entry_run): Likewise.
38209 (grub_menu_addentry): Renamed from this ...
38210 (grub_normal_add_menu_entry): ... to this.
38211
38212 * normal/main.c (grub_menu_addentry): Renamed from this ...
38213 (grub_normal_add_menu_entry): ... to this.
38214
38215 * script/sh/execute.c (grub_script_execute_menuentry): Update
38216 reference to renamed grub_menu_addentry function.
38217
38218 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38219
38220 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38221
38222 2009-05-22 Pavel Roskin <proski@gnu.org>
38223
38224 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38225 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38226 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38227 compiling for the i386 targets, but not for the utilities.
38228
38229 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38230 to grub_uint8_t.
38231 (grub_root_drive): Likewise.
38232 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38233 remove alignment.
38234 (grub_root_drive): Change size to byte.
38235 (grub_start_addr): Remove.
38236 (grub_end_addr): Likewise.
38237 (grub_apm_bios_info): Likewise.
38238
38239 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38240
38241 * normal/i386: Remove.
38242 * normal/powerpc: Likewise.
38243 * normal/sparc64: Likewise.
38244 * normal/x86_64: Likewise.
38245
38246 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38247
38248 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38249 * loader/i386/linux_trampoline.S: Fix indentation
38250 * loader/i386/xnu_helper.S: Likewise
38251
38252 2009-05-18 Colin D Bennett <colin@gibibit.com>
38253
38254 Display error messages when parsing a Lua statement fails.
38255 Previously, executing a syntactically invalid statement like
38256 ")foo" or "bar;" would silently fail.
38257
38258 * script/lua/grub_main.c (handle_lua_error): New function.
38259 (grub_lua_parse_line): Improved reporting of Lua parser and
38260 execution errors.
38261
38262 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38263
38264 Remove -Werror which causes build to fail on some systems
38265
38266 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38267 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38268 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38269
38270 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38271
38272 trampoline for linux on 64-bit platform
38273
38274 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38275 loader/i386/efi/linux_trampoline.S
38276 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38277 declaration
38278 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38279 here
38280 * loader/i386/linux_trampoline.S: moved here
38281 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38282 trampoline
38283 (jumpvector): removed
38284 (grub_linux_trampoline_start): new declaration
38285 (grub_linux_trampoline_end): likewise
38286 (grub_linux_boot): use trampoline when on 64-bit platform
38287 * loader/i386/linux.c: likewise
38288
38289 2009-05-16 Pavel Roskin <proski@gnu.org>
38290
38291 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38292 const to avoid a warning.
38293 (grub_lua_setenv): Likewise.
38294 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38295 lmsg to fix a warning.
38296
38297 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38298
38299 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38300 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38301 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38302 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38303 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38304 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38305 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38306 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38307
38308 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38309
38310 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38311
38312 2009-05-16 Bean <bean123ch@gmail.com>
38313
38314 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38315 (lua_mod_SOURCES): New variable.
38316 (lua_mod_CFLAGS): Likewise.
38317 (lua_mod_LDFLAGS): Likewise.
38318
38319 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38320 (setjmp_mod_SOURCES): New variable.
38321 (setjmp_mod_CFLAGS): Likewise.
38322 (setjmp_LDFLAGS): Likewise.
38323
38324 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38325 (setjmp_mod_SOURCES): New variable.
38326 (setjmp_mod_CFLAGS): Likewise.
38327 (setjmp_LDFLAGS): Likewise.
38328
38329 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38330 (setjmp_mod_SOURCES): New variable.
38331 (setjmp_mod_CFLAGS): Likewise.
38332 (setjmp_LDFLAGS): Likewise.
38333
38334 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38335 (setjmp_mod_SOURCES): New variable.
38336 (setjmp_mod_CFLAGS): Likewise.
38337 (setjmp_LDFLAGS): Likewise.
38338
38339 * normal/i386/setjmp.S: Moved from here ...
38340 * lib/i386/setjmp.S: ... Moved here
38341 * normal/x86_64/setjmp.S: Moved from here ...
38342 * lib/x86_64/setjmp.S: ... Moved here
38343 * normal/powerpc/setjmp.S: Moved from here ...
38344 * lib/powerpc/setjmp.S: ... Moved here
38345 * normal/sparc64/setjmp.S: Moved from here ...
38346 * lib/sparc64/setjmp.S: ... Moved here
38347
38348 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38349 returns_twice in mingw.
38350
38351 * script/lua/grub_lib.c: New file.
38352 * script/lua/grub_lib.h: Likewise.
38353 * script/lua/grub_lua.h: Likewise.
38354 * script/lua/grub_main.c: Likewise.
38355 * script/lua/lapi.c: Likewise.
38356 * script/lua/lapi.h: Likewise.
38357 * script/lua/lauxlib.c: Likewise.
38358 * script/lua/lauxlib.h: Likewise.
38359 * script/lua/lbaselib.c: Likewise.
38360 * script/lua/lcode.c: Likewise.
38361 * script/lua/lcode.h: Likewise.
38362 * script/lua/ldblib.c: Likewise.
38363 * script/lua/ldebug.c: Likewise.
38364 * script/lua/ldebug.h: Likewise.
38365 * script/lua/ldo.c: Likewise.
38366 * script/lua/ldo.h: Likewise.
38367 * script/lua/ldump.c: Likewise.
38368 * script/lua/lfunc.c: Likewise.
38369 * script/lua/lfunc.h: Likewise.
38370 * script/lua/lgc.c: Likewise.
38371 * script/lua/lgc.h: Likewise.
38372 * script/lua/linit.c: Likewise.
38373 * script/lua/liolib.c: Likewise.
38374 * script/lua/llex.c: Likewise.
38375 * script/lua/llex.h: Likewise.
38376 * script/lua/llimits.h: Likewise.
38377 * script/lua/lmathlib.c: Likewise.
38378 * script/lua/lmem.c: Likewise.
38379 * script/lua/lmem.h: Likewise.
38380 * script/lua/loadlib.c: Likewise.
38381 * script/lua/lobject.c: Likewise.
38382 * script/lua/lobject.h: Likewise.
38383 * script/lua/lopcodes.c: Likewise.
38384 * script/lua/lopcodes.h: Likewise.
38385 * script/lua/loslib.c: Likewise.
38386 * script/lua/lparser.c: Likewise.
38387 * script/lua/lparser.h: Likewise.
38388 * script/lua/lstate.c: Likewise.
38389 * script/lua/lstate.h: Likewise.
38390 * script/lua/lstring.c: Likewise.
38391 * script/lua/lstring.h: Likewise.
38392 * script/lua/lstrlib.c: Likewise.
38393 * script/lua/ltable.c: Likewise.
38394 * script/lua/ltable.h: Likewise.
38395 * script/lua/ltablib.c: Likewise.
38396 * script/lua/ltm.c: Likewise.
38397 * script/lua/ltm.h: Likewise.
38398 * script/lua/lua.h: Likewise.
38399 * script/lua/luaconf.h: Likewise.
38400 * script/lua/lualib.h: Likewise.
38401 * script/lua/lundump.c: Likewise.
38402 * script/lua/lundump.h: Likewise.
38403 * script/lua/lvm.c: Likewise.
38404 * script/lua/lvm.h: Likewise.
38405 * script/lua/lzio.c: Likewise.
38406 * script/lua/lzio.h: Likewise.
38407
38408 2009-05-16 Bean <bean123ch@gmail.com>
38409
38410 * include/grub/kernel.h (grub_module_header_types): Add type
38411 OBJ_TYPE_CONFIG.
38412
38413 * kern/main.c (grub_load_config): New function.
38414 (grub_main): Call grub_load_config to read boot config.
38415
38416 * grub-mkimage (generate_image): New parameter config_path.
38417 (options): New option --config.
38418 (main): Parse --config option, and pass it to generate_image.
38419
38420 2009-05-14 Christian Franke <franke@computer.org>
38421
38422 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38423 This fixes build on Cygwin.
38424
38425 2009-05-14 Pavel Roskin <proski@gnu.org>
38426
38427 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38428 jump. This saves two bytes, so the typical case of 2 swapped
38429 drives would fit 32 bytes.
38430
38431 2009-05-13 Pavel Roskin <proski@gnu.org>
38432
38433 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38434 grub_uint32_t to avoid a warning.
38435
38436 * loader/i386/linux.c (allocate_pages): When assigning
38437 real_mode_mem, cast through grub_size_t to fix a warning. The
38438 code already makes sure that the value would fit a pointer.
38439 (grub_linux_setup_video): Cast render_target->data to
38440 grub_size_t to fix a warning.
38441
38442 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38443
38444 * commands/i386/pc/drivemap.c: New file - implement drivemap
38445 command.
38446 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38447 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38448
38449 2009-05-13 Pavel Roskin <proski@gnu.org>
38450
38451 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38452 embedding_area_exists.
38453
38454 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38455
38456 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38457 it easier to understand / work with.
38458 Improve warning messages for cases where there's no embedding area,
38459 or when it is too small (or core.img too large).
38460
38461 2009-05-13 Pavel Roskin <proski@gnu.org>
38462
38463 * loader/i386/pc/multiboot2.c: Add necessary includes for
38464 grub_multiboot2_real_boot().
38465
38466 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38467 PX record is always little-endian. We only need the lower 2
38468 bytes of the mode.
38469
38470 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38471 facilitate code reuse.
38472 (grub_cpio_mount): Use "struct head", not a char buffer. This
38473 fixes a warning reported by gcc 4.4.
38474
38475 * kernel/disk.c (grub_disk_read): Use void pointer for the
38476 buffer.
38477 (grub_disk_write): Use const void pointer for the buffer.
38478 Adjust all callers. Remove unnecessary casts.
38479
38480 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38481
38482 * util/i386/pc/grub-install.in: Update copyright year.
38483
38484 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38485
38486 gptsync
38487
38488 * commands/gptsync.c: new file
38489 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38490 (gptsync_mod_SOURCES): new variable
38491 (gptsync_mod_CFLAGS): likewise
38492 (gptsync_mod_LDFLAGS): likewise
38493 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38494 new definition
38495 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38497 * conf/i386-ieee1275.rmk: likewise
38498 * conf/i386-pc.rmk: likewise
38499 * conf/powerpc-ieee1275.rmk: likewise
38500
38501 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38502
38503 Fixed grub-emu
38504
38505 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38506 (grub_dl_ref): likewise
38507
38508 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38509
38510 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38511 split in two functions (one for msdos and one for gpt).
38512
38513 2009-05-08 Pavel Roskin <proski@gnu.org>
38514
38515 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38516 not modified.
38517
38518 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38519 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38520 Initialize them with -1. Add sanity check for bad1. Eliminate
38521 nerr variable.
38522
38523 2009-05-08 David S. Miller <davem@davemloft.net>
38524
38525 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38526
38527 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38528
38529 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38530 existence.
38531
38532 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38533
38534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38535 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38536
38537 2009-05-05 David S. Miller <davem@davemloft.net>
38538
38539 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38540
38541 2009-05-05 Pavel Roskin <proski@gnu.org>
38542
38543 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38544 of grub_dl_ref() and grub_dl_unref().
38545 * commands/parttool.c: Remove preprocessor conditionals around
38546 grub_dl_ref() and grub_dl_unref().
38547 * fs/affs.c: Likewise.
38548 * fs/afs.c: Likewise.
38549 * fs/cpio.c: Likewise.
38550 * fs/ext2.c: Likewise.
38551 * fs/fat.c: Likewise.
38552 * fs/hfs.c: Likewise.
38553 * fs/hfsplus.c: Likewise.
38554 * fs/iso9660.c: Likewise.
38555 * fs/jfs.c: Likewise.
38556 * fs/minix.c: Likewise.
38557 * fs/ntfs.c: Likewise.
38558 * fs/reiserfs.c: Likewise.
38559 * fs/sfs.c: Likewise.
38560 * fs/udf.c: Likewise.
38561 * fs/ufs.c: Likewise.
38562 * fs/xfs.c: Likewise.
38563 * include/grub/dl.h: Likewise.
38564 * loader/xnu.c: Likewise.
38565
38566 2009-05-04 Pavel Roskin <proski@gnu.org>
38567
38568 * commands/acpi.c: Remove unused variable my_mod.
38569 * partmap/amiga.c: Likewise.
38570 * partmap/apple.c: Likewise.
38571 * partmap/gpt.c: Likewise.
38572 * partmap/pc.c: Likewise.
38573 * partmap/sun.c: Likewise.
38574 * term/gfxterm.c: Likewise.
38575 * term/i386/pc/vesafb.c: Likewise.
38576 * term/i386/pc/vga.c: Likewise.
38577
38578 2009-05-04 David S. Miller <davem@davemloft.net>
38579
38580 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38581 pointer args to grub_ieee1275_get_property().
38582
38583 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38584
38585 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38586 devices, and do not traverse down under controller nodes.
38587
38588 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38589 (grub_ofdisk_open): Use it to un-escape "," characters.
38590 * kern/disk.c (find_part_sep): New.
38591 (grub_disk_open): Use it to find the first non-escaped ','
38592 character in the disk name.
38593 * util/ieee1275/devicemap.c (escape_of_path): New.
38594 (grub_util_emit_devicemap_entry): Use it.
38595 * util/sparc64/ieee1275/grub-install.in: Update script to
38596 strip partition specifiers properly by not triggering on
38597 '\' escaped ',' characters.
38598
38599 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38600
38601 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38602 to 0x300.
38603 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38604 resolutions.
38605 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38606 on documentation from Wikipedia).
38607
38608 2009-05-04 Pavel Roskin <proski@gnu.org>
38609
38610 * disk/ata.c: Spelling fixes.
38611 * disk/raid.c: Likewise.
38612 * disk/usbms.c: Likewise.
38613 * disk/dmraid_nvidia.c: Likewise.
38614 * kern/ieee1275/openfw.c: Likewise.
38615 * kern/ieee1275/init.c: Likewise.
38616 * kern/ieee1275/cmain.c: Likewise.
38617 * boot/i386/pc/cdboot.S: Likewise.
38618 * video/readers/png.c: Likewise.
38619 * video/i386/pc/vbe.c: Likewise.
38620 * fs/udf.c: Likewise.
38621 * fs/hfs.c: Likewise.
38622 * fs/reiserfs.c: Likewise.
38623 * efiemu/runtime/efiemu.c: Likewise.
38624 * efiemu/main.c: Likewise.
38625 * efiemu/mm.c: Likewise.
38626 * include/grub/elf.h: Likewise.
38627 * include/grub/xnu.h: Likewise.
38628 * include/grub/usbdesc.h: Likewise.
38629 * include/grub/usb.h: Likewise.
38630 * include/grub/script_sh.h: Likewise.
38631 * include/grub/lib/LzmaEnc.h: Likewise.
38632 * include/grub/efiemu/efiemu.h: Likewise.
38633 * include/grub/command.h: Likewise.
38634 * normal/menu.c: Likewise.
38635 * normal/main.c: Likewise.
38636 * normal/datetime.c: Likewise.
38637 * bus/usb/uhci.c: Likewise.
38638 * mmap/i386/uppermem.c: Likewise.
38639 * mmap/mmap.c: Likewise.
38640 * commands/acpi.c: Likewise.
38641 * commands/test.c: Likewise.
38642 * partmap/apple.c: Likewise.
38643 * font/font.c: Likewise.
38644 * loader/sparc64/ieee1275/linux.c: Likewise.
38645 * loader/macho.c: Likewise.
38646 * loader/i386/bsd_trampoline.S: Likewise.
38647 * loader/i386/bsd.c: Likewise.
38648 * loader/xnu.c: Likewise.
38649 * term/i386/pc/vesafb.c: Likewise.
38650 * term/usb_keyboard.c: Likewise.
38651 * util/resolve.c: Likewise.
38652 * util/getroot.c: Likewise.
38653
38654 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38655
38656 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38657
38658 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38659
38660 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38661 build error.
38662
38663 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38664
38665 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38666 parameter only available on BIOS.
38667
38668 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38669
38670 Removed wrong semicolon in declaration
38671
38672 * grub/misc.h (grub_dprintf): remove semicolon
38673
38674 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38675
38676 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38677 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38678 is done by grub_cmd_linux() now).
38679 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38680 restore video to text mode.
38681 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38682 indicates lack of "vga=" parameter. "vga=0" is mapped to
38683 `GRUB_LINUX_VID_MODE_NORMAL'.
38684
38685 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38686
38687 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38688 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38689 and `normal/script.c'. Add `kern/rescue_reader.c',
38690 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38691 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38692 `grub_script.tab.c'.
38693
38694 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38695 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38697 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38698 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38699
38700 * Makefile.in: Remove duplicated 2008 in Copyright line.
38701
38702 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38703
38704 * util/misc.c (grub_util_warn): New function. Emits a warning
38705 unconditionally.
38706 * include/grub/util/misc.h (grub_util_warn): New declaration.
38707
38708 * util/i386/pc/grub-install.in: Understand --force and pass it down
38709 to grub-setup.
38710
38711 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38712 down to setup().
38713 (setup): Improve error messages and add warnings when requested to
38714 install in odd layouts. Refuse to install using blocklists unless
38715 --force was set.
38716
38717 2009-05-04 martin f. krafft <madduck@madduck.net>
38718
38719 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38720
38721 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38722
38723 Updated copyright year
38724
38725 * fs/hfsplus.c: updated copyright year
38726
38727 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38728
38729 HFS+ UUID
38730
38731 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38732 in the space previously used by unused3
38733 (grub_hfsplus_uuid): new function
38734 (grub_hfsplus_fs): added uuid field
38735
38736 2009-05-03 Pavel Roskin <proski@gnu.org>
38737
38738 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38739 suppress warnings. It's no longer needed.
38740 * disk/host.c: Likewise.
38741 * disk/ata_pthru.c: Likewise.
38742 * disk/loopback.c: Likewise.
38743 * hook/datehook.c: Likewise.
38744 * parttool/pcpart.c: Likewise.
38745 * fs/i386/pc/pxe.c: Likewise.
38746 * fs/ntfscomp.c: Likewise.
38747 * efiemu/main.c: Likewise.
38748 * mmap/mmap.c: Likewise.
38749 * commands/crc.c: Likewise.
38750 * commands/hexdump.c: Likewise.
38751 * commands/hdparm.c: Likewise.
38752 * commands/acpi.c: Likewise.
38753 * commands/echo.c: Likewise.
38754 * commands/minicmd.c: Likewise.
38755 * commands/blocklist.c: Likewise.
38756 * commands/memrw.c: Likewise.
38757 * commands/loadenv.c: Likewise.
38758 * commands/usbtest.c: Likewise.
38759 * commands/lsmmap.c: Likewise.
38760 * commands/boot.c: Likewise.
38761 * commands/parttool.c: Likewise.
38762 * commands/configfile.c: Likewise.
38763 * commands/search.c: Likewise.
38764 * commands/ieee1275/suspend.c: Likewise.
38765 * commands/cat.c: Likewise.
38766 * commands/i386/pc/pxecmd.c: Likewise.
38767 * commands/i386/pc/play.c: Likewise.
38768 * commands/i386/pc/halt.c: Likewise.
38769 * commands/i386/pc/vbeinfo.c: Likewise.
38770 * commands/i386/pc/vbetest.c: Likewise.
38771 * commands/lspci.c: Likewise.
38772 * commands/date.c: Likewise.
38773 * commands/handler.c: Likewise.
38774 * commands/ls.c: Likewise.
38775 * commands/test.c: Likewise.
38776 * commands/cmp.c: Likewise.
38777 * commands/efi/loadbios.c: Likewise.
38778 * commands/efi/fixvideo.c: Likewise.
38779 * commands/halt.c: Likewise.
38780 * commands/help.c: Likewise.
38781 * commands/reboot.c: Likewise.
38782 * hello/hello.c: Likewise.
38783 * script/sh/main.c: Likewise.
38784 * loader/xnu.c: Likewise.
38785 * term/terminfo.c: Likewise.
38786 * term/i386/pc/serial.c: Likewise.
38787 * term/usb_keyboard.c: Likewise.
38788
38789 2009-05-03 David S. Miller <davem@davemloft.net>
38790
38791 * normal/menu.c: Include grub/parser.h
38792
38793 2009-05-03 Pavel Roskin <proski@gnu.org>
38794
38795 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38796 not char*.
38797 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38798 Suggested by Javier Martín <lordhabbit@gmail.com>
38799
38800 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38801 efiemu??.o doesn't exist.
38802 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38803 copying.
38804
38805 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38806
38807 FreeBSD 64-bit support
38808
38809 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38810 and loader/i386/bsd_trampoline.S
38811 (bsd_mod_ASFLAGS): new variable
38812 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38813 (FREEBSD_MODTYPE_KERNEL64): likewise
38814 (grub_bsd64_trampoline_start): likewise
38815 (grub_bsd64_trampoline_end): likewise
38816 (grub_bsd64_trampoline_selfjump): likewise
38817 (grub_bsd64_trampoline_gdt): likewise
38818 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38819 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38820 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38821 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38822 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38823 of "attrib" member
38824 * loader/i386/bsd_pagetable.c: new file
38825 * loader/i386/bsd_trampoline.S: likewise
38826 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38827 (ALIGN_VAR): likewise
38828 (entry_hi): new variable
38829 (kern_end_mdofs): likewise
38830 (is_64bit): likewise
38831 (grub_freebsd_add_meta): use ALIGN_VAR
38832 (grub_e820_mmap): new declaration
38833 (grub_freebsd_add_mmap): new function
38834 (grub_freebsd_add_meta_module): support 64 bit kernels
38835 (grub_freebsd_list_modules): use ALIGN_VAR
38836 (gdt_descriptor): new declaration
38837 (grub_freebsd_boot): support 64 bit kernels
38838 (grub_bsd_elf64_hook): new function
38839 (grub_bsd_load_elf): support elf64
38840
38841 2009-05-03 Bean <bean123ch@gmail.com>
38842
38843 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38844 after we get the result of if statement.
38845
38846 2009-05-03 Bean <bean123ch@gmail.com>
38847
38848 * Makefile.in (enable_efiemu): New variable.
38849
38850 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38851 set.
38852 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38853 path.
38854 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38855 path, add -mno-red-zone option.
38856 (efiemu64_s.o): Likewise.
38857 (efiemu64.o): Use macro $^ for source file.
38858
38859 * configure.ac (--enable-efiemu): New option.
38860
38861 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38862
38863 xnu support
38864
38865 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38866 (pkglib_MODULES): add xnu.mod
38867 (xnu_mod_SOURCES): new variable
38868 (xnu_mod_CFLAGS): likewise
38869 (xnu_mod_LDFLAGS): likewise
38870 (xnu_mod_ASFLAGS): likewise
38871 * conf/i386-pc.rmk: likewise
38872 * conf/x86_64-efi.rmk: likewise
38873 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38874 new declaration
38875 * include/grub/i386/macho.h: new file
38876 * include/grub/i386/xnu.h: likewise
38877 * include/grub/macho.h: likewise
38878 * include/grub/machoload.h: likewise
38879 * include/grub/x86_64/macho.h: likewise
38880 * include/grub/x86_64/xnu.h: likewise
38881 * include/grub/xnu.h: likewise
38882 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38883 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38884 * loader/i386/efi/xnu.c: new file
38885 * loader/i386/pc/xnu.c: likewise
38886 * loader/i386/xnu.c: likewise
38887 * loader/i386/xnu_helper.S: likewise
38888 * loader/macho.c: likewise
38889 * loader/xnu.c: likewise
38890 * loader/xnu_resume.c: likewise
38891 * util/grub-dumpdevtree: likewise
38892 * include/grub/i386/pit.h: include grub/err.h
38893 (grub_pit_wait): export
38894 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38895
38896 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38897
38898 Efiemu
38899
38900 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38901 _linux_efi, linux_efi.
38902 new files in grub-emu
38903 new targets efiemu32.o and efiemu64.o
38904 * loader/linux_normal_efiemu.c: likewise
38905 * loader/i386/efi/linux.c: added preliminary efiemu support
38906 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38907 files to copy
38908 * include/grub/autoefi.h: new file
38909 * include/grub/i386/efiemu.h: likewise
38910 * include/grub/i386/pc/efiemu.h: likewise
38911 * include/grub/efi/api.h: add LL suffix when necessary
38912 new definitions relating to tables
38913 * include/grub/efiemu/efiemu.h: new file
38914 * include/grub/efiemu/runtime.h: likewise
38915 * efiemu/prepare.c: likewise
38916 * efiemu/loadcore_common.c: likewise
38917 * efiemu/loadcore64.c: likewise
38918 * efiemu/runtime/efiemu.sh: likewise
38919 * efiemu/runtime/efiemu.S: likewise
38920 * efiemu/runtime/efiemu.c: likewise
38921 * efiemu/runtime/config.h: likewise
38922 * efiemu/prepare32.c: likewise
38923 * efiemu/main.c: likewise
38924 * efiemu/modules/pnvram.c: likewise
38925 * efiemu/modules/i386: likewise
38926 * efiemu/modules/i386/pc: likewise
38927 * efiemu/modules/acpi.c: likewise
38928 * efiemu/i386/pc/cfgtables.c: likewise
38929 * efiemu/i386/loadcore64.c: likewise
38930 * efiemu/i386/loadcore32.c: likewise
38931 * efiemu/prepare64.c: likewise
38932 * efiemu/loadcore.c: likewise
38933 * efiemu/symbols.c: likewise
38934 * efiemu/mm.c: likewise
38935 * efiemu/loadcore32.c: likewise
38936
38937 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38938
38939 ACPI spoofing
38940
38941 * commands/acpi.c: new file
38942 * commands/i386/pc/acpi.c: likewise
38943 * commands/efi/acpi.c: likewise
38944 * include/grub/acpi.h: likewise
38945 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38946 (acpi_mod_SOURCES): new variable
38947 (acpi_mod_CFLAGS): likewise
38948 (acpi_mod_LDFLAGS): likewise
38949 * conf/i386-efi.rmk: likewise
38950 * conf/x86_64-efi.rmk: likewise
38951
38952 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38953
38954 Missing part from mmap patch
38955
38956 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38957 (grub_mmap_unregister)
38958 (grub_mmap_free_and_unregister): use grub_mmap_register
38959
38960 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38961
38962 Mmap services
38963
38964 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38965 * loader/i386/linux.c (find_mmap_size): likewise
38966 (allocate_pages): likewise
38967 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38968 (grub_fill_multiboot_mmap): likewise
38969 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38970 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38971 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38972 (OPENBSD_MMAP_RESERVED): likewise
38973 * include/grub/i386/pc/memory.h: include grub/memory.h
38974 (grub_lower_mem): removed
38975 (grub_upper_mem): likewise
38976 (GRUB_MACHINE_MEMORY_ACPI): new definition
38977 (GRUB_MACHINE_MEMORY_NVS): likewise
38978 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38979 (GRUB_MACHINE_MEMORY_HOLE): likewise
38980 (grub_machine_mmap_register): likewise
38981 (grub_machine_mmap_unregister): likewise
38982 (grub_machine_get_upper): likewise
38983 (grub_machine_get_lower): likewise
38984 (grub_machine_get_post64): likewise
38985 * include/grub/i386/efi/memory.h: new file
38986 * include/grub/x86_64/efi/memory.h: likewise
38987 * include/grub/efi/memory.h: likewise
38988 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38989 (mmap_mod_SOURCES): new variable
38990 (mmap_mod_LDFLAGS): likewise
38991 (mmap_mod_ASFLAGS): likewise
38992 * conf/i386-coreboot.rmk: likewise
38993 * conf/i386-ieee1275.rmk: likewise
38994 * conf/i386-efi.rmk: likewise
38995 * conf/x86_64-efi.rmk: likewise
38996 * include/grub/types.h (UINT_TO_PTR): new macro
38997 (PTR_TO_UINT32): likewise
38998 (PTR_TO_UINT64): likewise
38999 * include/grub/memory.h: new file
39000 * mmap/i386/pc/mmap.c: likewise
39001 * mmap/i386/pc/mmap_helper.S: likewise
39002 * mmap/i386/uppermem.c: likewise
39003 * mmap/mmap.c: likewise
39004 * mmap/efi/mmap.c: likewise
39005 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39006 grub_upper_mem
39007 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39008 (grub_upper_mem): likewise
39009 (grub_machine_init): don't use grub_upper_mem,
39010 make grub_lower_mem local
39011 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39012 grub_mmap_iterate and grub_mmap_get_upper
39013 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39014
39015 2009-05-02 Bean <bean123ch@gmail.com>
39016
39017 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39018 script/sh/parser.y.
39019 (pkglib_MODULES): Add normal.mod and sh.mod.
39020 (normal_SOURCES): New variable.
39021 (normal_mod_CFLAGS): Likewise.
39022 (normal_mod_LDFLAGS): Likewise.
39023 (sh_mod_SOURCES): Likewise.
39024 (sh_mod_CFLAGS): Likewise.
39025 (sh_mod_LDFLAGS): Likewise.
39026
39027 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39028 script/sh/lexer.c_DEPENDENCIES.
39029 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39030 kern/rescue_reader.c and kern/rescue_parser.c.
39031 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39032 (grub_emu_SOURCES): Change source files.
39033 (pkglib_MODULES): Remove normal.mod.
39034 (normal_SOURCES): Removed.
39035 (normal_mod_CFLAGS): Likewise.
39036 (normal_mod_LDFLAGS): Likewise.
39037 * conf/i386-coreboot.rmk: Likewise.
39038 * conf/i386-efi.rmk: Likewise.
39039 * conf/i386-ieee1276.rmk: Likewise.
39040 * conf/powerpc-ieee1275.rmk: Likewise.
39041 * conf/sparc64-ieee1275.rmk: Likewise.
39042 * conf/x86_64-efi.rmk: Likewise.
39043
39044 * include/grub/command.h (grub_command_execute): New inline function.
39045
39046 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39047
39048 * include/grub/normal.h: Remove <grub/setjmp.h>.
39049 (grub_fs_module_list): Moved to normal/autofs.c.
39050 (grub_exit_env): Removed.
39051 (grub_command_execute): Likewise.
39052 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39053 parameter script.
39054 (read_command_list): New function declaration.
39055 (read_fs_list): Likewise.
39056
39057 * include/parser.h: Include <grub/reader.h>.
39058 (grub_parser_split_cmdline): Change type of getline parameter.
39059 (grub_parser): New structure.
39060 (grub_parser_class): New variable.
39061 (grub_parser_execute): New function declaration.
39062 (grub_register_rescue_parser): Likewise.
39063 (grub_parser_register): New inline function.
39064 (grub_parser_unregister): Likewise.
39065 (grub_parser_get_current): Likewise.
39066 (grub_parser_set_current): Likewise.
39067
39068 * include/grub/reader.h: New file.
39069 * kern/reader.c: Likewise.
39070 * kern/rescue_parser.c: Likewise.
39071 * kern/rescue_reader.c: Likewise.
39072 * normal/autofs.c: Likewise.
39073 * normal/dyncmd.c: Likewise.
39074
39075 * include/grub/rescue.h: Removed.
39076 * normal/command.h: Likewise.
39077
39078 * include/grub/script.h: Moved to ...
39079 * include/grub/script_sh.h: ... Moved here.
39080 * normal/execute.c: Moved to ...
39081 * script/sh/execute.c: ... Moved here.
39082 * normal/function.c: Moved to ...
39083 * script/sh/function.c: ... Moved here.
39084 * normal/lexer.c: Moved to ...
39085 * script/sh/lexer.c: ... Moved here.
39086 * normal/parser.y: Moved to ...
39087 * script/sh/parser.y: ... Moved here.
39088 * normal/script.c: Moved to ...
39089 * script/sh/script.c: ... Moved here.
39090
39091 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39092 <grub/reader.h>.
39093 (grub_exit_env): Removed.
39094 (fs_module_list): Moved to normal/autofs.c.
39095 (grub_file_getline): Don't handle comment here.
39096 (free_menu): Skip removed field entry->commands.
39097 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39098 script parameter.
39099 (read_config_file): Removed nested parameter, change getline function.
39100 (grub_enter_normal_mode): Removed.
39101 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39102 (read_command_list): Likewise.
39103 (autoload_fs_module): Moved to normal/autofs.c.
39104 (read_fs_list): Likewise.
39105 (reader_nested): New variable.
39106 (grub_normal_execute): Run parser.sh to switch to sh parser.
39107 (grub_cmd_rescue): Removed.
39108 (cmd_normal): Removed.
39109 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39110 rescue command.
39111 (grub_cmdline_run): New function.
39112 (grub_normal_reader_init): Likewise.
39113 (grub_normal_read_line): Likewise.
39114 (grub_env_write_pager): Likewise.
39115 (cmdline): New variable.
39116 (grub_normal_reader): Likewise.
39117 (GRUB_MOD_INIT): Register normal reader and set as current, register
39118 pager hook, register normal command with grub_register_command_prio,
39119 so that it won't show up in command.lst.
39120 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39121 grub_fs_autoload_hook.
39122
39123 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39124 (grub_menu_execute_entry): Replace grub_script_execute with
39125 grub_parser_execute, change parameter to grub_command_execute.
39126
39127 * normal/menu_text.c: Remove <grub/script.h>.
39128
39129 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39130 and <grub/parser.h>.
39131 (run): Change editor_getline to use new parser interface. Change
39132 parameter to grub_command_execute.
39133
39134 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39135 <grub/reader.h> and <grub/parser.h>.
39136 (grub_load_normal_mode): Execute normal command.
39137 (grub_main): Call grub_register_core_commands,
39138 grub_register_rescue_parser and grub_register_rescue_reader, use
39139 grub_reader_loop to enter input loop.
39140
39141 * kern/parser.c (grub_parser_split_cmdline): Change type of
39142 getline parameter.
39143 (grub_parser_class): New variable.
39144 (grub_parser_execute): New function.
39145
39146 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39147 * loader/multiboot2.c: Likewise.
39148 * loader/sparc64/ieee1275/linux.c: Likewise.
39149
39150 * util/grub-emu.c (read_command_list): New dummy function.
39151
39152 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39153
39154 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39155 count to 16 for CCISS and IDA.
39156
39157 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39158
39159 * normal/menu_text.c (grub_wait_after_message): Print a newline
39160 after waiting for user input.
39161
39162 * loader/i386/linux.c: Include `<grub/normal.h>'.
39163 (grub_cmd_linux): Improve the error message about `ask' mode, by
39164 waiting for user input so it's not missed (we can do this, since
39165 user requested interaction).
39166
39167 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39168
39169 Added missing lst to grub-mkrescue
39170
39171 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39172 and ${input_dir}/parttool.lst
39173
39174 2009-04-30 David S. Miller <davem@davemloft.net>
39175
39176 * util/hostdisk.c (device_is_wholedisk): New function.
39177 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39178 zero only if device_is_wholedisk() returns true.
39179
39180 * util/hostdisk.c (convert_system_partition_to_system_disk):
39181 Handle virtual disk devices named /dev/vdiskX as found on sparc
39182 and powerpc.
39183
39184 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39185 lettered partition specifier is found, convert to numbered.
39186
39187 2009-04-29 David S. Miller <davem@davemloft.net>
39188
39189 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39190 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39191
39192 * normal/command.c: Add missing newline at end of file.
39193
39194 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39195 warnings.
39196 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39197 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39198 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39199 ihandles have a 32-bit type but need to be stored in a "void *".
39200
39201 2009-04-28 Pavel Roskin <proski@gnu.org>
39202
39203 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39204 not disk. Adjust all dependencies.
39205 (grub_fs_uuid_close): Use grub_device_close(), not
39206 grub_disk_close().
39207
39208 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39209 parent's partition, don't copy it by reference, as it gets freed
39210 on close.
39211
39212 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39213
39214 Preboot hooks support
39215
39216 * commands/boot.c (struct grub_preboot_t): new declaration
39217 (preboots_head): new variable
39218 (preboots_tail): likewise
39219 (grub_loader_register_preboot_hook): new function
39220 (grub_loader_unregister_preboot_hook): likewise
39221 (grub_loader_set): launch preboot hooks
39222 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39223 (grub_loader_register_preboot_hook): new declaration
39224 (grub_loader_unregister_preboot_hook): likewise
39225
39226 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39227
39228 Warning fix
39229
39230 * disk/scsi.c (grub_scsi_open): added missing cast when
39231 calling grub_dprintf
39232
39233 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39234
39235 Bug and warning fixes
39236
39237 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39238 declaration
39239 * commands/test.c (test_parse): fixed bug with file tests and corrected
39240 declaration of find_file
39241
39242 2009-04-26 Pavel Roskin <proski@gnu.org>
39243
39244 * Makefile.in: Don't install empty manual pages if help2man is
39245 missing. Use help2man option for output, not shell redirection.
39246
39247 2009-04-26 David S. Miller <davem@davemloft.net>
39248
39249 * util/grub-mkdevicemap.c (make_device_map): Add missing
39250 NESTED_FUNC_ATTR to process_device().
39251
39252 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39253
39254 Test command
39255
39256 * commands/test.c: rewritten to use bash-like test
39257
39258 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39259
39260 Parttool autoloading and improvements
39261
39262 * Makefile.in (pkglib_DATA): add parttool.lst
39263 (parttool.lst): new target
39264 * genmk.rb: generate parttool-*
39265 (CLEANFILES): add #{parttool}
39266 (PARTTOOLFILES): new variable
39267 * genparttoollist.sh: new file
39268 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39269 (grub_pcpart_type): likewise
39270 * commands/parttool.c (helpmsg): new variable
39271 (grub_cmd_parttool): output help if not enough arguments are supplied
39272 autoload modules
39273 (GRUB_MOD_INIT(parttool)): use helpmsg
39274
39275 2009-04-24 David S. Miller <davem@davemloft.net>
39276
39277 Avoiding opening same device multiple times in device iterator.
39278
39279 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39280 and use it to build a list of partitions in iterate_disk() and
39281 iterate_partition().
39282
39283 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39284 on disk->data.
39285
39286 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39287 grub_devalias_iterate() result instead of unconditional 0.
39288 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39289 Also, capture hook return value, either directly or via
39290 grub_children_iterate(), and propagate to caller.
39291 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39292 grub_children_iterate): Return value is now 'int' instead of
39293 'grub_err_t'.
39294 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39295 like a proper iterator, stopping when hooks return non-zero.
39296 (grub_devalias_iterate): Likewise.
39297
39298 2009-04-23 David S. Miller <davem@davemloft.net>
39299
39300 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39301
39302 2009-04-22 David S. Miller <davem@davemloft.net>
39303
39304 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39305 is larger than address_cells, use that value for address_cells too.
39306
39307 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39308 IEEE1275_MAX_PATH_LEN): Define.
39309 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39310 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39311 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39312 'devtype'. Explicitly NULL terminate devalias expansion.
39313
39314 * util/sparc64/ieee1275/misc.c: New file.
39315 * util/sparc64/ieee1275/grub-setup.c: New file.
39316 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39317 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39318 * util/sparc64/ieee1275/grub-install.in: New file.
39319 * util/ieee1275/ofpath.c: New file.
39320 * util/ieee1275/devicemap.c: New file.
39321 * util/devicemap.c: New file.
39322 * util/deviceiter.c: New file.
39323 * kern/sparc64/ieee1275/init.c: New file.
39324 * include/grub/util/ofpath.h: New file.
39325 * include/grub/util/deviceiter.h: New file.
39326 * util/grub-mkdevicemap.c: Include deviceiter.h.
39327 Implement using grub_util_emit_devicemap_entry and
39328 grub_util_iterate_devices.
39329 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39330 util/devicemap.c into grub-mkdevicemap
39331 * conf/i386-efi.rmk: Likewise.
39332 * conf/i386-ieee1275.rmk: Likewise.
39333 * conf/i386-pc.rmk: Likewise.
39334 * conf/powerpc-ieee1275.rmk: Likewise.
39335 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39336 images and installation utilities. Build kernel as image
39337 instead of as elf binary. Use common rules as much as possible.
39338
39339 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39340
39341 Correct GPT definition
39342
39343 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39344 of "attrib" member
39345
39346 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39347
39348 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39349
39350 2009-04-19 David S. Miller <davem@davemloft.net>
39351
39352 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39353 (grub_rescue_cmd_linux): Rename to...
39354 (grub_cmd_linux): and fix prototype.
39355 (grub_rescue_cmd_initrd): Rename to...
39356 (grub_cmd_initrd): and fix prototype.
39357 (cmd_linux, cmd_initrd): New.
39358 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39359 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39360
39361 2009-04-17 Pavel Roskin <proski@gnu.org>
39362
39363 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39364 format.
39365 (grub_ohci_transfer): Likewise.
39366
39367 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39368
39369 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39370 return without a value. Fix inconsistent indentation.
39371
39372 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39373 match struct grub_fs.
39374
39375 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39376 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39377 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39378 * commands/lspci.c (grub_lspci_iter): Likewise.
39379
39380 2009-04-16 Bean <bean123ch@gmail.com>
39381
39382 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39383 value.
39384
39385 2009-04-15 Pavel Roskin <proski@gnu.org>
39386
39387 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39388 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39389 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39390 definitions.
39391
39392 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39393
39394 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39395 that no multiple data or metadata areas are supported and `Unknown
39396 metadata header'.
39397
39398 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39399
39400 Move loader out of the kernel
39401
39402 * kern/loader.c: moved to ...
39403 * commands/boot.c: ... moved here
39404 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39405 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39406 * include/grub/kernel.h (grub_machine_fini): export
39407 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39408 (grub_loader_set): likewise
39409 (grub_loader_unset): likewise
39410 (grub_loader_boot): likewise
39411 * conf/common.rmk: new module boot.mod
39412 (pkglib_MODULES): add boot.mod
39413 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39414 (grub_emu_SOURCES): likewise
39415 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39416 (grub_emu_SOURCES): likewise
39417 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39418 (grub_emu_SOURCES): likewise
39419 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39420 (grub_emu_SOURCES): likewise
39421 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39422 (grub_emu_SOURCES): likewise
39423 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39424 (grub_emu_SOURCES): likewise
39425 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39426 (grub_emu_SOURCES): likewise
39427
39428 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39429
39430 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39431
39432 * kern/misc.c (grub_itoa): Removed function
39433 (grub_ltoa): likewise
39434 (grub_vsprintf): use grub_lltoa
39435
39436 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39437
39438 Restore grub-emu
39439
39440 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39441 * conf/i386-coreboot.rmk: likewise
39442 * conf/i386-ieee1275.rmk: likewise
39443 * conf/powerpc-ieee1275.rmk: likewise
39444
39445 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39446
39447 * INSTALL: Add that `./autogen.sh' needs to be run before
39448 `./configure.'.
39449
39450 2009-04-14 Bean <bean123ch@gmail.com>
39451
39452 * Makefile.in (pkglib_DATA): Add handler.lst.
39453 (handler.lst): New rule.
39454
39455 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39456 * conf/i386-coreboot.rmk: Likewise.
39457 * conf/i386-ieee1275.rmk: Likewise.
39458 * conf/i386-efi.rmk: Likewise.
39459 * conf/x86_64-efi.rmk: Likewise.
39460 * conf/powerpc-ieee1275.rmk: Likewise.
39461 * conf/sparc64-ieee1275.rmk: Likewise.
39462
39463 * genhandlerlist.sh: New file.
39464
39465 * genmk.rb: Add rules to generate handler.lst.
39466
39467 * include/grub/normal.h (grub_file_getline): New function definition.
39468 (read_handler_list): Likewise.
39469 (free_handler_list): Likewise.
39470
39471 * include/grub/term.h (grub_term_register_input): Add name parameter
39472 for auto generation of handler.lst.
39473 (grub_term_register_output): Likewise.
39474
39475 * normal/handler.c: New file.
39476
39477 * normal/main.c (get_line): Renamed to grub_file_getline.
39478 (read_config_file): Use the newly renamed grub_file_getline.
39479 (read_command_list): Likewise.
39480 (read_fs_list): Likewise.
39481 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39482 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39483
39484 * term/efi/console.c (grub_console_init): Add name parameter for auto
39485 generation of handler.lst.
39486 * term/gfxterm.c: Likewise.
39487 * term/i386/pc/at_keyboard.c: Likewise.
39488 * term/i386/pc/console.c: Likewise.
39489 * term/i386/pc/serial.c: Likewise.
39490 * term/i386/pc/vesafb.c: Likewise.
39491 * term/i386/pc/vga.c: Likewise.
39492 * term/i386/pc/vga_text.c: Likewise.
39493 * term/ieee1275/ofconsole.c: Likewise.
39494 * term/usb_keyboard.c: Likewise.
39495
39496 2009-04-14 Bean <bean123ch@gmail.com>
39497
39498 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39499 properly with null character.
39500
39501 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39502
39503 * configure: Remove.
39504 * config.h.in: Likewise.
39505 * stamp-h.in: Likewise.
39506 * DISTLIST: Likewise.
39507 * conf/common.mk: Likewise.
39508 * conf/i386-coreboot.mk: Likewise.
39509 * conf/i386-efi.mk: Likewise.
39510 * conf/i386-ieee1275.mk: Likewise.
39511 * conf/i386.mk: Likewise.
39512 * conf/i386-pc.mk: Likewise.
39513 * conf/powerpc-ieee1275.mk: Likewise.
39514 * conf/sparc64-ieee1275.mk: Likewise.
39515 * conf/x86_64-efi.mk: Likewise.
39516
39517 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39518 develop on GRUB.
39519
39520 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39521 David S. Miller <davem@davemloft.net>
39522
39523 * util/hostdisk.c (make_device_name): Fix buffer length
39524 calculations.
39525
39526 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39527
39528 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39529 <sys/param.h> and <sys/sysctl.h>.
39530 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39531 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39532 opening the device and reset them afterwards.
39533
39534 2009-04-13 Pavel Roskin <proski@gnu.org>
39535
39536 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39537 Reported by John Stanley <jpsinthemix@verizon.net>
39538
39539 2009-04-13 Robert Millan <rmh@aybabtu.com>
39540
39541 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39542 that name for menuentries when appropriate.
39543
39544 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39545
39546 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39547
39548 2009-04-13 Robert Millan <rmh@aybabtu.com>
39549
39550 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39551 to Linux, simply abort telling the user it's no longer supported.
39552
39553 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39554
39555 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39556 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39557 `freebsd_loadenv' only when devices.hints exist.
39558
39559 2009-04-13 Pavel Roskin <proski@gnu.org>
39560
39561 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39562
39563 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39564
39565 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39566 partition number.
39567 (grub_drive): Likewise.
39568
39569 2009-04-13 David S. Miller <davem@davemloft.net>
39570
39571 * kern/sparc64/ieee1275/ieee1275.c: New file.
39572 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39573 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39574 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39575 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39576 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39577 grub_ieee1275_alloc_physmem): Declare new exported functions.
39578
39579 * include/grub/sparc64/ieee1275/loader.h: New file.
39580 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39581 * include/grub/sparc64/kernel.h: Likewise.
39582 * loader/sparc64/ieee1275/linux.c: Likewise.
39583
39584 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39585 (grub_fstest_SOURCES): Likewise.
39586
39587 * util/hostdisk.c (make_device_name): Do not make any assumptions
39588 about the length of drive names.
39589
39590 * kern/dl.c (grub_dl_load_file): Close file immediately when
39591 we are done using it.
39592
39593 2009-04-12 David S. Miller <davem@davemloft.net>
39594
39595 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39596 values. Noticed by Pavel Roskin.
39597
39598 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39599 target compiler.
39600
39601 * genmk.rb: Add more flexible image type specification, also
39602 pass --strip-unneeded to objcopy.
39603 * conf/i386-pc.rmk: Use *_FORMAT.
39604 * conf/i386-pc.mk: Rebuilt.
39605
39606 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39607 (OFDISK_HASH_SZ): Define.
39608 (ofdisk_hash): New hash table.
39609 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39610 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39611 instead of device phandle which is not unique.
39612
39613 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39614 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39615 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39616 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39617 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39618 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39619 GRUB_KERNEL_MACHINE_DATA_END): Define.
39620 (grub_kernel_image_size, grub_total_module_size): Declare.
39621
39622 2009-04-12 Pavel Roskin <proski@gnu.org>
39623
39624 * configure.ac: Change the logic when we check for target tools.
39625 Do it when the target is specified and it's different from the
39626 specified value of the host.
39627
39628 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39629
39630 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39631 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39632 GNU/kFreeBSD. Check if a device is a character device. Use
39633 DIOCGMEDIASIZE to get the size.
39634 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39635 support for GNU/kFreeBSD.
39636 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39637 is a character device instead of a block device. Add support for
39638 FreeBSD device names.
39639
39640 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39641 is a character device instead of a block device.
39642
39643 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39644 is a character device instead of a block device.
39645
39646 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39647
39648 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39649 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39650 FreeBSD. Check if a device is a character device. Use
39651 DIOCGMEDIASIZE to get the size.
39652 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39653 support for FreeBSD.
39654 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39655 is a character device instead of a block device. Add support for
39656 FreeBSD device names.
39657
39658 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39659 a character device instead of a block device.
39660 (grub_util_check_char_device): New function.
39661
39662 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39663 a character device instead of a block device.
39664
39665 * include/grub/util/getroot.h (grub_util_check_char_device): New
39666 prototype.
39667
39668 2009-04-11 David S. Miller <davem@davemloft.net>
39669
39670 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39671 static libgcc.
39672 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39673 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39674 function, if present.
39675 (__bswapdi2): Likewise.
39676
39677 * include/grub/sparc64/ieee1275/boot.h: New file.
39678 * boot/sparc64/ieee1275/boot.S: Likewise.
39679 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39680
39681 * kern/misc.c (grub_ltoa): New function.
39682 (grub_vsprintf): Use it to format 'long' integers.
39683
39684 2009-04-10 David S. Miller <davem@davemloft.net>
39685
39686 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39687 slots are of type grub_ieee1275_cell_t.
39688 (grub_nand_read): Likewise.
39689 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39690 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39691 macros are used to compare values in arg/ret block of the call.
39692 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39693 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39694 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39695 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39696 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39697 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39698 grub_ieee1275_close, grub_ieee1275_set_property,
39699 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39700 grub_ieee1275_cell_t.
39701 * kern/ieee1275/openfw.c (grub_map): Likewise.
39702 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39703 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39704
39705 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39706 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39707 (grub_devalias_iterate): Likewise.
39708
39709 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39710
39711 UFS improvements
39712
39713 * fs/ufs.c (INODE_NBLOCKS): new definition
39714 (struct grub_ufs_dirent): added fields for non-BSD dirents
39715 (grub_ufs_get_file_block): fixed double indirect handling
39716 (grub_ufs_lookup_symlink): use more robust way to determine whether
39717 symlink is inline
39718 (grub_ufs_find_file): support for non-BSD dirents
39719 (grub_ufs_dir): support for non-BSD dirents
39720
39721 2009-04-10 Bean <bean123ch@gnail.com>
39722
39723 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39724 attribute, otherwise the size would be wrong for i386 platform.
39725
39726 * include/grub/pci.h (grub_pci_read_word): New inline function.
39727 (grub_pci_read_byte): Likewise.
39728 (grub_pci_write): Likewise.
39729 (grub_pci_write_word): Likewise.
39730 (grub_pci_write_byte): Likewise.
39731
39732 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39733
39734 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39735 (find_framebuf): Scan pci to locate the frame buffer address.
39736
39737 * commands/efi/fixvideo.c: New file.
39738
39739 * commands/efi/loadbios.c: Likewise.
39740
39741 * commands/memrw.c: Likewise.
39742
39743 * util/grub-dumpbios.in: Likewise.
39744
39745 * conf/common.rmk (grub-dumpbios): New utility.
39746 (pkglib_MODULES): New module memrw.mod.
39747 (memrw_mod_SOURCE): New macro.
39748 (memrw_mod_CFLAGS): Likewise.
39749 (memrw_mod_LDFLAGS): Likewise.
39750
39751 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39752 fixvideo.mod.
39753 (loadbios_mod_SOURCE): New macro.
39754 (loadbios_mod_CFLAGS): Likewise.
39755 (loadbios_mod_LDFLAGS): Likewise.
39756 (fixvideo_mod_SOURCE): Likewise.
39757 (fixvideo_mod_CFLAGS): Likewise.
39758 (fixvideo_mod_LDFLAGS): Likewise.
39759
39760 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39761 fixvideo.mod.
39762 (loadbios_mod_SOURCE): New macro.
39763 (loadbios_mod_CFLAGS): Likewise.
39764 (loadbios_mod_LDFLAGS): Likewise.
39765 (fixvideo_mod_SOURCE): Likewise.
39766 (fixvideo_mod_CFLAGS): Likewise.
39767 (fixvideo_mod_LDFLAGS): Likewise.
39768
39769 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39770
39771 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39772
39773 2009-04-07 David S. Miller <davem@davemloft.net>
39774
39775 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39776 support for R_SPARC_OLO10 relocations. Fix compile warning for
39777 R_SPARC_WDISP30 case.
39778 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39779
39780 2009-04-06 Pavel Roskin <proski@gnu.org>
39781
39782 * include/grub/misc.h (ARRAY_SIZE): New macro.
39783 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39784 New macro.
39785 * loader/i386/linux.c (allocate_pages): Use free_pages().
39786 (grub_linux_unload): Don't use free_pages().
39787 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39788 wrong index. Treat all other modes as text modes.
39789 (grub_cmd_linux): Initialize vid_mode unconditionally to
39790 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39791
39792 * commands/help.c (print_command_help): Use cmd->prio, not
39793 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39794
39795 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39796
39797 Parttool
39798
39799 * parttool/pcpart.c: new file
39800 * commands/parttool.c: likewise
39801 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39802 (parttool_mod_SOURCES): new variable
39803 (parttool_mod_CFLAGS): likewise
39804 (parttool_mod_LDFLAGS): likewise
39805 (pcpart_mod_SOURCES): likewise
39806 (pcpart_mod_CFLAGS): likewise
39807 (pcpart_mod_LDFLAGS): likewise
39808 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39809 and parttool/pcpart.c
39810 * conf/i386-efi.rmk: likewise
39811 * conf/i386-ieee1275.rmk: likewise
39812 * conf/i386-pc.rmk: likewise
39813 * conf/powerpc-ieee1275.rmk: likewise
39814 * conf/sparc64-ieee1275.rmk: likewise
39815 * conf/x86_64-ieee1275.rmk: likewise
39816
39817 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39818
39819 Support for mtime and further expandability of dir command
39820
39821 * include/grub/lib/datetime.h: moved to ...
39822 * include/grub/datetime.h: ... moved here and added
39823 declaration of grub_unixtime2datetime. All users updated
39824 * include/grub/fs.h: new syntax for dir and mtime functions in
39825 struct grub_fs
39826 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39827 and GRUB_FSHELP_FLAGS_MASK
39828 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39829 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39830 (grub_ext2_mtime): new function
39831 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39832 (grub_hfsplus_mtime): new function
39833 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39834 (GRUB_UFS_ATTR_FILE): likewise
39835 (GRUB_UFS_ATTR_LNK): likewise
39836 (struct grub_ufs_sblock): new fields mtime
39837 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39838 all users updated
39839 (grub_ufs_dir): mtime support
39840 (grub_ufs_mtime): new function
39841 * fs/affs.c (grub_affs_dir): use new dir syntax
39842 * fs/afs.c (grub_afs_dir): likewise
39843 * fs/cpio.c (grub_cpio_dir): likewise
39844 * fs/fat.c (grub_fat_find_dir): likewise
39845 * fs/hfs.c (grub_hfs_dir): likewise
39846 * fs/iso9660.c (grub_iso9660_dir): likewise
39847 * fs/jfs.c (grub_jfs_dir): likewise
39848 * fs/minix.c (grub_minix_dir): likewise
39849 * fs/ntfs.c (grub_ntfs_dir): likewise
39850 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39851 * fs/sfs.c (grub_sfs_dir): likewise
39852 * fs/xfs.c (grub_xfs_dir): likewise
39853 * util/hostfs.c (grub_hostfs_dir): likewise
39854 * lib/datetime.c: moved to ...
39855 * normal/datetime.c: ... moved here
39856 (grub_unixtime2datetime): new function
39857 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39858 * normal/completion.c (iterate_dir): use new dir syntax
39859 * normal/misc.c (grub_normal_print_device_info): tell the
39860 last modification time of a volume
39861 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39862 * conf/common.rmk: added lib/datetime.c to ls.mod
39863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39864 (normal_mod_SOURCES): likewise
39865 (datetime_mod_SOURCES): Removed lib/datetime.c
39866 * conf/i386-efi.rmk: likewise
39867 * conf/i386-ieee1275.rmk: likewise
39868 * conf/i386-pc.rmk: likewise
39869 * conf/powerpc-ieee1275.rmk: likewise
39870 * conf/sparc64-ieee1275.rmk: likewise
39871 * conf/x86_64-efi.rmk: likewise
39872
39873 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39874
39875 Trim trailing spaces in FAT label and support mtools-like labels
39876
39877 * fs/fat.c (grub_fat_iterate_dir): New function based
39878 on grub_fat_find_dir
39879 (grub_fat_find_dir): use grub_fat_iterate_dir
39880 (grub_fat_label): likewise
39881
39882 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39883
39884 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39885 and command.h
39886 remove extraneous kernel_elf_HEADERS
39887
39888 2009-04-04 Bean <bean123ch@gnail.com>
39889
39890 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39891
39892 * util/misc.c: Likewise.
39893
39894 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39895
39896 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39897 instead of grub_printf.
39898
39899 2009-04-03 Robert Millan <rmh@aybabtu.com>
39900
39901 * loader/i386/linux.c (grub_linux_setup_video): Fill
39902 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39903 values from `mode info' structure instead of hardcoded
39904 values.
39905
39906 2009-04-01 Pavel Roskin <proski@gnu.org>
39907
39908 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39909 unused now.
39910 * genmk.rb: Likewise.
39911 * configure.ac: Likewise.
39912
39913 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39914
39915 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39916 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39917
39918 2009-04-01 David S. Miller <davem@davemloft.net>
39919
39920 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39921 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39922 (grub_setjmp): Mark with 'returns_twice' attribute.
39923 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39924 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39925 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39926
39927 2009-04-01 Robert Millan <rmh@aybabtu.com>
39928
39929 Reapply fix from 2008-07-28 which was accidentally reverted; also
39930 perform the same fix to a similar check in same function.
39931
39932 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39933 with the same number are found, just use issue a warning with
39934 grub_dprintf(), as this error has been reported to be non-fatal.
39935
39936 2009-03-31 Pavel Roskin <proski@gnu.org>
39937
39938 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39939 for cross-compilation.
39940
39941 2009-03-30 Robert Millan <rmh@aybabtu.com>
39942
39943 Fix i386-ieee1275 build.
39944
39945 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39946 Remove declaration.
39947
39948 2009-03-30 Pavel Roskin <proski@gnu.org>
39949
39950 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39951 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39952 zero-terminated, rely only on the strlen value. Fix comparison
39953 of strings differing in length.
39954
39955 2009-03-30 Robert Millan <rmh@aybabtu.com>
39956
39957 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39958 checking for abi version. Improve error messages on BIOS to notify
39959 user about `linux16' command.
39960
39961 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39962
39963 Leak fixes
39964
39965 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39966 in case of collision
39967 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39968
39969 2009-03-29 Robert Millan <rmh@aybabtu.com>
39970
39971 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39972 set `vid_mode' accordingly.
39973 (grub_linux_boot): Process `vid_mode' and set video mode.
39974
39975 2009-03-29 Robert Millan <rmh@aybabtu.com>
39976
39977 * util/grub.d/10_linux.in (linux_entry): New function.
39978 Factorize generation of Linux boot entries.
39979
39980 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39981
39982 Make the format of Environment Block plain text. The boot loader
39983 part is not tested well yet.
39984
39985 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39986 (buffer): Removed.
39987 (envblk): Likewise.
39988 (usage): Remove "info" and "clear". Add "unset". Update the
39989 description of "set", as this does not delete variables any
39990 longer.
39991 (create_envblk_file): Complete rewrite.
39992 (open_envblk_file): Likewise.
39993 (cmd_info): Removed.
39994 (cmd_list): Likewise.
39995 (cmd_set): Likewise.
39996 (cmd_clear): Likewise.
39997 (list_variables): New function.
39998 (write_envblk): Likewise.
39999 (set_variables): Likewise.
40000 (unset_variables): Likewise.
40001 (main): Complete rewrite.
40002
40003 * commands/loadenv.c (buffer): Removed.
40004 (envblk): Likewise.
40005 (open_envblk_file): New function.
40006 (read_envblk_file): Complete rewrite.
40007 (grub_cmd_load_env): Likewise.
40008 (grub_cmd_list_env): Likewise.
40009 (struct blocklist): New struct.
40010 (free_blocklists): New function.
40011 (check_blocklists): Likewise.
40012 (write_blocklists): Likewise.
40013 (grub_cmd_save_env): Complete rewrite.
40014
40015 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40016 a plain text signature.
40017 (GRUB_ENVBLK_MAXLEN): Removed.
40018 (struct grub_envblk): Complete rewrite.
40019 (grub_envblk_find): Removed.
40020 (grub_envblk_insert): Likewise.
40021 (grub_envblk_open): New prototype.
40022 (grub_envblk_set): Likewise.
40023 (grub_envblk_delete): Put const to VALUE.
40024 (grub_envblk_iterate): Put const to NAME and VALUE.
40025 (grub_envblk_close): New prototype.
40026 (grub_envblk_buffer): New inline function.
40027 (grub_envblk_size): Likewise.
40028
40029 * lib/envblk.c: Include grub/mm.h.
40030 (grub_env_find): Removed.
40031 (grub_envblk_open): New function.
40032 (grub_envblk_close): Likewise.
40033 (escaped_value_len): Likewise.
40034 (find_next_line): Likewise.
40035 (grub_envblk_insert): Removed.
40036 (grub_envblk_set): New function.
40037 (grub_envblk_delete): Complete rewrite.
40038 (grub_envblk_iterate): Likewise.
40039
40040 2009-03-28 Robert Millan <rmh@aybabtu.com>
40041
40042 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40043 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40044 variables. Use 16-bit loader.
40045 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40046 loader.
40047 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40048 (grub_linux16_boot): ... this. Update all users.
40049 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40050 (grub_linux_boot): ... this. Update all users.
40051
40052 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40053 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40054 commands to `linux16' and `initrd16'.
40055 (GRUB_MOD_FINI(linux)): Rename to ...
40056 (GRUB_MOD_FINI(linux16)): ... this.
40057
40058 2009-03-24 Pavel Roskin <proski@gnu.org>
40059
40060 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40061 not just for compilation.
40062
40063 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40064
40065 Move multiboot helper out of kernel
40066
40067 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40068 `loader/i386/multiboot_helper.S'.
40069 * conf/i386-coreboot.rmk: Likewise
40070 * conf/i386-ieee1275.rmk: Likewise
40071
40072 * kern/i386/loader.S: Move multiboot helpers from here...
40073 * loader/i386/multiboot_helper.S: ...moved here
40074 * include/grub/i386/loader.h: Move declarations of multiboot
40075 helpers from here...
40076 * include/grub/i386/multiboot.h: ...moved here
40077 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40078
40079 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40080
40081 * kern/env.c (grub_env_context_open): Added an argument to specify
40082 whether a new context inherits exported variables from current
40083 one. This is useful when making a sandbox to interpret a config
40084 file.
40085 All callers updated.
40086
40087 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40088
40089 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40090
40091 * kern/env.c (grub_env_context_close): Fix memory leaks.
40092
40093 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40094
40095 * normal/main.c (grub_normal_execute): Added an argument
40096 BATCH to specify if an interactive interface should be provided
40097 after reading a config file.
40098 All callers updated.
40099 (read_command_list): Prevent being executed twice.
40100 (read_fs_list): Likewise.
40101
40102 * include/grub/normal.h (grub_normal_execute): Updated the
40103 prototype.
40104
40105 2009-03-22 Pavel Roskin <proski@gno.org>
40106
40107 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40108 _start.
40109 * kern/i386/pc/startup.S: Likewise.
40110 * kern/i386/efi/startup.S: Likewise.
40111 * kern/i386/ieee1275/startup.S: Likewise.
40112 * kern/i386/coreboot/startup.S: Likewise.
40113 * kern/x86_64/efi/startup.S: Likewise.
40114
40115 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40116 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40117 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40118
40119 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40120
40121 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40122
40123 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40124 limit detection.
40125 Use vaddr of correct segment for entry_point.
40126
40127 2009-03-21 Bean <bean123ch@gmail.com>
40128
40129 * commands/blocklist.c: Add include file <grub/command.h>, remove
40130 <grub/normal.h> and <grub/arg.h>.
40131 (grub_cmd_blocklist): Use the new command interface.
40132 (GRUB_MOD_INIT): Likewise.
40133 (GRUB_MOD_FINI): Likewise.
40134 * commands/boot.c: Likewise.
40135 * commands/cat.c: Likewise.
40136 * commands/cmp.c: Likewise.
40137 * commands/configfile.c: Likewise.
40138 * commands/crc.c: Likewise.
40139 * commands/echo.c: Likewise.
40140 * commands/halt.c: Likewise.
40141 * commands/handler.c: Likewise.
40142 * commands/hdparm.c: Likewise.
40143 * commands/help.c: Likewise.
40144 * commands/hexdump.c: Likewise.
40145 * commands/loadenv.c: Likewise.
40146 * commands/ls.c: Likewise.
40147 * commands/lsmmap.c: Likewise.
40148 * commands/lspci.c: Likewise.
40149 * commands/loadenv.c: Likewise.
40150 * commands/read.c: Likewise.
40151 * commands/reboot.c: Likewise.
40152 * commands/search.c: Likewise.
40153 * commands/sleep.c: Likewise.
40154 * commands/test.c: Likewise.
40155 * commands/usbtest.c: Likewise.
40156 * commands/videotest.c: Likewise.
40157 * commands/i386/cpuid.c: Likewise.
40158 * commands/i386/pc/halt.c: Likewise.
40159 * commands/i386/pc/play.c: Likewise.
40160 * commands/i386/pc/pxecmd.c: Likewise.
40161 * commands/i386/pc/vbeinfo.c: Likewise.
40162 * commands/i386/pc/vbetest.c: Likewise.
40163 * commands/ieee1275/suspend.c: Likewise.
40164 * disk/loopback.c: Likewise.
40165 * font/font_cmd.c: Likewise.
40166 * hello/hello.c: Likewise.
40167 * loader/efi/appleloader.c: Likewise.
40168 * loader/efi/chainloader.c: Likewise.
40169 * loader/i386/bsd.c: Likewise.
40170 * loader/i386/efi/linux.c: Likewise.
40171 * loader/i386/ieee1275/linux.c: Likewise.
40172 * loader/i386/linux.c: Likewise.
40173 * loader/i386/pc/chainloader.c: Likewise.
40174 * loader/i386/pc/linux.c: Likewise.
40175 * loader/powerpc/ieee1275/linux.c: Likewise.
40176 * loader/multiboot_loader.c: Likewise.
40177 * term/gfxterm.c: Likewise.
40178 * term/i386/pc/serial.c: Likewise.
40179 * term/terminfo.c: Likewise.
40180
40181 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40182 * term/i386/pc/vga.c: Likewise.
40183 * video/readers/jpeg.c: Likewise.
40184 * video/readers/png.c: Likewise.
40185 * video/readers/tga.c: Likewise.
40186
40187 * util/grub-fstest (cmd_loopback): Removed.
40188 (cmd_blocklist): Likewise.
40189 (cmd_ls): Likewise.
40190 (grub_register_command): Likewise.
40191 (grub_unregister_command): Likewise.
40192 (execute_command): Use grub_command_find to locate command and execute
40193 it.
40194
40195 * include/grub/efi/chainloader.h: Removed.
40196 * loader/efi/chainloader_normal.c: Likewise.
40197 * loader/i386/bsd_normal.c: Likewise.
40198 * loader/i386/pc/chainloader_normal.c: Likewise.
40199 * loader/i386/pc/multiboot_normal.c: Likewise.
40200 * loader/linux_normal.c: Likewise.
40201 * loader/multiboot_loader_normal.c: Likewise.
40202 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40203
40204 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40205 and grub_register_command_p1.
40206
40207 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40208 kern/command.c, lib/arg.c and commands/extcmd.c.
40209 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40210 (minicmd_mod_SOURCES): New variable.
40211 (minicmd_mod_CFLAGS): Likewise.
40212 (minicmd_mod_LDFLAGS): Likewise.
40213 (extcmd_mod_SOURCES): Likewise.
40214 (extcmd_mod_CFLAGS): Likewise.
40215 (extcmd_mod_LDFLAGS): Likewise.
40216 (boot_mod_SOURCES): Removed.
40217 (boot_mod_CFLAGS): Likewise.
40218 (boot_mod_LDFLAGS): Likewise.
40219
40220 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40221 kern/corecmd.c.
40222 (kernel_img_HEADERS): Add command.h.
40223 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40224 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40225 and lib/arg.c.
40226 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40227 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40228 remove the corresponding normal mode command.
40229 (normal_mod_SOURCES): Remove normal/arg.c.
40230 * conf/i386-coreboot.rmk: Likewise.
40231 * conf/i386-efi.rmk: Likewise.
40232 * conf/i386-ieee1275.rmk: Likewise.
40233 * conf/powerpc-ieee1275.rmk: Likewise.
40234 * conf/x86_64-efi.rmk: Likewise.
40235
40236 * include/grub/arg.h: Move from here ...
40237 * include/grub/lib/arg.h: ... to here.
40238
40239 * normal/arg.c: Move from here ...
40240 * lib/arg.c: ... to here.
40241
40242 * commands/extcmd.c: New file.
40243 * commands/minicmd.c: Likewise.
40244 * include/grub/command.h: Likewise.
40245 * include/grub/extcmd.h: Likewise.
40246 * kern/command.c: Likewise.
40247 * kern/corecmd.c: Likewise.
40248
40249 * kern/list.c (grub_list_iterate): Return int instead of void.
40250 (grub_list_insert): New function.
40251 (grub_prio_list_insert): Likewise.
40252
40253 * kern/rescue.c (grub_rescue_command): Removed.
40254 (grub_rescue_command_list): Likewise.
40255 (grub_rescue_register_command): Likewise.
40256 (grub_rescue_unregister_command): Likewise.
40257 (grub_rescue_cmd_boot): Move to minicmd.c
40258 (grub_rescue_cmd_help): Likewise.
40259 (grub_rescue_cmd_info): Likewise.
40260 (grub_rescue_cmd_boot): Likewise.
40261 (grub_rescue_cmd_testload): Likewise.
40262 (grub_rescue_cmd_dump): Likewise.
40263 (grub_rescue_cmd_rmmod): Likewise.
40264 (grub_rescue_cmd_lsmod): Likewise.
40265 (grub_rescue_cmd_exit): Likewise.
40266 (grub_rescue_print_devices): Moved to corecmd.c.
40267 (grub_rescue_print_files): Likewise.
40268 (grub_rescue_cmd_ls): Likewise.
40269 (grub_rescue_cmd_insmod): Likewise.
40270 (grub_rescue_cmd_set): Likewise.
40271 (grub_rescue_cmd_unset): Likewise.
40272 (attempt_normal_mode): Use grub_command_find to get normal module.
40273 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40274 commands, remove grub_rescue_register_command calls.
40275
40276 * normal/command.c (grub_register_command): Removed.
40277 (grub_unregister_command): Likewise.
40278 (grub_command_find): Likewise.
40279 (grub_iterate_commands): Likewise.
40280 (rescue_command): Likewise.
40281 (export_command): Moved to corecmd.c.
40282 (set_command): Removed.
40283 (unset_command): Likewise.
40284 (insmod_command): Likewise.
40285 (rmmod_command): Likewise.
40286 (lsmod_command): Likewise.
40287 (grub_command_init): Likewise.
40288
40289 * normal/completion.c (iterate_command): Use cmd->prio to check for
40290 active command.
40291 (complete_arguments): Use grub_extcmd_t structure to find options.
40292 (grub_normal_do_completion): Change function grub_iterate_commands to
40293 grub_command_iterate.
40294
40295 * normal/execute.c (grub_script_execute_cmd): No need to parse
40296 argument here.
40297
40298 * normal/main.c (grub_dyncmd_dispatcher): New function.
40299 (read_command_list): Register unload commands as dyncmd.
40300 (grub_cmd_normal): Use new command interface, register rescue,
40301 unregister normal at entry, register normal, unregister rescue at exit.
40302
40303 * include/grub/list.h (grub_list_test_t): New type.
40304 (grub_list_iterate): Return int instead of void.
40305 (grub_list_insert): New function.
40306 (GRUB_AS_NAMED_LIST_P): New macro.
40307 (GRUB_AS_PRIO_LIST): Likewise.
40308 (GRUB_AS_PRIO_LIST_P): Likewise.
40309 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40310 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40311 (grub_prio_list): New structure.
40312 (grub_prio_list_insert): New function.
40313 (grub_prio_list_remove): New inline function.
40314
40315 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40316 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40317 (GRUB_COMMAND_FLAG_MENU): Likewise.
40318 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40319 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40320 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40321 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40322 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40323 (grub_command): Likewise.
40324 (grub_register_command): Likewise.
40325 (grub_command_find): Likewise.
40326 (grub_iterate_commands): Likewise.
40327 (grub_command_init): Likewise.
40328 (grub_arg_parse): Likewise.
40329 (grub_arg_show_help): Likewise.
40330
40331 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40332 (grub_rescue_unregister_command): Likewise.
40333
40334 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40335 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40336 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40337
40338 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40339 grub_rescue_cmd_initrd.
40340 * include/grub/i386/loader.h: Likewise.
40341 * include/grub/x86_64/loader.h: Likewise.
40342
40343 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40344
40345 2009-03-21 Bean <bean123ch@gmail.com>
40346
40347 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40348 instead of stat in mingw environment.
40349
40350 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40351
40352 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40353
40354 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40355 AC_CONFIG_LINKS.
40356
40357 2009-03-21 Bean <bean123ch@gmail.com>
40358
40359 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40360 out of range error.
40361
40362 2009-03-18 Michel Dänzer <michel@daenzer.net>
40363
40364 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40365 checking inode flags for EXT4_EXTENTS_FLAG.
40366
40367 2009-03-18 Robert Millan <rmh@aybabtu.com>
40368
40369 * loader/i386/linux.c: Include `<grub/video.h>' and
40370 `<grub/i386/pc/vbe.h>'..
40371 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40372 (grub_linux32_boot): Attempt to configure video settings with
40373 grub_linux_setup_video().
40374 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40375 to avoid grub_console_fini() which would step out of graphical mode
40376 unconditionally.
40377
40378 2009-03-14 Robert Millan <rmh@aybabtu.com>
40379
40380 Fix build on powerpc.
40381 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40382
40383 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40384
40385 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40386 background image command.
40387
40388 2009-03-12 Colin D Bennett <colin@gibibit.com>
40389
40390 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40391 (grub_gfxterm_putchar): Extract pairs of identical calls to
40392 draw_cursor out of conditional blocks.
40393
40394 2009-03-11 Pavel Roskin <proski@gnu.org>
40395
40396 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40397 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40398
40399 2009-03-11 Robert Millan <rmh@aybabtu.com>
40400
40401 * loader/i386/multiboot_elfxx.c
40402 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40403
40404 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40405
40406 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40407 `kern/handler.c'.
40408
40409 2009-03-11 Robert Millan <rmh@aybabtu.com>
40410
40411 * loader/i386/multiboot.c (code_size): New variable.
40412 (grub_multiboot): Define offsets by adding to `code_size' rather
40413 than subtracting from `grub_multiboot_payload_size'. Provide
40414 4-byte alignment to MBI and others by increasing
40415 `boot_loader_name_length' appropriately.
40416
40417 * loader/i386/multiboot_elfxx.c
40418 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40419
40420 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40421
40422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40423 `fs/ext2.c'.
40424
40425 2009-03-08 Robert Millan <rmh@aybabtu.com>
40426
40427 Make loader/i386/linux.c usable on i386-pc again.
40428
40429 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40430 memory to heap.
40431 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40432 `#error' stanza.
40433
40434 2009-03-07 Bean <bean123ch@gmail.com>
40435
40436 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40437 allocation.
40438
40439 2009-03-06 Robert Millan <rmh@aybabtu.com>
40440
40441 Fix display issue on terminals with screen size other than 80x25
40442 (e.g. gfxterm with resolution higher than 640x480).
40443
40444 * normal/main.c (grub_normal_init_page): Display title text in a
40445 position relative to the center of the terminal instead of relying
40446 on a hardcoded offset.
40447
40448 2009-03-04 Robert Millan <rmh@aybabtu.com>
40449
40450 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40451 installed.
40452
40453 * Makefile.in (host_kernel): New variable.
40454 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40455 scripts instead of just the windows one.
40456 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40457
40458 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40459
40460 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40461 `kern/handler.c'.
40462 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40463 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40466 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40467 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40468
40469 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40470
40471 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40472 or if there's no space for the disk label and print the partition number on a
40473 invalid magic.
40474
40475 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40476
40477 * util/misc.c: Include <time.h>.
40478 (grub_millisleep): New function.
40479
40480 2009-03-04 Bean <bean123ch@gmail.com>
40481
40482 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40483 another option -mno-red-zone.
40484
40485 * commands/handler.c: Change module description.
40486
40487 * kern/handler.c: Add missing space at the end of description line.
40488
40489 * kern/list.c: Likewise.
40490
40491 2009-03-03 Robert Millan <rmh@aybabtu.com>
40492
40493 Move more components to the relocation area, and fix mbi pointer
40494 handling to use the destination rather than the origin (thanks to
40495 Vladimir Serbinenko for spotting).
40496
40497 * loader/i386/multiboot.c (mbi_dest): New variable.
40498 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40499 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40500 relocation area.
40501
40502 2009-03-01 Bean <bean123ch@gmail.com>
40503
40504 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40505 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40506 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40507 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40508
40509 * loader/i386/efi/linux.c (acpi_guid): New variable.
40510 (acpi_guid): Likewise.
40511 (EBDA_SEG_ADDR): New constant.
40512 (LOW_MEM_ADDR): Likewise.
40513 (FAKE_EBDA_SEG): Likewise.
40514 (fake_bios_data): New function.
40515 (grub_linux_boot): Call fake_bios_data.
40516
40517 2009-03-01 Bean <bean123ch@gmail.com>
40518
40519 * commands/terminal.c: Removed.
40520
40521 * commands/handler.c: New file.
40522
40523 * include/grub/list.h: Likewise.
40524
40525 * include/grub/handler.h: Likewise.
40526
40527 * kern/list.c: Likewise.
40528
40529 * kern/handler.c: Likewise.
40530
40531 * kern/term.h: Include header file <grub/handler.h>.
40532 (grub_term_input): Move next field to the beginning.
40533 (grub_term_output): Likewise.
40534 (grub_term_input_class): New variable.
40535 (grub_term_output_class): Likewise.
40536 (grub_term_register_input): Changed to inline function.
40537 (grub_term_register_output): Likewise.
40538 (grub_term_unregister_input): Likewise.
40539 (grub_term_unregister_output): Likewise.
40540 (grub_term_set_current_input): Likewise.
40541 (grub_term_set_current_output): Likewise.
40542 (grub_term_get_current_input): Likewise.
40543 (grub_term_get_current_output): Likewise.
40544 (grub_term_iterate_input): Removed.
40545 (grub_term_iterate_output): Likewise.
40546
40547 * kern/term.c (grub_term_list_input): Removed.
40548 (grub_term_list_output): Likewise.
40549 (grub_term_input_class): New variable.
40550 (grub_term_output_class): Likewise.
40551 (grub_cur_term_input): Change variable as macro.
40552 (grub_cur_term_output): Likewise.
40553 (grub_term_register_input): Removed.
40554 (grub_term_register_output): Likewise.
40555 (grub_term_unregister_input): Likewise.
40556 (grub_term_unregister_output): Likewise.
40557 (grub_term_set_current_input): Likewise.
40558 (grub_term_set_current_output): Likewise.
40559 (grub_term_iterate_input): Likewise.
40560 (grub_term_iterate_output): Likewise.
40561 (grub_term_get_current_input): Likewise.
40562 (grub_term_get_current_output): Likewise.
40563
40564 * util/grub-editenv.c: Include header file <grub/handler.h>.
40565 (grub_term_get_current_input): Removed.
40566 (grub_term_get_current_output): Likewise.
40567 (grub_term_input_class): New variable.
40568 (grub_term_output_class): Likewise.
40569
40570 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40571 (grub_term_get_current_output): Likewise.
40572 (grub_term_input_class): New variable.
40573 (grub_term_output_class): Likewise.
40574
40575 * util/grub-probe.c (grub_term_get_current_input): Removed.
40576 (grub_term_get_current_output): Likewise.
40577 (grub_term_input_class): New variable.
40578 (grub_term_output_class): Likewise.
40579
40580 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40581 (grub_term_get_current_output): Likewise.
40582 (grub_term_input_class): New variable.
40583 (grub_term_output_class): Likewise.
40584
40585 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40586 (terminal_mod_SOURCES): Likewise.
40587 (terminal_mod_CFLAGS): Likewise.
40588 (terminal_mod_LDFLAGS): Likewise.
40589
40590 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40591 handler.c.
40592 (kernel_img_SOURCES): Add list.c and handler.c.
40593 (kernel_img_HEADERS): Add list.h and handler.h.
40594
40595 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40596 handler.c.
40597 (kernel_mod_SOURCES): Add list.c and handler.c.
40598 (kernel_mod_HEADERS): Add list.h and handler.h.
40599
40600 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40601 handler.c.
40602 (kernel_elf_SOURCES): Add list.c and handler.c.
40603 (kernel_elf_HEADERS): Add list.h and handler.h.
40604
40605 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40606 handler.c.
40607 (kernel_elf_SOURCES): Add list.c and handler.c.
40608 (kernel_elf_HEADERS): Add list.h and handler.h.
40609
40610 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40611 handler.c.
40612 (kernel_mod_SOURCES): Add list.c and handler.c.
40613 (kernel_mod_HEADERS): Add list.h and handler.h.
40614
40615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40616 handler.c.
40617 (kernel_elf_SOURCES): Add list.c and handler.c.
40618 (kernel_elf_HEADERS): Add list.h and handler.h.
40619
40620 2009-02-27 Robert Millan <rmh@aybabtu.com>
40621
40622 Factorize elf32 / elf64 code in Multiboot loader. This will
40623 prevent it from getting out of sync again.
40624
40625 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40626 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40627 grub_multiboot_load_elf64): Move from here ...
40628 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40629 grub_multiboot_load_elf): ... to here (new file).
40630
40631 2009-02-27 Robert Millan <rmh@aybabtu.com>
40632
40633 * util/grub.d/10_linux.in: Rename "single-user mode" to
40634 "recovery mode".
40635
40636 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40637
40638 Don't leak in SCSI code.
40639 * disk/scsi.c (grub_scsi_close): free `scsi'.
40640
40641 2009-02-27 Robert Millan <rmh@aybabtu.com>
40642
40643 * loader/i386/pc/multiboot.c: Move from here ...
40644 * loader/i386/multiboot.c: ... to here. Update all users.
40645
40646 2009-02-27 Robert Millan <rmh@aybabtu.com>
40647
40648 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40649 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40650
40651 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40652
40653 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40654 b-tree.
40655
40656 2009-02-27 Robert Millan <rmh@aybabtu.com>
40657
40658 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40659 `0x' qualifier as 0 when base is specified as parameter).
40660
40661 2009-02-24 Bean <bean123ch@gmail.com>
40662
40663 * configure.ac: Check for -mcmodel=large in x86_64 target.
40664
40665 * include/grub/efi/api.h (efi_call_10): New macro.
40666 (efi_wrap_10): New function.
40667
40668 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40669 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40670 (GRUB_PE32_REL_BASED_LOW): Likewise.
40671 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40672 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40673 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40674 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40675 (GRUB_PE32_REL_BASED_REL): Likewise.
40676 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40677 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40678 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40679
40680 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40681 issue.
40682
40683 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40684 (efi_wrap_10): New function.
40685
40686 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40687
40688 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40689 MB/MBP model (NV chipset).
40690 (devdata_devs): Add devpath_5 to the list.
40691
40692 * load/i386/efi/linux.c (video_base): Remove variable.
40693 (RGB_MASK): New macro.
40694 (RGB_MAGIC): Likewise.
40695 (LINE_MIN): Likewise.
40696 (LINE_MAX): Likewise.
40697 (FBTEST_STEP): Likewise.
40698 (FBTEST_COUNT): Likewise.
40699 (fb_list): New variable.
40700 (grub_find_video_card): Remove function.
40701 (find_framebuf): New function.
40702 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40703 line length.
40704
40705 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40706 problem for x86_64.
40707
40708 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40709
40710 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40711
40712 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40713 coding tool name.
40714
40715 2009-02-22 Robert Millan <rmh@aybabtu.com>
40716
40717 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40718 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40719 in our relocation, instead of using it directly from heap. Also
40720 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40721
40722 2009-02-21 Robert Millan <rmh@aybabtu.com>
40723
40724 Implement USB keyboard support (based on patch by Marco Gerards)
40725
40726 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40727 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40728 (usb_keyboard_mod_LDFLAGS): New variables.
40729
40730 * term/usb_keyboard.c: New file.
40731
40732 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40733
40734 Corrected wrong declaration
40735
40736 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40737
40738 2009-02-14 Christian Franke <franke@computer.org>
40739
40740 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40741 (grub_lspci_iter): Print class code and programming interface byte.
40742
40743 2009-02-14 Christian Franke <franke@computer.org>
40744
40745 * gendistlist.sh: Ignore `.svn' directories.
40746
40747 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40748
40749 * fs/fat.c: Add 2009 to Copyright line.
40750
40751 2009-02-14 Christian Franke <franke@computer.org>
40752
40753 * commands/hdparm.c: New file. Provides `hdparm' command
40754 which sends ATA commands via grub_disk_ata_pass_through ().
40755
40756 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40757
40758 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40759 and <grub/cpu/io.h> to include/grub/ata.h.
40760 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40761 (GRUB_CDROM_SECTOR_SIZE): Remove.
40762 (GRUB_ATA_*): Move to include/grub/ata.h.
40763 (GRUB_ATAPI_*): Likewise.
40764 (enum grub_ata_commands): Likewise.
40765 (enum grub_ata_timeout_milliseconds): Likewise.
40766 (struct grub_ata_device): Likewise.
40767 (grub_ata_regset): Likewise.
40768 (grub_ata_regget): Likewise.
40769 (grub_ata_regset2): Likewise.
40770 (grub_ata_regget2): Likewise.
40771 (grub_ata_check_ready): Likewise.
40772 (grub_ata_wait_not_busy): Remove static, exported in
40773 include/grub/ata.h.
40774 (grub_ata_wait_drq): Likewise.
40775 (grub_ata_pio_read): Likewise.
40776
40777 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40778 function for hdparm.mod.
40779
40780 * include/grub/ata.h: New file, contains declarations from
40781 disk/ata.c.
40782 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40783
40784 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40785 (grub_disk_ata_pass_through): New exported variable.
40786
40787 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40788
40789 2009-02-13 Colin D Bennett <colin@gibibit.com>
40790
40791 Support multiple fallback entries, and provide an API to support
40792 executing default+fallback menu entries. Renamed the `terminal' menu
40793 viewer to `text'.
40794
40795 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40796 variable declaration.
40797 (grub_menu_execute_callback): New structure declaration.
40798 (grub_menu_execute_callback_t): New typedef.
40799 (grub_menu_execute_with_fallback): New function declaration.
40800 (grub_menu_get_entry): Likewise.
40801 (grub_menu_get_timeout): Likewise.
40802 (grub_menu_set_timeout): Likewise.
40803
40804 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40805
40806 * normal/menu.c (grub_wait_after_message): Moved to
40807 `normal/menu_text.c'.
40808 (draw_border): Likewise.
40809 (print_message): Likewise.
40810 (print_entry): Likewise.
40811 (print_entries): Likewise.
40812 (grub_menu_init_page): Likewise.
40813 (get_entry_number): Likewise.
40814 (print_timeout): Likewise.
40815 (run_menu): Likewise.
40816 (grub_menu_execute_entry): Likewise.
40817 (show_text_menu): Likewise.
40818 (get_and_remove_first_entry_number): New function.
40819 (grub_menu_execute_with_fallback): Likewise.
40820 (get_entry): Renamed to ...
40821 (grub_menu_get_entry): .. this and made it global.
40822 (get_timeout): Renamed to ...
40823 (grub_menu_get_timeout): ... this and made it global.
40824 (set_timeout): Renamed to ...
40825 (grub_menu_set_timeout): ... this and made it global.
40826 (grub_normal_terminal_menu_viewer): Renamed to ...
40827 (grub_normal_text_menu_viewer): ... this.
40828
40829 * normal/menu_text.c: New file. Extracted text-menu-specific code
40830 from normal/menu.c.
40831
40832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40833 (normal_mod_SOURCES): Likewise.
40834
40835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40836 (normal_mod_SOURCES): Likewise.
40837
40838 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40839 (normal_mod_SOURCES): Likewise.
40840
40841 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40842 (normal_mod_SOURCES): Likewise.
40843
40844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40845 (normal_mod_SOURCES): Likewise.
40846
40847 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40848 (normal_mod_SOURCES): Likewise.
40849
40850 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40851 (normal_mod_SOURCES): Likewise.
40852
40853 2009-02-11 Robert Millan <rmh@aybabtu.com>
40854
40855 * util/grub.d/00_header.in: Update old reference to `font' command.
40856
40857 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40858
40859 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40860
40861 Based on patch from Javier Martín.
40862
40863 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40864
40865 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40866 to avoid false positives with FAT.
40867 (grub_fstest_SOURCES): Likewise.
40868 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40869 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40871 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40873 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40874
40875 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40876
40877 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40878 bpb.version_specific.fat12_or_fat16.fstype and
40879 bpb.version_specific.fat32.fstype.
40880
40881 2009-02-08 Robert Millan <rmh@aybabtu.com>
40882
40883 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40884
40885 2009-02-08 Robert Millan <rmh@aybabtu.com>
40886
40887 * Makefile.in (host_os, host_cpu): New variables.
40888 (target_os): Remove. Update all users.
40889
40890 2009-02-08 Marco Gerards <marco@gnu.org>
40891
40892 * Makefile.in (enable_grub_emu_usb): New variable.
40893 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40894 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40895 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40896 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40897 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40898 `usbtest.mod' and `usbms.mod'.
40899 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40900 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40901 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40902 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40903 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40904 variables.
40905
40906 * disk/usbms.c: New file.
40907
40908 * include/grub/usb.h: Likewise.
40909
40910 * include/grub/usbtrans.h: Likewise.
40911
40912 * include/grub/usbdesc.h: Likewise.
40913
40914 * bus/usb/usbtrans.c: Likewise.
40915
40916 * bus/usb/ohci.c: Likewise.
40917
40918 * bus/usb/uhci.c: Likewise.
40919
40920 * bus/usb/usbhub.c: Likewise.
40921
40922 * bus/usb/usb.c: Likewise.
40923
40924 * commands/usbtest.c: Likewise.
40925
40926 * util/usb.c: Likewise.
40927
40928 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40929
40930 * configure.ac: Test for libusb presence.
40931
40932 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40933
40934 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40935
40936 * kern/mm.c: Add more comments.
40937
40938 2009-02-08 Robert Millan <rmh@aybabtu.com>
40939
40940 Patch from Javier Martín.
40941 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40942 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40943
40944 2009-02-08 Robert Millan <rmh@aybabtu.com>
40945
40946 * fs/cpio.c: Split tar functionality to ...
40947 * fs/tar.c: ... here (new file). Update all users.
40948
40949 2009-02-07 Robert Millan <rmh@aybabtu.com>
40950
40951 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40952 backward-incompatible features.
40953
40954 Based on patch from Javier Martín, with some adjustments.
40955
40956 2009-02-07 Michael Scherer <misc@mandriva.org>
40957
40958 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40959
40960 2009-02-07 Robert Millan <rmh@aybabtu.com>
40961
40962 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40963 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40964 after the RAID stuff.
40965
40966 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40967
40968 Fixes problem when running vbetest command as reported by
40969 Vladimir Serbinenko <phcoder@gmail.com>.
40970
40971 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40972
40973 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40974
40975 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40976 /dev/md/NpN style mdraid devices.
40977
40978 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40979
40980 * util/unifont2pff.rb: Remove.
40981
40982 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40983
40984 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40985 `#'.
40986
40987 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40988
40989 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40990 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40991 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40992 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40994 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40995 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40996
40997 2009-02-02 Christian Franke <franke@computer.org>
40998
40999 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41000
41001 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41002
41003 * INSTALL: Note that we now require at least autoconf 2.59 and
41004 that LZO is optional.
41005
41006 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41007
41008 Base on patch on bug #24154 created by Tomas Tintera
41009 <trosos@seznam.cz>.
41010
41011 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41012
41013 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41014
41015 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41016 <bero@arklinux.org>.
41017
41018 * normal/parser.y (script_init): Add missing semicolon.
41019
41020 2009-01-31 Colin D Bennett <colin@gibibit.com>
41021
41022 * normal/main.c: Add include to grub/menu_viewer.h.
41023 (free_menu_entry_classes): Added.
41024 (grub_normal_menu_addentry): Added class property handling.
41025 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41026 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41027
41028 * normal/menu_viewer.c: New file.
41029
41030 * normal/menu.c (run_menu_entry): Renamed to ...
41031 (grub_menu_execute_entry): ... this and made it as global.
41032 (grub_menu_run): Renamed to ...
41033 (show_text_menu): ... this and made it local.
41034 (show_text_menu): Adapt to new function names.
41035 (grub_normal_terminal_menu_viewer): New global variable.
41036
41037 * include/grub/menu.h: New file.
41038
41039 * include/grub/menu_viewer.h: New file.
41040
41041 * include/grub/normal.h: Added include to grub/menu.h.
41042 (grub_menu_entry): Moved to include/grub/menu.h.
41043 (grub_menu_entry_t): Likewise.
41044 (grub_menu): Likewise.
41045 (grub_menu_t): Likewise.
41046 (grub_normal_terminal_menu_viewer): Added.
41047 (grub_menu_execute_entry): Likewise.
41048 (grub_menu_run): Removed.
41049
41050 * DISTLIST: Added include/grub/menu.h.
41051 Added include/grub/menu_viewer.h.
41052 Added normal/menu_viewer.c.
41053
41054 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41055
41056 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41057 arglist for menutitle arguments.
41058
41059 * normal/main.c (grub_normal_menu_addentry): Likewise.
41060
41061 * normal/parser.y (menuentry): Likewise.
41062
41063 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41064
41065 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41066 (grub_script_create_cmdmenu): Likewise.
41067
41068 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41069
41070 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41071 changes.
41072
41073 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41074
41075 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41076
41077 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41078
41079 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41080
41081 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41082
41083 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41084
41085 2009-01-30 Christian Franke <franke@computer.org>
41086
41087 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41088 in option help text.
41089
41090 2009-01-27 Pavel Roskin <proski@gnu.org>
41091
41092 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41093
41094 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41095
41096 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41097
41098 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41099
41100 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41101 unregister function.
41102
41103 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41104
41105 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41106
41107 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41108
41109 * util/grub-mkfont.c (usage): Fix typo.
41110
41111 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41112
41113 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41114
41115 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41116
41117 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41118
41119 * kern/misc.c (grub_strcasecmp): New function.
41120 (grub_strcasecmp): Use grub_size_t instead of int for length.
41121 Fix return value.
41122 * include/grub/misc.h: Update function prototypes.
41123
41124 2009-01-26 Robert Millan <rmh@aybabtu.com>
41125
41126 * configure.ac: Fix cross-compilation check.
41127
41128 2009-01-22 Christian Franke <franke@computer.org>
41129
41130 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41131 (precision) digit string. Allow `.format2' without `format1' (width).
41132 Limit input chars for `%s' output to `format2' if specified. This is
41133 compatible with standard printf ().
41134
41135 2009-01-22 Christian Franke <franke@computer.org>
41136
41137 * disk/ata.c (grub_ata_wait_status): Replace by ...
41138 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41139 other status bits may be invalid while BSY is asserted.
41140 (grub_ata_check_ready): New function.
41141 (grub_ata_cmd): Removed.
41142 (grub_ata_wait_drq): New function.
41143 (grub_ata_strncpy): Remove inline.
41144 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41145 and error check now done by grub_ata_wait_drq ().
41146 (grub_ata_pio_write): Likewise.
41147 (grub_atapi_identify): Set DEV before check for !BSY. Use
41148 grub_ata_wait_drq () to wait for data.
41149 (grub_ata_device_initialize): Add status register check to
41150 detect missing SATA slave devices. Add debug messages.
41151 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41152 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41153 transfer loop by grub_ata_pio_write ().
41154 (grub_ata_identify): Set DEV before check for !BSY. Use
41155 grub_ata_wait_drq () to wait for data.
41156 (grub_ata_setaddress): Set DEV before check for !BSY.
41157 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41158 read/write in one loop. Fix invalid command on write. Fix incomplete
41159 command on (size % batch) == 0. Add missing error check after write of
41160 last block. Add debug messages.
41161 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41162
41163 2009-01-19 Christian Franke <franke@computer.org>
41164
41165 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41166 (GRUB_ATAPI_IREASON_*): Likewise.
41167 (grub_ata_pio_write): Fix timeout error return.
41168 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41169 (grub_atapi_wait_drq): New function.
41170 (grub_atapi_packet): New parameter `size'.
41171 Use grub_atapi_wait_drq () and direct write instead of
41172 grub_ata_pio_write ().
41173 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41174 reads the number of bytes requested by the device for each DRQ
41175 assertion.
41176 (grub_atapi_write): Remove old implementation, return not
41177 implemented instead.
41178
41179 2009-01-19 Christian Franke <franke@computer.org>
41180
41181 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41182 of 512 to calculate data size.
41183 (grub_scsi_read12): Likewise.
41184 (grub_scsi_write10): Likewise.
41185 (grub_scsi_write12): Likewise.
41186 (grub_scsi_read): Adjust size according to blocksize.
41187 Add checks for invalid blocksize and unaligned transfer.
41188
41189 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41190
41191 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41192
41193 * term/gfxterm.c (write_char): Fix background rendering for wide
41194 width glyphs.
41195
41196 2009-01-19 Robert Millan <rmh@aybabtu.com>
41197
41198 * config.guess: Update to latest version from config git.
41199 * config.sub: Likewise.
41200
41201 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41202
41203 * Makefile.in: Change font compilation to use new grub-mkfont instead
41204 of java version.
41205
41206 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41207 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41208 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41209 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41210 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41211 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41212 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41213 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41214 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41215
41216 2009-01-16 Christian Franke <franke@computer.org>
41217
41218 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41219 (enum grub_ata_timeout_milliseconds): New enum.
41220 (grub_ata_wait_status): Add parameter milliseconds.
41221 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41222 recovery from timed-out commands.
41223 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41224 return grub_errno instead of REG_ERROR.
41225 (grub_ata_pio_write): Add parameter milliseconds.
41226 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41227 Pass milliseconds to grub_ata_wait_status () and
41228 grub_ata_pio_read ().
41229 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41230 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41231 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41232 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41233 It is not suitable for device detection, because DEV bit is ignored,
41234 the command may run too long, and not all devices set the signature
41235 properly.
41236 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41237 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41238 Fix device selection, DEV bit must be set first to address the registers
41239 of the correct device.
41240 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41241 grub_ata_pio_read/write ().
41242 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41243 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41244
41245 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41246
41247 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41248
41249 2009-01-13 Bean <bean123ch@gmail.com>
41250
41251 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41252
41253 2009-01-13 Bean <bean123ch@gmail.com>
41254
41255 * Makefile.in: (enable_grub_mkfont): New variable.
41256 (freetype_cflags): Likewise.
41257 (freetype_libs): Likewise.
41258
41259 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41260 (grub_mkfont_SOURCES): New variable.
41261 (grub_mkfont_CFLAGS): Likewise.
41262 (grub_mkfont_LDFLAGS): Likewise.
41263
41264 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41265 library if `--enable-grub-mkfont' is requested.
41266 (enable_grub_mkfont): New variable.
41267 (freetype_cflags): Likewise.
41268 (freetype_libs): Likewise.
41269
41270 * util/grub-mkfont.c: New file.
41271
41272 2009-01-12 Christian Franke <franke@computer.org>
41273
41274 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41275 mode check. Fix setting of compat_use[].
41276
41277 2009-01-10 Robert Millan <rmh@aybabtu.com>
41278
41279 Update a few copyright years which we forgot to do in 2008 (only for
41280 files whose changes made in 2008 were copyright-significant)
41281
41282 * Makefile.in: Add 2008 to Copyright line.
41283 * disk/ieee1275/ofdisk.c: Likewise.
41284 * disk/efi/efidisk.c: Likewise.
41285 * kern/dl.c: Likewise.
41286 * kern/sparc64/ieee1275/init.c: Likewise.
41287 * kern/mm.c: Likewise.
41288 * kern/efi/mm.c: Likewise.
41289 * boot/i386/pc/boot.S: Likewise.
41290 * genfslist.sh: Likewise.
41291 * fs/iso9660.c: Likewise.
41292 * fs/hfs.c: Likewise.
41293 * fs/jfs.c: Likewise.
41294 * fs/minix.c: Likewise.
41295 * fs/ufs.c: Likewise.
41296 * gensymlist.sh.in: Likewise.
41297 * genkernsyms.sh.in: Likewise.
41298 * include/grub/misc.h: Likewise.
41299 * include/grub/types.h: Likewise.
41300 * include/grub/symbol.h: Likewise.
41301 * include/grub/elf.h: Likewise.
41302 * include/grub/kernel.h: Likewise.
41303 * include/grub/disk.h: Likewise.
41304 * include/grub/dl.h: Likewise.
41305 * include/grub/i386/linux.h: Likewise.
41306 * include/grub/i386/pc/biosdisk.h: Likewise.
41307 * include/grub/efi/api.h: Likewise.
41308 * include/grub/efi/pe32.h: Likewise.
41309 * include/grub/util/misc.h: Likewise.
41310 * normal/execute.c: Likewise.
41311 * normal/arg.c: Likewise.
41312 * normal/completion.c: Likewise.
41313 * normal/lexer.c: Likewise.
41314 * normal/parser.y: Likewise.
41315 * normal/misc.c: Likewise.
41316 * commands/i386/pc/vbeinfo.c: Likewise.
41317 * commands/hexdump.c: Likewise.
41318 * commands/terminal.c: Likewise.
41319 * commands/ls.c: Likewise.
41320 * commands/help.c: Likewise.
41321 * partmap/pc.c: Likewise.
41322 * loader/efi/chainloader.c: Likewise.
41323 * loader/multiboot_loader.c: Likewise.
41324 * loader/i386/pc/multiboot2.c: Likewise.
41325 * term/efi/console.c: Likewise.
41326 * term/i386/pc/serial.c: Likewise.
41327 * util/lvm.c: Likewise.
41328 * util/console.c: Likewise.
41329 * util/i386/efi/grub-mkimage.c: Likewise.
41330 * util/raid.c: Likewise.
41331
41332 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41333
41334 * commands/videotest.c: Removed include to grub/machine/memory.h.
41335
41336 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41337 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41338 (video_mod_SOURCES): Removed.
41339 (video_mod_CFLAGS): Likewise.
41340 (video_mod_LDFLAGS): Likewise.
41341 (gfxterm_mod_SOURCES): Likewise.
41342 (gfxterm_mod_CFLAGS): Likewise.
41343 (gfxterm_mod_LDFLAGS): Likewise.
41344 (videotest_mod_SOURCES): Likewise.
41345 (videotest_mod_CFLAGS): Likewise.
41346 (videotest_mod_LDFLAGS): Likewise.
41347 (bitmap_mod_SOURCES): Likewise.
41348 (bitmap_mod_CFLAGS): Likewise.
41349 (bitmap_mod_LDFLAGS): Likewise.
41350 (tga_mod_SOURCES): Likewise.
41351 (tga_mod_CFLAGS): Likewise.
41352 (tga_mod_LDFLAGS): Likewise.
41353 (jpeg_mod_SOURCES): Likewise.
41354 (jpeg_mod_CFLAGS): Likewise.
41355 (jpeg_mod_LDFLAGS): Likewise.
41356 (png_mod_SOURCES): Likewise.
41357 (png_mod_CFLAGS): Likewise.
41358 (png_mod_LDFLAGS): Likewise.
41359
41360 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41361 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41362 (video_mod_SOURCES): Added.
41363 (video_mod_CFLAGS): Likewise.
41364 (video_mod_LDFLAGS): Likewise.
41365 (videotest_mod_SOURCES): Likewise.
41366 (videotest_mod_CFLAGS): Likewise.
41367 (videotest_mod_LDFLAGS): Likewise.
41368 (bitmap_mod_SOURCES): Likewise.
41369 (bitmap_mod_CFLAGS): Likewise.
41370 (bitmap_mod_LDFLAGS): Likewise.
41371 (tga_mod_SOURCES): Likewise.
41372 (tga_mod_CFLAGS): Likewise.
41373 (tga_mod_LDFLAGS): Likewise.
41374 (jpeg_mod_SOURCES): Likewise.
41375 (jpeg_mod_CFLAGS): Likewise.
41376 (jpeg_mod_LDFLAGS): Likewise.
41377 (png_mod_SOURCES): Likewise.
41378 (png_mod_CFLAGS): Likewise.
41379 (png_mod_LDFLAGS): Likewise.
41380 (gfxterm_mod_SOURCES): Likewise.
41381 (gfxterm_mod_CFLAGS): Likewise.
41382 (gfxterm_mod_LDFLAGS): Likewise.
41383
41384 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41385 grub/machine/console.h.
41386
41387 2009-01-04 Jerone Young <jerone@gmail.com>
41388
41389 Make on screen instructions clearer
41390
41391 Based on patch created by Jidanni <jidanni@jidanni.org>
41392
41393 * normal/menu.c: print clearer instructions on the screen
41394
41395 2009-01-02 Colin D Bennett <colin@gibibit.com>
41396
41397 New font engine.
41398
41399 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41400 build system and fixed gfxterm.c to work with different sized fonts.
41401
41402 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41403
41404 * configure: Re-generated.
41405
41406 * DISTLIST: Removed font/manager.c.
41407 Added font/font.c.
41408 Added font/font_cmd.c.
41409
41410 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41411 compilation.
41412
41413 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41414
41415 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41416
41417 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41418
41419 * normal/menu.c: Likewise.
41420
41421 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41422 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41423
41424 * include/grub/font.h: Replaced with new file.
41425
41426 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41427 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41428 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41429 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41430 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41431 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41432 fg_red, fg_green, fg_blue, fg_alpha.
41433 (grub_video_adapter): Removed blit_glyph.
41434 (grub_video_blit_glyph): Removed.
41435
41436 * font/manager.c: Removed file.
41437
41438 * font/font.c: New file.
41439
41440 * font/font_cmd.c: Likewise.
41441
41442 * video/video.c (grub_video_blit_glyph): Removed.
41443
41444 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41445 (grub_video_vbe_map_rgba): Likewise.
41446 (grub_video_vbe_unmap_color_int): Likewise.
41447 (grub_video_vbe_blit_glyph): Removed.
41448 (grub_video_vbe_adapter): Removed blit_glyph.
41449
41450 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41451 (get_pixel): Likewise.
41452 (set_pixel): Likewise.
41453
41454 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41455
41456 * term/gfxterm.c: Adapted to new font engine.
41457
41458 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41459
41460 * term/i386/pc/vga.c: Likewise.
41461
41462 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41463
41464 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41465
41466 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41467
41468 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41469
41470 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41471
41472 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41473
41474 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41475
41476 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41477
41478 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41479
41480 * util/grub.d/00_header.in: Changed to use new loadfont command.
41481
41482 * util/grub-mkconfig_lib.in: Changed font extension.
41483
41484 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41485
41486 * util/getroot.c (grub_util_get_grub_dev): Add support for
41487 /dev/md/dNNpNN style partitionable mdraid devices.
41488
41489 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41490
41491 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41492 at a time limit of the PXE TFTP API correctly.
41493 (grub_pxefs_close): Likewise.
41494
41495 2008-11-29 Robert Millan <rmh@aybabtu.com>
41496
41497 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41498 grub_ata_device_initialize() calls.
41499
41500 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41501
41502 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41503 iteration failed.
41504 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41505
41506 2008-11-28 Robert Millan <rmh@aybabtu.com>
41507
41508 Fix build on powerpc-ieee1275. Based on patch created by
41509 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41510 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41511 `kern/ieee1275/mmap.c'.
41512 * include/grub/powerpc/ieee1275/memory.h: New file.
41513
41514 Provide grub-install on coreboot.
41515 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41516 (grub_install_SOURCES): New variable.
41517 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41518 usable on coreboot.
41519
41520 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41521
41522 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41523 to `grub_term_input_t'.
41524 (grub_term_get_current_output): Change return type to
41525 `grub_term_output_t'.
41526
41527 2008-11-22 Robert Millan <rmh@aybabtu.com>
41528
41529 Fix breakage on coreboot due to declaration mismatch.
41530 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41531 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41532 grub_vga_text_cls().
41533
41534 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41535 comments. Avoid copying one more byte than necessary (just in case).
41536
41537 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41538 to 0x200000 (avoids trouble with some OFW implementations, and matches
41539 with the one in Yaboot).
41540 Reported by Manoel Abranches
41541
41542 2008-11-20 Robert Millan <rmh@aybabtu.com>
41543
41544 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41545 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41546
41547 * util/grub-mkconfig_lib.in (grub_warn): New function.
41548 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41549 warnings, to obtain consistent formatting.
41550 * util/grub.d/00_header.in: Likewise.
41551 * util/update-grub_lib.in: Likewise.
41552
41553 * loader/i386/linux.c (allocate_pages): Fix a warning.
41554 Move comment text to `#error' stanza.
41555
41556 Harmonize ieee1275's grub_available_iterate() with the generic
41557 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41558 build problem on i386-ieee1275):
41559 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41560 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41561 parameter `type'. Update all users of this function.
41562 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41563 `kern/ieee1275/mmap.c'.
41564 * kern/ieee1275/init.c
41565 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41566 with ...
41567 (grub_machine_mmap_iterate): ... this.
41568 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41569 return type to `grub_err_t'. Update all implementations of this
41570 function prototype.
41571 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41572 Likewise.
41573
41574 Add `lsmmap' command (lists firmware-provided memory map):
41575 * commands/lsmmap.c: New file.
41576 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41577 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41578 variables.
41579 * conf/powerpc-ieee1275.rmk: Likewise.
41580 * conf/i386-coreboot.rmk: Likewise.
41581 * conf/i386-ieee1275.rmk: Likewise.
41582
41583 2008-11-19 Robert Millan <rmh@aybabtu.com>
41584
41585 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41586 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41587 constraints to initrd allocation (based on code from
41588 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41589 for Linux to find it.
41590
41591 2008-11-14 Robert Millan <rmh@aybabtu.com>
41592
41593 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41594 order to cope with duplicate slashes.
41595
41596 2008-11-14 Robert Millan <rmh@aybabtu.com>
41597
41598 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41599 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41600 don't want to mess with lower memory, because it is used in the Linux
41601 loader.
41602
41603 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41604 an appropriate place in lower memory, between 0x10000 and 0x90000,
41605 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41606 is in our heap (probably as a result of it being corrupted during
41607 decompression). Add #error instance with comment to explain why this
41608 loader isn't currently usable on PC/BIOS.
41609
41610 2008-11-14 Robert Millan <rmh@aybabtu.com>
41611
41612 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41613 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41614
41615 2008-11-12 Robert Millan <rmh@aybabtu.com>
41616
41617 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41618
41619 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41620 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41621 from here ...
41622 * include/grub/i386/pc/memory.h: ... to here.
41623
41624 2008-11-12 Robert Millan <rmh@aybabtu.com>
41625
41626 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41627 split).
41628
41629 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41630 (grub_console_cur_color, grub_console_real_putchar)
41631 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41632 (grub_console_setcolorstate, grub_console_setcolor)
41633 (grub_console_getcolor): Move from here ...
41634 * include/grub/i386/vga_common.h: ... to here (new file).
41635
41636 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41637 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41638 `<grub/i386/io.h>'.
41639 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41640 `<grub/i386/vga_common.h>'.
41641
41642 2008-11-12 Robert Millan <rmh@aybabtu.com>
41643
41644 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41645 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41646 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41647 variables.
41648 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41649 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41650
41651 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41652 grub_console_init() with call to grub_vga_text_init().
41653 (grub_machine_fini): Replace call to
41654 grub_console_fini() with call to grub_vga_text_fini() and
41655 grub_at_keyboard_fini().
41656
41657 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41658 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41659 (grub_console_setcolorstate, grub_console_setcolor)
41660 (grub_console_getcolor): New function prototypes.
41661
41662 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41663 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41664 (grub_vga_text_setcursor): Static-ize.
41665 (grub_vga_text_term): New structure.
41666 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41667
41668 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41669 (grub_console_cur_color, grub_console_standard_color)
41670 (grub_console_normal_color, grub_console_highlight_color)
41671 (map_char, grub_console_putchar, grub_console_getcharwidth)
41672 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41673 (grub_console_getcolor): Move from here ...
41674 * term/i386/vga_common.c: ... to here (same function names).
41675
41676 2008-11-12 Robert Millan <rmh@aybabtu.com>
41677
41678 Use newly-added Multiboot support in coreboot.
41679
41680 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41681 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41682
41683 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41684 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41685 (codestart): Store the MBI in `startup_multiboot_info' when we're
41686 being loaded using Multiboot.
41687
41688 * kern/i386/coreboot/init.c (grub_machine_init): Move
41689 grub_at_keyboard_init() call to beginning of function (useful for
41690 debugging). Call grub_machine_mmap_init() before attempting to use
41691 grub_machine_mmap_iterate().
41692 (grub_lower_mem, grub_upper_mem): Move from here ...
41693 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41694 here (new file).
41695
41696 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41697 function prototype.
41698
41699 2008-11-12 Robert Millan <rmh@aybabtu.com>
41700
41701 Fix a regression introduced by the at_keyboard.mod split. Because
41702 some terminals are default on some platforms and non-default on
41703 others, the first terminal being registered determines which is
41704 going to be default.
41705
41706 * kern/term.c (grub_term_register_input): If this is the first
41707 terminal being registered, set it as the current one.
41708 (grub_term_register_output): Likewise.
41709
41710 * term/efi/console.c (grub_console_init): Do not call
41711 grub_term_set_current_output() or grub_term_set_current_input().
41712 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41713 * term/i386/pc/console.c (grub_console_init): Likewise.
41714 (grub_console_fini): Do not call grub_term_set_current_input()
41715 (but leave grub_term_set_current_output() to restore text mode).
41716
41717 2008-11-10 Robert Millan <rmh@aybabtu.com>
41718
41719 * util/grub.d/00_header.in: Add backward compatibility check for
41720 versions of terminal.mod that don't understand `terminal_input' or
41721 `terminal_output'.
41722
41723 2008-11-09 Robert Millan <rmh@aybabtu.com>
41724
41725 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41726 `terminal_input' / `terminal_output', not `terminal'.
41727
41728 2008-11-08 Robert Millan <rmh@aybabtu.com>
41729
41730 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41731 (DISTCLEANFILES): Add `build_env.mk'.
41732
41733 2008-11-08 Robert Millan <rmh@aybabtu.com>
41734
41735 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41736 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41737 members. Update all users.
41738 * util/console.c (grub_ncurses_term): Split in ...
41739 (grub_ncurses_term_input): ... this, and ...
41740 (grub_ncurses_term_output): ... this. Update all users.
41741 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41742
41743 2008-11-08 Robert Millan <rmh@aybabtu.com>
41744
41745 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41746 (PKGDATA): Add $(pkgdata_SRCDIR).
41747 (pkglib_BUILDDIR): New variable.
41748 (pkgdata_SRCDIR): New variable.
41749 (build_env.mk): New target.
41750 (include_DATA): New variable.
41751 (install-local): Install $(include_DATA) files in $(includedir).
41752
41753 2008-11-07 Pavel Roskin <proski@gnu.org>
41754
41755 * gendistlist.sh: Use C locale for sorting to ensure consistent
41756 output on all systems.
41757
41758 * util/grub.d/00_header.in: Remove incorrect space before
41759 "serial".
41760
41761 2008-11-07 Robert Millan <rmh@aybabtu.com>
41762
41763 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41764 per specification.
41765 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41766 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41767 (based on find_multi_boot1_header).
41768 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41769 using find_multi_boot2_header(), and abort if neither Multiboot or
41770 Multiboot headers were found.
41771
41772 2008-11-07 Robert Millan <rmh@aybabtu.com>
41773
41774 Modularize at_keyboard.mod:
41775
41776 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41777 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41778 (at_keyboard_mod_LDFLAGS): New variables.
41779
41780 Actual terminal split:
41781
41782 * include/grub/term.h (struct grub_term): Split in ...
41783 (struct grub_term_input): ... this, and ...
41784 (struct grub_term_output): ... this. Update all users.
41785 (grub_term_set_current): Split in ...
41786 (grub_term_set_current_input): ... this, and ...
41787 (grub_term_set_current_output): ... this.
41788 (grub_term_get_current): Split in ...
41789 (grub_term_get_current_input): ... this, and ...
41790 (grub_term_get_current_output): ... this.
41791 (grub_term_register): Split in ...
41792 (grub_term_register_input): ... this, and ...
41793 (grub_term_register_output): ... this.
41794 (grub_term_unregister): Split in ...
41795 (grub_term_unregister_input): ... this, and ...
41796 (grub_term_unregister_output): ... this.
41797 (grub_term_iterate): Split in ...
41798 (grub_term_iterate_input): ... this, and ...
41799 (grub_term_iterate_output): ... this.
41800
41801 * kern/term.c (grub_term_list): Split in ...
41802 (grub_term_list_input): ... this, and ...
41803 (grub_term_list_output): ... this. Update all users.
41804 (grub_cur_term): Split in ...
41805 (grub_cur_term_input): ... this, and ...
41806 (grub_cur_term_output): ... this. Update all users.
41807 (grub_term_set_current): Split in ...
41808 (grub_term_set_current_input): ... this, and ...
41809 (grub_term_set_current_output): ... this.
41810 (grub_term_get_current): Split in ...
41811 (grub_term_get_current_input): ... this, and ...
41812 (grub_term_get_current_output): ... this.
41813 (grub_term_register): Split in ...
41814 (grub_term_register_input): ... this, and ...
41815 (grub_term_register_output): ... this.
41816 (grub_term_unregister): Split in ...
41817 (grub_term_unregister_input): ... this, and ...
41818 (grub_term_unregister_output): ... this.
41819 (grub_term_iterate): Split in ...
41820 (grub_term_iterate_input): ... this, and ...
41821 (grub_term_iterate_output): ... this.
41822
41823 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41824 a check for input and one for output (and only attempt to get keys
41825 from user when input works).
41826
41827 * util/grub-probe.c (grub_term_get_current): Split in ...
41828 (grub_term_get_current_input): ... this, and ...
41829 (grub_term_get_current_output): ... this.
41830 * util/grub-fstest.c: Likewise.
41831 * util/i386/pc/grub-setup.c: Likewise.
41832 * util/grub-editenv.c: Likewise.
41833
41834 Portability adjustments:
41835
41836 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41837 `term/i386/pc/at_keyboard.c'.
41838 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41839 grub_keyboard_controller_init() (now handled by terminal .init).
41840 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41841 grub_at_keyboard_init().
41842 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41843 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41844 at_keyboard.mod via input terminal interface).
41845 * include/grub/i386/coreboot/console.h: Convert into a stub for
41846 `<grub/i386/pc/console.h>'.
41847
41848 Migrate full terminals to new API:
41849
41850 * term/efi/console.c (grub_console_term): Split into ...
41851 (grub_console_term_input): ... this, and ...
41852 (grub_console_term_output): ... this. Update all users.
41853 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41854 (grub_ofconsole_init): Split into ...
41855 (grub_ofconsole_init_input): ... this, and ...
41856 (grub_ofconsole_init_output): ... this.
41857 (grub_ofconsole_term): Split into ...
41858 (grub_ofconsole_term_input): ... this, and ...
41859 (grub_ofconsole_term_output): ... this. Update all users.
41860 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41861 (grub_serial_term_input): ... this, and ...
41862 (grub_serial_term_output): ... this. Update all users.
41863 * term/i386/pc/console.c (grub_console_term): Split into ...
41864 (grub_console_term_input): ... this, and ...
41865 (grub_console_term_output): ... this. Update all users.
41866 (grub_console_term_input): Only enable it on PC/BIOS platform.
41867 (grub_console_init): Remove grub_keyboard_controller_init() call.
41868
41869 Migrate input terminals to new API:
41870
41871 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41872 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41873 i386-specific anyway).
41874 (grub_console_checkkey): Rename to ...
41875 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41876 users.
41877 (grub_keyboard_controller_orig): New variable.
41878 (grub_console_getkey): Rename to ...
41879 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41880 users.
41881 (grub_keyboard_controller_init): Static-ize. Save original
41882 controller value so that it can be restored ...
41883 (grub_keyboard_controller_fini): ... here (new function).
41884 (grub_at_keyboard_term): New structure.
41885 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41886 functions.
41887
41888 Migrate output terminals to new API:
41889
41890 * term/i386/pc/vga.c (grub_vga_term): Change type to
41891 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41892 members. Update all users.
41893 * term/gfxterm.c (grub_video_term): Change type to
41894 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41895 members. Update all users.
41896 * include/grub/i386/pc/console.h (grub_console_checkkey)
41897 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41898 etc).
41899
41900 Migrate `terminal' command and userland tools to new API:
41901
41902 * commands/terminal.c (grub_cmd_terminal): Split into ...
41903 (grub_cmd_terminal_input): ... this, and ...
41904 (grub_cmd_terminal_output): ... this.
41905 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41906 `terminal_input' and `terminal_output'.
41907 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41908 `terminal_input' / `terminal_output' API.
41909 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41910 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41911 provided ${GRUB_TERMINAL}, convert it).
41912
41913 2008-11-04 Robert Millan <rmh@aybabtu.com>
41914
41915 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41916 for FreeBSD.
41917 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41918
41919 2008-11-03 Bean <bean123ch@gmail.com>
41920
41921 * kern/elf.c (grub_elf32_load): Revert to previous code.
41922 (grub_elf64_load): Likewise.
41923
41924 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41925
41926 2008-11-01 Robert Millan <rmh@aybabtu.com>
41927
41928 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41929 (TARGET_CPPFLAGS): Likewise.
41930 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41931
41932 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41933
41934 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41935
41936 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41937
41938 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41939 addition of objects until the code is not going to be able to fail.
41940
41941 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41942
41943 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41944 (add a missing NULL check, and correct them by moving the pointer
41945 operations after the actual check).
41946
41947 2008-10-29 Robert Millan <rmh@aybabtu.com>
41948
41949 * util/i386/pc/grub-install.in: Handle empty string as output from
41950 make_system_path_relative_to_its_root().
41951
41952 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41953
41954 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41955 circular metadata worst case scenario. If the metadata is circular
41956 then copy the wrap in place.
41957 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41958 project lib/format_text/layout.h
41959 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41960
41961 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41962
41963 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41964
41965 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41966
41967 * util/update-grub_lib.in: Mention filename in warning message.
41968
41969 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41970
41971 * NEWS: Update for rename of update-grub to grub-mkconfig.
41972
41973 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41974
41975 * util/update-grub_lib.in: Copy to ...
41976 * util/grub-mkconfig_lib.in: ... this. Update all users.
41977 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41978 * util/update-grub.in: Rename to ...
41979 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41980 option. Add `--output' option to allow users to specify the generated
41981 configuration file. Default to stdout.
41982 (update_grub_dir): Rename to ...
41983 (grub_mkconfig_dir): ... this.
41984 (grub_cfg): Default to an empty string.
41985 * conf/common.rmk (update-grub): Rename to ...
41986 (grub-mkconfig): ... this.
41987 (update-grub_lib): Copy to ...
41988 (grub-mkconfig_lib): ... this.
41989 (update-grub_SCRIPTS): Copy to ...
41990 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41991 (update-grub_DATA): Rename to ...
41992 (grub-mkconfig_DATA): ... this.
41993
41994 2008-09-28 Robert Millan <rmh@aybabtu.com>
41995
41996 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41997 to `modified'. Add the real `created' field.
41998 (grub_iso9660_uuid): Use `modified' rather than `created' for
41999 constructing the UUID.
42000
42001 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42002
42003 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42004 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42005
42006 2008-09-28 Bean <bean123ch@gmail.com>
42007
42008 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42009 Thanks to Christian Franke for finding this bug.
42010
42011 2008-09-25 Robert Millan <rmh@aybabtu.com>
42012
42013 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42014 instances of grub_util_get_disk_name() (see previous commit).
42015
42016 2008-09-25 Robert Millan <rmh@aybabtu.com>
42017
42018 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42019 `util/i386/get_disk_name.c'.
42020 * conf/i386-efi.rmk: Likewise.
42021 * conf/x86_64-efi.rmk: Likewise.
42022 * conf/i386-coreboot.rmk: Likewise.
42023 * conf/i386-ieee1275.rmk: Likewise.
42024 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42025 `util/ieee1275/get_disk_name.c'.
42026 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42027 * util/ieee1275/get_disk_name.c: Remove file.
42028 * util/i386/get_disk_name.c: Remove file.
42029 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42030 "hd%d" for device.map entries, rather than using
42031 grub_util_get_disk_name().
42032
42033 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42034
42035 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42036 warning.
42037 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42038
42039 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42040
42041 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42042 Changed to 0x5100.
42043 (GRUB_TERM_PPAGE): Changed to 0x4900.
42044
42045 2008-09-24 Robert Millan <rmh@aybabtu.com>
42046
42047 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42048 macros (they were i386-pc specific).
42049 * include/grub/sparc64/ieee1275/console.h: Likewise.
42050 * include/grub/efi/console.h: Likewise.
42051
42052 2008-09-22 Bean <bean123ch@gmail.com>
42053
42054 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42055 resident and in attribute list.
42056
42057 * include/grub/ntfs.h (BMP_LEN): Removed.
42058
42059 2008-09-22 Bean <bean123ch@gmail.com>
42060
42061 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42062 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42063
42064 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42065 error occurs, as grub_disk_open will call grub_disk_close, which will
42066 call p->close (scsi).
42067
42068 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42069
42070 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42071 (AC_PREREQ): Bumped to 2.59.
42072 (AC_TRY_COMPILE): Replace obsolete macro with ...
42073 (AC_COMPILE_IFELSE): ... this.
42074 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42075 (AC_LINK_IFELSE): ... this.
42076
42077 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42078
42079 * autogen.sh: Add a call to `gendistlist.sh'.
42080
42081 2008-09-19 Christian Franke <franke@computer.org>
42082
42083 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42084 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42085 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42086 Export __enable_execute_stack() to modules.
42087 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42088 New function.
42089
42090 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42091
42092 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42093 Sort the list.
42094
42095 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42096
42097 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42098 #include <grub/util/hostdisk.h>.
42099
42100 2008-09-08 Robert Millan <rmh@aybabtu.com>
42101
42102 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42103 segments when their filesz is zero (grub_file_read() interprets
42104 zero-size as "read until EOF", which results in memory corruption).
42105 Use `lowest_segment' rather than 0 for calculating the current
42106 segment load address.
42107
42108 2008-09-08 Robert Millan <rmh@aybabtu.com>
42109
42110 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42111 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42112 clobbered useful information.
42113
42114 2008-09-08 Robert Millan <rmh@aybabtu.com>
42115
42116 * include/grub/util/biosdisk.h: Move to ...
42117 * include/grub/util/hostdisk.h: ... here. Update all users.
42118 * util/biosdisk.c: Move to ...
42119 * util/hostdisk.c: ... here. Update all users.
42120
42121 2008-09-07 Robert Millan <rmh@aybabtu.com>
42122
42123 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42124 variables.
42125 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42126 and length can be stored directly in the `mbi->mmap_addr' and
42127 `mbi->mmap_length' struct fields.
42128
42129 2008-09-07 Robert Millan <rmh@aybabtu.com>
42130
42131 * conf/i386.rmk: New file. Provides declaration for building
42132 `cpuid.mod'.
42133 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42134 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42135 variables.
42136 Include `conf/i386.mk'.
42137 * conf/i386-efi.rmk: Likewise.
42138 * conf/x86_64-efi.rmk: Likewise.
42139 * conf/i386-coreboot.rmk: Likewise.
42140 * conf/i386-ieee1275.rmk: Likewise.
42141
42142 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42143
42144 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42145 Adds optimization support for BGR based modes.
42146
42147 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42148 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42150 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42151 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42152 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42153 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42154 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42155 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42156 (grub_video_i386_vbeblit_index_index): Likewise.
42157 (grub_video_i386_vbeblit_replace_directN): Added.
42158 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42159 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42160 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42161 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42162 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42163 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42164 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42165 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42166 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42167 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42168 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42169 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42170 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42171
42172 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42173 (grub_video_i386_vbefill_R8G8B8): Likewise.
42174 (grub_video_i386_vbefill_index): Likewise.
42175 (grub_video_i386_vbefill_direct32): Added.
42176 (grub_video_i386_vbefill_direct24): Likewise.
42177 (grub_video_i386_vbefill_direct16): Likewise.
42178 (grub_video_i386_vbefill_direct8): Likewise.
42179
42180 * include/grub/video.h (grub_video_blit_format): Removed
42181 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42182 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42183 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42184 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42185 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42186
42187 * video/video.c (grub_video_get_blit_format): Updated to use new
42188 blit formats. Added handling for 16 bit color modes.
42189
42190 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42191 fillers.
42192 (common_blitter): Updated to use new blitters.
42193
42194 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42195 Removed.
42196 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42197 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42198 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42199 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42200 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42201 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42202 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42203 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42204 (grub_video_i386_vbeblit_index_index): Likewise.
42205 (grub_video_i386_vbeblit_replace_directN): Added.
42206 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42207 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42208 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42209 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42210 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42211 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42212 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42213 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42214 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42215 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42216 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42217 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42218 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42219
42220 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42221 (grub_video_i386_vbefill_R8G8B8): Likewise.
42222 (grub_video_i386_vbefill_index): Likewise.
42223 (grub_video_i386_vbefill_direct32): Added.
42224 (grub_video_i386_vbefill_direct24): Likewise.
42225 (grub_video_i386_vbefill_direct16): Likewise.
42226 (grub_video_i386_vbefill_direct8): Likewise.
42227
42228 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42229 types.
42230
42231 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42232 types.
42233
42234 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42235 blitter types.
42236
42237 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42238 types.
42239
42240 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42241
42242 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42243 RAID level 1.
42244
42245 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42246
42247 * fs/iso9660.c (grub_iso9660_date): New structure.
42248 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42249 (grub_iso9660_uuid): New function.
42250
42251 2008-09-05 Bean <bean123ch@gmail.com>
42252
42253 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42254
42255 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42256 insensitive bit for names in Win32 and Win32 & DOS namespace.
42257
42258 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42259
42260 * include/grub/types.h (LONG_MAX): Likewise.
42261
42262 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42263
42264 * util/getroot.c: Include <config.h>.
42265 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42266 add support for /dev/md/N devices and handle LVM double dash escaping.
42267
42268 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42269
42270 * config.guess: Update to latest version from config git.
42271 * config.sub: Likewise.
42272
42273 2008-09-03 Robert Millan <rmh@aybabtu.com>
42274
42275 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42276 `disk->total_sectors'.
42277
42278 2008-09-01 Colin D Bennett <colin@gibibit.com>
42279
42280 * include/grub/normal.h: Fixed incorrect comment for
42281 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42282
42283 2008-09-01 Colin D Bennett <colin@gibibit.com>
42284
42285 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42286 values with defines.
42287
42288 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42289 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42290 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42291 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42292 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42293 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42294 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42295 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42296 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42297 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42298 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42299 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42300 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42301 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42302 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42303 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42304 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42305 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42306 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42307
42308 2008-08-31 Robert Millan <rmh@aybabtu.com>
42309
42310 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42311 declaration.
42312 (grub_multiboot): Fix a few warnings.
42313
42314 2008-08-31 Robert Millan <rmh@aybabtu.com>
42315
42316 * loader/i386/pc/multiboot.c: Update comment not to say that
42317 boot_device support is unimplemented.
42318
42319 2008-08-31 Robert Millan <rmh@aybabtu.com>
42320
42321 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42322 or memory map support are unimplemented.
42323
42324 2008-08-31 Colin D Bennett <colin@gibibit.com>
42325
42326 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42327
42328 2008-08-31 Colin D Bennett <colin@gibibit.com>
42329
42330 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42331 total video memory in 'vbeinfo' output; show color format details for
42332 each video mode.
42333
42334 2008-08-30 Pavel Roskin <proski@gnu.org>
42335
42336 * util/genmoddep.c: Remove for real this time.
42337 * DISTLIST: Remove util/genmoddep.c.
42338
42339 2008-08-30 Robert Millan <rmh@aybabtu.com>
42340
42341 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42342 as required by Multiboot spec (it was already 4-byte aligned, but
42343 only by chance).
42344
42345 2008-08-29 Pavel Roskin <proski@gnu.org>
42346
42347 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42348 * kern/powerpc/ieee1275/startup.S: ... this.
42349 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42350 * DISTLIST: Likewise.
42351
42352 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42353 grub/cpu/kernel.h. Add start label for consistency with other
42354 platforms. Add grub_prefix immediately after start. Add jump
42355 to the code after grub_prefix.
42356 * include/grub/powerpc/kernel.h: Provide valid values for
42357 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42358
42359 2008-08-29 Bean <bean123ch@gmail.com>
42360
42361 * configure.ac: Change host_os to cygwin for mingw.
42362 (asprintf): New check for function.
42363
42364 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42365 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42366
42367 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42368 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42369 sync, sleep and grub_util_get_disk_size for mingw.
42370
42371 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42372 to get size in mingw.
42373 (open_device): Use flag O_BINARY if it's defined.
42374 (find_root_device): Add dummy code for mingw.
42375
42376 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42377 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42378 (get_scsi_disk_name): Return 0 for mingw.
42379
42380 * util/hostfs.c: #include <grub/util/misc.h>.
42381 (grub_hostfs_open): Use "rb" flag to open file, use
42382 grub_util_get_disk_size to get disk size for mingw.
42383
42384 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42385 (asprintf): New function if HAVE_ASPRINTF is not set.
42386 (sync): New function for mingw.
42387 (sleep): Likewise.
42388 (grub_util_get_disk_size): Likewise.
42389
42390 2008-08-28 Pavel Roskin <proski@gnu.org>
42391
42392 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42393 kern/time.c.
42394
42395 2008-08-28 Robert Millan <rmh@aybabtu.com>
42396
42397 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42398
42399 2008-08-28 Robert Millan <rmh@aybabtu.com>
42400
42401 Change find_grub_drive() syntax so it doesn't prevent it from
42402 detecting NULL names as errors.
42403
42404 * util/biosdisk.c (find_grub_drive): Move free slot search code
42405 from here ...
42406 (find_free_slot): ... to here.
42407 (read_device_map): Use find_free_slot() to search for free slots.
42408
42409 2008-08-27 Marco Gerards <marco@gnu.org>
42410
42411 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42412 (scsi_mod_SOURCES): New variable.
42413 (scsi_mod_CFLAGS): Likewise
42414 (scsi_mod_LDFLAGS): Likewise.
42415
42416 * disk/scsi.c: New file.
42417
42418 * include/grub/scsi.h: Likewise.
42419
42420 * include/grub/scsicmd.h: Likewise.
42421
42422 * disk/ata.c: Include <grub/scsi.h>.
42423 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42424 instead.
42425 (grub_ata_iterate): Skip ATAPI devices.
42426 (grub_ata_open): Only handle ATAPI devices.
42427 (struct grub_atapi_read): Removed.
42428 (grub_atapi_readsector): Likewise.
42429 (grub_ata_read): No longer handle ATAPI devices.
42430 (grub_ata_write): Likewise.
42431 (grub_atapi_iterate): New function.
42432 (grub_atapi_read): Likewise.
42433 (grub_atapi_write): Likewise.
42434 (grub_atapi_open): Likewise.
42435 (grub_atapi_close): Likewise.
42436 (grub_atapi_dev): New variable.
42437 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42438 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42439
42440 * include/grub/disk.h (enum grub_disk_dev_id): Add
42441 `GRUB_DISK_DEVICE_SCSI_ID'.
42442
42443 2008-08-26 Robert Millan <rmh@aybabtu.com>
42444
42445 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42446 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42447 descriptive.
42448
42449 2008-08-23 Bean <bean123ch@gmail.com>
42450
42451 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42452 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42453 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42454 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42455 dm_nv.mod.
42456 (raid5rec_mod_SOURCES): New macro.
42457 (raid5rec_mod_CFLAGS): Likewise.
42458 (raid5rec_mod_LDFLAGS): Likewise.
42459 (raid6rec_mod_SOURCES): Likewise.
42460 (raid6rec_mod_CFLAGS): Likewise.
42461 (raid6rec_mod_LDFLAGS): Likewise.
42462 (mdraid_mod_SOURCES): Likewise.
42463 (mdraid_mod_CFLAGS): Likewise.
42464 (mdraid_mod_LDFLAGS): Likewise.
42465 (dm_nv_mod_SOURCES): Likewise.
42466 (dm_nv_mod_CFLAGS): Likewise.
42467 (dm_nv_mod_LDFLAGS): Likewise.
42468
42469 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42470 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42471 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42472
42473 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42474 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42475
42476 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42477
42478 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42479
42480 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42481
42482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42483
42484 * disk/raid5_recover.c: New file.
42485
42486 * disk/raid6_recover.c: Likewise.
42487
42488 * disk/mdraid_linux.c: Likewise.
42489
42490 * disk/dmraid_nvidia.c: Likewise.
42491
42492 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42493 ULONG_MAX.
42494
42495 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42496 calculate the size of raid device.
42497 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42498 different layout of raid5.
42499 (grub_raid_scan_device): Remove code specific to mdraid.
42500 (grub_raid_list): New variable.
42501 (free_array): New function.
42502 (grub_raid_register): Likewise.
42503 (grub_raid_unregister): Likewise.
42504 (grub_raid_rescan): Likewise.
42505 (GRUB_MOD_INIT): Don't iterate device here.
42506 (GRUB_MOD_FINI): Use free_array to release resource.
42507
42508 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42509 (grub_raid5_recover_func_t): New function variable type.
42510 (grub_raid6_recover_func_t): Likewise.
42511 (grub_raid5_recover_func): New variable.
42512 (grub_raid6_recover_func): Likewise.
42513 (grub_raid_register): New function.
42514 (grub_raid_unregister): Likewise.
42515 (grub_raid_rescan): Likewise.
42516 (grub_raid_block_xor): Likewise.
42517
42518 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42519 (CMD_CRC): New macro.
42520 (part): Removed.
42521 (read_file): Handle device as well as file.
42522 (cmd_crc): New function.
42523 (fstest): Handle multiple disks.
42524 (options): Remove part, raw and long, add root and diskcount.
42525 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42526 (main): Find the first non option entry and ignore subsequent options,
42527 add handling for the new options, support multiple disks.
42528
42529 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42530
42531 2008-08-23 Bean <bean123ch@gmail.com>
42532
42533 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42534
42535 * genfslist.sh: Ignore kernel.mod.
42536
42537 * genpartmaplist.sh: Likewise.
42538
42539 2008-08-23 Robert Millan <rmh@aybabtu.com>
42540
42541 * util/getroot.c (find_root_device): Skip anything that starts with
42542 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42543
42544 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42545
42546 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42547 * util/grub.d/00_header.in: Allow the administrator to change default
42548 gfxmode via ${GRUB_GFXMODE}.
42549
42550 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42551
42552 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42553
42554 2008-08-21 Robert Millan <rmh@aybabtu.com>
42555
42556 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42557 loader.
42558 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42559 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42560
42561 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42562
42563 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42564 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42565
42566 2008-08-19 Robert Millan <rmh@aybabtu.com>
42567
42568 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42569 (struct grub_virtual_screen): Remove `cursor_color'.
42570 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42571 initialization.
42572 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42573
42574 2008-08-18 Robert Millan <rmh@aybabtu.com>
42575
42576 Unify (identical) linux_normal.c files.
42577 * loader/i386/efi/linux_normal.c: Move from here ...
42578 * loader/linux_normal.c: ... to here. Update all users.
42579 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42580 * loader/i386/ieee1275/linux_normal.c: Likewise.
42581
42582 2008-08-18 Robert Millan <rmh@aybabtu.com>
42583
42584 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42585 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42586 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42587 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42588 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42589 New macros.
42590 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42591 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42592 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42593 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42594 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42595 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42596 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42597 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42598 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42599 portably using grub_getxy().
42600 Replace `-EFI' with `-bzImage' in boot message.
42601
42602 2008-08-17 Robert Millan <rmh@aybabtu.com>
42603
42604 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42605
42606 2008-08-17 Robert Millan <rmh@aybabtu.com>
42607
42608 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42609
42610 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42611 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42612 (grub_machine_mmap_iterate): New function declaration.
42613 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42614 structure.
42615 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42616 macros.
42617
42618 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42619 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42620 Move e820 parsing from here ...
42621 * kern/i386/pc/mmap.c: New file.
42622 (grub_machine_mmap_iterate): ... to here.
42623
42624 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42625 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42626 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42627 (grub_available_iterate): Redeclare to return `void', and redeclare
42628 its hook to use grub_uint64_t as addr and size parameters, and rename
42629 to ...
42630 (grub_machine_mmap_iterate): ... this. Update all users.
42631
42632 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42633 to make it more readable. Rename to ...
42634 (grub_machine_mmap_iterate): ... this.
42635
42636 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42637 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42638 (grub_multiboot): Allocate an extra region after the payload, and fill
42639 it with a Multiboot memory map. Adjust a.out loader to calculate size
42640 with the extra space.
42641 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42642 with the extra space.
42643
42644 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42645
42646 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42647
42648 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42649
42650 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42651 mdate-sh to the list `find' searches for.
42652 * DISTLIST: Regenerated.
42653
42654 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42655
42656 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42657 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42658 genmoddep.awk, gensymlist.sh.in.
42659 (DISTDIRS): Add bus, docs, hook, lib.
42660 * DISTLIST: Regenerated.
42661 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42662
42663 2008-08-16 Robert Millan <rmh@aybabtu.com>
42664
42665 * disk/raid.c (grub_raid_init): Handle/report errors set by
42666 grub_device_iterate().
42667 * disk/lvm.c (grub_lvm_init): Likewise.
42668
42669 2008-08-15 Bean <bean123ch@gmail.com>
42670
42671 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42672 and datehook.mod.
42673 (datetime_mod_SOURCES): New macro.
42674 (datetime_mod_CFLAGS): Likewise.
42675 (datetime_mod_LDFLAGS): Likewise.
42676 (date_mod_SOURCES): Likewise.
42677 (date_mod_CFLAGS): Likewise.
42678 (date_mod_LDFLAGS): Likewise.
42679 (datehook_mod_SOURCES): Likewise.
42680 (datehook_mod_CFLAGS): Likewise.
42681 (datehook_mod_LDFLAGS): Likewise.
42682
42683 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42684 and datehook.mod.
42685 (datetime_mod_SOURCES): New macro.
42686 (datetime_mod_CFLAGS): Likewise.
42687 (datetime_mod_LDFLAGS): Likewise.
42688 (date_mod_SOURCES): Likewise.
42689 (date_mod_CFLAGS): Likewise.
42690 (date_mod_LDFLAGS): Likewise.
42691 (datehook_mod_SOURCES): Likewise.
42692 (datehook_mod_CFLAGS): Likewise.
42693 (datehook_mod_LDFLAGS): Likewise.
42694
42695 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42696 and datehook.mod.
42697 (datetime_mod_SOURCES): New macro.
42698 (datetime_mod_CFLAGS): Likewise.
42699 (datetime_mod_LDFLAGS): Likewise.
42700 (date_mod_SOURCES): Likewise.
42701 (date_mod_CFLAGS): Likewise.
42702 (date_mod_LDFLAGS): Likewise.
42703 (datehook_mod_SOURCES): Likewise.
42704 (datehook_mod_CFLAGS): Likewise.
42705 (datehook_mod_LDFLAGS): Likewise.
42706
42707 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42708 and datehook.mod.
42709 (datetime_mod_SOURCES): New macro.
42710 (datetime_mod_CFLAGS): Likewise.
42711 (datetime_mod_LDFLAGS): Likewise.
42712 (date_mod_SOURCES): Likewise.
42713 (date_mod_CFLAGS): Likewise.
42714 (date_mod_LDFLAGS): Likewise.
42715 (datehook_mod_SOURCES): Likewise.
42716 (datehook_mod_CFLAGS): Likewise.
42717 (datehook_mod_LDFLAGS): Likewise.
42718
42719 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42720 and datehook.mod.
42721 (datetime_mod_SOURCES): New macro.
42722 (datetime_mod_CFLAGS): Likewise.
42723 (datetime_mod_LDFLAGS): Likewise.
42724 (date_mod_SOURCES): Likewise.
42725 (date_mod_CFLAGS): Likewise.
42726 (date_mod_LDFLAGS): Likewise.
42727 (datehook_mod_SOURCES): Likewise.
42728 (datehook_mod_CFLAGS): Likewise.
42729 (datehook_mod_LDFLAGS): Likewise.
42730
42731 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42732
42733 * commands/date.c: New file.
42734
42735 * hook/datehook.c: Likewise.
42736
42737 * include/grub/lib/datetime.h: Likewise.
42738
42739 * include/grub/i386/cmos.h: Likewise.
42740
42741 * lib/datetime.c: Likewise.
42742
42743 * lib/i386/datetime.c: Likewise.
42744
42745 * lib/efi/datetime.c: Likewise.
42746
42747 2008-08-14 Robert Millan <rmh@aybabtu.com>
42748
42749 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42750 (grub_mkelfimage_SOURCES): New variable.
42751 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42752
42753 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42754 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42755 * conf/powerpc-ieee1275.rmk: Likewise.
42756 * conf/i386-ieee1275.rmk: Likewise.
42757
42758 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42759 * kern/i386/coreboot/init.c: Likewise.
42760
42761 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42762 with `<grub/cpu/kernel.h>'.
42763 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42764 to ...
42765 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42766 * kern/i386/coreboot/startup.S: Likewise.
42767
42768 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42769 (GRUB_MOD_GAP): Remove.
42770 * include/grub/powerpc/kernel.h: New file.
42771 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42772 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42773 * include/grub/i386/kernel.h: New file.
42774 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42775 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42776 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42777
42778 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42779 `grub-mkelfimage'.
42780 Use --directory when invoking grub_mkimage.
42781
42782 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42783 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42784 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42785 and GRUB_KERNEL_CPU_PREFIX.
42786
42787 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42788
42789 * include/grub/err.h (grub_err_printf): New function prototype.
42790 * util/misc.c (grub_err_printf): New function.
42791 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42792 grub_printf.
42793 * kern/err.c (grub_print_error): Use grub_err_printf.
42794
42795 2008-08-13 Robert Millan <rmh@aybabtu.com>
42796
42797 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42798
42799 2008-08-13 Robert Millan <rmh@aybabtu.com>
42800
42801 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42802 boot entry.
42803
42804 2008-08-12 Robert Millan <rmh@aybabtu.com>
42805
42806 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42807 of the relocation code from here ...
42808 (grub_multiboot): ... to here.
42809 (forward_relocator, backward_relocator): Move from here ...
42810 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42811 (grub_multiboot_backward_relocator): ... to here.
42812 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42813 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42814 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42815 (grub_multiboot_forward_relocator_end)
42816 (grub_multiboot_backward_relocator)
42817 (grub_multiboot_backward_relocator_end): New variables.
42818
42819 2008-08-12 Bean <bean123ch@gmail.com>
42820
42821 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42822
42823 2008-08-11 Robert Millan <rmh@aybabtu.com>
42824
42825 * kern/i386/linuxbios/startup.S: Move from here ...
42826 * kern/i386/coreboot/startup.S: ... to here.
42827
42828 * kern/i386/linuxbios/init.c: Move from here ...
42829 * kern/i386/coreboot/init.c: ... to here.
42830
42831 * kern/i386/linuxbios/table.c: Move from here ...
42832 * kern/i386/coreboot/mmap.c: ... to here.
42833
42834 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42835
42836 2008-08-11 Robert Millan <rmh@aybabtu.com>
42837
42838 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42839 errors. Leave it to the upper layer to handle them.
42840
42841 2008-08-09 Christian Franke <franke@computer.org>
42842
42843 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42844 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42845 Install `grub.d/10_windows' only on Cygwin.
42846 * configure.ac: Add subst of `target_os'.
42847 Check `target_os' also before setting TARGET_OBJ2ELF.
42848 Add `--enable-grub-pe2elf'.
42849
42850 2008-08-08 Robert Millan <rmh@aybabtu.com>
42851
42852 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42853 (grub_last_time): Change type to grub_uint64_t.
42854 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42855 (grub_disk_close): Likewise.
42856
42857 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42858 (run_menu): Migrate code from to using grub_get_time_ms().
42859
42860 * util/misc.c (grub_get_time_ms): New function.
42861
42862 2008-08-08 Marco Gerards <marco@gnu.org>
42863
42864 * disk/ata.c (grub_ata_regget): Change return type to
42865 `grub_uint8_t'.
42866 (grub_ata_regget2): Likewise.
42867 (grub_ata_wait_status): New function.
42868 (grub_ata_wait_busy): Removed function, updated all users to use
42869 `grub_ata_wait_status'.
42870 (grub_ata_wait_drq): Likewise.
42871 (grub_ata_cmd): New function.
42872 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42873 error handling.
42874 (grub_ata_pio_write): Add error handling.
42875 (grub_atapi_identify): Likewise.
42876 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42877 handling.
42878 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42879 handling. Actually use the detected registers. Reorder the
42880 detection logic such that it is easier to read.
42881 (grub_ata_pciinit): Do not assign the same ID to each controller.
42882 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42883 handling.
42884 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42885
42886 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42887
42888 2008-08-08 Marco Gerards <marco@gnu.org>
42889
42890 * NEWS: Update.
42891
42892 2008-08-07 Bean <bean123ch@gmail.com>
42893
42894 * include/grub/x86_64/pci.h: New file.
42895
42896 2008-08-07 Christian Franke <franke@computer.org>
42897
42898 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42899 (TIMER2_GATE): Likewise.
42900 (grub_pit_wait): Add enable/disable of the timer2 gate
42901 bit of port 0x61. This fixes a possible infinite loop.
42902
42903 2008-08-07 Bean <bean123ch@gmail.com>
42904
42905 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42906 kern/i386/tsc.c and kern/i386/pit.c.
42907
42908 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42909 x86_64 platform.
42910
42911 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42912 <grub/i386/tsc.h>.
42913
42914 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42915
42916 2008-08-07 Bean <bean123ch@gmail.com>
42917
42918 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42919
42920 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42921
42922 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42923 multiple inclusion. Add #include <grub/types.h>.
42924
42925 2008-08-06 Christian Franke <franke@computer.org>
42926
42927 * conf/common.rmk: Build and install `10_windows'.
42928 * util/grub.d/10_windows.in: New script.
42929
42930 2008-08-06 Pavel Roskin <proski@gnu.org>
42931
42932 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42933
42934 2008-08-06 Robert Millan <rmh@aybabtu.com>
42935
42936 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42937 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42938
42939 2008-08-06 Bean <bean123ch@gmail.com>
42940
42941 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42942 (grub_pxefs_fs_int): Remove dummy definition.
42943 (grub_pxefs_open): Use data->block_size to store the current block
42944 size setting.
42945 (grub_pxefs_read): Use block size stored in data->block_size. As the
42946 value of grub_pxe_blksize can be changed after the file is opened.
42947
42948 2008-08-06 Bean <bean123ch@gmail.com>
42949
42950 * fs/i386/pc/pxe.c (curr_file): new variable.
42951 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42952 require the dummy internal file system anymore.
42953 (grub_pxefs_read): Removed.
42954 (grub_pxefs_close): Likewise.
42955 (grub_pxefs_fs_int): Likewise.
42956 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42957 connection when we switch file.
42958 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42959
42960 2008-08-06 Robert Millan <rmh@aybabtu.com>
42961
42962 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42963 `halt.mod'.
42964 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42965 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42966
42967 * kern/i386/halt.c: New file.
42968 * kern/i386/reboot.c: Likewise.
42969 * include/grub/i386/reboot.h: Likewise.
42970 * include/grub/i386/halt.h: Likewise.
42971
42972 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42973 Include `<grub/cpu/halt.h>'.
42974 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42975 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42976
42977 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42978 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42979 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42980 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42981 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42982 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42983 from here ...
42984 * include/grub/i386/at_keyboard.h: ... to here.
42985
42986 2008-08-05 Robert Millan <rmh@aybabtu.com>
42987
42988 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42989 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42990 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42991 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42992 `kern/generic/millisleep.c'.
42993
42994 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42995 instead of grub_get_rtc().
42996 (grub_tsc_init): Initialize `tsc_boot_time'.
42997
42998 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42999 (grub_machine_init): Use grub_tsc_init() rather than
43000 installing an RTC-based handler via grub_install_get_time_ms().
43001
43002 * kern/i386/pit.c: New file.
43003 * include/grub/i386/pit.h: Likewise.
43004
43005 2008-08-05 Bean <bean123ch@gmail.com>
43006
43007 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43008
43009 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43010 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43011 (pxe_mod_SOURCES): New macro.
43012 (pxe_mod_CFLAGS): Likewise.
43013 (pxe_mod_LDFLAGS): Likewise.
43014 (pxecmd_mod_SOURCES): Likewise.
43015 (pxecmd_mod_CFLAGS): Likewise.
43016 (pxecmd_mod_LDFLAGS): Likewise.
43017
43018 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43019 (grub_pxe_call): Likewise.
43020
43021 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43022
43023 * commands/i386/pc/pxecmd.c: New file.
43024
43025 * fs/i386/pc/pxe.c: Likewise.
43026
43027 * include/grub/i386/pc/pxe.h: Likewise.
43028
43029 2008-08-05 Bean <bean123ch@gmail.com>
43030
43031 * util/console.c (grub_console_cur_color): New variable.
43032 (grub_console_standard_color): Likewise.
43033 (grub_console_normal_color): Likewise.
43034 (grub_console_highlight_color): Likewise.
43035 (color_map): Likewise.
43036 (use_color): Likewise.
43037 (NUM_COLORS): New macro.
43038 (grub_ncurses_setcolorstate): Handle color properly.
43039 (grub_ncurses_setcolor): Don't change color here, just remember the
43040 settings, color will be set in grub_ncurses_setcolorstate.
43041 (grub_ncurses_getcolor): New function.
43042 (grub_ncurses_init): Initialize color pairs.
43043 (grub_ncurses_term): New member grub_ncurses_getcolor.
43044
43045 2008-08-05 Colin D Bennett <colin@gibibit.com>
43046
43047 High resolution timer support. Implemented for x86 CPUs using TSC.
43048 Extracted generic grub_millisleep() so it's linked in only as needed.
43049 This requires a Pentium compatible CPU; if the RDTSC instruction is
43050 not supported, then it falls back on the generic grub_get_time_ms()
43051 implementation that uses the machine's RTC.
43052
43053 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43054 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43055 `kern/generic/millisleep.c'.
43056
43057 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43058 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43059
43060 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43061 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43062
43063 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43064
43065 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43066 `kern/generic/millisleep.c'.
43067
43068 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43069
43070 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43071
43072 * kern/generic/rtc_get_time_ms.c: New file.
43073
43074 * kern/generic/millisleep.c: New file.
43075
43076 * kern/misc.c: Don't include
43077 <kern/time.h> anymore.
43078 (grub_millisleep_generic): Removed.
43079
43080 * commands/sleep.c (grub_interruptible_millisleep): Uses
43081 grub_get_time_ms() instead of grub_get_rtc().
43082
43083 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43084 function.
43085 (grub_cpu_is_cpuid_supported): New inline function.
43086 (grub_cpu_is_tsc_supported): New inline function.
43087 (grub_tsc_init): New function prototype.
43088 (grub_tsc_get_time_ms): New function prototype.
43089
43090 * kern/i386/tsc.c (grub_get_time_ms): New file.
43091
43092 * include/grub/time.h: Include <grub/types.h.
43093 (grub_millisleep_generic): Removed.
43094 (grub_get_time_ms): New prototype.
43095 (grub_install_get_time_ms): New prototype.
43096 (grub_rtc_get_time_ms): New prototype.
43097
43098 * kern/time.c (grub_get_time_ms): New function.
43099 (grub_install_get_time_ms): New function.
43100
43101 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43102 <grub/time.h> anymore.
43103 (grub_millisleep): Removed.
43104 (grub_machine_init): Call grub_tsc_init.
43105
43106 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43107 get_time_ms() implementation.
43108
43109 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43110 (ieee1275_get_time_ms): New function.
43111 (grub_machine_init): Install get_time_ms() implementation.
43112
43113 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43114 (grub_machine_init): Call grub_tsc_init().
43115 (grub_millisleep): Removed.
43116
43117 * kern/ieee1275/init.c (grub_millisleep): Removed.
43118 (grub_machine_init): Install ieee1275_get_time_ms()
43119 implementation.
43120 (ieee1275_get_time_ms): New function.
43121 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43122 real work.
43123
43124 2008-08-05 Marco Gerards <marco@gnu.org>
43125
43126 * disk/ata.c: Include <grub/pci.h>.
43127 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43128 (grub_ata_initialize): Rewritten.
43129 (grub_ata_device_initialize): New function.
43130
43131 2008-08-04 Pavel Roskin <proski@gnu.org>
43132
43133 * kern/main.c: Include grub/mm.h.
43134
43135 2008-08-04 Robert Millan <rmh@aybabtu.com>
43136
43137 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43138 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43139 corruption problem).
43140
43141 2008-08-04 Robert Millan <rmh@aybabtu.com>
43142
43143 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43144 warnings introduced in my last commit.
43145
43146 2008-08-03 Robert Millan <rmh@aybabtu.com>
43147
43148 Make PCI available on all i386 architectures.
43149
43150 * include/grub/i386/pc/pci.h: Move from here ...
43151 * include/grub/i386/pci.h: ... to here.
43152
43153 * include/grub/i386/pc/pci.h: Remove.
43154 * include/grub/i386/efi/pci.h: Remove.
43155 * include/grub/x86_64/efi/pci.h: Remove.
43156
43157 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43158 `<grub/cpu/pci.h>'.
43159
43160 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43161 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43162 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43163
43164 * conf/i386-ieee1275.rmk: Likewise.
43165
43166 2008-08-03 Robert Millan <rmh@aybabtu.com>
43167
43168 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43169 (grub_console_setcursor): Make it possible to set cursor off.
43170
43171 2008-08-03 Robert Millan <rmh@aybabtu.com>
43172
43173 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43174 of modules instead of assuming which platform provides what.
43175 * util/update-grub.in: Likewise.
43176
43177 2008-08-03 Robert Millan <rmh@aybabtu.com>
43178
43179 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43180 instead of `grub_install_dos_part' to determine whether a drive needs
43181 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43182 because it can be overridden when loading GRUB via Multiboot).
43183
43184 2008-08-02 Robert Millan <rmh@aybabtu.com>
43185
43186 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43187
43188 2008-08-02 Robert Millan <rmh@aybabtu.com>
43189
43190 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43191 of informational grub_dprintf() calls.
43192
43193 2008-08-02 Robert Millan <rmh@aybabtu.com>
43194
43195 * disk/memdisk.c (memdisk_size): Don't initialize.
43196 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43197
43198 * include/grub/i386/pc/kernel.h
43199 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43200 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43201 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43202 (grub_arch_memdisk_size): Remove.
43203
43204 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43205 field (was only used to transfer a constant). Add `type' field to
43206 support multiple module types.
43207 (grub_module_iterate): New function.
43208
43209 * kern/device.c (grub_device_open): Do not hide error messages
43210 when grub_disk_open() fails. Use grub_print_error() instead.
43211
43212 * kern/i386/pc/init.c (grub_arch_modules_addr)
43213 (grub_arch_memdisk_size): Remove functions.
43214 (grub_arch_modules_addr): Return the module address in high memory
43215 (now that it isn't copied anymore).
43216
43217 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43218 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43219 decompression routine (grub_total_module_size already includes that
43220 now). Don't copy modules back to low memory.
43221
43222 * kern/main.c: Include `<grub/mm.h>'.
43223 (grub_load_modules): Split out (and use) ...
43224 (grub_module_iterate): ... this function, which iterates through
43225 module objects and runs a hook.
43226 Comment out grub_mm_init_region() call, as it would cause non-ELF
43227 modules to be overwritten.
43228
43229 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43230 the memdisk image in its own region, make it part of the module list.
43231 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43232 (main): Parse --memdisk|-m option, and pass user-provided path as
43233 parameter to generate_image().
43234 (add_segments): Pass `memdisk_path' down to load_modules().
43235 (load_modules): Embed memdisk image in module section when requested.
43236 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43237 `header.type' instead of `header.offset'.
43238
43239 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43240 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43241 (memdisk_mod_LDFLAGS): New variables.
43242 * conf/i386-coreboot.rmk: Likewise.
43243 * conf/i386-ieee1275.rmk: Likewise.
43244
43245 2008-08-02 Robert Millan <rmh@aybabtu.com>
43246
43247 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43248 (backward_relocator): New variables. Used to allocate and relocate
43249 the payload, respectively.
43250 (grub_multiboot_load_elf32): Load into heap instead of requested
43251 address, install the appropriate relocator code in each bound of
43252 the payload, and set the entry point such that
43253 grub_multiboot_real_boot() will jump to one of them.
43254
43255 * kern/i386/loader.S (grub_multiboot_payload_size)
43256 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43257 (grub_multiboot_payload_entry_offset): New variables.
43258 (grub_multiboot_real_boot): Set cpu context to what the relocator
43259 expects, and jump to the relocator instead of the payload.
43260
43261 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43262 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43263 (grub_multiboot_payload_entry_offset): Export.
43264
43265 2008-08-01 Bean <bean123ch@gmail.com>
43266
43267 * normal/menu_entry.c (editor_getline): Don't return the original
43268 string as result, as it will be released by lexer once it has done
43269 using it.
43270
43271 2008-08-01 Robert Millan <rmh@aybabtu.com>
43272
43273 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43274 within menuentries, not before them.
43275 util/grub.d/10_hurd.in: Likewise.
43276
43277 2008-08-01 Bean <bean123ch@gmail.com>
43278
43279 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43280 (bufio_mod_SOURCES): New macro.
43281 (bufio_mod_CFLAGS): Likewise.
43282 (bufio_mod_LDFLAGS): Likewise.
43283
43284 * include/grub/bufio.h: New file.
43285
43286 * io/bufio.c: Likewise.
43287
43288 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43289 (grub_video_reader_png): Use grub_buffile_open to open file.
43290
43291 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43292 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43293
43294 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43295 (grub_video_reader_tga): Use grub_buffile_open to open file.
43296
43297 * font/manager.c: Include <grub/bufio.h>.
43298 (add_font): Use grub_buffile_open to open file.
43299
43300 2008-07-31 Robert Millan <rmh@aybabtu.com>
43301
43302 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43303 ELF segments, use a macro for arbitrarily accessing any of them instead
43304 of preparing a pointer that allows access to one at a time.
43305 (grub_multiboot_load_elf64): Likewise.
43306
43307 2008-07-31 Bean <bean123ch@gmail.com>
43308
43309 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43310 GRUB_KERNEL_MACHINE_DATA_END.
43311
43312 2008-07-30 Robert Millan <rmh@aybabtu.com>
43313
43314 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43315 Increase from 0x50 to 0x60.
43316 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43317 use UUIDs to identify the root drive for them. If that's not
43318 possible, abort.
43319 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43320 check, for cross-disk installs.
43321
43322 2008-07-30 Robert Millan <rmh@aybabtu.com>
43323
43324 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43325 is non-empty, use it to set the `prefix' environment variable instead
43326 of the usual approach.
43327 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43328 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43329 environment variable instead of dummy make_install_device().
43330
43331 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43332 (start): Insert a data section, with `grub_prefix' variable.
43333 * kern/i386/linuxbios/startup.S: Likewise.
43334
43335 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43336 New variable reference.
43337 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43338 New macro. Defines offset of `grub_prefix' within startup.S (relative
43339 to `start').
43340 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43341 section within startup.S (relative to `start').
43342 * include/grub/i386/coreboot/kernel.h: Likewise.
43343
43344 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43345 Overwrite grub_prefix with its contents, at the beginning of the
43346 first segment.
43347 (main): Understand -p|--prefix.
43348
43349 2008-07-30 Robert Millan <rmh@aybabtu.com>
43350
43351 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43352
43353 2008-07-30 Robert Millan <rmh@aybabtu.com>
43354
43355 * term/i386/pc/vga_text.c (grub_console_cls): Use
43356 grub_console_gotoxy() to go back to beginning of the screen.
43357 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43358
43359 2008-07-29 Christian Franke <franke@computer.org>
43360
43361 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43362 Add conversion of emulated mount points on Cygwin.
43363
43364 2008-07-29 Christian Franke <franke@computer.org>
43365
43366 * util/update-grub.in: Add a check for admin
43367 group on Cygwin.
43368 Remove old `grub.cfg.new' before creation.
43369 Add `-f' to `mv' to handle the different filesystem
43370 semantics of Windows.
43371
43372 2008-07-29 Bean <bean123ch@gmail.com>
43373
43374 * normal/main.c (get_line): Fix buffer overflow bug.
43375
43376 2008-07-28 Robert Millan <rmh@aybabtu.com>
43377
43378 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43379 (struct grub_apple_header): New struct. Describes the layout of
43380 the partmap header.
43381 (apple_partition_map_iterate): Check the header magic as well as the
43382 partition magic (which was already being checked).
43383
43384 2008-07-28 Pavel Roskin <proski@gnu.org>
43385
43386 * genmk.rb: Add a warning to the beginning of the output that
43387 it's a generated file and should not be edited.
43388
43389 2008-07-28 Robert Millan <rmh@aybabtu.com>
43390
43391 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43392 with the same number are found, just use issue a warning with
43393 grub_dprintf(), as this error has been reported to be non-fatal.
43394
43395 2008-07-27 Robert Millan <rmh@aybabtu.com>
43396
43397 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43398 information.
43399
43400 2008-07-27 Bean <bean123ch@gmail.com>
43401
43402 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43403 (grub_fat_find_dir): Ignore case when comparing filename.
43404
43405 2008-07-27 Bean <bean123ch@gmail.com>
43406
43407 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43408 smallino, as it's more descriptive, and i8count can be confused with
43409 the other field count.
43410 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43411 inode type.
43412
43413 2008-07-27 Bean <bean123ch@gmail.com>
43414
43415 * commands/crc.c: New file.
43416
43417 * lib/crc.c: Likewise.
43418
43419 * include/grub/lib/crc.h: Likewise.
43420
43421 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43422
43423 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43424 (hexdump): Move this function to ...
43425
43426 * lib/hexdump.c: ... here.
43427
43428 * include/grub/hexdump.h: Renamed to ...
43429
43430 * include/grub/lib/hexdump.h: ... this.
43431
43432 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43433
43434 * util/grub-editenv.c: Likewise.
43435
43436 * include/envblk.h: Renamed to ...
43437
43438 * include/lib/envblk.h: ... this.
43439
43440 * util/envblk.c: Renamed to ...
43441
43442 * lib/envblk.c: ... this.
43443
43444 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43445 lib/hexdump.c.
43446 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43447 (pkglib_MODULES): Add crc.mod.
43448 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43449 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43450 (crc_mod_SOURCES): New macro.
43451 (crc_mod_CFLAGS): Likewise.
43452 (crc_mod_LDFLAGS): Likewise.
43453
43454 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43455
43456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43457
43458 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43459
43460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43461
43462 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43463
43464 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43465
43466 * commands/help.c: Include <grub/term.h>.
43467 (TERM_WIDTH): Removed. Updated all users.
43468
43469 2008-07-27 Pavel Roskin <proski@gnu.org>
43470
43471 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43472 spurious warnings about a comment within a comment.
43473
43474 2008-07-25 Robert Millan <rmh@aybabtu.com>
43475
43476 * util/getroot.c (find_root_device): Skip devices that match
43477 /dev/dm-[0-9]. This lets the real device be found for any type of
43478 abstraction (LVM, EVMS, RAID..).
43479 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43480 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43481 device is found first, find_root_device() will now skip it.
43482
43483 2008-07-24 Pavel Roskin <proski@gnu.org>
43484
43485 * include/grub/types.h: Use __builtin_bswap32() and
43486 __builtin_bswap64() with gcc 4.3 and newer.
43487
43488 2008-07-24 Christian Franke <franke@computer.org>
43489
43490 * util/i386/pc/grub-install.in: If `--debug' is specified,
43491 pass `--verbose' to grub-setup.
43492 Abort script if make_system_path_relative_to_its_root() fails.
43493
43494 2008-07-24 Bean <bean123ch@gmail.com>
43495
43496 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43497 variable `target_platform' should be `platform'.
43498
43499 2008-07-24 Bean <bean123ch@gmail.com>
43500
43501 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43502 (grub_png_init_fixed_block): New function.
43503 (grub_png_decode_image_data): Handle fixed huffman code compression.
43504
43505 2008-07-24 Bean <bean123ch@gmail.com>
43506
43507 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43508 (grub_pe2elf_SOURCES): New macro.
43509 (CLEANFILES): Add grub-pe2elf.
43510
43511 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43512 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43513 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43514 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43515 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43516 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43517 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43518 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43519 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43520 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43521 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43522 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43523 (GRUB_PE32_DT_FUNCTION): Likewise.
43524 (GRUB_PE32_REL_I386_DIR32): Likewise.
43525 (GRUB_PE32_REL_I386_REL32): Likewise.
43526 (grub_pe32_symbol): New structure.
43527 (grub_pe32_reloc): Likewise.
43528
43529 * util/grub-pe2elf.c: New file.
43530
43531 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43532 start symbol in non pc platform.
43533
43534 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43535
43536 The following patches are from Christian Franke.
43537
43538 * include/grub/dl.h: Remove .previous, gas supports this only
43539 for ELF format.
43540
43541 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43542 Remove .type, gas supports this only for ELF format.
43543
43544 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43545 nullbytes in symbol table. This fixes an infinite loop if table is
43546 zero filled.
43547
43548 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43549 TARGET_IMG_LDFLAGS and EXEEXT.
43550
43551 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43552 TARGET_IMG_LDFLAGS_AC.
43553 (grub_CHECK_STACK_ARG_PROBE): New function.
43554
43555 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43556
43557 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43558
43559 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43560 to set TARGET_IMG_LD* accordingly.
43561 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43562 Add call to grub_CHECK_STACK_ARG_PROBE.
43563 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43564
43565 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43566
43567 * genmk.rb: Add EXEEXT to CLEANFILES.
43568
43569 2008-07-23 Robert Millan <rmh@aybabtu.com>
43570
43571 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43572 define the codes for arrows and lines used for the menu).
43573 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43574 as well.
43575
43576 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43577 fonts, because the latter are too slow.
43578
43579 2008-07-21 Bean <bean123ch@gmail.com>
43580
43581 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43582 a20. Run keyboard test last, as it will cause macbook to halt.
43583
43584 2008-07-18 Pavel Roskin <proski@gnu.org>
43585
43586 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43587 load foreign architecture modules correctly anyway. Keep
43588 support for loading host architecture modules, whether we
43589 compile them or not.
43590
43591 2008-07-17 Pavel Roskin <proski@gnu.org>
43592
43593 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43594 change target_cpu. The compiler default can mismatch target_cpu
43595 in any case.
43596
43597 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43598 * kern/efi/efi.c: Likewise.
43599
43600 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43601 target compiler is functional.
43602 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43603 are set up.
43604
43605 * configure.ac: Default to efi platform for x86_64-apple. Allow
43606 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43607 adjustments from the rest, only do them if target is not
43608 explicitly given. Merge other adjustments with the final sanity
43609 check. Remove an extraneous check for supported CPU. Be
43610 specific which CPU and which platform is not supported.
43611
43612 * configure.ac: Default to pc platform for x86_64.
43613
43614 2008-07-17 Robert Millan <rmh@aybabtu.com>
43615
43616 Partial LinuxBIOS -> Coreboot rename.
43617
43618 * conf/i386-linuxbios.rmk: Renamed to ...
43619 * conf/i386-coreboot.rmk: ... this.
43620 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43621 * configure.ac: Accept "coreboot" as input platform (but maintain
43622 compatibility with "linuxbios").
43623 * include/grub/i386/linuxbios: Renamed to ...
43624 * include/grub/i386/coreboot: ... this.
43625
43626 2008-07-17 Bean <bean123ch@gmail.com>
43627
43628 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43629 (appleldr_mod_SOURCE): New variable.
43630 (appleldr_mod_CFLAGS): Likewise.
43631 (appleldr_mod_LDFLAGS): Likewise.
43632 (pci_mod_SOURCES): Likewise.
43633 (pci_mod_CFLAGS): Likewise.
43634 (pci_mod_LDFLAGS): Likewise.
43635 (lspci_mod_SOURCES): Likewise.
43636 (lspci_mod_CFLAGS): Likewise.
43637 (lspci_mod_LDFLAGS): Likewise.
43638
43639 * conf/x86_64-efi.rmk: New file.
43640
43641 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43642 macro.
43643 (grub_efidisk_write): Likewise.
43644
43645 * include/efi/api.h (efi_call_0): New macro.
43646 (efi_call_1): Likewise.
43647 (efi_call_2): Likewise.
43648 (efi_call_3): Likewise.
43649 (efi_call_4): Likewise.
43650 (efi_call_5): Likewise.
43651 (efi_call_6): Likewise.
43652
43653 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43654 grub_rescue_cmd_chainloader.
43655
43656 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43657 (grub_pe32_optional_header): Change some fields based on i386 or
43658 x86_64 platform.
43659 (GRUB_PE32_PE32_MAGIC): Likewise.
43660
43661 * include/grub/efi/uga_draw.h: New file.
43662
43663 * include/grub/elf.h (STN_ABS): New constant.
43664 (R_X86_64_NONE): Relocation constant for x86_64.
43665 (R_X86_64_64): Likewise.
43666 (R_X86_64_PC32): Likewise.
43667 (R_X86_64_GOT32): Likewise.
43668 (R_X86_64_PLT32): Likewise.
43669 (R_X86_64_COPY): Likewise.
43670 (R_X86_64_GLOB_DAT): Likewise.
43671 (R_X86_64_JUMP_SLOT): Likewise.
43672 (R_X86_64_RELATIVE): Likewise.
43673 (R_X86_64_GOTPCREL): Likewise.
43674 (R_X86_64_32): Likewise.
43675 (R_X86_64_32S): Likewise.
43676 (R_X86_64_16): Likewise.
43677 (R_X86_64_PC16): Likewise.
43678 (R_X86_64_8): Likewise.
43679 (R_X86_64_PC8): Likewise.
43680
43681 * include/grub/i386/efi/pci.h: New file.
43682
43683 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43684 Change it value based on platform.
43685 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43686 (GRUB_E820_RAM): Likewise.
43687 (GRUB_E820_RESERVED): Likewise.
43688 (GRUB_E820_ACPI): Likewise.
43689 (GRUB_E820_NVS): Likewise.
43690 (GRUB_E820_EXEC_CODE): Likewise.
43691 (GRUB_E820_MAX_ENTRY): Likewise.
43692 (grub_e820_mmap): New structure.
43693 (linux_kernel_header): Change the efi field according to different
43694 kernel version, also field from linux_kernel_header.
43695
43696 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43697
43698 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43699 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43700 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43701 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43702 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43703 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43704 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43705 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43706 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43707 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43708
43709 * include/grub/x86_64/efi/kernel.h: New file.
43710
43711 * include/grub/x86_64/efi/loader.h: Likewise.
43712
43713 * include/grub/x86_64/efi/machine.h: Likewise.
43714
43715 * include/grub/x86_64/efi/pci.h: Likewise.
43716
43717 * include/grub/x86_64/efi/time.h: Likewise.
43718
43719 * include/grub/x86_64/linux.h: Likewise.
43720
43721 * include/grub/x86_64/setjmp.h: Likewise.
43722
43723 * include/grub/x86_64/time.h: Likewise.
43724
43725 * include/grub/x86_64/types.h: Likewise.
43726
43727 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43728 GRUB_TARGET_SIZEOF_VOID_P.
43729
43730 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43731 (grub_efi_locate_handle): Likewise.
43732 (grub_efi_open_protocol): Likewise.
43733 (grub_efi_set_text_mode): Likewise.
43734 (grub_efi_stall): Likewise.
43735 (grub_exit): Likewise.
43736 (grub_reboot): Likewise.
43737 (grub_halt): Likewise.
43738 (grub_efi_exit_boot_services): Likewise.
43739 (grub_get_rtc): Likewise.
43740
43741 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43742 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43743 (grub_efi_allocate_pages): Wrap efi calls.
43744 (grub_efi_free_pages): Wrap efi calls.
43745 (grub_efi_get_memory_map): Wrap efi calls.
43746
43747 * kern/x86_64/dl.c: New file.
43748
43749 * kern/x86_64/efi/callwrap.S: Likewise.
43750
43751 * kern/x86_64/efi/startup.S: Likewise.
43752
43753 * loader/efi/appleloader.c: Likewise.
43754
43755 * loader/efi/chainloader.c (cmdline): New variable.
43756 (grub_chainloader_unload): Wrap efi calls.
43757 (grub_chainloader_boot): Likewise.
43758 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43759 command line.
43760
43761 * loader/efi/chainloader_normal.c (chainloader_command):
43762 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43763 command line.
43764
43765 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43766 method.
43767 (grub_e820_add_region): New function.
43768 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43769 booting.
43770 (grub_find_video_card): New function.
43771 (grub_linux_setup_video): New function.
43772 (grub_rescue_cmd_linux): Probe for video information.
43773
43774 * normal/x86_64/setjmp.S: New file.
43775
43776 * term/efi/console.c (map_char): New function.
43777 (grub_console_putchar): Map unicode char.
43778 (grub_console_checkkey): Wrap efi calls.
43779 (grub_console_getkey): Likewise.
43780 (grub_console_getwh): Likewise.
43781 (grub_console_gotoxy): Likewise.
43782 (grub_console_cls): Likewise.
43783 (grub_console_setcolorstate): Likewise.
43784 (grub_console_setcursor): Likewise.
43785
43786 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43787
43788 2008-07-16 Pavel Roskin <proski@gnu.org>
43789
43790 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43791 format strings.
43792
43793 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43794 pointer, not an integer. This fixes a warning and prevents
43795 precision loss on 64-bit systems.
43796 (relocate_addresses): Remove unneeded cast.
43797
43798 2008-07-15 Pavel Roskin <proski@gnu.org>
43799
43800 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43801
43802 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43803
43804 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43805 Fix comparison between signed and unsigned.
43806
43807 * include/grub/i386/ieee1275/console.h: Declare
43808 grub_console_init() and grub_console_fini().
43809
43810 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43811 It's empty and unused.
43812
43813 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43814 beginning to avoid warnings with some compilers.
43815
43816 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43817 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43818
43819 2008-07-14 Pavel Roskin <proski@gnu.org>
43820
43821 * kern/env.c (grub_register_variable_hook): Don't copy empty
43822 string, it leaks memory. Pass "" to grub_env_set(), it should
43823 handle constant strings.
43824
43825 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43826 * commands/cmp.c (grub_cmd_cmp): Likewise.
43827 * kern/dl.c (grub_dl_flush_cache): Likewise.
43828 (grub_dl_load_core): Likewise.
43829 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43830 (grub_elf64_load_phdrs): Likewise.
43831
43832 2008-07-13 Pavel Roskin <proski@gnu.org>
43833
43834 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43835 between signed and unsigned.
43836 (LzmaEnc_Finish): Fix warning about an unused parameter.
43837
43838 2008-07-13 Bean <bean123ch@gmail.com>
43839
43840 * Makefile.in (enable_lzo): New rule.
43841
43842 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43843
43844 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43845
43846 * boot/i386/pc/lnxboot.S: #include <config.h>.
43847
43848 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43849 its value according to the compression algorithm used, lzo or lzma.
43850
43851 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43852 compression algorithm according to configure macro.
43853
43854 * kern/i386/pc/startup.S (codestart): Likewise.
43855
43856 * kern/i386/pc/lzma_decode.S: New file.
43857
43858 * include/grub/lib/LzFind.h: Likewise.
43859
43860 * include/grub/lib/LzHash.h: Likewise.
43861
43862 * include/grub/lib/LzmaDec.h: Likewise.
43863
43864 * include/grub/lib/LzmaEnc.h: Likewise.
43865
43866 * include/grub/lib/LzmaTypes.h: Likewise.
43867
43868 * lib/LzFind.c: Likewise.
43869
43870 * lib/LzmaDec.c: Likewise.
43871
43872 * lib/LzmaEnc.c: Likewise.
43873
43874 2008-07-13 Bean <bean123ch@gmail.com>
43875
43876 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43877 (grub_ext4_extent_header): New structure.
43878 (grub_ext4_extent): Likewise.
43879 (grub_ext4_extent_idx): Likewise.
43880 (grub_ext4_find_leaf): New function.
43881 (grub_ext2_read_block): Handle extents.
43882
43883 2008-07-12 Robert Millan <rmh@aybabtu.com>
43884
43885 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43886
43887 2008-07-11 Robert Millan <rmh@aybabtu.com>
43888
43889 * util/grub.d/40_custom.in: New file. Example on how to add custom
43890 entries to /etc/grub.d.
43891 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43892 40_custom (implicitly, by merging all the grub.d rules).
43893
43894 2008-07-11 Pavel Roskin <proski@gnu.org>
43895
43896 * commands/read.c (grub_getline): Fix invalid memory access.
43897 Don't add newline to the variable value.
43898
43899 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43900 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43901 (serial_hw_get_port): Check validity of the port number.
43902 (grub_cmd_serial): Check return value of serial_hw_get_port().
43903
43904 2008-07-07 Pavel Roskin <proski@gnu.org>
43905
43906 * boot/i386/pc/diskboot.S (notification_string): Replace
43907 "Loading kernel" with just "loading". This is shorter, less
43908 confusing and saves a few bytes for possible future changes.
43909
43910 2008-07-05 Pavel Roskin <proski@gnu.org>
43911
43912 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43913 size for ATAPI devices, they are undefined. Output sector
43914 number in decimal form.
43915
43916 * disk/ata.c: Use named constants for status bits.
43917
43918 2008-07-04 Pavel Roskin <proski@gnu.org>
43919
43920 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43921 grub_addr_t before casting it to the void pointer to fix a
43922 warning. Non-addressable regions are discarded earlier.
43923 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43924 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43925 (check_signature): Don't shadow table_header.
43926 (grub_linuxbios_table_iterate): Cast numeric constants to
43927 grub_linuxbios_table_header_t.
43928 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43929 grub_stop().
43930
43931 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43932 prevent warnings.
43933
43934 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43935 pointer, which can cause warnings. Support 64-bit addresses.
43936
43937 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43938 of sizeof(long). This fixes PowerPC image generation on x86_64.
43939
43940 2008-07-04 Robert Millan <rmh@aybabtu.com>
43941
43942 This fixes a performance issue when pc & gpt partmap iterators
43943 didn't abort iteration even after our hook found what it was
43944 looking for (often causing expensive probes of non-existent drives).
43945
43946 Some callers relied on previous buggy behaviour, since they would
43947 raise an error when their own hooks caused early abortion of its
43948 iteration.
43949
43950 * kern/device.c (grub_device_open): Improve error message.
43951 * disk/lvm.c (grub_lvm_open): Likewise.
43952 * disk/raid.c (grub_raid_open): Likewise.
43953
43954 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43955 when hook requests it, independently of grub_errno.
43956 (pc_partition_map_probe): Do not fail when find_func() caused
43957 early abortion of pc_partition_map_iterate().
43958
43959 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43960 when hook requests it, independently of grub_errno.
43961 (gpt_partition_map_probe): Do not fail when find_func() caused
43962 early abortion of gpt_partition_map_iterate().
43963
43964 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43965 when hook requests it, independently of grub_errno. Do not fail when
43966 part_map_iterate_hook() caused early abortion of p->iterate().
43967
43968 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43969 when grub_partition_iterate() returned with non-zero.
43970
43971 2008-07-03 Pavel Roskin <proski@gnu.org>
43972
43973 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43974 like we do in grub_ata_pio_read().
43975 (grub_ata_readwrite): Always write individual sectors. Fix the
43976 sector count for the remainder.
43977 (grub_ata_write): Enable writing to ATA devices. Correctly
43978 report error for ATAPI devices.
43979
43980 2008-07-02 Pavel Roskin <proski@gnu.org>
43981
43982 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43983 warning.
43984
43985 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43986 for every read sector, we already increment it for the whole
43987 batch. This fixes reading more than 256 sectors at once.
43988
43989 * util/grub-editenv.c (cmd_info): Cast argument to long
43990 explicitly. ptrdiff_t reduces to int on i386.
43991
43992 * util/grub-editenv.c (main): Be specific which parameter is
43993 missing.
43994
43995 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43996 (memdisk): Make memdisk_orig_addr a pointer.
43997
43998 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43999 for file offsets, use grub_off_t instead. Fix printf format
44000 warnings.
44001
44002 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44003 there. Real unexpected warnings should not drown in the noise
44004 about known problems.
44005
44006 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44007 grub_disk_addr_t for memory addresses.
44008
44009 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44010 explicitly to fix a warning.
44011
44012 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44013
44014 * Makefile.in (MODULE_LDFLAGS): New variable.
44015 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44016 the linker accepts --build-id=none.
44017 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44018 MODULE_LDFLAGS.
44019 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44020
44021 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44022 those in Linux XFS code. Provide a way to access 64-bit parent
44023 inode.
44024 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44025 the end of struct grub_xfs_dir_header.
44026
44027 2008-07-02 Bean <bean123ch@gmail.com>
44028
44029 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44030 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44031 and GRUB_IEEE1275_FLAG_NO_ANSI.
44032
44033 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44034 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44035 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44036
44037 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44038 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44039
44040 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44041 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44042
44043 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44044 esc sequence on non ANSI terminal.
44045 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44046
44047 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44048 beginning of file.
44049
44050 2008-07-02 Bean <bean123ch@gmail.com>
44051
44052 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44053 (grub_editenv_SOURCES): New variable.
44054 (pkglib_MODULES): Add loadenv.mod.
44055 (loadenv_mod_SOURCES): New variable.
44056 (loadenv_mod_CFLAGS): Likewise.
44057 (loadenv_mod_LDFLAGS): Likewise.
44058
44059 * include/grub/envblk.h: New file.
44060
44061 * util/envblk.c: New file.
44062
44063 * util/grub-editenv.c: New file.
44064
44065 * commands/loadenv.c: New file.
44066
44067 2008-07-01 Pavel Roskin <proski@gnu.org>
44068
44069 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44070 not unsigned char. This fixes warnings and is consistent with
44071 other tags.
44072
44073 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44074
44075 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44076
44077 * term/tparm.c (analyze): Always set *popcount.
44078
44079 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44080 cast to fix a warning.
44081
44082 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44083 cast to suppress a warning.
44084
44085 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44086 grub_fshelp_read_file() expects.
44087
44088 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44089 write uuid as a 32-bit value in CPU byte order, so declare and
44090 use it as such.
44091
44092 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44093 long if the format specifier expects it.
44094 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44095 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44096 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44097 long to fix a warning.
44098 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44099 grub_dprintf() arguments to fix warnings.
44100
44101 2008-06-30 Pavel Roskin <proski@gnu.org>
44102
44103 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44104 install_bsd_part immediately before core.img is embedded or
44105 modified on disk. This fixes core.img verification if core.img
44106 cannot be embedded.
44107
44108 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44109 core_path to calculate the blocklist.
44110 Patch from Javier Martín <lordhabbit@gmail.com>
44111
44112 2008-06-29 Robert Millan <rmh@aybabtu.com>
44113
44114 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44115 block to disk block.
44116 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44117 Patch from Niels Böhm <bitbucket@arcor.de>
44118
44119 2008-06-29 Robert Millan <rmh@aybabtu.com>
44120
44121 * util/update-grub_lib.in (font_path): Search for fonts in
44122 /boot/grub first, which is more likely to be readable (we aren't
44123 deciding where fonts live, just looking for them).
44124
44125 2008-06-26 Pavel Roskin <proski@gnu.org>
44126
44127 * util/biosdisk.c (read_device_map): Don't leave dead map
44128 entries for devices failing stat() check.
44129
44130 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44131 core_path_dev for the core.img path on the target device.
44132
44133 2008-06-26 Robert Millan <rmh@aybabtu.com>
44134
44135 * disk/fs_uuid.c: New file.
44136 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44137 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44138 (fs_uuid_mod_LDFLAGS): New variables.
44139 * include/grub/disk.h (grub_disk_dev_id): Add
44140 `GRUB_DISK_DEVICE_UUID_ID'.
44141 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44142 implement iterate().
44143
44144 2008-06-26 Robert Millan <rmh@aybabtu.com>
44145
44146 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44147 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44148 Linux image includes no initrd.
44149
44150 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44151
44152 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44153 call to resolve the core image location that effectively appended the
44154 name twice.
44155
44156 2008-06-21 Robert Millan <rmh@aybabtu.com>
44157
44158 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44159 call from here ...
44160
44161 * util/grub.d/10_hurd.in: ... to here ...
44162 * util/grub.d/10_linux.in: ... and here.
44163
44164 2008-06-19 Robert Millan <rmh@aybabtu.com>
44165
44166 * kern/main.c (grub_main): Export `prefix' variable immediately
44167 after it has been set by grub_machine_set_prefix().
44168
44169 2008-06-19 Robert Millan <rmh@aybabtu.com>
44170
44171 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44172 search result when not saving to variable, not the other way around.
44173 When saving to variable, abort iteration as soon as a match is found.
44174
44175 2008-06-19 Robert Millan <rmh@aybabtu.com>
44176
44177 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44178 check for partition that provides /boot/grub. Its logic is flawed,
44179 as it prevents prepare_grub_to_access_device() from being called
44180 multiple times.
44181
44182 2008-06-19 Robert Millan <rmh@aybabtu.com>
44183
44184 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44185 "insmod" command directly when abstraction modules are needed,
44186 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44187 since it had already been processed).
44188
44189 2008-06-19 Pavel Roskin <proski@gnu.org>
44190
44191 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44192 changed. This is needed in case GRUB_LIBDIR changes.
44193 * conf/i386-ieee1275.rmk: Likewise.
44194 * conf/i386-linuxbios.rmk: Likewise.
44195 * conf/i386-pc.rmk: Likewise.
44196 * conf/powerpc-ieee1275.rmk: Likewise.
44197
44198 2008-06-18 Pavel Roskin <proski@gnu.org>
44199
44200 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44201 kernel_elf_symlist.c to symlist.c for consistency with other
44202 architectures. Update all users.
44203 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44204
44205 2008-06-18 Robert Millan <rmh@aybabtu.com>
44206
44207 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44208 it in prefix.
44209
44210 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44211 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44212 a RAID device, run setup() for all members independently on whether
44213 LVM abstraction is being used.
44214 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44215 If grub-mkimage has set `*install_dos_part == -2', don't override this
44216 value.
44217 Perform *install_dos_part adjustments independently on whether
44218 we're embedding or not.
44219 Clarify error message when image is too big for embedding.
44220 Remove duplicate *install_dos_part stanza.
44221
44222 2008-06-17 Robert Millan <rmh@aybabtu.com>
44223
44224 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44225 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44226 variables.
44227 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44228 values in grub_ofconsole_normal_color and
44229 grub_ofconsole_highlight_color (they're not directly related to
44230 background and foreground).
44231 (grub_ofconsole_setcolorstate): Extract background and foreground
44232 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44233
44234 2008-06-17 Robert Millan <rmh@aybabtu.com>
44235
44236 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44237 /boot/grub for the check in last commit, not /boot (they could be
44238 different partitions).
44239
44240 2008-06-16 Robert Millan <rmh@aybabtu.com>
44241
44242 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44243 asked to setup access for the same partition that provides /boot,
44244 don't bother using UUIDs since our root already has the value we
44245 want.
44246
44247 2008-06-16 Robert Millan <rmh@aybabtu.com>
44248
44249 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44250 I2O devices.
44251 Patch from Sven Mueller <sven@debian.org>.
44252
44253 2008-06-16 Robert Millan <rmh@aybabtu.com>
44254
44255 * util/update-grub.in: Check for $EUID instead of $UID.
44256 Reported by Vincent Zweije.
44257
44258 2008-06-16 Bean <bean123ch@gmail.com>
44259
44260 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44261 (grub_ext2_read_block): Likewise.
44262 (grub_ext2_read_inode): Likewise.
44263 (grub_ext2_mount): Likewise.
44264 (grub_ext2_close): Likewise.
44265 (grub_ext3_get_journal): Removed.
44266
44267 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44268 (grub_reiserfs_read_symlink): Likewise.
44269 (grub_reiserfs_mount): Likewise.
44270 (grub_reiserfs_open): Likewise.
44271 (grub_reiserfs_read): Likewise.
44272 (grub_reiserfs_close): Likewise.
44273 (grub_reiserfs_get_journal): Removed.
44274
44275 * fs/fshelp.c (grub_fshelp_read): Removed.
44276 (grub_fshelp_map_block): Likewise.
44277
44278 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44279 (grub_fshelp_journal): Likewise.
44280 (grub_fshelp_read): Likewise.
44281 (grub_fshelp_map_block): Likewise.
44282
44283 2008-06-16 Pavel Roskin <proski@gnu.org>
44284
44285 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44286 floating point anymore.
44287 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44288
44289 2008-06-15 Pavel Roskin <proski@gnu.org>
44290
44291 * commands/ls.c (grub_ls_list_files): Use integer calculations
44292 for human readable format, avoid floating point use.
44293 * kern/misc.c (grub_ftoa): Remove.
44294 (grub_vsprintf): Remove floating point support.
44295
44296 2008-06-15 Robert Millan <rmh@aybabtu.com>
44297
44298 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44299 devices.
44300 Reported by Max Vozeler.
44301
44302 2008-06-15 Robert Millan <rmh@aybabtu.com>
44303
44304 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44305 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44306 skipped later.
44307 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44308 the beginning of the prefix.
44309
44310 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44311 It is assumed that if we have a memdisk, grub-mkimage has set
44312 grub_prefix to include the "(memdisk)" drive in it.
44313
44314 2008-06-15 Robert Millan <rmh@aybabtu.com>
44315
44316 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44317 Initialize keyboard controller after registering the terminal, so that
44318 grub_printf() can be called from grub_keyboard_controller_init().
44319
44320 2008-06-15 Robert Millan <rmh@aybabtu.com>
44321
44322 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44323 extent-btree which is written as big endian on disk.
44324 Reported by Alain Greppin <al@chilibi.org>.
44325
44326 2008-06-14 Robert Millan <rmh@aybabtu.com>
44327
44328 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44329 * util/i386/pc/grub-install.in (modules): Likewise.
44330
44331 2008-06-13 Pavel Roskin <proski@gnu.org>
44332
44333 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44334
44335 2008-06-13 Bean <bean123ch@gmail.com>
44336
44337 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44338
44339 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44340
44341 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44342 to indicate sparse block.
44343
44344 2008-06-12 Pavel Roskin <proski@gnu.org>
44345
44346 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44347 number, grub_fshelp_read() does it for us.
44348
44349 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44350 linear disk read with journal translation.
44351 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44352 * include/grub/fshelp.h: Declare grub_fshelp_read().
44353
44354 2008-06-09 Pavel Roskin <proski@gnu.org>
44355
44356 * fs/minix.c (grub_minix_mount): Handle error reading
44357 superblock.
44358
44359 2008-06-08 Robert Millan <rmh@aybabtu.com>
44360
44361 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44362 don't append the RAID prefix afterwards.
44363 Reported by Clint Adams.
44364
44365 2008-06-08 Robert Millan <rmh@aybabtu.com>
44366
44367 Based on description from Pavel:
44368 * kern/disk.c (grub_disk_check_range): Rename to ...
44369 (grub_disk_adjust_range): ... this. Add a comment explaining the
44370 tasks performed by this function.
44371
44372 2008-06-08 Robert Millan <rmh@aybabtu.com>
44373
44374 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44375 `num_serial' (for consistency with other variables).
44376 (struct grub_ntfs_data): Add `uuid' member.
44377 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44378 (grub_ntfs_uuid): New function.
44379 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44380
44381 2008-06-07 Pavel Roskin <proski@gnu.org>
44382
44383 * util/biosdisk.c (open_device): Revert last change to the
44384 function, it broke installation. The sector needs to be
44385 different dependent on which device is opened.
44386
44387 2008-06-06 Robert Millan <rmh@aybabtu.com>
44388
44389 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44390 rest of GRUB, and breakage doesn't happen if its value were modified.
44391
44392 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44393 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44394 a constant (same value).
44395 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44396 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44397
44398 2008-06-06 Robert Millan <rmh@aybabtu.com>
44399
44400 * util/biosdisk.c (open_device): Do not modify sector offset when
44401 accessing a partition. kern/disk.c already handles this for us.
44402
44403 2008-06-06 Robert Millan <rmh@aybabtu.com>
44404
44405 * util/grub-emu.c (grub_machine_init): Move code in this function from
44406 here ...
44407 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44408 segfault in case grub_printf() is called).
44409
44410 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44411 grub_probe. Update all users not to explicitly add it again.
44412 (grub_device): New variable; contains corresponding device for grubdir.
44413 (fs_module, partmap_module, devabstraction_module): Pass
44414 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44415 every time.
44416
44417 2008-06-05 Robert Millan <rmh@aybabtu.com>
44418
44419 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44420 is found, print it (same layout as with labels).
44421
44422 2008-06-04 Robert Millan <rmh@aybabtu.com>
44423
44424 * util/biosdisk.c (get_drive): Rename to ...
44425 (find_grub_drive): ... this. Update all users.
44426
44427 (get_os_disk): Rename to ...
44428 (convert_system_partition_to_system_disk): ... this. Update all users.
44429
44430 (find_drive): Rename to ...
44431 (find_system_device): ... this. Update all users.
44432
44433 2008-06-04 Robert Millan <rmh@aybabtu.com>
44434
44435 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44436 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44437 (make_device_map): Likewise.
44438
44439 2008-06-01 Robert Millan <rmh@aybabtu.com>
44440
44441 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44442 before dereferencing it.
44443
44444 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44445 union with fat12/fat16-specific ones. Add some new fields, including
44446 `num_serial' for both versions.
44447 (struct grub_fat_data): Add `uuid' member.
44448 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44449 names. Initialize `data->uuid' using `num_serial'.
44450 (grub_fat_uuid): New function.
44451 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44452
44453 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44454 (grub_reiserfs_uuid): New function.
44455 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44456 member.
44457
44458 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44459 (grub_xfs_uuid): New function.
44460 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44461
44462 2008-06-01 Robert Millan <rmh@aybabtu.com>
44463
44464 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44465 code that is backward compatible with pre-uuid search command.
44466
44467 2008-05-31 Robert Millan <rmh@aybabtu.com>
44468
44469 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44470 floppies after everything else, to ensure floppy drive isn't accessed
44471 unnecessarily (patch from Bean).
44472
44473 2008-05-31 Robert Millan <rmh@aybabtu.com>
44474
44475 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44476 not print device names when we were asked to set a variable.
44477
44478 2008-05-31 Robert Millan <rmh@aybabtu.com>
44479
44480 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44481 using "cursor-on" and "cursor-off" commands (understood at least by
44482 the Open Firmware flavour on OLPC).
44483
44484 2008-05-31 Michael Gorven <michael@gorven.za.net>
44485
44486 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44487 on and off sequences.
44488
44489 2008-05-31 Robert Millan <rmh@aybabtu.com>
44490
44491 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44492 * util/update-grub.in: Likewise.
44493
44494 2008-05-30 Pavel Roskin <proski@gnu.org>
44495
44496 * util/biosdisk.c (linux_find_partition): Simplify logic and
44497 make the code more universal. Keep special processing for
44498 devfs, but use a simple rule for all other devices. If the
44499 device ends with a number, append 'p' and the partition number.
44500 Otherwise, append only the partition number.
44501
44502 2008-05-30 Robert Millan <rmh@aybabtu.com>
44503
44504 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44505 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44506 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44507 the `root' parameter to Linux.
44508
44509 2008-05-30 Robert Millan <rmh@aybabtu.com>
44510
44511 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44512 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44513 --fs_uuid with --fs-uuid.
44514 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44515 all filesystems support them).
44516
44517 2008-05-30 Robert Millan <rmh@aybabtu.com>
44518
44519 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44520 grub_printf() flags, since we're printing in units of 2 bytes.
44521
44522 2008-05-30 Robert Millan <rmh@aybabtu.com>
44523
44524 * util/grub.d/00_header.in: Remove obsolete comment referencing
44525 convert_system_path_to_grub_path().
44526 * util/update-grub.in: Likewise.
44527 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44528 (convert_system_path_to_grub_path): Add a warning message explaining
44529 that this function is deprecated. Rely on is_path_readable_by_grub()
44530 for the readability checks.
44531 (font_path): Use is_path_readable_by_grub() for the readability
44532 check rather than convert_system_path_to_grub_path().
44533
44534 2008-05-30 Robert Millan <rmh@aybabtu.com>
44535
44536 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44537 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44538 converting it first.
44539 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44540 grub.cfg for access to font file, and afterwards call it again to set
44541 the root device.
44542
44543 2008-05-30 Robert Millan <rmh@aybabtu.com>
44544
44545 * commands/search.c (options): Add --fs_uuid option.
44546 (search_fs_uuid): New function.
44547 (grub_cmd_search): Fix --set argument passing.
44548 Use search_fs_uuid() when requested via --fs_uuid.
44549 (grub_search_init): Update help message.
44550 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44551 and redeclare it as an array of 16-bit words.
44552 (grub_ext2_uuid): New function.
44553 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44554 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44555 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44556 (GRUB_DEVICE_BOOT_UUID): New variables.
44557 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44558 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44559 whenever possible.
44560 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44561 just assume `root' variable has the right value.
44562 * util/grub.d/10_linux.in: Likewise.
44563 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44564 via PRINT_FS_UUID.
44565 (main): Recognise `-t fs_uuid' argument.
44566
44567 2008-05-30 Robert Millan <rmh@aybabtu.com>
44568
44569 * util/biosdisk.c (map): Redefine structure to hold information
44570 about GRUB drive name.
44571 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44572 drive names.
44573 (call_hook): Remove.
44574 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44575 member. Assume drive has partitions.
44576 (grub_util_biosdisk_open): Access device names via `.device' struct
44577 member.
44578 (open_device): Likewise.
44579 (find_drive): Likewise.
44580 (read_device_map): Adjust map[] usage to match the new struct
44581 definition. Don't check for duplicates (still possible, but not cheap
44582 anymore).
44583 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44584 (make_device_name): Remove assumption of BIOS-like drive names.
44585
44586 2008-05-30 Pavel Roskin <proski@gnu.org>
44587
44588 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44589 compiling execute.c doesn't need grub_script.tab.h anymore.
44590 (normal/command.c_DEPENDENCIES): Likewise.
44591 (normal/function.c_DEPENDENCIES): Likewise.
44592 * conf/i386-ieee1275.rmk: Likewise.
44593 * conf/i386-linuxbios.rmk: Likewise.
44594 * conf/i386-pc.rmk: Likewise.
44595 * conf/powerpc-ieee1275.rmk: Likewise.
44596 * conf/sparc64-ieee1275.rmk: Likewise.
44597
44598 2008-05-29 Pavel Roskin <proski@gnu.org>
44599
44600 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44601 when scanning metadata for volume group name.
44602
44603 * include/grub/script.h: Don't include grub_script.tab.h. It's
44604 a generated file, which may only be included from the files with
44605 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44606 use union YYSTYPE, as the later allows forward declaration.
44607 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44608
44609 2008-05-29 Robert Millan <rmh@aybabtu.com>
44610
44611 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44612 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44613 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44614 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44615 scan codes.
44616
44617 2008-05-29 Robert Millan <rmh@aybabtu.com>
44618
44619 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44620 control key combinations.
44621
44622 2008-05-29 Robert Millan <rmh@aybabtu.com>
44623
44624 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44625 * util/ieee1275/grub-install.in: ... to here.
44626 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44627 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44628 (grub_install_SOURCES): Likewise.
44629
44630 2008-05-29 Robert Millan <rmh@aybabtu.com>
44631
44632 * fs/affs.c: Update copyright year.
44633 * fs/ext2.c: Likewise.
44634 * fs/fshelp.c: Likewise.
44635 * fs/hfsplus.c: Likewise.
44636 * fs/ntfs.c: Likewise.
44637 * fs/xfs.c: Likewise.
44638 * include/grub/fshelp.h: Likewise.
44639 * util/grub-mkdevicemap.c: Likewise.
44640
44641 2008-05-28 Robert Millan <rmh@aybabtu.com>
44642
44643 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44644 might need to be fatfs to support some firmware implementations
44645 (e.g. OFW or EFI).
44646
44647 2008-05-28 Robert Millan <rmh@aybabtu.com>
44648
44649 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44650 devices.
44651 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44652 (make_device_map): Likewise.
44653
44654 2008-05-20 Bean <bean123ch@gmail.com>
44655
44656 * fs/fshelp.c (grub_fshelp_map_block): New function.
44657 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44658 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44659
44660 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44661 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44662 (grub_fshelp_journal): New structure.
44663 (grub_fshelp_map_block): New function prototype.
44664 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44665 (grub_fshelp_map_block): Likewise.
44666
44667 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44668 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44669 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44670 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44671 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44672 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44673 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44674 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44675 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44676 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44677 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44678 (grub_ext2_sblock): New members for journal support.
44679 (grub_ext3_journal_header): New structure.
44680 (grub_ext3_journal_revoke_header): Likewise.
44681 (grub_ext3_journal_block_tag): Likewise.
44682 (grub_ext3_journal_sblock): Likewise.
44683 (grub_fshelp_node): New members logfile and journal.
44684 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44685 grub_fshelp_map_block to get real block number.
44686 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44687 number.
44688 (grub_ext2_read_inode): Likewise.
44689 (grub_ext3_get_journal): New function.
44690 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44691 (grub_ext2_close): Release memory used by journal.
44692
44693 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44694 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44695 (grub_reiserfs_transaction_header): Renamed to
44696 grub_reiserfs_description_block, replace field data with real_blocks.
44697 (grub_reiserfs_commit_block): New structure.
44698 (grub_reiserfs_data): New member journal.
44699 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44700 number.
44701 (grub_reiserfs_read_symlink): Likewise.
44702 (grub_reiserfs_iterate_dir): Likewise.
44703 (grub_reiserfs_open): Likewise.
44704 (grub_reiserfs_read): Likewise.
44705 (grub_reiserfs_get_journal): New function.
44706 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44707 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44708 using grub_reiserfs_get_journal.
44709 (grub_reiserfs_close): Release memory used by journal.
44710
44711 * fs/affs.c (grub_affs_read_block): Change block type to
44712 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44713
44714 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44715
44716 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44717
44718 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44719
44720 * fs/udf.c (grub_udf_read_block): Change block type to
44721 grub_disk_addr_t. Use type cast to avoid warning.
44722
44723 * fs/xfs.c (grub_xfs_read_block): Likewise.
44724
44725 2008-05-16 Christian Franke <franke@computer.org>
44726
44727 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44728 to ensure that break with ESC will always work.
44729 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44730 Remove ESC from keyboard queue.
44731
44732 2008-05-16 Christian Franke <franke@computer.org>
44733
44734 * util/biosdisk.c: [__CYGWIN__] Add includes.
44735 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44736 (get_os_disk): Move variable declarations to OS specific
44737 parts to avoid warning.
44738 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44739 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44740 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44741 Cygwin.
44742 * util/getroot.c: [__CYGWIN__] Add includes.
44743 (strip_extra_slashes): Fix "/" case.
44744 [__CYGWIN__] (get_win32_path): New function.
44745 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44746 [__CYGWIN__] (find_root_device): Disable.
44747 [__CYGWIN__] (get_bootsec_serial): New function.
44748 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44749 [__linux__] (grub_guess_root_device): Add early returns to simplify
44750 structure.
44751 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44752 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44753 check for Linux only.
44754
44755 2008-05-15 Bean <bean123ch@gmail.com>
44756
44757 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44758 keyboard hang problem in apple's intel mac.
44759
44760 2008-05-09 Robert Millan <rmh@aybabtu.com>
44761
44762 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44763 devices.
44764 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44765 (make_device_map): Likewise.
44766 Reported by Aurelien Jarno <aurel32@debian.org>
44767
44768 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44769
44770 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44771 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44772 (make_device_map): Output entries for xvd type disks.
44773
44774 2008-05-07 Robert Millan <rmh@aybabtu.com>
44775
44776 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44777 devices.
44778 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44779 (make_device_map): Likewise.
44780 Reported by Roland Dreier <rdreier@cisco.com>
44781
44782 2008-05-07 Robert Millan <rmh@aybabtu.com>
44783
44784 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44785 grub_strstr() call. Correct a few mistakes in failure path handling.
44786
44787 2008-05-06 Robert Millan <rmh@aybabtu.com>
44788
44789 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44790 Do not print a trailing slash (therefore, the root directory is an
44791 empty string).
44792 (convert_system_path_to_grub_path): Do not remove trailing slash
44793 from make_system_path_relative_to_its_root() output.
44794
44795 * util/i386/pc/grub-install.in: Add trailing slash to output from
44796 make_system_path_relative_to_its_root().
44797
44798 2008-05-06 Robert Millan <rmh@aybabtu.com>
44799
44800 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44801 ensures that output lines aren't intermangled with those sent to
44802 stderr (via grub_util_info()).
44803 * util/grub-probe.c (grub_refresh): Likewise.
44804 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44805
44806 2008-05-05 Christian Franke <franke@computer.org>
44807
44808 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44809 Add Cygwin device names.
44810 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44811 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44812 (check_device): Return error instead of success on empty name.
44813 (make_device_map): Move label inside linux specific code to
44814 prevent compiler warning.
44815
44816 2008-04-30 Robert Millan <rmh@aybabtu.com>
44817
44818 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44819 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44820 first boot option.
44821 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44822
44823 2008-04-29 Robert Millan <rmh@aybabtu.com>
44824
44825 * docs/grub.cfg: New file (example GRUB configuration).
44826
44827 2008-04-26 Robert Millan <rmh@aybabtu.com>
44828
44829 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44830 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44831 and `disk/ieee1275/nand.c'.
44832
44833 2008-04-25 Bean <bean123ch@gmail.com>
44834
44835 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44836 i386-linuxbios.
44837
44838 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44839 change the buffer size to 4096 for cdrom device.
44840
44841 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44842 and nand.mod.
44843 (_linux_mod_SOURCES): New variable.
44844 (_linux_mod_CFLAGS): Likewise.
44845 (_linux_mod_LDFLAGS): Likewise.
44846 (linux_mod_SOURCES): Likewise.
44847 (linux_mod_CFLAGS): Likewise.
44848 (linux_mod_LDFLAGS): Likewise.
44849 (nand_mod_SOURCES): Likewise.
44850 (nand_mod_CFLAGS): Likewise.
44851 (nand_mod_LDFLAGS): Likewise.
44852
44853 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44854 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44855 type property. (nand device in olpc don't have this property)
44856
44857 * include/grub/disk.h (grub_disk_dev_id): New macro
44858 GRUB_DISK_DEVICE_NAND_ID.
44859
44860 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44861 function prototype.
44862 (grub_rescue_cmd_initrd): Likewise.
44863
44864 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44865 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44866 ofw_cif_handler and ofw_idt, adjust padding number.
44867
44868 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44869 GRUB_MACHINE_IEEE1275 is defined.
44870
44871 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44872 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44873
44874 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44875 on nested function heap_init.
44876 (grub_upper_mem): New variable for i386-ieee1275.
44877 (grub_get_extended_memory): New function for i386-ieee1275.
44878 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44879
44880 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44881 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44882 property.
44883
44884 * loader/i386/ieee1275/linux.c: New file.
44885
44886 * loader/i386/ieee1275/linux_normal.c: New file.
44887
44888 * disk/ieee1275/nand.c: New file.
44889
44890 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44891
44892 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44893 value.
44894 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44895
44896 2008-04-18 Robert Millan <rmh@aybabtu.com>
44897
44898 Restructures early code path on ieee1275 to unify grub_main() as
44899 the first C function that is executed in every platform.
44900
44901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44902 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44903 cmain().
44904 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44905 * kern/ieee1275/cmain.c (cmain): Rename to ...
44906 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44907 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44908 at the beginning.
44909
44910 2008-04-18 Robert Millan <rmh@aybabtu.com>
44911
44912 * util/update-grub.in: Fix syntax error when setting
44913 `GRUB_PRELOAD_MODULES'.
44914 Reported by Stephane Chazelas <stephane@artesyncp.com>
44915
44916 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44917
44918 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44919 section into account, newer toolchains generate unique build ids
44920 * configure.ac: remove the test for --build-id=none acceptance,
44921 we want build ids to be preserved
44922 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44923 far from other sections don't cause the raw binary images grow
44924 size
44925
44926 2008-04-15 Robert Millan <rmh@aybabtu.com>
44927
44928 * disk/lvm.c: Update copyright year.
44929 * kern/misc.c: Likewise.
44930
44931 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44932
44933 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44934 there is no memory left for physical volume name.
44935
44936 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44937
44938 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44939 volume name mapping to support bigger than 9 character names properly.
44940
44941 2008-04-13 Robert Millan <rmh@aybabtu.com>
44942
44943 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44944 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44945
44946 2008-04-13 Christian Franke <franke@computer.org>
44947
44948 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44949 to create a floppy emulation boot CD when non emulation mode
44950 does not work.
44951 Enable Joliet CD filesystem extension.
44952
44953 2008-04-13 Robert Millan <rmh@aybabtu.com>
44954
44955 * kern/misc.c (grub_strncat): Fix off-by-one error.
44956 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44957
44958 * kern/env.c (grub_env_context_close): Clear current context, not
44959 previous one.
44960 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44961
44962 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44963
44964 2008-04-13 Robert Millan <rmh@aybabtu.com>
44965
44966 Improve robustness when handling LVM.
44967
44968 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44969 (and leave `*p' unmodified).
44970 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44971 through it.
44972 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44973 iterating through it.
44974 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44975 through it.
44976 (grub_lvm_scan_device): Check the return value (and fail gracefully
44977 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44978 Don't assume `vg->pvs != NULL' when iterating through it.
44979
44980 2008-04-13 Robert Millan <rmh@aybabtu.com>
44981
44982 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44983 * genmk.rb (partmap): New variable.
44984 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44985 (#{partmap}): New target rule.
44986 * genpartmaplist.sh: New file.
44987 * Makefile.in (pkglib_DATA): Add partmap.lst.
44988 (partmap.lst): New target rule.
44989 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44990 modules (including all partition maps), instead of preloading them.
44991
44992 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44993
44994 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44995 `linux-boot-prober' (if installed) to detect other operating
44996 systems which are installed on the computer and add them to
44997 the boot menu.
44998 * conf/common.rmk: Build and install 30_os-prober.
44999
45000 2008-04-12 Robert Millan <rmh@aybabtu.com>
45001
45002 * kern/powerpc/ieee1275/init.c: Move from here ...
45003 * kern/ieee1275/init.c: ... to here. Update all users.
45004
45005 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45006 * kern/ieee1275/cmain.c: ... to here. Update all users.
45007
45008 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45009 * kern/ieee1275/openfw.c: ... to here. Update all users.
45010
45011 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45012 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45013
45014 2008-04-10 Pavel Roskin <proski@gnu.org>
45015
45016 * configure.ac: Always use "_cv_" in cache variables for
45017 compatibility with Autoconf 2.62.
45018
45019 2008-04-07 Robert Millan <rmh@aybabtu.com>
45020
45021 Revert grub/machine/init.h addition by Pavel (since it breaks on
45022 i386-ieee1275 and others):
45023 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45024 * util/powerpc/ieee1275/misc.c: Likewise.
45025
45026 2008-04-07 Robert Millan <rmh@aybabtu.com>
45027
45028 * util/grub-probe.c (probe): Improve error message.
45029
45030 2008-04-07 Robert Millan <rmh@aybabtu.com>
45031
45032 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45033 (this prevents the presence of a bogus entry from ruining the whole
45034 thing).
45035
45036 2008-04-06 Pavel Roskin <proski@gnu.org>
45037
45038 * util/biosdisk.c: Include grub/util/biosdisk.h.
45039 * util/grub-fstest.c (execute_command): Make static.
45040 * util/grub-mkdevicemap.c (check_device): Likewise.
45041 * util/i386/pc/misc.c: Include grub/machine/init.h.
45042 * util/powerpc/ieee1275/misc.c: Likewise.
45043 * util/lvm.c: Include grub/util/lvm.h.
45044 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45045 grub/cache.h.
45046 * util/raid.c: Include grub/util/raid.h.
45047 (grub_util_getdiskname): Make static.
45048
45049 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45050 grub_hostfs_fini(), as they are called from grub_init_all() and
45051 grub_fini_all() respectively. This fixes an infinite loop in
45052 grub-fstest due to double registration of hostfs.
45053 Reported by Christian Franke <Christian.Franke@t-online.de>
45054
45055 2008-04-05 Pavel Roskin <proski@gnu.org>
45056
45057 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45058 all 8 functions. Otherwise, probe function 0 only.
45059
45060 2008-04-04 Pavel Roskin <proski@gnu.org>
45061
45062 * commands/lspci.c (grub_lspci_iter): Print the bus number
45063 correctly.
45064
45065 * commands/lspci.c (grub_pci_classes): Fix typos.
45066 (grub_lspci_iter): Don't print func twice. Print vendor ID
45067 before device ID, as it's normally done.
45068
45069 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45070 Fix signedness warnings.
45071 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45072 Likewise.
45073 * util/ieee1275/get_disk_name.c: Include config.h so that
45074 _GNU_SOURCE is defined and getline() is declared. Mark an
45075 unused argument as such. Fix a signedness warning.
45076
45077 2008-04-02 Pavel Roskin <proski@gnu.org>
45078
45079 * genkernsyms.sh.in: Use more robust assignments for CC and
45080 srcdir. Quote srcdir.
45081 * gensymlist.sh.in: Likewise. Assert at the compile time that
45082 the symbol table is not empty.
45083
45084 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45085 * fs/cpio.c (grub_cpio_read): Likewise.
45086
45087 2008-04-01 Pavel Roskin <proski@gnu.org>
45088
45089 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45090 * disk/host.c (grub_host_open): Likewise.
45091 * disk/loopback.c (grub_loopback_open): Likewise.
45092 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45093 disk->id as in disk/host.c, not a multi-character constant.
45094
45095 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45096 later is obsolete, potentially dangerous and sets a bad example.
45097 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45098 * util/misc.c (grub_util_get_image_size): Likewise.
45099
45100 * disk/loopback.c (options): Improve help for "--partitions".
45101
45102 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45103 options to align them with the short options, e.g. "echo -e".
45104
45105 2008-03-31 Bean <bean123ch@gmail.com>
45106
45107 * video/reader/png.c (grub_png_data): New member is_16bit and
45108 image_data.
45109 (grub_png_decode_image_header): Detect 16 bit png image.
45110 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45111 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45112 (grub_video_reader_png): Release memory occupied by image_data.
45113
45114 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45115 4096 bytes.
45116 (grub_nfs_mount): Skip the test for sector per cluster.
45117
45118 * include/grub/ntfs.h (MAX_SPC): Removed.
45119
45120 2008-03-31 Bean <bean123ch@gmail.com>
45121
45122 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45123 (grub_probe_SOURCES): Add fs/afs.c.
45124 (grub_fstest_SOURCES): Likewise.
45125 (afs_mod_SOURCES): New variable.
45126 (afs_mod_CFLAGS): Likewise.
45127 (afs_mod_LDFLAGS): Likewise.
45128
45129 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45130 (grub_emu_SOURCES): Likewise.
45131
45132 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45133
45134 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45135
45136 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45137
45138 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45139
45140 * fs/afs.c: New file.
45141
45142 2008-03-30 Pavel Roskin <proski@gnu.org>
45143
45144 * disk/host.c: Include grub/misc.h to fix a warning.
45145 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45146 warnings about implicit declarations.
45147
45148 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45149 variable.
45150 * include/grub/i386/loader.h: Change declaration of
45151 grub_linux_boot() to match what grub_loader_set() expects.
45152 * util/getroot.c (grub_guess_root_device): Return const char* to
45153 fix a warning.
45154 * util/grub-probe.c (probe): Fix a warning about uninitialized
45155 abstraction_name variable.
45156 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45157 second argument as unused to fix a warning.
45158
45159 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45160 missing grub_error() call.
45161
45162 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45163 2.60 and newer uses it to define datadir.
45164
45165 * commands/sleep.c: Fix warning about implicit declaration.
45166 * disk/memdisk.c: Likewise.
45167 * loader/aout.c: Likewise.
45168 * loader/i386/bsd_normal.c: Likewise.
45169 * util/grub-probe.c: Likewise.
45170
45171 * commands/i386/cpuid.c (has_longmode): Make static.
45172 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45173 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45174
45175 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45176 GDT. This is more robust, as %ds can change.
45177 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45178 calling real_to_prot().
45179 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45180
45181 2008-03-28 Pavel Roskin <proski@gnu.org>
45182
45183 * kern/i386/pc/startup.S: Assert that uncompressed functions
45184 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45185 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45186 code, as they push parts of the code (error handlers) beyond
45187 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45188 code as correctness and size.
45189
45190 2008-03-28 Pavel Roskin <proski@gnu.org>
45191
45192 * kern/i386/pc/startup.S
45193 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45194 data block address to the real mode, keep offset minimal. This
45195 works around a bug in AWARD BIOS on old Athlon systems, which
45196 makes CD detection hang.
45197
45198 2008-03-26 Pavel Roskin <proski@gnu.org>
45199
45200 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45201 const.
45202 * include/grub/normal.h: Add grub_parse_color_name_pair()
45203 declaration.
45204
45205 2008-03-24 Bean <bean123ch@gmail.com>
45206
45207 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45208 (cd_count): Removed.
45209 (cd_drive): New variable.
45210 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45211 (grub_biosdisk_call_hook): Likewise.
45212 (grub_biosdisk_iterate): Change cdrom detection method.
45213 (grub_biosdisk_open): Replace cd_start with cd_drive.
45214 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45215 detect cdrom device.
45216
45217 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45218 Removed.
45219 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45220 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45221 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45222 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45223 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45224 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45225 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45226 (grub_biosdisk_cdrp): New structure.
45227 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45228
45229 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45230
45231 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45232 device.
45233
45234 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45235 New function.
45236
45237 2008-03-20 Robert Millan <rmh@aybabtu.com>
45238
45239 Remove 2 TiB limit in ata.mod.
45240 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45241 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45242 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45243 grub_uint64_t instead of grub_uint32_t.
45244
45245 2008-03-05 Bean <bean123ch@gmail.com>
45246
45247 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45248 (grub_multiboot): Set boot device.
45249
45250 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45251
45252 2008-03-02 Bean <bean123ch@gmail.com>
45253
45254 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45255 symlink_buffer.
45256
45257 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45258
45259 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45260 texinfo.tex.
45261
45262 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45263 modified.
45264
45265 * docs/fdl.texi: New file.
45266
45267 * docs/mdate-sh: New file. Copied from gnulib.
45268 * docs/texinfo.tex: Likewise.
45269
45270 * config.guess: Updated from gnulib.
45271 * install-sh: Likewise.
45272
45273 2008-02-28 Robert Millan <rmh@aybabtu.com>
45274
45275 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45276 (aout_mod_SOURCES): New variable.
45277 (aout_mod_CFLAGS): Likewise.
45278 (aout_mod_LDFLAGS): Likewise.
45279
45280 * conf/i386-ieee1275.rmk: Likewise.
45281
45282 2008-02-28 Robert Millan <rmh@aybabtu.com>
45283
45284 * util/update-grub.in: Reorganise terminal validity check. Accept
45285 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45286 Based on suggestion by Franklin PIAT.
45287
45288 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45289
45290 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45291 function.
45292 * util/getroot.c (grub_util_check_block_device): New function that
45293 returns the given argument if it is a block device and returns NULL else.
45294 * util/grub-probe.c (argument_is_device): New variable.
45295 (probe): Promote device_name from a variable to an argument. Receive
45296 device_name from grub_util_check_block_device() if path is NULL and from
45297 grub_guess_root_device() else. Do not free() device_name anymore.
45298 (options): Introduce new parameter '-d, --device'.
45299 (main): Add description of the new parameter to the help screen.
45300 Rename path variable to argument. Set argument_is_device if the '-d'
45301 option is given. Pass argument to probe() depending on
45302 argument_is_device.
45303
45304 2008-02-24 Bean <bean123ch@gmail.com>
45305
45306 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45307 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45308 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45309 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45310 (GRUB_ISO9660_VOLDESC_END): Likewise.
45311 (grub_iso9660_primary_voldesc): New member escape.
45312 (grub_iso9660_data): New member joliet.
45313 (grub_iso9660_convert_string): New function.
45314 (grub_iso9660_mount): Detect joliet extension.
45315 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45316 (grub_iso9660_iso9660_label): Likewise.
45317
45318 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45319 (grub_setup_SOURCES): Add fs/udf.c.
45320 (grub_fstest_SOURCES): Likewise.
45321 (udf_mod_SOURCES): New variable.
45322 (udf_mod_CFLAGS): Likewise.
45323 (udf_mod_LDFLAGS): Likewise.
45324
45325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45326 (grub_emu_SOURCES): Likewise.
45327
45328 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45329
45330 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45331
45332 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45333
45334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45335
45336 * fs/udf.c: New file.
45337
45338 2008-02-24 Robert Millan <rmh@aybabtu.com>
45339
45340 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45341 (normal/lexer.c_DEPENDENCIES): New variables.
45342 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45343 (normal/lexer.c_DEPENDENCIES): Likewise.
45344 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45345 (normal/lexer.c_DEPENDENCIES): Likewise.
45346 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45347 (normal/lexer.c_DEPENDENCIES): Likewise.
45348 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45349 (normal/lexer.c_DEPENDENCIES): Likewise.
45350 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45351 (normal/lexer.c_DEPENDENCIES): Likewise.
45352
45353 2008-02-23 Robert Millan <rmh@aybabtu.com>
45354
45355 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45356 since they were intended to be in hex. This didn't break previously
45357 because of a bug in gpt_partition_map_iterate() (see below).
45358
45359 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45360 when checking the validity of GPT header.
45361 Remove `partno', since it always provides the same information as `i'.
45362
45363 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45364
45365 * include/grub/efi/time.h: Fix a wrong comment.
45366
45367 2008-02-19 Pavel Roskin <proski@gnu.org>
45368
45369 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45370 message.
45371
45372 2008-02-19 Bean <bean123ch@gmail.com>
45373
45374 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45375 (aout_mod_SOURCES): New variable.
45376 (aout_mod_CFLAGS): Likewise.
45377 (aout_mod_LDFLAGS): Likewise.
45378 (_bsd_mod_SOURCES): New variable.
45379 (_bsd_mod_CFLAGS): Likewise.
45380 (_bsd_mod_LDFLAGS): Likewise.
45381 (bsd_mod_SOURCES): New variable.
45382 (bsd_mod_CFLAGS): Likewise.
45383 (bsd_mod_LDFLAGS): Likewise.
45384
45385 * include/grub/aout.h: New file.
45386
45387 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45388
45389 * include/grub/i386/bsd.h: New file.
45390
45391 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45392 to make it public.
45393
45394 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45395 function is called, so that it's possible to change it inside the hook.
45396 (grub_elf64_load): Likewise.
45397 (grub_elf_file): Don't close the file if elf header is not found.
45398 (grub_elf_close): Close the file if grub_elf_file fails (The new
45399 grub_elf_file won't close it).
45400 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45401 (grub_elf64_size): Likewise.
45402
45403 * kern/i386/loader.S (grub_unix_real_boot): New function.
45404
45405 * loader/aout.c: New file.
45406
45407 * loader/i386/bsd.c: New file.
45408
45409 * loader/i386/bsd_normal.c: New file.
45410
45411 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45412
45413 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45414 can test other formats.
45415
45416 2008-02-19 Robert Millan <rmh@aybabtu.com>
45417
45418 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45419 (grub_gpt_partition_type_empty): Redefine with macro from
45420 `<grub/gpt_partition.h>'.
45421 (gpt_partition_map_iterate): Adjust partition type comparison.
45422
45423 Export `entry' as partmap-specific `part.data' struct.
45424 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45425
45426 * include/grub/gpt_partition.h (grub_gpt_header)
45427 (grub_gpt_partentry): ... to here (new file).
45428
45429 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45430
45431 (grub_gpt_partition_type_bios_boot): New const variable, defined
45432 with macro from `<grub/gpt_partition.h>'.
45433
45434 (setup): Replace `first_start' with `embed_region', which keeps
45435 track of the embed region (and is partmap-agnostic).
45436
45437 Replace find_first_partition_start() with find_usable_region(),
45438 which finds a usable region for embedding using partmap-specific
45439 knowledge (supports PC/MSDOS and GPT).
45440
45441 Fix all assumptions that the embed region start at sector 1, using
45442 `embed_region.start' from now on. Similarly, use `embed_region.end'
45443 rather than `first_start' to calculate available size.
45444
45445 In grub_util_info() message, replace "into after the MBR" with an
45446 indication of the specific sector our embed region starts at.
45447
45448 2008-02-19 Robert Millan <rmh@aybabtu.com>
45449
45450 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45451 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45452 `commands/reboot.c'.
45453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45454 (halt_mod_SOURCES): Likewise.
45455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45456 (halt_mod_SOURCES): Likewise.
45457
45458 2008-02-17 Christian Franke <franke@computer.org>
45459
45460 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45461
45462 2008-02-17 Robert Millan <rmh@aybabtu.com>
45463
45464 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45465 set `first_start' to 0 for non-PC/MSDOS partition maps.
45466
45467 2008-02-16 Robert Millan <rmh@aybabtu.com>
45468
45469 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45470 do not assume partition map is PC/MSDOS before performing checks that
45471 are specific to that layout.
45472
45473 2008-02-13 Robert Millan <rmh@aybabtu.com>
45474
45475 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45476 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45477 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45478
45479 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45480
45481 * configure.ac: Only a cosmetic change on the handling of
45482 -fno-stack-protector.
45483
45484 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45485
45486 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45487 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45488 reboot.c.
45489 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45490 (halt_mod_SOURCES): New variable.
45491 (halt_mod_CFLAGS): Likewise.
45492 (halt_mod_LDFLAGS): Likewise.
45493 (reboot_mod_SOURCES): Likewise.
45494 (reboot_mod_CFLAGS): Likewise.
45495 (reboot_mod_LDFLAGS): Likewise.
45496
45497 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45498 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45499 reboot.c.
45500 (halt_mod_SOURCES): Likewise.
45501 (reboot_mod_SOURCES): Likewise.
45502
45503 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45504 commands/i386/pc/reboot.c by commands/reboot.c.
45505 (reboot_mod_SOURCES): Likewise.
45506
45507 * commands/i386/pc/reboot.c: merge this file ...
45508
45509 * commands/ieee1275/reboot.c: ... and this file ...
45510
45511 * commands/reboot.c: ... to this file.
45512 Add some precompiler directive to include the correct header for
45513 each machine.
45514
45515 * commands/ieee1275/halt.c: move this file ...
45516
45517 * commands/halt.c: ... to here.
45518 Add some precompiler directive to include the correct header for
45519 each machine.
45520
45521 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45522 (grub_halt): Likewise.
45523
45524 * kern/efi/efi.c (grub_reboot): New function.
45525 (grub_halt): Likewise.
45526
45527 2008-02-12 Robert Millan <rmh@aybabtu.com>
45528
45529 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45530 /dev (like it is done for /dev/mapper). This doesn't provide support
45531 for EVMS, but at least it is now easy to identify the problem when it
45532 arises.
45533
45534 2008-02-11 Robert Millan <rmh@aybabtu.com>
45535
45536 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45537 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45538 comparing it with -1, not 0.
45539
45540 2008-02-10 Robert Millan <rmh@aybabtu.com>
45541
45542 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45543 `disk/lvm.c'.
45544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45545 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45546
45547 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45548 `disk/lvm.c' to the end of the list.
45549 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45550 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45551
45552 2008-02-10 Robert Millan <rmh@aybabtu.com>
45553
45554 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45555 grub_print_error() instead. This will let user know why we're entering
45556 rescue mode.
45557 Based on suggestions from Sam Morris.
45558
45559 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45560
45561 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45562 on remaining N args, instead of "--" arg N times.
45563
45564 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45565
45566 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45567 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45568 pattern for unknown glyphs.
45569
45570 2008-02-09 Robert Millan <rmh@aybabtu.com>
45571
45572 * configure.ac: Probe for `help2man'.
45573 * Makefile.in (builddir): New variable.
45574 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45575 or otherwise add a few flags/options to it.
45576 (install-local): For every executable utility or script that is
45577 installed, invoke $(HELP2MAN) to install a manpage based on --help
45578 output.
45579
45580 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45581 that it doesn't prevent --help from working in build tree.
45582
45583 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45584 with `bug-grub@gnu.org'.
45585 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45586 * util/update-grub.in (usage): New function.
45587 Implement proper argument check, with support for --help and --version
45588 (as well as existing -y).
45589
45590 2008-02-09 Christian Franke <franke@computer.org>
45591
45592 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45593 avoid overwriting previous output.
45594 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45595
45596 2008-02-09 Robert Millan <rmh@aybabtu.com>
45597
45598 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45599 drawing the menu.
45600
45601 2008-02-09 Robert Millan <rmh@aybabtu.com>
45602
45603 * commands/sleep.c: New file.
45604 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45605 (sleep_mod_SOURCES): New variable.
45606 (sleep_mod_CFLAGS): Likewise.
45607 (sleep_mod_LDFLAGS): Likewise.
45608
45609 2008-02-09 Robert Millan <rmh@aybabtu.com>
45610
45611 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45612 situations in which we can deduce the RAID size and the superblock
45613 doesn't match it.
45614
45615 2008-02-09 Robert Millan <rmh@aybabtu.com>
45616
45617 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45618 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45619 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45620
45621 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45622 and return a grub_diskmemberlist_t composed of physical array members.
45623 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45624
45625 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45626 prototype.
45627 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45628 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45629 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45630
45631 * util/grub-probe.c (probe): Move partmap probing code from here ...
45632 (probe_partmap): ... to here.
45633 (probe): Use probe_partmap() once for the disk we're probing, and
45634 additionally, when such disk contains a memberlist() struct member,
45635 once for each disk that is contained in the structure returned by
45636 memberlist().
45637
45638 2008-02-09 Robert Millan <rmh@aybabtu.com>
45639
45640 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45641 environment variable to 'all' in order to obtain debug output from
45642 non-util/ code.
45643 * util/i386/pc/grub-setup.c (main): Likewise.
45644
45645 2008-02-08 Robert Millan <rmh@aybabtu.com>
45646
45647 * disk/raid.c (grub_raid_scan_device): Check for
45648 `array->device[sb.this_disk.number]' rather than for
45649 `array->device[sb.this_disk.number]->name', since the latter is not
45650 guaranteed to be accessible.
45651
45652 2008-02-08 Robert Millan <rmh@aybabtu.com>
45653
45654 * disk/raid.c: Update copyright.
45655 * fs/cpio.c: Likewise.
45656 * include/grub/raid.h: Likewise.
45657 * loader/i386/pc/multiboot.c: Likewise.
45658 * util/hostfs.c: Likewise.
45659
45660 2008-02-08 Robert Millan <rmh@aybabtu.com>
45661
45662 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45663 to a grub_disk_t array.
45664 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45665 `device[x]'.
45666 (grub_raid_scan_device): Replace `device[x].name' accesses with
45667 `device[x]->name'. Simplify initialization of `array->device[x]'.
45668
45669 2008-02-08 Robert Millan <rmh@aybabtu.com>
45670
45671 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45672 grub_dprintf() calls.
45673 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45674 error message.
45675
45676 2008-02-07 Christian Franke <franke@computer.org>
45677
45678 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45679 instead of fseek and ftell to support large files.
45680 (grub_hostfs_read): Likewise.
45681
45682 2008-02-07 Robert Millan <rmh@aybabtu.com>
45683
45684 Patch from Jeroen Dekkers.
45685 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45686 failure, since successfully reading all array members might not be
45687 required.
45688
45689 2008-02-06 Robert Millan <rmh@aybabtu.com>
45690
45691 * util/grub-probe.c (probe): Simplify partmap probing (with the
45692 assumption that the first word up to the underscore equals to
45693 the module name).
45694
45695 2008-02-06 Christian Franke <franke@computer.org>
45696
45697 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45698 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45699 last block of a cpio or tar stream.
45700 Check for "TRAILER!!!" instead of any empty data
45701 block to detect last block of a cpio stream.
45702 (grub_cpio_dir): Fix constness of variable np.
45703 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45704 cpio or tar trailer is detected. This fixes a crash
45705 on open of a non existing file.
45706
45707 2008-02-05 Bean <bean123ch@gmail.com>
45708
45709 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45710 address of entry.
45711 (grub_multiboot_load_elf64): Likewise.
45712 (grub_multiboot): Initialize mbi structure.
45713
45714 * util/grub-fstest.c: Don't include unused header file script.h.
45715
45716 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45717 of file.
45718 (grub_fstest_SOURCES): Likewise.
45719
45720 2008-02-05 Robert Millan <rmh@aybabtu.com>
45721
45722 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45723 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45724 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45725 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45726
45727 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45728 (translation_table): Replace hardcoded values with macros
45729 provided by `<grub/term.h>'.
45730
45731 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45732 (keyboard_map): Correct/add a few values, with macros provided
45733 by `<grub/term.h>'.
45734 (keyboard_map_shift): Zero values that don't differ from their
45735 `keyboard_map' equivalents.
45736 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45737 Discard the second scan code that is always sent by Caps lock.
45738 Only use `keyboard_map_shift' when it provides a non-zero value,
45739 otherwise fallback to `keyboard_map'.
45740
45741 2008-02-04 Bean <bean123ch@gmail.com>
45742
45743 * Makefile.in (enable_grub_fstest): New variable.
45744
45745 * conf/common.rmk (grub_fstest_init.lst): New rule.
45746 (grub_fstest_init.h): Likewise.
45747 (grub_fstest_init.c): Likewise.
45748 (util/grub-fstest.c_DEPENDENCIES): New variable.
45749 (grub_fstest_SOURCES): Likewise.
45750
45751 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45752
45753 * util/grub-fstest.c: New file.
45754
45755 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45756
45757 Make grub-setup handle a separate root device.
45758
45759 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45760 so that the root device can be compared with the destination
45761 device.
45762 When embedding the core image, if the root and destination devices
45763 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45764 0xFF.
45765 When not embedding, set ROOT_DRIVE to 0xFF.
45766
45767 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45768
45769 Add support for having a grub directory in a different drive. This
45770 is still only the data handling part.
45771
45772 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45773 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45774 (grub_root_drive): New variable.
45775
45776 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45777 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45778 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45779 as it was.
45780
45781 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45782
45783 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45784 macro.
45785 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45786
45787 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45788 is bogus, because PXE booting does not specify any drive
45789 correctly.
45790
45791 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45792 am not sure if this is really correct.
45793
45794 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45795 is always identical to the boot drive when booting from a CD.
45796
45797 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45798 longer.
45799 (root_drive): New variable.
45800 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45801 (setup_sectors): Push %dx right after popping it, because %dh will
45802 be modified later.
45803 (copy_buffer): Restore %dx.
45804
45805 2008-02-03 Robert Millan <rmh@aybabtu.com>
45806
45807 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45808 use `cdboot.img' for cdrom images.
45809
45810 2008-02-03 Robert Millan <rmh@aybabtu.com>
45811
45812 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45813 only setup gfxterm when `font' command has succeeded.
45814
45815 2008-02-03 Robert Millan <rmh@aybabtu.com>
45816
45817 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45818 (grub_rescue_cmd_multiboot_loader)
45819 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45820
45821 2008-02-03 Pavel Roskin <proski@gnu.org>
45822
45823 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45824 %edx and %esi from stack only after grub_gate_a20() is called.
45825 grub_gate_a20() clobbers %edx.
45826
45827 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45828
45829 * configure.ac (AC_INIT): Bumped to 1.96.
45830
45831 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45832 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45833 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45834 video/readers/png.c.
45835
45836 2008-02-03 Bean <bean123ch@gmail.com>
45837
45838 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45839 (cdboot_img_SOURCES): New variable.
45840 (cdboot_img_ASFLAGS): New variable.
45841 (cdboot_img_LDFLAGS): New variable.
45842
45843 * boot/i386/pc/cdboot.S: New file.
45844
45845 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45846 (cd_count): Likewise.
45847 (grub_biosdisk_get_drive): Add support for cd device.
45848 (grub_biosdisk_call_hook): Likewise.
45849 (grub_biosdisk_iterate): Likewise.
45850 (grub_biosdisk_open): Likewise.
45851 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45852 (grub_biosdisk_rw): Support reading from cd device.
45853 (GRUB_MOD_INIT): Iterate cd devices.
45854
45855 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45856 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45857 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45858
45859 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45860
45861 2008-02-02 Robert Millan <rmh@aybabtu.com>
45862
45863 * commands/read.c: New file.
45864 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45865 (read_mod_SOURCES): New variable.
45866 (read_mod_CFLAGS): Likewise.
45867 (read_mod_LDFLAGS): Likewise.
45868
45869 2008-02-02 Robert Millan <rmh@aybabtu.com>
45870
45871 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45872 determining whether menu has to be displayed.
45873
45874 2008-02-02 Marco Gerards <marco@gnu.org>
45875
45876 * bus/pci.c: New file.
45877
45878 * include/grub/pci.h: Likewise.
45879
45880 * include/grub/i386/pc/pci.h: Likewise.
45881
45882 * commands/lspci.c: Likewise.
45883
45884 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45885 `lspci.mod'.
45886 (pci_mod_SOURCES): New variable.
45887 (pci_mod_CFLAGS): Likewise.
45888 (pci_mod_LDFLAGS): Likewise.
45889 (lspci_mod_SOURCES): Likewise.
45890 (lspci_mod_CFLAGS): Likewise.
45891 (lspci_mod_LDFLAGS): Likewise.
45892
45893 2008-02-02 Bean <bean123ch@gmail.com>
45894
45895 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45896 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45897
45898 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45899 (grub_xfs_btree_node): New structure.
45900 (grub_xfs_btree_root): New structure.
45901 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45902 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45903 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45904 (GRUB_XFS_EXTENT_SIZE): Likewise.
45905 (grub_xfs_read_block): Support btree format type.
45906 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45907 Use directory block as basic unit.
45908
45909 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45910
45911 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45912 __attribute__ ((__regparm__ (1))).
45913
45914 2008-02-01 Robert Millan <rmh@aybabtu.com>
45915
45916 Correct a mistake in previous commit.
45917
45918 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45919 top.
45920 (normal/command.c_DEPENDENCIES): New variable.
45921
45922 2008-02-01 Robert Millan <rmh@aybabtu.com>
45923
45924 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45925 top.
45926 (normal/command.c_DEPENDENCIES): New variable.
45927 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45928 * conf/i386-ieee1275.rmk: Likewise.
45929 * conf/i386-linuxbios.rmk: Likewise.
45930 * conf/i386-pc.rmk: Likewise.
45931 * conf/sparc64-ieee1275.rmk: Likewise.
45932 * conf/powerpc-ieee1275.rmk: Likewise.
45933 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45934
45935 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45936
45937 2008-02-01 Robert Millan <rmh@aybabtu.com>
45938
45939 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45940 call at beginning of function.
45941
45942 2008-01-31 Pavel Roskin <proski@gnu.org>
45943
45944 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45945 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45946 (grub_mkrescue_SOURCES): Likewise.
45947 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45948
45949 2008-01-30 Robert Millan <rmh@aybabtu.com>
45950
45951 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45952 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45953 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45954 (grub_probe_SOURCES): ... to here.
45955
45956 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45957 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45958 * conf/i386-ieee1275.rmk: Likewise.
45959 * conf/i386-linuxbios.rmk: Likewise.
45960 * conf/powerpc-ieee1275.rmk: Likewise.
45961
45962 2008-01-30 Tristan Gingold <gingold@free.fr>
45963
45964 * kern/rescue.c: Silently accept empty lines.
45965
45966 2008-01-29 Bean <bean123ch@gmail.com>
45967
45968 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45969 (real_code_2): Code cleanup and change comment style.
45970 (move_memory): Avoid using 32-bit address mode.
45971
45972 2008-01-29 Bean <bean123ch@gmail.com>
45973
45974 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45975 (png_mod_SOURCES): New variable.
45976 (png_mod_CFLAGS): Likewise.
45977 (png_mod_LDFLAGS): Likewise.
45978
45979 * video/readers/png.c: New file.
45980
45981 2008-01-28 Robert Millan <rmh@aybabtu.com>
45982
45983 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45984 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45985 `ifndef GRUB_MOD_GAP' hack.
45986 * util/elf/grub-mkimage.c (add_segments): Likewise.
45987
45988 2008-01-27 Robert Millan <rmh@aybabtu.com>
45989
45990 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45991 `GRUB_MOD_GAP' for platforms in which it's not defined.
45992 * util/elf/grub-mkimage.c (add_segments): Likewise.
45993
45994 2008-01-27 Robert Millan <rmh@aybabtu.com>
45995
45996 Get grub-emu to build again (including parallel builds).
45997
45998 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45999 Split into ...
46000 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46001 (normal/execute.c_DEPENDENCIES): ... this, ...
46002 (grub-emu_DEPENDENCIES): ... and this.
46003
46004 * conf/i386-efi.rmk: Likewise.
46005 * conf/i386-linuxbios.rmk: Likewise.
46006 * conf/i386-ieee1275.rmk: Likewise.
46007 * conf/powerpc-ieee1275.rmk: Likewise.
46008 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46009
46010 2008-01-27 Robert Millan <rmh@aybabtu.com>
46011
46012 * NEWS: Add a few items.
46013
46014 2008-01-27 Robert Millan <rmh@aybabtu.com>
46015
46016 Fix parallel builds with grub-emu. Based on earlier commit for
46017 grub-probe and grub-setup.
46018
46019 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46020 (util/grub-emu.c_DEPENDENCIES): ... this.
46021 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46022 (util/grub-emu.c_DEPENDENCIES): ... this.
46023 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46024 (util/grub-emu.c_DEPENDENCIES): ... this.
46025 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46026 (util/grub-emu.c_DEPENDENCIES): ... this.
46027 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46028 (util/grub-emu.c_DEPENDENCIES): ... this.
46029
46030 2008-01-27 Pavel Roskin <proski@gnu.org>
46031
46032 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46033 to create a gap between _end and the modules added to the image
46034 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46035 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46036 * util/elf/grub-mkimage.c (add_segments): Likewise.
46037
46038 2008-01-26 Pavel Roskin <proski@gnu.org>
46039
46040 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46041 just return an error.
46042
46043 2008-01-26 Bean <bean123ch@gmail.com>
46044
46045 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46046 (grub_reiserfs_get_item): Save offset of the next item.
46047 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46048
46049 2008-01-25 Robert Millan <rmh@aybabtu.com>
46050
46051 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46052 make all filesystem sources appear together (possibly fixing omissions
46053 while at it).
46054 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46055 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46056 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46058
46059 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46060 add `kern/file.c'.
46061 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46062 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46063 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46064 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46065
46066 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46067 (probe): Add a sanity check to make sure of our ability to read
46068 requested files when probing for filesystem type.
46069
46070 * genmk.rb: Update copyright year (2007).
46071
46072 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46073 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46074 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46075 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46076 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46077 : Remove function prototypes.
46078
46079 2008-01-25 Robert Millan <rmh@aybabtu.com>
46080
46081 Revert my previous commits (based on wrong assumption of how grub_errno
46082 works).
46083
46084 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46085 * kern/file.c (grub_file_open): Likewise.
46086
46087 2008-01-24 Pavel Roskin <proski@gnu.org>
46088
46089 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46090 that hang if GRUB tries to setup colors.
46091 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46092 colors for firmwares that don't support it.
46093 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46094 Recognize Open Hack'Ware, set flags to work around its
46095 limitations.
46096
46097 2008-01-24 Robert Millan <rmh@aybabtu.com>
46098
46099 * kern/file.c (grub_file_open): Do not account previous failures of
46100 unrelated functions when grub_errno is checked for.
46101 Reported by Oleg Strikov.
46102
46103 2008-01-24 Bean <bean123ch@gmail.com>
46104
46105 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46106 (grub_ufs_sblock): New member volume name.
46107 (grub_ufs_find_file): Fix string copy bug.
46108 (grub_ufs_label): Implement this function properly.
46109
46110 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46111 (grub_hfs_iterate_records): Use the correct file number for extents
46112 and catalog file. Fix problem in next index calculation.
46113 (grub_hfs_find_node): Replace recursive function call with loop.
46114 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46115
46116 2008-01-23 Robert Millan <rmh@aybabtu.com>
46117
46118 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46119 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46120 (grub_multiboot2_real_boot): New function prototype.
46121
46122 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46123 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46124
46125 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46126 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46127
46128 2008-01-23 Robert Millan <rmh@aybabtu.com>
46129
46130 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46131 #ifdef'ed out grub_printf().
46132
46133 2008-01-23 Robert Millan <rmh@aybabtu.com>
46134
46135 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46136 grub_dprintf calls, since they make "debug=all" mode unusable.
46137 (grub_console_checkkey): Likewise.
46138
46139 2008-01-23 Robert Millan <rmh@aybabtu.com>
46140
46141 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46142 `term/i386/pc/at_keyboard.c'.
46143 (pkglib_MODULES): Add `serial.mod'.
46144 (serial_mod_SOURCES): New variable.
46145 (serial_mod_CFLAGS): Likewise.
46146 (serial_mod_LDFLAGS): Likewise.
46147
46148 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46149 `<grub/powerpc/ieee1275/console.h>'.
46150 (grub_keyboard_controller_init): New function prototype.
46151 (grub_console_checkkey): Likewise.
46152 (grub_console_getkey): Likewise.
46153
46154 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46155 keyboard on i386.
46156
46157 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46158 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46159
46160 2008-01-23 Robert Millan <rmh@aybabtu.com>
46161
46162 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46163 present, "(memdisk)/boot/grub" becomes the default prefix.
46164
46165 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46166 a memdisk tarball with all the modules. Add --overlay=DIR option that
46167 allows users to overlay additional files into the image.
46168
46169 2008-01-23 Robert Millan <rmh@aybabtu.com>
46170
46171 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46172 and `machine/memory.h'.
46173 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46174 (_multiboot_mod_SOURCES): New variable.
46175 (_multiboot_mod_CFLAGS): Likewise.
46176 (_multiboot_mod_LDFLAGS): Likewise.
46177 (multiboot_mod_SOURCES): Likewise.
46178 (multiboot_mod_CFLAGS): Likewise.
46179 (multiboot_mod_LDFLAGS): Likewise.
46180
46181 * include/grub/i386/ieee1275/loader.h: New file.
46182
46183 * include/grub/i386/ieee1275/machine.h: Likewise.
46184
46185 * include/grub/i386/ieee1275/memory.h: Likewise.
46186
46187 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46188 variable declaration.
46189 (grub_os_area_size): Likewise.
46190
46191 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46192 (grub_lower_mem, grub_upper_mem): New variables.
46193 (grub_stop_floppy): New function (just to make
46194 grub_multiboot2_real_boot() happy).
46195
46196 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46197 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46198 (grub_stop): New function.
46199 Include `"../realmode.S"' and `"../loader.S"'.
46200
46201 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46202 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46203
46204 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46205 rely on grub_multiboot2_real_boot() for final boot.
46206
46207 2008-01-22 Robert Millan <rmh@aybabtu.com>
46208
46209 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46210 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46211 device that doesn't look like an SD card.
46212 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46213 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46215 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46216 found.
46217
46218 2008-01-22 Robert Millan <rmh@aybabtu.com>
46219
46220 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46221 avoid claiming over our own code.
46222
46223 2008-01-22 Bean <bean123ch@gmail.com>
46224
46225 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46226 (jpeg_mod_SOURCES): New variable.
46227 (jpeg_mod_CFLAGS): Likewise.
46228 (jpeg_mod_LDFLAGS): Likewise.
46229
46230 * video/readers/jpeg.c : New file.
46231
46232 2008-01-22 Bean <bean123ch@gmail.com>
46233
46234 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46235 there are no more items.
46236
46237 2008-01-21 Robert Millan <rmh@aybabtu.com>
46238
46239 * kern/mm.c (grub_mm_init_region): Improve debug message.
46240
46241 2008-01-21 Robert Millan <rmh@aybabtu.com>
46242
46243 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46244 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46245 address.
46246 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46247 a C macro.
46248 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46249 Indicates start of upper memory.
46250 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46251 (generate_image): Abort when image size is big enough to corrupt
46252 upper memory.
46253
46254 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46255 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46256 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46257 instead of hardcoding 0xA0000.
46258 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46259 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46260 instead of hardcoding 0xA0000.
46261
46262 2008-01-21 Robert Millan <rmh@aybabtu.com>
46263
46264 * disk/memdisk.c (memdisk_size): New variable.
46265 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46266 `memdisk_size'.
46267 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46268 image to dynamic memory.
46269 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46270 `memdisk_size'. Free memdisk block.
46271
46272 2008-01-21 Robert Millan <rmh@aybabtu.com>
46273
46274 Fix detection of very small filesystems (like tar).
46275
46276 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46277 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46278 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46279 a problem with this disk).
46280
46281 2008-01-21 Robert Millan <rmh@aybabtu.com>
46282
46283 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46284 on grub_biosdisk_rw_standard() error.
46285
46286 2008-01-21 Robert Millan <rmh@aybabtu.com>
46287
46288 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46289 recent changes.
46290 * kern/elf.c: Likewise.
46291 * kern/ieee1275/ieee1275.c: Likewise.
46292 * kern/powerpc/ieee1275/openfw.c: Likewise.
46293 * term/ieee1275/ofconsole.c: Likewise.
46294
46295 2008-01-21 Robert Millan <rmh@aybabtu.com>
46296
46297 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46298
46299 * include/grub/kernel.h (grub_arch_memdisk_addr)
46300 (grub_arch_memdisk_size): Moved from here ...
46301
46302 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46303 (grub_arch_memdisk_size): ... to here.
46304
46305 2008-01-21 Robert Millan <rmh@aybabtu.com>
46306
46307 Mostly based on bugfix from Bean.
46308
46309 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46310 attribute with hook() parameter.
46311 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46312 declaration.
46313 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46314 attribute with hook() parameter.
46315 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46316 declaration.
46317
46318 2008-01-21 Robert Millan <rmh@aybabtu.com>
46319
46320 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46321 (pkglib_MODULES): Add `memdisk.mod'.
46322 (memdisk_mod_SOURCES): New variable.
46323 (memdisk_mod_CFLAGS): Likewise.
46324 (memdisk_mod_LDFLAGS): Likewise.
46325
46326 * disk/memdisk.c: New file.
46327
46328 * include/grub/disk.h (grub_disk_dev_id): Add
46329 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46330
46331 * include/grub/i386/pc/kernel.h
46332 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46333 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46334 (grub_kernel_image_size): New variable declaration.
46335 (grub_total_module_size): Likewise.
46336 (grub_memdisk_image_size): Likewise.
46337
46338 * include/grub/i386/pc/memory.h
46339 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46340
46341 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46342 (grub_arch_memdisk_addr): New variable declaration.
46343 (grub_arch_memdisk_size): Likewise.
46344
46345 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46346 (grub_arch_memdisk_size): Likewise.
46347
46348 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46349 (codestart): Replace hardcoded `0x100000' with
46350 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46351
46352 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46353 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46354 not NULL, append the contents of the file it refers to, at the end of
46355 the compressed kernel image. Initialize `grub_memdisk_image_size'
46356 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46357 (options): Add "memdisk"|'m' option.
46358 (main): Parse --memdisk|-m option, and pass user-provided path as
46359 parameter to generate_image().
46360
46361 2008-01-20 Robert Millan <rmh@aybabtu.com>
46362
46363 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46364 grub_dprintf() calls from here ...
46365 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46366
46367 2008-01-20 Robert Millan <rmh@aybabtu.com>
46368
46369 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46370
46371 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46372 declaration.
46373 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46374 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46375 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46376 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46377 property).
46378 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46379 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46380
46381 2008-01-19 Robert Millan <rmh@aybabtu.com>
46382
46383 Get rid of confusing function (superseded by
46384 `grub_ieee1275_get_integer_property')
46385 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46386 prototype.
46387 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46388 function.
46389 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46390 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46391 in native endianness from grub_ieee1275_get_integer_property().
46392
46393 2008-01-19 Robert Millan <rmh@aybabtu.com>
46394
46395 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46396 command after "shut-down", since implementations differ on which
46397 the command for halt is.
46398
46399 2008-01-19 Robert Millan <rmh@aybabtu.com>
46400
46401 * include/grub/i386/linuxbios/console.h: Add header protection.
46402 (grub_keyboard_controller_init): New function prototype.
46403 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46404 (KEYBOARD_COMMAND_READ): Likewise.
46405 (KEYBOARD_COMMAND_WRITE): Likewise.
46406 (KEYBOARD_SCANCODE_SET1): Likewise.
46407 (grub_keyboard_controller_write): New function.
46408 (grub_keyboard_controller_read): Likewise.
46409 (grub_keyboard_controller_init): Likewise.
46410
46411 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46412 (grub_console_init): On coreboot/LinuxBIOS, call
46413 grub_keyboard_controller_init().
46414
46415 2008-01-19 Robert Millan <rmh@aybabtu.com>
46416
46417 PowerPC changes provided by Pavel Roskin.
46418
46419 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46420 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46421 don't rely on cmain() doing it.
46422 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46423 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46424
46425 2008-01-16 Robert Millan <rmh@aybabtu.com>
46426
46427 * include/grub/i386/linuxbios/memory.h
46428 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46429 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46430 receive `table_header' as argument. Instead, probe for it in the
46431 known memory ranges where it can be present.
46432 (grub_available_iterate): Do not pass a fixed `table_header' address
46433 to grub_linuxbios_table_iterate().
46434
46435 2008-01-15 Robert Millan <rmh@aybabtu.com>
46436
46437 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46438 * conf/i386-ieee1275.rmk: New file.
46439 * include/grub/i386/ieee1275/console.h: Likewise.
46440 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46441 * include/grub/i386/ieee1275/kernel.h: Likewise.
46442 * include/grub/i386/ieee1275/time.h: Likewise.
46443 * kern/i386/ieee1275/init.c: Likewise.
46444 * kern/i386/ieee1275/startup.S: Likewise.
46445
46446 2008-01-15 Robert Millan <rmh@aybabtu.com>
46447
46448 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46449 when pointers are 32-bit (but still do set it to one when they are
46450 64-bit).
46451
46452 2008-01-15 Robert Millan <rmh@aybabtu.com>
46453
46454 * include/grub/ieee1275/ieee1275.h
46455 (grub_ieee1275_get_integer_property): New function prototype.
46456
46457 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46458 (grub_ieee1275_get_integer_property): New function. Wraps around
46459 grub_ieee1275_get_property() to handle endianness.
46460
46461 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46462 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46463 where appropriate.
46464 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46465 (grub_map): Likewise.
46466 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46467
46468 2008-01-15 Bean <bean123ch@gmail.com>
46469
46470 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46471 (grub_script_execute_cmdline): Reset grub_errno.
46472
46473 * normal/main.c (read_config_file): Reset grub_errno.
46474
46475 * normal/parse.y (script_init): New.
46476 (script): Move function and menuentry here.
46477 (delimiter): New.
46478 (command): Add delimiter at the end of command.
46479 (commands): Adjust to match the new command.
46480 (commandblock): Remove grub_script_lexer_record_start.
46481 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46482 (if): Use the new commands.
46483
46484 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46485
46486 2008-01-15 Robert Millan <rmh@aybabtu.com>
46487
46488 * normal/menu.c (run_menu): Move timeout message from here ...
46489 (print_timeout): ... to here.
46490 (run_menu): Use print_timeout() once during initial draw to print
46491 the whole message, and again in every clock tick to update only
46492 the number of seconds.
46493
46494 2008-01-15 Robert Millan <rmh@aybabtu.com>
46495
46496 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46497 actual size of `available' from grub_ieee1275_get_property(), and
46498 restrict parsing to that bound.
46499
46500 2008-01-15 Christian Franke <franke@computer.org>
46501
46502 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46503 (argp_program_version): Remove variable.
46504 (argp_program_bug_address): Likewise.
46505 (options): Convert from struct argp_option to struct option.
46506 (struct arguments): Remove.
46507 (parse_opt): Remove.
46508 (usage): New function.
46509 (main): Replace struct args members by simple variables.
46510 Replace argp_parse() by getopt_long().
46511 Add switch to evaluate options.
46512 Add missing "(...)" around root_dev in prefix string.
46513
46514 2008-01-14 Robert Millan <rmh@aybabtu.com>
46515
46516 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46517 for grub_ieee1275_exit(), in order to improve portability.
46518
46519 2008-01-14 Robert Millan <rmh@aybabtu.com>
46520
46521 * util/grub.d/10_linux.in (prefix): Define.
46522 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46523
46524 2008-01-13 Pavel Roskin <proski@gnu.org>
46525
46526 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46527 grub_errno if no errors have been detected.
46528
46529 2008-01-12 Robert Millan <rmh@aybabtu.com>
46530
46531 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46532 (grub_util_get_dev_abstraction): New function prototype.
46533
46534 * util/getroot.c: Include `<grub/util/getroot.h>'
46535 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46536 (grub_util_get_dev_abstraction): ... here (new function).
46537
46538 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46539 `PRINT_ABSTRACTION'.
46540 (probe): Probe for abstraction type when requested.
46541 (main): Understand `--target=abstraction'.
46542
46543 * util/i386/efi/grub-install.in: Add abstraction module to core
46544 image when it is found to be necessary.
46545 * util/i386/pc/grub-install.in: Likewise.
46546 * util/powerpc/ieee1275/grub-install.in: Likewise.
46547
46548 * util/update-grub_lib.in (font_path): Return system path without
46549 converting to GRUB path.
46550 * util/update-grub.in: Convert system path returned by font_path()
46551 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46552 abstraction module is needed for loading fonts (if any). Export
46553 that as `GRUB_PRELOAD_MODULES'.
46554 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46555 insmod commands).
46556
46557 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46558
46559 Remove some unused code from reiserfs.
46560
46561 * fs/reiserfs.c (struct grub_reiserfs_key)
46562 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46563 (struct grub_reiserfs_node_body): Removed.
46564 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46565 Likewise.
46566 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46567 Likewise.
46568 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46569 Likewise.
46570 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46571 Likewise.
46572 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46573 Likewise.
46574 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46575 Likewise.
46576 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46577 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46578 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46579
46580 2008-01-10 Robert Millan <rmh@aybabtu.com>
46581
46582 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46583 Determines if a file is garbage left by packaging systems, etc.
46584 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46585 for processing /etc/grub.d scripts.
46586 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46587 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46588 as a condition for processing Linux images.
46589
46590 2008-01-10 Pavel Roskin <proski@gnu.org>
46591
46592 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46593 to compile reiserfs.c on PowerPC.
46594
46595 2008-01-10 Robert Millan <rmh@aybabtu.com>
46596
46597 * kern/device.c (grub_device_iterate): Do not abort device iteration
46598 when one of the devices cannot be opened.
46599 * kern/disk.c (grub_disk_open): Do not account previous failures of
46600 unrelated functions when grub_errno is checked for.
46601
46602 2008-01-08 Robert Millan <rmh@aybabtu.com>
46603
46604 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46605 `! grub_linux_is_bzimage', change order of address comparison to make
46606 it more intuitive, and improve "too big zImage" error message.
46607
46608 2008-01-08 Robert Millan <rmh@aybabtu.com>
46609
46610 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46611 `$(update-grub_DATA)'.
46612 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46613 targets.
46614
46615 2008-01-07 Robert Millan <rmh@aybabtu.com>
46616
46617 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46618 which instruction is modified by grub-setup during installation
46619 (since it wasn't obvious by only looking at this file).
46620
46621 2008-01-07 Robert Millan <rmh@aybabtu.com>
46622
46623 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46624 listing actual TODO items.
46625
46626 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46627
46628 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46629 correctly.
46630 (grub_reiserfs_get_key_offset): Likewise.
46631 (grub_reiserfs_set_key_offset): Likewise.
46632 (grub_reiserfs_set_key_type): Likewise.
46633 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46634
46635 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46636 better to remove the bitfield version completely.
46637
46638 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46639
46640 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46641 allocated from the heap, due to the fshelp implementation.
46642 (grub_reiserfs_dir): Free NODE, due to the same reason.
46643
46644 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46645
46646 Mostly from Vincent Pelletier:
46647
46648 * fs/reiserfs.c: New file.
46649
46650 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46651 (reiserfs_mod_SOURCES): New variable.
46652 (reiserfs_mod_CFLAGS): Likewise.
46653 (reiserfs_mod_LDFLAGS): Likewise.
46654
46655 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46656 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46657 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46658 normal/color.c.
46659
46660 2008-01-06 Robert Millan <rmh@aybabtu.com>
46661
46662 * normal/color.c: Remove `<grub/env.h>'.
46663
46664 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46665
46666 * include/grub/normal.h: Include <grub/env.h>.
46667
46668 2008-01-05 Robert Millan <rmh@aybabtu.com>
46669
46670 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46671 usage example with `(hd0,1)'.
46672 Reported by Samuel Thibault.
46673
46674 2008-01-05 Robert Millan <rmh@aybabtu.com>
46675
46676 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46677 (grub_linux_boot_zimage): Rename to ...
46678 (grub_linux_boot): ... this.
46679 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46680 (grub_linux_boot_zimage): Conditionalize zImage copy.
46681
46682 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46683 (grub_linux_boot_bzimage): Remove prototype.
46684 (grub_linux_boot_zimage): Rename to ...
46685 (grub_linux_boot): ... this.
46686
46687 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46688 (grub_linux_boot): Remove function.
46689
46690 2008-01-05 Robert Millan <rmh@aybabtu.com>
46691
46692 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46693 (grub_env_write_color_highlight): Likewise.
46694 (grub_wait_after_message): Likewise.
46695
46696 * normal/color.c: New file.
46697
46698 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46699 (normal_mod_DEPENDENCIES): Likewise.
46700
46701 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46702 (normal_mod_DEPENDENCIES): Likewise.
46703
46704 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46705 (normal_mod_DEPENDENCIES): Likewise.
46706
46707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46708 (normal_mod_DEPENDENCIES): Likewise.
46709
46710 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46711 for waiting after a message is printed.
46712 * normal/main.c (read_config_file): Likewise.
46713 (grub_normal_init): Register grub_env_write_color_normal() and
46714 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46715 `color_highlight' variables as global.
46716
46717 * normal/menu.c (grub_wait_after_message): New function.
46718 (grub_color_menu_normal): New variable. Replaces ...
46719 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46720 (grub_color_menu_highlight): New variable. Replaces ...
46721 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46722 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46723 `GRUB_TERM_COLOR_STANDARD'.
46724 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46725 `normal_code' and `highlight_code' to `old_color_normal' and
46726 `old_color_highlight', respectively.
46727 (grub_menu_init_page): Update colors when drawing the menu, based on
46728 `menu_color_normal' and `menu_color_highlight' variables.
46729 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46730 a message is printed.
46731
46732 2008-01-05 Robert Millan <rmh@aybabtu.com>
46733
46734 * kern/env.c (grub_env_context_open): Propagate hooks for global
46735 variables to new context.
46736
46737 * kern/main.c (grub_set_root_dev): Export `root' variable.
46738
46739 2008-01-05 Robert Millan <rmh@aybabtu.com>
46740
46741 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46742 discs unconditionally, since udev and others have options to provide
46743 them.
46744
46745 2008-01-05 Robert Millan <rmh@aybabtu.com>
46746
46747 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46748
46749 2008-01-04 Christian Franke <franke@computer.org>
46750
46751 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46752 of eisa_mmap.
46753
46754 2008-01-03 Pavel Roskin <proski@gnu.org>
46755
46756 * kern/i386/linuxbios/init.c: Put "void" to all function
46757 declarations with no arguments.
46758 * kern/powerpc/ieee1275/init.c: Likewise.
46759 * term/i386/pc/at_keyboard.c: Likewise.
46760 * term/i386/pc/vga_text.c: Likewise.
46761 * util/grub-mkdevicemap.c: Likewise.
46762
46763 2008-01-02 Robert Millan <rmh@aybabtu.com>
46764
46765 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46766 message when loaded image is out of bounds.
46767 (grub_multiboot_load_elf64): Likewise.
46768
46769 2008-01-02 Pavel Roskin <proski@gnu.org>
46770
46771 * util/grub.d/10_linux.in: Try version without ".old" when
46772 looking for initrd. It's better to use initrd from the newer
46773 kernel of the same version than no initrd at all.
46774
46775 2008-01-01 Robert Millan <rmh@aybabtu.com>
46776
46777 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46778
46779 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46780
46781 * include/grub/video.h: Added grub_video_unmap_color and
46782 grub_video_get_active_render_target.
46783 (grub_video_adapter): Added unmap_color and get_active_render_target.
46784
46785 * video/video.c: Added grub_video_unmap_color and
46786 grub_video_get_active_render_target.
46787 (grub_video_get_info): Changed method to accept NULL pointer as an
46788 argument to allow detection of active video adapter.
46789
46790 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46791 grub_video_vbe_unmap_color_int.
46792 Added grub_video_vbe_unmap_color and
46793 grub_video_vbe_get_active_render_target.
46794 (grub_video_vbe_adapter): Added unmap_color and
46795 get_active_render_target.
46796
46797 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46798 with grub_video_vbe_unmap_color_int.
46799
46800 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46801 (DEFAULT_NORMAL_COLOR): Likewise.
46802 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46803 (DEFAULT_FG_COLOR): Removed.
46804 (DEFAULT_BG_COLOR): Likewise.
46805 (DEFAULT_CURSOR_COLOR): Changed value.
46806 (grub_virtual_screen): Added standard_color_setting,
46807 normal_color_setting, highlight_color_setting and term_color.
46808 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46809 (bitmap_width): Added.
46810 (bitmap_height): Likewise.
46811 (bitmap): Likewise.
46812 (set_term_color): Likewise.
46813 (grub_virtual_screen_setup): Changed to use new terminal coloring
46814 settings.
46815 (grub_gfxterm_init): Added init for bitmap.
46816 (grub_gfxterm_fini): Added destroy for bitmap.
46817 (redraw_screen_rect): Updated to use background bitmap and new
46818 terminal coloring.
46819 (scroll_up): Added optimization for case when there is no bitmap.
46820 (grub_gfxterm_cls): Fixed to use correct background color.
46821 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46822 coloring.
46823 (grub_virtual_screen_setcolor): Likewise.
46824 (grub_virtual_screen_getcolor): Added.
46825 (grub_gfxterm_background_image_cmd): Likewise.
46826 (grub_video_term): Added setcolor and getcolor.
46827 (MOD_INIT): Added registration of background_image command.
46828 (MOD_TERM): Added unregistration for background_image command.
46829
46830 2007-12-30 Pavel Roskin <proski@gnu.org>
46831
46832 * loader/multiboot_loader.c: Fix multiboot command
46833 unregistration. Fix all typos in the word "multiboot".
46834
46835 2007-12-29 Pavel Roskin <proski@gnu.org>
46836
46837 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46838 support for initrd names used in Fedora.
46839
46840 2007-12-26 Bean <bean123ch@gmail.com>
46841
46842 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46843 (cpio_mod_SOURCES): New variable.
46844 (cpio_mod_CFLAGS): Likewise.
46845 (cpio_mod_LDFLAGS): Likewise.
46846
46847 * fs/cpio.c: New file.
46848
46849 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46850
46851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46852
46853 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46854
46855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46856
46857 2007-12-25 Robert Millan <rmh@aybabtu.com>
46858
46859 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46860 (grub_getcolor): New function.
46861
46862 * kern/term.c (grub_getcolor): New function.
46863 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46864 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46865 (print_entry): Set normal and highlight colors to
46866 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46867 respectively, before printing and restore them to old
46868 values afterwards.
46869 (grub_menu_init_page): Likewise. Fill an additional colored space
46870 that would otherwise be left blank.
46871
46872 * term/efi/console.c (grub_console_getcolor): New function.
46873 (struct grub_console_term.getcolor): New variable.
46874 * term/i386/pc/console.c (grub_console_getcolor): New function.
46875 (struct grub_console_term.getcolor): New variable.
46876 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46877 (struct grub_console_term.getcolor): New variable.
46878
46879 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46880 (struct grub_console_term.setcolor): Remove variable.
46881 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46882 (struct grub_console_term.setcolor): Remove variable.
46883 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46884 (struct grub_console_term.setcolor): Remove variable.
46885 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46886 (struct grub_console_term.setcolor): Remove variable.
46887
46888 2007-12-25 Robert Millan <rmh@aybabtu.com>
46889
46890 * configure.ac: Search for possible unifont.hex locations, and
46891 define UNIFONT_HEX if found.
46892
46893 * Makefile.in (UNIFONT_HEX): Define variable.
46894 (DATA): Rename to ...
46895 (PKGLIB): ... this. Update all users.
46896 (PKGDATA): New variable.
46897 (pkgdata_IMAGES): Rename to ...
46898 (pkglib_IMAGES): ... this. Update all users.
46899 (pkgdata_MODULES): Rename to ...
46900 (pkglib_MODULES): ... this. Update all users.
46901 (pkgdata_PROGRAMS): Rename to ...
46902 (pkglib_PROGRAMS): ... this. Update all users.
46903 (pkgdata_DATA): Rename to ...
46904 (pkglib_DATA): ... this. Update all users.
46905 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46906 (unicode.pff, ascii.pff): New rules.
46907 (all-local): Add `$(PKGDATA)' dependency.
46908 (install-local): Process `$(PKGDATA)'.
46909
46910 * util/update-grub_lib.in (font_path): Search for *.pff files in
46911 a few more locations, including `${pkgdata}'.
46912
46913 2007-12-23 Robert Millan <rmh@aybabtu.com>
46914
46915 Patch from Bean <bean123ch@gmail.com>:
46916 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46917 `size'.
46918
46919 2007-12-21 Bean <bean123ch@gmail.com>
46920
46921 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46922 (ntfscomp_mod_SOURCES): New variable.
46923 (ntfscomp_mod_CFLAGS): Likewise.
46924 (ntfscomp_mod_LDFLAGS): Likewise.
46925
46926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46927 (grub_probe_SOURCES): Likewise.
46928 (grub_emu_SOURCES): Likewise.
46929
46930 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46931 (grub_emu_SOURCES): Likewise.
46932
46933 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46934 (grub_emu_SOURCES): Likewise.
46935
46936 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46937 (grub_emu_SOURCES): Likewise.
46938
46939 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46940 (read_run_list): Renamed to grub_ntfs_read_run_list.
46941 (decomp_nextvcn): Moved to ntfscomp.c.
46942 (decomp_getch): Likewise.
46943 (decomp_get16): Likewise.
46944 (decomp_block): Likewise.
46945 (read_block): Likewise.
46946 (read_data): Partially moved to ntfscomp.c.
46947 (fixup): Change unsigned to grub_uint16_t.
46948 (read_mft): Change unsigned long to grub_uint32_t.
46949 (read_attr): Likewise.
46950 (read_data): Likewise.
46951 (read_run_data): Likewise.
46952 (read_run_list): Likewise.
46953 (read_mft): Likewise.
46954
46955 * fs/ntfscomp.c: New file.
46956
46957 * include/grub/ntfs.h: New file.
46958
46959 2007-12-16 Robert Millan <rmh@aybabtu.com>
46960
46961 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46962 IDE disk check, since Linux is known to support 20 IDE disks.
46963 Reported by Colin Watson.
46964
46965 2007-12-15 Bean <bean123ch@gmail.com>
46966
46967 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46968 (lnxboot_img_SOURCES): New variable.
46969 (lnxboot_img_ASFLAGS): Likewise.
46970 (lnxboot_img_LDFLAGS): Likewise.
46971
46972 * boot/i386/pc/lnxboot.S: New file.
46973
46974 2007-11-24 Pavel Roskin <proski@gnu.org>
46975
46976 * configure.ac: Test if '--build-id=none' is supported by the
46977 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46978 objcopy to generate incorrect binary files (binutils
46979 2.17.50.0.18-1 as shipped by Fedora 8).
46980 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46981 linking, so that build ID doesn't break the test.
46982
46983 2007-11-24 Pavel Roskin <proski@gnu.org>
46984
46985 * include/grub/i386/time.h: use "void" in the argument list
46986 of grub_cpu_idle().
46987 * include/grub/powerpc/time.h: Likewise.
46988 * include/grub/sparc64/time.h: Likewise.
46989
46990 2007-11-18 Christian Franke <franke@computer.org>
46991
46992 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46993 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46994 This fixes the problem that function keys did not work in grub-emu.
46995
46996 2007-11-18 Christian Franke <franke@computer.org>
46997
46998 * disk/host.c (grub_host_open): Remove attribute unused from
46999 name parameter. Add check for "host". This fixes the problem
47000 that grub-emu does not find partitions.
47001
47002 2007-11-18 Christian Franke <franke@computer.org>
47003
47004 * util/hostfs.c (is_dir): New function.
47005 (grub_hostfs_dir): Handle missing dirent.d_type case.
47006 (grub_hostfs_read): Add missing fseek().
47007 (grub_hostfs_label): Clear label pointer. This fixes a crash
47008 of grub-emu on "ls (host)".
47009
47010 2007-11-18 Christian Franke <franke@computer.org>
47011
47012 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47013 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47014 to 64 bit boundary by default.
47015
47016 2007-11-18 Bean <bean123ch@gmail.com>
47017
47018 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47019 (hexdump_mod_SOURCES): New variable.
47020 (hexdump_mod_CFLAGS): Likewise.
47021 (hexdump_mod_LDFLAGS): Likewise.
47022
47023 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47024
47025 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47026
47027 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47028
47029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47030
47031 * include/grub/hexdump.h: New file.
47032
47033 * commands/hexdump.c: New file.
47034
47035 2007-11-10 Robert Millan <rmh@aybabtu.com>
47036
47037 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47038 in grub_outb() calls.
47039 (beep_on): Likewise.
47040
47041 2007-11-10 Christian Franke <franke@computer.org>
47042
47043 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47044 (grub_menu_run): Likewise.
47045
47046 2007-11-10 Robert Millan <rmh@aybabtu.com>
47047
47048 * include/grub/i386/efi/machine.h: New file.
47049 * include/grub/i386/linuxbios/machine.h: Likewise.
47050 * include/grub/i386/pc/machine.h: Likewise.
47051 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47052 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47053
47054 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47055 (serial_hw_io_addr): New variable.
47056 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47057 instead of `(unsigned short *) 0x400'.
47058
47059 2007-11-10 Bean <bean123ch@gmail.com>
47060
47061 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47062
47063 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47064
47065 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47066 (vga_mod_SOURCES): Added.
47067 (vga_mod_CFLAGS): Likewise.
47068 (vga_mod_LDFLAGS): Likewise.
47069
47070 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47071 grub_outb() calls.
47072 (set_map_mask): Likewise.
47073 (set_read_map): Likewise.
47074 (set_read_address): Likewise.
47075 (vga_font): Removed variable.
47076 (get_vga_glyph): Removed function.
47077 (invalidate_char): Likewise.
47078 (write_char): Changed to use grub_font_get_glyph() for font
47079 information.
47080 (grub_vga_putchar): Likewise.
47081 (grub_vga_getcharwidth): Likewise.
47082
47083 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47084
47085 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47086 flags.
47087 (pxeboot_img_LDFLAGS): Likewise.
47088 (diskboot_img_LDFLAGS): Likewise.
47089 (kernel_img_LDFLAGS): Likewise.
47090
47091 2007-11-06 Robert Millan <rmh@aybabtu.com>
47092
47093 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47094 in grub_outb() calls.
47095 (serial_hw_init): Likewise.
47096
47097 2007-11-05 Robert Millan <rmh@aybabtu.com>
47098
47099 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47100 spaces. Skip non-regular files.
47101
47102 2007-11-05 Robert Millan <rmh@aybabtu.com>
47103
47104 * kern/disk.c (grub_disk_firmware_fini)
47105 (grub_disk_firmware_is_tainted): New variables.
47106
47107 * include/grub/disk.h (grub_disk_firmware_fini)
47108 (grub_disk_firmware_is_tainted): Likewise.
47109
47110 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47111 (grub_disk_biosdisk_fini): ... to here.
47112 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47113 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47114 is set. Register grub_disk_biosdisk_fini() in
47115 `grub_disk_firmware_fini'.
47116
47117 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47118 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47119 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47120 to finish existing firmware disk interface.
47121
47122 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47123 (ata_mod_SOURCES): New variable.
47124 (ata_mod_CFLAGS): Likewise.
47125 (ata_mod_LDFLAGS): Likewise.
47126
47127 2007-11-05 Robert Millan <rmh@aybabtu.com>
47128
47129 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47130 (grub_ata_wait): Reimplement using grub_millisleep().
47131
47132 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47133 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47134
47135 2007-11-03 Marco Gerards <marco@gnu.org>
47136
47137 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47138 (CRTC_ADDR_PORT): New macro.
47139 (CRTC_DATA_PORT): Likewise.
47140 (CRTC_CURSOR): Likewise.
47141 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47142 (CRTC_CURSOR_ADDR_LOW): Likewise.
47143 (update_cursor): New function.
47144 (grub_console_real_putchar): Call `update_cursor'.
47145 (grub_console_gotoxy): Likewise.
47146 (grub_console_cls): Set the default color when clearing the
47147 screen.
47148 (grub_console_setcursor): Implemented.
47149
47150 2007-11-03 Marco Gerards <marco@gnu.org>
47151
47152 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47153 become activate.
47154 (grub_ata_pio_write): Likewise.
47155
47156 (grub_atapi_identify): Wait after issuing an ATA command.
47157 (grub_atapi_packet): Likewise.
47158 (grub_ata_identify): Likewise.
47159 (grub_ata_readwrite): Likewise.
47160
47161 2007-11-03 Marco Gerards <marco@gnu.org>
47162
47163 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47164 (grub_ata_pio_write): Likewise.
47165 (grub_ata_readwrite): Use `grub_error', instead of
47166 returning `grub_errno'.
47167
47168 2007-11-03 Marco Gerards <marco@gnu.org>
47169
47170 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47171 grub_ata_pio_write once for every single sector, instead of for
47172 multiple sectors.
47173
47174 2007-10-31 Robert Millan <rmh@aybabtu.com>
47175
47176 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47177
47178 * conf/i386-linuxbios.rmk: New file.
47179
47180 * kern/i386/pc/hardware.c: Likewise.
47181 * term/i386/pc/at_keyboard.c: Likewise.
47182 * term/i386/pc/vga_text.c: Likewise.
47183
47184 * include/grub/i386/linuxbios/boot.h: Likewise.
47185 * include/grub/i386/linuxbios/console.h: Likewise.
47186 * include/grub/i386/linuxbios/init.h: Likewise.
47187 * include/grub/i386/linuxbios/kernel.h: Likewise.
47188 * include/grub/i386/linuxbios/loader.h: Likewise.
47189 * include/grub/i386/linuxbios/memory.h: Likewise.
47190 * include/grub/i386/linuxbios/serial.h: Likewise.
47191 * include/grub/i386/linuxbios/time.h: Likewise.
47192
47193 * kern/i386/linuxbios/init.c: Likewise.
47194 * kern/i386/linuxbios/startup.S: Likewise.
47195 * kern/i386/linuxbios/table.c: Likewise.
47196
47197 2007-10-31 Marco Gerards <marco@gnu.org>
47198
47199 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47200 (ata_mod_SOURCES): New variable.
47201 (ata_mod_CFLAGS): Likewise.
47202 (ata_mod_LDFLAGS): Likewise.
47203
47204 * disk/ata.c: New file.
47205
47206 * include/grub/disk.h (grub_disk_dev_id): Add
47207 `GRUB_DISK_DEV_ATA_ID'.
47208
47209 2007-10-31 Robert Millan <rmh@aybabtu.com>
47210
47211 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47212 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47213
47214 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47215 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47216
47217 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47218 `<grub/types.h>'.
47219
47220 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47221
47222 2007-10-27 Robert Millan <rmh@aybabtu.com>
47223
47224 * include/grub/types.h (ULONG_MAX): Define macro.
47225
47226 2007-10-22 Robert Millan <rmh@aybabtu.com>
47227
47228 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47229 `"../realmode.S"'.
47230 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47231
47232 2007-10-22 Robert Millan <rmh@aybabtu.com>
47233
47234 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47235 (pkgdata_MODULES): Add `biosdisk.mod'.
47236 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47237 variables.
47238
47239 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47240 (grub_biosdisk_init): Replace with ...
47241 (GRUB_MOD_INIT(biosdisk)): ... this.
47242 (grub_biosdisk_fini): Replace with ...
47243 (GRUB_MOD_FINI(biosdisk)): ... this.
47244
47245 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47246 (grub_machine_init): Remove call to grub_biosdisk_init().
47247 (grub_machine_fini): Remove call to grub_machine_fini().
47248
47249 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47250
47251 2007-10-22 Robert Millan <rmh@aybabtu.com>
47252
47253 * include/grub/time.h: New file.
47254 * include/grub/i386/time.h: Likewise.
47255 * include/grub/powerpc/time.h: Likewise.
47256 * include/grub/sparc64/time.h: Likewise.
47257
47258 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47259 instances to ...
47260 (KERNEL_MACHINE_TIME_HEADER): ... this.
47261 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47262 instances to ...
47263 (KERNEL_MACHINE_TIME_HEADER): ... this.
47264 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47265 instances to ...
47266 (KERNEL_MACHINE_TIME_HEADER): ... this.
47267
47268 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47269 (grub_millisleep): New function.
47270 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47271 (grub_millisleep): New function.
47272 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47273 Remove `grub/machine/time.h' include.
47274 (grub_millisleep): New function.
47275 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47276 Remove `grub/machine/time.h' include.
47277 (grub_millisleep): New function.
47278
47279 * include/grub/misc.h (grub_div_roundup): New function.
47280
47281 * kern/misc.c: Include `<grub/time.h>'.
47282 (grub_millisleep_generic): New function.
47283
47284 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47285 Add `time.h'.
47286 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47287 Add `time.h'.
47288 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47289 `machine/time.h'. Add `time.h'.
47290 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47291
47292 2007-10-21 Robert Millan <rmh@aybabtu.com>
47293
47294 * include/grub/misc.h (grub_max): New function.
47295
47296 2007-10-21 Robert Millan <rmh@aybabtu.com>
47297
47298 * util/misc.c (grub_util_info): Call fflush() before returning.
47299
47300 2007-10-20 Robert Millan <rmh@aybabtu.com>
47301
47302 * genmk.rb (Image): Copy `extra_flags' from here ...
47303 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47304
47305 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47306 to `argc' and `args' arguments.
47307
47308 2007-10-17 Robert Millan <rmh@aybabtu.com>
47309
47310 * kern/i386/loader.S: New file.
47311
47312 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47313 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47314 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47315 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47316 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47317 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47318 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47319 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47320 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47321 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47322 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47323 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47324 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47325 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47326
47327 * kern/i386/realmode.S: New file.
47328
47329 * kern/i386/pc/startup.S (protstack): Moved from here ...
47330 * kern/i386/realmode.S (protstack)... to here.
47331 * kern/i386/pc/startup.S (gdt): Moved from here ...
47332 * kern/i386/realmode.S (gdt)... to here.
47333 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47334 * kern/i386/realmode.S (prot_to_real)... to here.
47335
47336 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47337 `kern/i386/realmode.S'.
47338
47339 2007-10-17 Robert Millan <rmh@aybabtu.com>
47340
47341 * include/grub/i386/loader.h: New file.
47342
47343 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47344 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47345 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47346 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47347 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47348 * include/grub/i386/loader.h (grub_linux_prot_size)
47349 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47350 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47351 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47352 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47353
47354 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47355
47356 2007-10-15 Robert Millan <rmh@aybabtu.com>
47357
47358 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47359 filesystem when dev->disk is unset.
47360 Do probe for filesystem even when dev->disk->has_partitions is set.
47361 In case a filesystem is found, always report it.
47362 In case it isn't, if dev->disk->has_partitions is set, report that
47363 a partition table was found instead of reporting that no filesystem
47364 could be identified.
47365
47366 2007-10-12 Robert Millan <rmh@aybabtu.com>
47367
47368 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47369 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47370
47371 * include/grub/types.h (grub_host_to_target16): New macro.
47372 (grub_host_to_target32): Likewise.
47373 (grub_host_to_target64): Likewise.
47374 (grub_target_to_host16): Likewise.
47375 (grub_target_to_host32): Likewise.
47376 (grub_target_to_host64): Likewise.
47377
47378 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47379 Renamed from to ...
47380 (GRUB_MOD_ALIGN): ...this. Update all users.
47381
47382 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47383 grub_host_to_target32.
47384 Replace grub_be_to_cpu32 with grub_target_to_host32.
47385 (load_modules): Likewise.
47386 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47387 Replace grub_be_to_cpu32 with grub_target_to_host32.
47388 Replace grub_cpu_to_be16 with grub_host_to_target16.
47389 Replace grub_cpu_to_be32 grub_host_to_target32.
47390
47391 2007-10-12 Robert Millan <rmh@aybabtu.com>
47392
47393 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47394 * util/elf/grub-mkimage.c: ... here.
47395
47396 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47397 `util/powerpc/ieee1275/grub-mkimage.c'.
47398
47399 2007-10-07 Robert Millan <rmh@aybabtu.com>
47400
47401 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47402 and make it easier to figure out.
47403 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47404 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47405 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47406 leave us with less than HEAP_MIN_SIZE total heap.
47407 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47408
47409 2007-10-03 Robert Millan <rmh@aybabtu.com>
47410
47411 * include/grub/i386/io.h: New file.
47412 * commands/i386/pc/play.c (inb): Removed.
47413 (outb): Removed.
47414 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47415 with grub_outb().
47416 * term/i386/pc/serial.c (inb): Removed.
47417 (outb): Removed.
47418 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47419 with grub_outb().
47420 * term/i386/pc/vga.c (inb): Removed.
47421 (outb): Removed.
47422 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47423 with grub_outb().
47424
47425 2007-10-02 Robert Millan <rmh@aybabtu.com>
47426
47427 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47429 Reported by Marcin Kurek.
47430
47431 2007-09-07 Robert Millan <rmh@aybabtu.com>
47432
47433 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47434 SmartFirmware version updates (as released by Sven Luther), and avoid
47435 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47436 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47437 known broken.
47438
47439 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47440
47441 From Hitoshi Ozeki:
47442 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47443 when merging two regions.
47444
47445 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47446
47447 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47448 * normal/completion.c (grub_normal_do_completion): Likewise.
47449 Reported by Hitoshi Ozeki.
47450
47451 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47452
47453 Do not use devices at boot in chainloading.
47454
47455 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47456 (boot_part_addr): Likewise.
47457 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47458 with BOOT_DRIVE and BOOT_PART_ADDR.
47459 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47460 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47461
47462 2007-08-29 Robert Millan <rmh@aybabtu.com>
47463
47464 Patch from Simon Peter <dn.tlp@gmx.net>:
47465 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47466 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47467 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47468 util/i386/pc/grub-setup.c_DEPENDENCIES.
47469 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47470 util/grub-probe.c_DEPENDENCIES.
47471 * conf/powerpc-ieee1275.rmk: Likewise.
47472
47473 2007-08-28 Robert Millan <rmh@aybabtu.com>
47474
47475 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47476 to tell grub-mkdevicemap how to name devices.
47477 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47478 feature).
47479
47480 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47481 util/i386/get_disk_name.c.
47482 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47483 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47484 util/ieee1275/get_disk_name.c.
47485
47486 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47487
47488 * DISTLIST: Add util/i386/get_disk_name.c and
47489 util/ieee1275/get_disk_name.c.
47490
47491 * util/grub-mkdevicemap.c: Replace device naming logic with
47492 grub_util_get_disk_name() calls.
47493
47494 2007-08-20 Robert Millan <rmh@aybabtu.com>
47495
47496 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47497 (so that it works for both plural and singular quantities).
47498
47499 2007-08-05 Robert Millan <rmh@aybabtu.com>
47500
47501 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47502 so that [xz] isn't taken into account when determining order.
47503
47504 2007-08-02 Marco Gerards <marco@gnu.org>
47505
47506 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47507 `include/multiboot2.h', `include/grub/elfload.h',
47508 `include/multiboot.h', `include/grub/multiboot.h',
47509 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47510 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47511 `kern/elf.c', `loader/multiboot_loader.c',
47512 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47513 `loader/i386/pc/multiboot2.c',
47514 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47515 `util/i386/pc/grub-mkrescue.in'. Remove
47516 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47517 `include/grub/i386/pc/util/biosdisk.h' and
47518 `include/grub/powerpc/ieee1275/multiboot.h'.
47519
47520 2007-08-02 Bean <bean123ch@gmail.com>
47521
47522 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47523 (ntfs_mod_SOURCES): New variable.
47524 (ntfs_mod_CFLAGS): Likewise.
47525 (ntfs_mod_LDFLAGS): Likewise.
47526
47527 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47528 (grub_probe_SOURCES): Likewise.
47529 (grub_emu_SOURCES): Likewise.
47530
47531 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47532 (grub_emu_SOURCES): Likewise.
47533
47534 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47535 (grub_emu_SOURCES): Likewise.
47536
47537 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47538
47539 * fs/ntfs.c: New file.
47540
47541 2007-08-02 Bean <bean123ch@gmail.com>
47542
47543 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47544
47545 * file.h (grub_file): Likewise.
47546
47547 * fshelp.h (grub_fshelp_read_file): Likewise.
47548
47549 * util/i386/pc/grub-setup.c (setup): Likewise.
47550 (save_first_sector): Likewise.
47551 (save_blocklists): Likewise.
47552
47553 * fs/affs.c (grub_affs_read_file): Likewise.
47554
47555 * fs/ext2.c (grub_ext2_read_file): Likewise.
47556
47557 * fs/fat.c (grub_fat_read_data): Likewise.
47558
47559 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47560
47561 * fs/hfs.c (grub_hfs_read_file): Likewise.
47562
47563 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47564
47565 * fs/jfs.c (grub_jfs_read_file): Likewise.
47566
47567 * fs/minix.c (grub_minix_read_file): Likewise.
47568
47569 * fs/sfs.c (grub_sfs_read_file): Likewise.
47570
47571 * fs/ufs.c (grub_ufs_read_file): Likewise.
47572
47573 * fs/xfs.c (grub_xfs_read_file): Likewise.
47574
47575 * command/blocklist.c (read_blocklist): Likewise.
47576 (print_blocklist): Likewise.
47577
47578 2007-08-02 Marco Gerards <marco@gnu.org>
47579
47580 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47581 `util/hostfs.c'.
47582
47583 * disk/host.c: New file.
47584
47585 * util/hostfs.c: Likewise.
47586
47587 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47588 return `GRUB_ERR_BAD_FS'.
47589 * fs/sfs.c (grub_sfs_mount): Likewise.
47590 * fs/xfs.c (grub_xfs_mount): Likewise.
47591
47592 * include/grub/disk.h (enum grub_disk_dev_id): Add
47593 `GRUB_DISK_DEVICE_HOST_ID'.
47594
47595 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47596
47597 2007-07-24 Jerone Young <jerone@gmail.com>
47598
47599 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47600 modules for compilation.
47601 * conf/powerpc-ieee1275.rmk: Likewise.
47602
47603 * include/multiboot.h: Move multiboot definitions to one file. Rename
47604 many definitions to not get grub specific.
47605 * include/multiboot2.h: Create header with multiboot 2 definitions.
47606 * include/grub/multiboot.h: Header for grub specific function
47607 prototypes and definitions.
47608 * include/grub/multiboot2.h: Likewise.
47609 * include/grub/multiboot_loader.h: Likewise.
47610 * include/grub/i386/pc/multiboot.h: Removed.
47611 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47612
47613 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47614 and 2 to allow for one multiboot and module commands.
47615 * loader/multiboot2.c: Add multiboot2 functionality.
47616 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47617 and definition names.
47618 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47619 2 functions.
47620 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47621 ieee1275 specific multiboot2 code.
47622
47623 * kern/i386/pc/startup.S: Change headers and definition names for
47624 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47625
47626 2007-07-22 Robert Millan <rmh@aybabtu.com>
47627
47628 * geninitheader.sh: Process file specified in first parameter rather
47629 than hardcoding grub_modules_init.lst.
47630 * geninit.sh: Likewise. Also, construct header name dynamically rather
47631 than hardcoding grub_modules_init.h.
47632
47633 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47634 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47635 grub_probe_init.[ch] and grub_setup_init.[ch].
47636
47637 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47638 grub_modules_init.h with grub_emu_init.h.
47639 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47640 grub_probe_init.[ch] files.
47641 * conf/i386-efi.rmk: Likewise.
47642 * conf/i386-pc.rmk: Likewise.
47643 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47644 grub_setup_init.[ch] files.
47645
47646 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47647 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47648 to initialize modules rather than a list of hardcoded functions.
47649 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47650 grub_init_all() to initialize modules rather than a list of hardcoded
47651 functions.
47652
47653 2007-07-22 Robert Millan <rmh@aybabtu.com>
47654
47655 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47656 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47657
47658 2007-07-22 Robert Millan <rmh@aybabtu.com>
47659
47660 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47661 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47662 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47663 flag when running on SmartFirmware.
47664 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47665 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47666 was set.
47667
47668 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47669 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47670 rather than decreasing it.
47671
47672 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47673 there's not enough space to do it, fail in the same way as when it
47674 can't be done because there are no partitions.
47675
47676 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47677 when nvsetenv failed.
47678
47679 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47680
47681 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47682 because this rule is automatically generated.
47683 (grub-mkrescue): Removed for the same reason as above.
47684
47685 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47686
47687 Migrate to GNU General Public License Version 3.
47688
47689 * COPYING: Replaced with the plain text version of GPLv3.
47690
47691 * config.guess: Updated from gnulib.
47692 * config.sub: Likewise.
47693
47694 * geninit.sh: Output a GPLv3 copyright notice.
47695 * geninitheader.sh: Likewise.
47696 * genmodsrc.sh: Likewise.
47697 * gensymlist.sh.in: Likewise.
47698
47699 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47700 * boot/i386/pc/diskboot.S: Likewise.
47701 * boot/i386/pc/pxeboot.S: Likewise.
47702 * commands/blocklist.c: Likewise.
47703 * commands/boot.c: Likewise.
47704 * commands/cat.c: Likewise.
47705 * commands/cmp.c: Likewise.
47706 * commands/configfile.c: Likewise.
47707 * commands/echo.c: Likewise.
47708 * commands/help.c: Likewise.
47709 * commands/ls.c: Likewise.
47710 * commands/search.c: Likewise.
47711 * commands/terminal.c: Likewise.
47712 * commands/test.c: Likewise.
47713 * commands/videotest.c: Likewise.
47714 * commands/i386/cpuid.c: Likewise.
47715 * commands/i386/pc/halt.c: Likewise.
47716 * commands/i386/pc/play.c: Likewise.
47717 * commands/i386/pc/reboot.c: Likewise.
47718 * commands/i386/pc/vbeinfo.c: Likewise.
47719 * commands/i386/pc/vbetest.c: Likewise.
47720 * commands/ieee1275/halt.c: Likewise.
47721 * commands/ieee1275/reboot.c: Likewise.
47722 * commands/ieee1275/suspend.c: Likewise.
47723 * disk/loopback.c: Likewise.
47724 * disk/lvm.c: Likewise.
47725 * disk/raid.c: Likewise.
47726 * disk/efi/efidisk.c: Likewise.
47727 * disk/i386/pc/biosdisk.c: Likewise.
47728 * disk/ieee1275/ofdisk.c: Likewise.
47729 * font/manager.c: Likewise.
47730 * fs/affs.c: Likewise.
47731 * fs/ext2.c: Likewise.
47732 * fs/fat.c: Likewise.
47733 * fs/fshelp.c: Likewise.
47734 * fs/hfs.c: Likewise.
47735 * fs/hfsplus.c: Likewise.
47736 * fs/iso9660.c: Likewise.
47737 * fs/jfs.c: Likewise.
47738 * fs/minix.c: Likewise.
47739 * fs/sfs.c: Likewise.
47740 * fs/ufs.c: Likewise.
47741 * fs/xfs.c: Likewise.
47742 * hello/hello.c: Likewise.
47743 * include/grub/acorn_filecore.h: Likewise.
47744 * include/grub/arg.h: Likewise.
47745 * include/grub/bitmap.h: Likewise.
47746 * include/grub/boot.h: Likewise.
47747 * include/grub/cache.h: Likewise.
47748 * include/grub/device.h: Likewise.
47749 * include/grub/disk.h: Likewise.
47750 * include/grub/dl.h: Likewise.
47751 * include/grub/elfload.h: Likewise.
47752 * include/grub/env.h: Likewise.
47753 * include/grub/err.h: Likewise.
47754 * include/grub/file.h: Likewise.
47755 * include/grub/font.h: Likewise.
47756 * include/grub/fs.h: Likewise.
47757 * include/grub/fshelp.h: Likewise.
47758 * include/grub/gzio.h: Likewise.
47759 * include/grub/hfs.h: Likewise.
47760 * include/grub/kernel.h: Likewise.
47761 * include/grub/loader.h: Likewise.
47762 * include/grub/lvm.h: Likewise.
47763 * include/grub/misc.h: Likewise.
47764 * include/grub/mm.h: Likewise.
47765 * include/grub/net.h: Likewise.
47766 * include/grub/normal.h: Likewise.
47767 * include/grub/parser.h: Likewise.
47768 * include/grub/partition.h: Likewise.
47769 * include/grub/pc_partition.h: Likewise.
47770 * include/grub/raid.h: Likewise.
47771 * include/grub/rescue.h: Likewise.
47772 * include/grub/script.h: Likewise.
47773 * include/grub/setjmp.h: Likewise.
47774 * include/grub/symbol.h: Likewise.
47775 * include/grub/term.h: Likewise.
47776 * include/grub/terminfo.h: Likewise.
47777 * include/grub/tparm.h: Likewise.
47778 * include/grub/types.h: Likewise.
47779 * include/grub/video.h: Likewise.
47780 * include/grub/efi/api.h: Likewise.
47781 * include/grub/efi/chainloader.h: Likewise.
47782 * include/grub/efi/console.h: Likewise.
47783 * include/grub/efi/console_control.h: Likewise.
47784 * include/grub/efi/disk.h: Likewise.
47785 * include/grub/efi/efi.h: Likewise.
47786 * include/grub/efi/pe32.h: Likewise.
47787 * include/grub/efi/time.h: Likewise.
47788 * include/grub/i386/linux.h: Likewise.
47789 * include/grub/i386/setjmp.h: Likewise.
47790 * include/grub/i386/types.h: Likewise.
47791 * include/grub/i386/efi/kernel.h: Likewise.
47792 * include/grub/i386/efi/loader.h: Likewise.
47793 * include/grub/i386/efi/time.h: Likewise.
47794 * include/grub/i386/pc/biosdisk.h: Likewise.
47795 * include/grub/i386/pc/boot.h: Likewise.
47796 * include/grub/i386/pc/chainloader.h: Likewise.
47797 * include/grub/i386/pc/console.h: Likewise.
47798 * include/grub/i386/pc/init.h: Likewise.
47799 * include/grub/i386/pc/kernel.h: Likewise.
47800 * include/grub/i386/pc/loader.h: Likewise.
47801 * include/grub/i386/pc/memory.h: Likewise.
47802 * include/grub/i386/pc/multiboot.h: Likewise.
47803 * include/grub/i386/pc/serial.h: Likewise.
47804 * include/grub/i386/pc/time.h: Likewise.
47805 * include/grub/i386/pc/vbe.h: Likewise.
47806 * include/grub/i386/pc/vbeblit.h: Likewise.
47807 * include/grub/i386/pc/vbefill.h: Likewise.
47808 * include/grub/i386/pc/vbeutil.h: Likewise.
47809 * include/grub/i386/pc/vga.h: Likewise.
47810 * include/grub/ieee1275/ieee1275.h: Likewise.
47811 * include/grub/ieee1275/ofdisk.h: Likewise.
47812 * include/grub/powerpc/libgcc.h: Likewise.
47813 * include/grub/powerpc/setjmp.h: Likewise.
47814 * include/grub/powerpc/types.h: Likewise.
47815 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47816 * include/grub/powerpc/ieee1275/console.h: Likewise.
47817 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47818 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47819 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47820 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47821 * include/grub/powerpc/ieee1275/time.h: Likewise.
47822 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47823 * include/grub/sparc64/libgcc.h: Likewise.
47824 * include/grub/sparc64/setjmp.h: Likewise.
47825 * include/grub/sparc64/types.h: Likewise.
47826 * include/grub/sparc64/ieee1275/console.h: Likewise.
47827 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47828 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47829 * include/grub/sparc64/ieee1275/time.h: Likewise.
47830 * include/grub/util/biosdisk.h: Likewise.
47831 * include/grub/util/getroot.h: Likewise.
47832 * include/grub/util/lvm.h: Likewise.
47833 * include/grub/util/misc.h: Likewise.
47834 * include/grub/util/raid.h: Likewise.
47835 * include/grub/util/resolve.h: Likewise.
47836 * io/gzio.c: Likewise.
47837 * kern/device.c: Likewise.
47838 * kern/disk.c: Likewise.
47839 * kern/dl.c: Likewise.
47840 * kern/elf.c: Likewise.
47841 * kern/env.c: Likewise.
47842 * kern/err.c: Likewise.
47843 * kern/file.c: Likewise.
47844 * kern/fs.c: Likewise.
47845 * kern/loader.c: Likewise.
47846 * kern/main.c: Likewise.
47847 * kern/misc.c: Likewise.
47848 * kern/mm.c: Likewise.
47849 * kern/parser.c: Likewise.
47850 * kern/partition.c: Likewise.
47851 * kern/rescue.c: Likewise.
47852 * kern/term.c: Likewise.
47853 * kern/efi/efi.c: Likewise.
47854 * kern/efi/init.c: Likewise.
47855 * kern/efi/mm.c: Likewise.
47856 * kern/i386/dl.c: Likewise.
47857 * kern/i386/efi/init.c: Likewise.
47858 * kern/i386/efi/startup.S: Likewise.
47859 * kern/i386/pc/init.c: Likewise.
47860 * kern/i386/pc/lzo1x.S: Likewise.
47861 * kern/i386/pc/startup.S: Likewise.
47862 * kern/ieee1275/ieee1275.c: Likewise.
47863 * kern/powerpc/cache.S: Likewise.
47864 * kern/powerpc/dl.c: Likewise.
47865 * kern/powerpc/ieee1275/cmain.c: Likewise.
47866 * kern/powerpc/ieee1275/crt0.S: Likewise.
47867 * kern/powerpc/ieee1275/init.c: Likewise.
47868 * kern/powerpc/ieee1275/openfw.c: Likewise.
47869 * kern/sparc64/cache.S: Likewise.
47870 * kern/sparc64/dl.c: Likewise.
47871 * kern/sparc64/ieee1275/init.c: Likewise.
47872 * kern/sparc64/ieee1275/openfw.c: Likewise.
47873 * loader/efi/chainloader.c: Likewise.
47874 * loader/efi/chainloader_normal.c: Likewise.
47875 * loader/i386/efi/linux.c: Likewise.
47876 * loader/i386/efi/linux_normal.c: Likewise.
47877 * loader/i386/pc/chainloader.c: Likewise.
47878 * loader/i386/pc/chainloader_normal.c: Likewise.
47879 * loader/i386/pc/linux.c: Likewise.
47880 * loader/i386/pc/linux_normal.c: Likewise.
47881 * loader/i386/pc/multiboot.c: Likewise.
47882 * loader/i386/pc/multiboot_normal.c: Likewise.
47883 * loader/powerpc/ieee1275/linux.c: Likewise.
47884 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47885 * normal/arg.c: Likewise.
47886 * normal/cmdline.c: Likewise.
47887 * normal/command.c: Likewise.
47888 * normal/completion.c: Likewise.
47889 * normal/execute.c: Likewise.
47890 * normal/function.c: Likewise.
47891 * normal/lexer.c: Likewise.
47892 * normal/main.c: Likewise.
47893 * normal/menu.c: Likewise.
47894 * normal/menu_entry.c: Likewise.
47895 * normal/misc.c: Likewise.
47896 * normal/parser.y: Likewise.
47897 * normal/script.c: Likewise.
47898 * normal/i386/setjmp.S: Likewise.
47899 * normal/powerpc/setjmp.S: Likewise.
47900 * normal/sparc64/setjmp.S: Likewise.
47901 * partmap/acorn.c: Likewise.
47902 * partmap/amiga.c: Likewise.
47903 * partmap/apple.c: Likewise.
47904 * partmap/gpt.c: Likewise.
47905 * partmap/pc.c: Likewise.
47906 * partmap/sun.c: Likewise.
47907 * term/gfxterm.c: Likewise.
47908 * term/terminfo.c: Likewise.
47909 * term/efi/console.c: Likewise.
47910 * term/i386/pc/console.c: Likewise.
47911 * term/i386/pc/serial.c: Likewise.
47912 * term/i386/pc/vesafb.c: Likewise.
47913 * term/i386/pc/vga.c: Likewise.
47914 * term/ieee1275/ofconsole.c: Likewise.
47915 * util/biosdisk.c: Likewise.
47916 * util/console.c: Likewise.
47917 * util/genmoddep.c: Likewise.
47918 * util/getroot.c: Likewise.
47919 * util/grub-emu.c: Likewise.
47920 * util/grub-mkdevicemap.c: Likewise.
47921 * util/grub-probe.c: Likewise.
47922 * util/lvm.c: Likewise.
47923 * util/misc.c: Likewise.
47924 * util/raid.c: Likewise.
47925 * util/resolve.c: Likewise.
47926 * util/update-grub.in: Likewise.
47927 * util/update-grub_lib.in: Likewise.
47928 * util/grub.d/00_header.in: Likewise.
47929 * util/grub.d/10_hurd.in: Likewise.
47930 * util/grub.d/10_linux.in: Likewise.
47931 * util/i386/efi/grub-install.in: Likewise.
47932 * util/i386/efi/grub-mkimage.c: Likewise.
47933 * util/i386/pc/grub-install.in: Likewise.
47934 * util/i386/pc/grub-mkimage.c: Likewise.
47935 * util/i386/pc/grub-mkrescue.in: Likewise.
47936 * util/i386/pc/grub-setup.c: Likewise.
47937 * util/i386/pc/misc.c: Likewise.
47938 * util/powerpc/ieee1275/grub-install.in: Likewise.
47939 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47940 * util/powerpc/ieee1275/misc.c: Likewise.
47941 * video/bitmap.c: Likewise.
47942 * video/video.c: Likewise.
47943 * video/i386/pc/vbe.c: Likewise.
47944 * video/i386/pc/vbeblit.c: Likewise.
47945 * video/i386/pc/vbefill.c: Likewise.
47946 * video/i386/pc/vbeutil.c: Likewise.
47947 * video/readers/tga.c: Likewise.
47948
47949 2007-07-02 Robert Millan <rmh@aybabtu.com>
47950
47951 * conf/i386-efi.rmk: Replace obsolete reference to
47952 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47953 with util/getroot.c.
47954 * conf/powerpc-ieee1275.rmk: Likewise.
47955 * conf/sparc64-ieee1275.rmk: Likewise.
47956
47957 * util/grub-emu.c (main): Fix unchecked pointer handling.
47958
47959 2007-07-02 Robert Millan <rmh@aybabtu.com>
47960
47961 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47962 invocation to fail, in order to support partition-less media.
47963
47964 * util/i386/pc/grub-install.in: Likewise.
47965
47966 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47967 which fs or partmap modules are needed (akin to its sister scripts).
47968
47969 Also use grub-probe to get rid of unportable /proc/mounts check.
47970
47971 Print the same informational message that the other scripts do, before
47972 exiting.
47973
47974 2007-06-23 Robert Millan <rmh@aybabtu.com>
47975
47976 * util/update-grub_lib.in (font_path): New function. Determine whether
47977 a font file can be found and, if so, echo the GRUB path to it.
47978
47979 * util/update-grub.in: Handle multiple terminals depending on user
47980 input, platform availability and font file presence. Propagate
47981 variables of our findings to /etc/grub.d/ children.
47982
47983 * util/grub.d/00_header.in: Handle multiple terminals, based on
47984 environment setup by update-grub.
47985
47986 2007-06-23 Robert Millan <rmh@aybabtu.com>
47987
47988 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47989
47990 2007-06-21 Robert Millan <rmh@aybabtu.com>
47991
47992 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47993 indicate end of data section in kernel image.
47994 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47995 GRUB_KERNEL_MACHINE_DATA_END.
47996
47997 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47998 space for it.
47999 * kern/i386/efi/startup.S: Likewise.
48000
48001 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48002 during image generation. Implement --prefix option to override this
48003 patch.
48004 * util/i386/efi/grub-mkimage.c: Likewise.
48005
48006 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48007 code to make path relative to its root into a separate function.
48008
48009 * util/i386/pc/grub-install.in: Use newly provided
48010 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48011 pass the result to grub-install --prefix.
48012
48013 2007-06-13 Robert Millan <rmh@aybabtu.com>
48014
48015 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48016 DEFAULT_DEVICE_MAP.
48017 * util/grub-emu.c: Use above definitions from misc.h instead of
48018 defining them.
48019 * util/grub-mkdevicemap.c: Likewise.
48020 * util/i386/pc/grub-setup.c: Likewise.
48021 * util/grub-probe.c: Likewise.
48022 (probe): Abort with grub_util_error() when either
48023 grub_guess_root_device or grub_util_get_grub_dev fails.
48024
48025 2007-06-12 Robert Millan <rmh@aybabtu.com>
48026
48027 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48028 "pager" assignment.
48029 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48030 "pcdata".
48031 * util/grub-probe.c (probe): Likewise for "drive_name".
48032
48033 2007-06-11 Robert Millan <rmh@aybabtu.com>
48034
48035 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48036 not just the cdrom one.
48037
48038 2007-06-11 Robert Millan <rmh@aybabtu.com>
48039
48040 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48041 Add --pkglibdir=DIR option to override pkglibdir.
48042 Mention --image-type=TYPE in help output.
48043 Fix --grub-mkimage (it was a no-op).
48044 Abort gracefully when no parameter is given.
48045
48046 2007-06-11 Robert Millan <rmh@aybabtu.com>
48047
48048 * util/i386/pc/grub-mkrescue.in: New file.
48049 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48050 * Makefile.in: Handle bin_SCRIPTS.
48051
48052 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48053
48054 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48055 list of video modes.
48056
48057 2007-06-06 Robert Millan <rmh@aybabtu.com>
48058
48059 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48060 file doesn't exist, or if it is in a filesystem grub can't read.
48061
48062 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48063 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48064 header comment to fit in 80 columns when the variables are resolved.
48065
48066 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48067 could be identified by update-grub. Remove redundant check for
48068 unifont.pff existence (since convert_system_path_to_grub_path now
48069 handles that).
48070
48071 2007-06-04 Robert Millan <rmh@aybabtu.com>
48072
48073 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48074
48075 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48076
48077 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48078
48079 2007-06-04 Robert Millan <rmh@aybabtu.com>
48080
48081 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48082
48083 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48084 grub_apple_partition_map_fini.
48085
48086 * util/biosdisk.c
48087 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48088 to access >2 TiB disks).
48089
48090 Print disk->total_sectors with %llu instead of %lu, since this
48091 variable is always 64-bit (prevents wrong disk size from being displayed
48092 on either >2 TiB disk or big-endian CPU).
48093
48094 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48095 into a generic case that supports all (sane) partition maps.
48096
48097 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48098 breaks big-endian.
48099
48100 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48101 and grub_apple_partition_map_fini() after that.
48102
48103 2007-06-01 Robert Millan <rmh@aybabtu.com>
48104
48105 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48106
48107 * util/grub.d/00_header.in: Only enable gfxterm when
48108 convert_system_path_to_grub_path() succeeds.
48109
48110 2007-05-20 Robert Millan <rmh@aybabtu.com>
48111
48112 * util/update-grub_lib.in: New file.
48113 * DISTLIST: Add update-grub_lib.in.
48114 * conf/common.rmk: Generate update-grub_lib and install it in
48115 $(lib_DATA).
48116 * Makefile.in: Add install routine for $(lib_DATA).
48117
48118 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48119 function provided by update-grub_lib to support arbitrary paths of
48120 unifont.pff.
48121 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48122 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48123
48124 2007-05-19 Robert Millan <rmh@aybabtu.com>
48125
48126 * commands/i386/cpuid.c: New module.
48127 * DISTLIST: Add it.
48128 * conf/i386-efi.rmk: Enable cpuid.mod.
48129 * conf/i386-pc.rmk: Likewise.
48130
48131 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48132
48133 * kern/disk.c (grub_disk_read): Check return value of
48134 grub_realloc().
48135
48136 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48137
48138 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48139 arrays.
48140 * disk/raid.c (grub_raid_open): Likewise.
48141
48142 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48143
48144 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48145 stack instead of on the heap.
48146
48147 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48148 before doing a read on it.
48149
48150 * configure.ac: Only use -fno-stack-protector for the target
48151 environment.
48152
48153 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48154
48155 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48156 __attribute_ ((unused)) to mode_type argument.
48157
48158 * util/getroot.c (grub_guess_root_device): Fix #endif.
48159
48160 * kern/misc.c (memcmp): Fix prototype.
48161
48162 * include/grub/partition.h [GRUB_UTIL]
48163 (grub_gpt_partition_map_init): Add prototype.
48164 (grub_gpt_partition_map_fini): Likewise.
48165
48166 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48167 at the right place.
48168
48169 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48170 (grub_fat_read_data): Likewise.
48171 (grub_fat_find_dir): Likewise.
48172
48173 * font/manager.c (find_glyph): Make table a const.
48174 (grub_font_get_glyph): Remove bitmap from if statement.
48175
48176 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48177
48178 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48179 code, first search for device in /dev/mapper, then in /dev.
48180 (grub_util_get_grub_dev): New function.
48181 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48182 prototype.
48183 * util/grub-probe.c (probe): Remove check for RAID, call
48184 grub_util_get_grub_dev() instead of
48185 grub_util_biosdisk_get_grub_dev().
48186 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48187 grub_util_biosdisk_get_grub_dev().
48188 * util/i386/pc/grub-setup.c (main): Likewise.
48189
48190 2007-05-16 Robert Millan <rmh@aybabtu.com>
48191
48192 * DISTLIST: Update for the latest changes.
48193 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48194 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48195 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48196 grub/util/biosdisk.h.
48197 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48198 grub/util/biosdisk.h.
48199
48200 2007-05-16 Robert Millan <rmh@aybabtu.com>
48201
48202 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48203
48204 2007-05-16 Robert Millan <rmh@aybabtu.com>
48205
48206 * util/i386/efi/grub-install.in: New.
48207 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48208 newly added grub-install.
48209 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48210 include.
48211 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48212 grub/util/biosdisk.h.
48213 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48214 grub/util/biosdisk.h.
48215
48216 2007-05-16 Robert Millan <rmh@aybabtu.com>
48217
48218 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48219 * include/grub/util/biosdisk.h: ... here.
48220 * util/i386/pc/biosdisk.c: Moved to ...
48221 * util/biosdisk.c: ... here.
48222 * util/i386/pc/getroot.c: Moved to ...
48223 * util/getroot.c: ... here.
48224 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48225 * util/grub-mkdevicemap.c: ... here.
48226 * util/i386/pc/grub-probe.c: Moved to ...
48227 * util/grub-probe.c: ... here.
48228
48229 2007-05-15 Robert Millan <rmh@aybabtu.com>
48230
48231 * util/update-grub.in: Remove duplicated line in grub.cfg header
48232 message.
48233
48234 2007-05-13 Robert Millan <rmh@aybabtu.com>
48235
48236 * util/update-grub.in: Fix a few assumptions about the devices holding
48237 /, /boot and /boot/grub being the same.
48238 * util/grub.d/00_header.in: Likewise.
48239 * util/grub.d/10_hurd.in: Likewise.
48240 * util/grub.d/10_linux.in: Likewise.
48241
48242 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48243 patterns. Use that to define the `.old' suffix as older than `'.
48244
48245 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48246
48247 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48248 the grub.cfg header message.
48249
48250 2007-05-11 Robert Millan <rmh@aybabtu.com>
48251
48252 * util/update-grub.in: Create device.map if it doesn't already exist,
48253 before attempting to run grub-probe.
48254 Check for grub-probe and grub-mkdevicemap with the same code
48255 grub-install is using.
48256 Remove test mode.
48257
48258 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48259
48260 * Makefile.in: Add the datarootdir autoconf variable.
48261
48262 2007-05-09 Robert Millan <rmh@aybabtu.com>
48263
48264 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48265 fail gracefully if dev->disk->partition == NULL.
48266
48267 2007-05-07 Robert Millan <rmh@aybabtu.com>
48268
48269 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48270 determine partition map module.
48271 * util/i386/pc/grub-install.in: Use this feature to decide which
48272 partition module to load, instead of hardcoding pc and gpt.
48273
48274 2007-05-07 Robert Millan <rmh@aybabtu.com>
48275
48276 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48277 source directory differs from build directory.
48278
48279 2007-05-05 Robert Millan <rmh@aybabtu.com>
48280
48281 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48282 initialisation.
48283
48284 2007-05-05 Robert Millan <rmh@aybabtu.com>
48285
48286 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48287
48288 2007-05-05 Robert Millan <rmh@aybabtu.com>
48289
48290 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48291 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48292
48293 2007-05-05 Robert Millan <rmh@aybabtu.com>
48294
48295 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48296 (grub_probe_SOURCES): Likewise.
48297 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48298 GPT and initialize dos_part and bsd_part accordingly.
48299 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48300 install_bsd_part.
48301 (main): Activate gpt module for use during partition identification,
48302 and deactivate it afterwards.
48303 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48304 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48305 partition identification, and deactivate it afterwards.
48306
48307 2007-05-05 Robert Millan <rmh@aybabtu.com>
48308
48309 * term/i386/pc/console.c (grub_console_fini): Call
48310 grub_term_set_current() before grub_term_unregister().
48311
48312 2007-05-04 Robert Millan <rmh@aybabtu.com>
48313
48314 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48315 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48316 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48317 and update-grub_DATA.
48318 * conf/common.rmk: Build and install update-grub components.
48319 * conf/common.mk: Regenerate.
48320 * util/update-grub.in: New. Core of update-grub.
48321 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48322 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48323 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48324 * util/grub.d/README: New. Document grub.d directory layout.
48325
48326 2007-05-01 Robert Millan <rmh@aybabtu.com>
48327
48328 * util/grub-emu.c: Move initialization functions
48329 grub_util_biosdisk_init() and grub_init_all() before
48330 grub_util_biosdisk_get_grub_dev(), which relies on them.
48331
48332 2007-04-19 Robert Millan <rmh@aybabtu.com>
48333
48334 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48335 it is used later.
48336
48337 2007-04-18 Jerone Young <jerone@gmail.com>
48338
48339 * kernel/elf.c: Add missing parenthesis for conditional statement
48340 stanza.
48341
48342 2007-04-10 Jerone Young <jerone@gmail.com>
48343
48344 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48345 continue on and look for device node with real device name.
48346
48347 2007-04-10 Jerone Young <jerone@gmail.com>
48348
48349 * configure.ac: Add argument for autoconf to use transformation
48350 ability.
48351 * Makefile.in: Add autoconf package transformation code.
48352 * util/i386/pc/grub-install.in: Likewise.
48353 * util/powerpc/ieee1275/grub-install.in: Likewise.
48354
48355 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48356
48357 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48358 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48359 (EXT2_REVISION): Likewise.
48360 (EXT2_INODE_SIZE): Likewise.
48361 (struct grub_ext2_block_group): Added a missing member
48362 "used_dirs".
48363 (grub_ext2_read_inode): Divide by the inode size in a superblock
48364 instead of 128 to obtain INODES_PER_BLOCK.
48365 Use the macro EXT2_INODE_SIZE instead of directly using
48366 SBLOCK->INODE_SIZE.
48367
48368 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48369
48370 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48371 superblock instead of the structure size to compute an
48372 offset. This fixes the problem that GRUB could not read a
48373 filesystem when inode size is different from 128-byte.
48374
48375 2007-03-05 Marco Gerards <marco@gnu.org>
48376
48377 * normal/main.c (read_config_file): When "menu" is not set, create
48378 an initial context.
48379
48380 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48381
48382 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48383 (HEAP_LIMIT): New macro.
48384 (grub_claim_heap): Claim memory up to `heaplimit'.
48385
48386 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48387
48388 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48389 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48390 (_start): Likewise.
48391 (grub_arch_modules_addr): Return address after `_end'.
48392 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48393 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48394 (add_segments): Calculate `_end' from phdr size and location.
48395 (ALIGN_UP): Moved to ...
48396 * include/grub/misc.h: here.
48397 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48398 New macro.
48399 (GRUB_IEEE1275_MODULE_BASE): Removed.
48400
48401 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48402
48403 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48404 loop boundary.
48405
48406 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48407
48408 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48409 All users updated.
48410 (grub_elf64_load_hook_t): Likewise.
48411 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48412 debug output.
48413
48414 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48415
48416 * kern/mm.c: Update copyright.
48417 (grub_mm_debug): Correct syntax error.
48418 (grub_mm_dump_free): New function.
48419 (grub_debug_free): Call `grub_free'.
48420 * include/grub/mm.h: Update copyright.
48421 (grub_mm_dump_free): Add declaration.
48422
48423 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48424
48425 * include/grub/ieee1275/ieee1275.h: Update copyright.
48426 * kern/powerpc/ieee1275/init.c: Likewise.
48427 * kern/powerpc/ieee1275/openfw.c: Likewise.
48428
48429 * loader/powerpc/ieee1275/linux.c: Likewise.
48430 * include/grub/elfload.h: Likewise.
48431 * kern/elf.c: Likewise.
48432 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48433 callers.
48434 (grub_elf64_load): Likewise.
48435 (grub_elf32_load_segment): Move to a nested function.
48436 (grub_elf64_load_segment): Likewise.
48437
48438 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48439
48440 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48441 prototype.
48442 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48443 (grub_heap_len): Likewise.
48444 (HEAP_SIZE): New macro.
48445 (grub_claim_heap): New function.
48446 (grub_machine_init): Don't claim heap directly. Call
48447 `grub_claim_heap'.
48448 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48449 (grub_available_iterate): New function.
48450
48451 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48452
48453 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48454 * configure.ac: Use it for testing the HOST and TARGET compilers.
48455
48456 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48457
48458 * Makefile.in (enable_grub_emu): New variable.
48459 * configure.ac (--enable-grub-emu): New option.
48460 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48461 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48462 * conf/i386-pc.rmk: Likewise.
48463 * conf/powerpc-ieee1275.rmk: Likewise.
48464 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48465
48466 2006-12-12 Marco Gerards <marco@gnu.org>
48467
48468 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48469
48470 * kern/env.c (grub_env_unset): Don't free the member `value' when
48471 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48472 pointer.
48473
48474 * normal/main.c (current_menu): Removed.
48475 (free_menu): Unset the `menu' environment variable.
48476 (grub_normal_menu_addentry): Make use of the environment variable
48477 `menu', instead of using the global `current_menu'. Allocate
48478 memory for the sourcecode of this entry.
48479 (read_config_file): New argument `nested', changed all callers.
48480 Only in the case of a new context, initialize a new menu. Set the
48481 `menu' environment variable.
48482 (grub_normal_execute): Don't set and unset the environment
48483 variable `menu' here anymore. Only free the menu when leaving the
48484 context.
48485
48486 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48487 leak.
48488
48489 2006-12-11 Marco Gerards <marco@gnu.org>
48490
48491 * normal/menu_entry.c (run): Fix off by one bug so the last line
48492 is executed. Move the loader check to outside the loop.
48493
48494 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48495
48496 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48497
48498 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48499
48500 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48501 the number of sectors. Reported by Andrey Shuvikov
48502 <mr_hyro@yahoo.com>.
48503
48504 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48505
48506 * kern/disk.c (grub_disk_read): When there is a read error, always
48507 try to read only the necessary data.
48508
48509 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48510 disk/raid.c.
48511 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48512 prototype.
48513 [GRUB_UTIL] (grub_raid_fini): Likewise.
48514 [GRUB_UTIL] (grub_lvm_init): Likewise.
48515 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48516 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48517 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48518 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48519 and grub_raid_fini().
48520
48521 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48522
48523 * include/grub/types.h (__unused): Rename to UNUSED.
48524 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48525 (grub_elf64_size): Likewise.
48526
48527 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48528
48529 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48530 grub_error_push and grub_error_pop in the error-handling path.
48531 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48532 length.
48533
48534 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48535
48536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48537 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48539 (kernel_elf_SOURCES): Likewise.
48540 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48541 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48542 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48543 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48544 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48545 (elf_mod_SOURCES): New variable.
48546 (elf_mod_CFLAGS): Likewise.
48547 (elf_mod_LDFLAGS): Likewise.
48548 * include/grub/types.h (__unused): New macro.
48549 * include/grub/elfload.h: New file.
48550 * kern/elf.c: Likewise.
48551 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48552 (ELF32_LOADMASK): New macro.
48553 (ELF64_LOADMASK): Likewise.
48554 (vmlinux): Removed.
48555 (grub_linux_load32): New function.
48556 (grub_linux_load64): Likewise.
48557 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48558 Use grub_elf_t instead of grub_file_t.
48559
48560 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48561
48562 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48563 `catch_result' to struct set_color_args.
48564
48565 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48566
48567 * normal/menu.c: Include grub/script.h.
48568 * normal/menu_entry.c: Likewise.
48569 * include/grub/normal.h: Do not include grub/script.h.
48570
48571 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48572
48573 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48574
48575 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48576
48577 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48578 disk.
48579 (grub_disk_close): Print debug messages when closing a disk.
48580 (grub_disk_read): Print debug messages when disk read fails.
48581 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48582 filesystem type.
48583 * kern/partition.c: Include misc.h.
48584 (grub_partition_iterate): Print debug messages when detecting
48585 partition type.
48586
48587 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48588
48589 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48590 is negative.
48591 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48592
48593 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48594
48595 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48596 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48597
48598 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48599
48600 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48601 instead of sizeof(lv). Patch by Michael Guntsche.
48602
48603 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48604
48605 * disk/lvm.c: Rename VGS to VG_LIST.
48606 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48607 (grub_lvm_open): Likewise.
48608 Thanks to Michael Guntsche for finding this bug.
48609
48610 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48611
48612 * configure.ac (AC_INIT): Bumped to 1.95.
48613
48614 2006-10-14 Robert Millan <rmh@aybabtu.com>
48615
48616 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48617 with "/dev/.static/dev/md".
48618
48619 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48620
48621 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48622 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48623 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48624 DRIVE_NAME are always freed.
48625
48626 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48627 DOS_PART, as a DOS partition is counted from one instead of zero
48628 now. Reported by Robert Millan.
48629
48630 2006-10-14 Robert Millan <rmh@aybabtu.com>
48631
48632 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48633 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48634 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48635 string returned by grub_guess_root_device.
48636 * util/i386/pc/grub-setup.c: Likewise.
48637 * util/i386/pc/grub-probefs.c: Likewise.
48638
48639 * util/i386/pc/grub-probefs.c: Rename to ...
48640 * util/i386/pc/grub-probe.c: ... this.
48641 * DISTLIST: Remove grub-probefs, add grub-probe.
48642 * conf/i386-efi.rmk: Likewise.
48643 * conf/i386-pc.rmk: Likewise.
48644 * util/i386/pc/grub-install.in: Likewise.
48645
48646 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48647 choose which information we want to print.
48648
48649 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48650
48651 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48652 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48653 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48654 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48655 video/readers/tga.c and video/i386/pc/vbeutil.c.
48656
48657 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48658
48659 Added support for RAID and LVM.
48660
48661 * disk/lvm.c: New file.
48662 * disk/raid.c: Likewise.
48663 * include/grub/lvm.h: Likewise.
48664 * include/grub/raid.h: Likewise.
48665 * include/grub/util/lvm.h: Likewise.
48666 * include/grub/util/raid.h: Likewise.
48667 * util/lvm.c: Likewise.
48668 * util/raid.c: Likewise.
48669
48670 * include/grub/disk.h (grub_disk_dev_id): Add
48671 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48672 (grub_disk_get_size): New prototype.
48673 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48674 returns a partition.
48675 (grub_disk_get_size): New function.
48676
48677 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48678 verbatim if grub_install_dos_part is -2.
48679
48680 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48681 and LVM devices.
48682
48683 * util/i386/pc/grub-setup.c (setup): New argument
48684 MUST_EMBED. Force embedding of GRUB when the argument is
48685 true. Close FILE before returning.
48686 (main): Add support for RAID and LVM.
48687
48688 * conf/common.rmk: Add RAID and LVM modules.
48689 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48690 util/lvm.c.
48691 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48692
48693 * kern/misc.c (grub_strstr): New function.
48694 * include/grub/misc.h (grub_strstr): New prototype.
48695
48696 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48697
48698 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48699
48700 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48701
48702 * kern/misc.c (grub_strtoull): Guess the base only if not
48703 specified.
48704
48705 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48706
48707 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48708 PowerMac support.
48709
48710 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48711
48712 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48713
48714 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48715 Remove `flags' argument. All callers changed.
48716 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48717 (IEEE1275_IHANDLE_INVALID): New variable.
48718 (IEEE1275_CELL_INVALID): New variable.
48719 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48720 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48721 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48722 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48723 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48724 codes from Open Firmware. All callers updated.
48725 (grub_ieee1275_next_property): Directly return Open Firmware return
48726 code.
48727 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48728 Standardize error checking from `grub_ieee1275_get_property'.
48729 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48730 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48731
48732 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48733
48734 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48735 `instance_to_package_args' to `instance_to_path_args'.
48736
48737 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48738 `grub_ieee1275_chosen'.
48739
48740 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48741 `grub_ieee1275_interpret'.
48742
48743 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48744
48745 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48746
48747 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48748
48749 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48750 (__cmpdi): Likewise.
48751
48752 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48753 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48754 `grub_ssize_t'.
48755
48756 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48757
48758 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48759 to type `grub_ssize_t'.
48760 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48761
48762 2006-09-22 Marco Gerards <marco@gnu.org>
48763
48764 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48765 newlines.
48766
48767 2006-09-22 Marco Gerards <marco@gnu.org>
48768
48769 * commands/echo.c: New file.
48770
48771 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48772
48773 * conf/common.rmk (echo_mod_SOURCES): New variable.
48774 (echo_mod_CFLAGS): Likewise.
48775 (echo_mod_LDFLAGS): Likewise.
48776
48777 2006-09-22 Marco Gerards <marco@gnu.org>
48778
48779 * normal/main.c (get_line): Malloc memory instead of using
48780 preallocated memory. Removed the arguments `cmdline' and
48781 `max_len'. Updated all callers.
48782
48783 2006-09-22 Marco Gerards <marco@gnu.org>
48784
48785 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48786 (normal_mod_DEPENDENCIES): Likewise.
48787
48788 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48789 (normal_mod_DEPENDENCIES): Likewise.
48790
48791 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48792
48793 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48794
48795 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48796 programs.
48797 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48798 (normal_mod_DEPENDENCIES): Likewise.
48799 * conf/i386-pc.mk: Regenerate.
48800 * conf/i386-efi.mk: Likewise
48801 * conf/common.mk: Likewise.
48802 * conf/powerpc-ieee1275.mk: Likewise.
48803 * conf/sparc64-ieee1275.mk: Likewise.
48804
48805 2006-09-22 Robert Millan <rmh@aybabtu.com>
48806
48807 Sync with i386 version.
48808 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48809 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48810
48811 2006-09-21 Robert Millan <rmh@aybabtu.com>
48812
48813 Import from GRUB Legacy (lib/device.c):
48814 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48815 (init_device_map) [__linux__]: Add support for I2O devices.
48816
48817 2006-09-14 Marco Gerards <marco@gnu.org>
48818
48819 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48820 `-melf_i386'.
48821
48822 2006-09-14 Robert Millan <rmh@aybabtu.com>
48823
48824 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48825 /boot/grub/*.lst.
48826
48827 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48828
48829 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48830 before adding it to device.map.
48831
48832 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48833
48834 * genmk.rb: Let GCC generate dependencies the first time it
48835 compiles a file; using the -MD option.
48836 * conf/common.mk: Regenerate.
48837 * conf/i386-pc.mk: Likewise.
48838 * conf/i386-efi.mk: Likewise.
48839 * conf/powerpc-ieee1275.mk: Likewise.
48840 * conf/sparc64-ieee1275.mk: Likewise.
48841
48842 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48843
48844 Move the prototypes of grub_setjmp and grub_longjmp to
48845 cpu/setjmp.h, so that each architecture may specify different
48846 attributes.
48847
48848 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48849 (grub_longjmp): Likewise.
48850 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48851 (grub_longjmp): Likewise.
48852 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48853 (grub_longjmp): Likewise.
48854
48855 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48856 [!GRUB_UTIL] (grub_longjmp): Removed.
48857
48858 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48859
48860 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48861 "color!" method does not return any value.
48862
48863 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48864
48865 * include/grub/bitmap.h: New file.
48866
48867 * include/grub/i386/pc/vbeutil.h: Likewise.
48868
48869 * video/bitmap.c: Likewise.
48870
48871 * video/readers/tga.c: Likewise.
48872
48873 * video/i386/pc/vbeutil.c: Likewise.
48874
48875 * commands/videotest.c: Code cleanup and updated to reflect to new
48876 video API.
48877
48878 * term/gfxterm.c: Likewise.
48879
48880 * video/video.c: Likewise.
48881
48882 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48883 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48884 (bitmap_mod_SOURCES): New entry.
48885 (bitmap_mod_CFLAGS): Likewise.
48886 (bitmap_mod_LDFLAGS): Likewise.
48887 (tga_mod_SOURCES): Likewise.
48888 (tga_mod_CFLAGS): Likewise.
48889 (tga_mod_LDFLAGS): Likewise.
48890
48891 * include/grub/video.h (grub_video_blit_operators): New enum type.
48892 (grub_video_render_target): Changed as forward declaration and moved
48893 actual definition to be video driver specific.
48894 (grub_video_adapter.blit_bitmap): Added blitting operator.
48895 (grub_video_adapter.blit_render_target): Likewise.
48896 (grub_video_blit_bitmap): Likewise.
48897 (grub_video_blit_render_target): Likewise.
48898
48899 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48900 driver specific render target definition.
48901 (grub_video_vbe_map_rgba): Added driver internal helper.
48902 (grub_video_vbe_unmap_color): Updated to use
48903 grub_video_i386_vbeblit_info.
48904 (grub_video_vbe_get_video_ptr): Likewise.
48905
48906 * include/grub/i386/pc/vbeblit.h
48907 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48908 grub_video_i386_vbeblit_info.
48909 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48910 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48911 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48912 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48913 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48914 (grub_video_i386_vbeblit_index_index): Likewise.
48915 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48916 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48917 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48918 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48919 operator.
48920 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48921 operator.
48922
48923 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48924 include/grub/i386/pc/vbeblit.h.
48925
48926 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48927 Updated to use grub_video_i386_vbeblit_info.
48928 (grub_video_i386_vbefill_R8G8B8): Likewise.
48929 (grub_video_i386_vbefill_index): Likewise.
48930 (grub_video_i386_vbefill): Added generic filler.
48931
48932 * video/i386/pc/vbefill.c: Updated to reflect changes on
48933 include/grub/i386/pc/vbefill.h.
48934
48935 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48936 grub_video_i386_vbeblit_info.
48937 (grub_video_vbe_unmap_color): Likewise.
48938 (grub_video_vbe_blit_glyph): Likewise.
48939 (grub_video_vbe_scroll): Likewise.
48940 (grub_video_vbe_draw_pixel): Removed function.
48941 (grub_video_vbe_get_pixel): Likewise.
48942 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48943 updated code to use it.
48944 (common_blitter): Added common blitter for render target and bitmap.
48945 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48946 (grub_video_vbe_blit_render_target): Likewise.
48947
48948 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48949
48950 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48951 is in text mode if there is no console control protocol instance
48952 available.
48953
48954 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48955
48956 * include/grub/video.h: Code cleanup.
48957
48958 * include/grub/i386/pc/vbe.h: Likewise.
48959
48960 * video/i386/pc/vbe.c: Likewise.
48961
48962 * video/i386/pc/vbeblit.c: Likewise.
48963
48964 * video/i386/pc/vbefill.c: Likewise.
48965
48966 * video/video.c: Likewise. Also added more comments.
48967
48968 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48969
48970 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48971 (struct grub_biosdisk_dap): Likewise.
48972
48973 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48974 linkage settings for all functions.
48975
48976 2006-07-12 Marco Gerards <marco@gnu.org>
48977
48978 * configure.ac (--enable-mm-debug): Fix typo.
48979
48980 * genkernsyms.sh.in: Use proper quoting for `CC'.
48981
48982 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48983
48984 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48985 (normal_mod_ASFLAGS): Remove "-m32".
48986
48987 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48988
48989 * util/misc.c: Include config.h.
48990 [!HAVE_MEMALIGN]: Do not include malloc.h.
48991 (grub_memalign): Use posix_memalign, if present. Then, use
48992 memalign, if present. Otherwise, emit an error.
48993
48994 * util/grub-emu.c: Do not include malloc.h.
48995
48996 * include/grub/util/misc.h: Include unistd.h. This is required for
48997 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48998 D. Eades III <hde@foobar-qux.org>.
48999
49000 * configure.ac (AC_GNU_SOURCE): Added.
49001 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49002 type.
49003
49004 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49005
49006 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49007 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49008
49009 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49010
49011 * include/grub/types.h (grub_host_addr_t): Rename to
49012 grub_target_addr_t.
49013 (grub_host_off_t): Rename to grub_target_off_t.
49014 (grub_host_size_t): Rename to grub_target_size_t.
49015 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49016 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49017
49018 * include/grub/kernel.h (struct grub_module_header): Change type
49019 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49020 (grub_module_info): Likewise.
49021
49022 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49023
49024 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49025 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49026 Velazquez <jesus.velazquez@gmail.com>.
49027
49028 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49029
49030 Count partitions from 1 instead of 0 in the string representation
49031 of partitions. Still use 0-based internally.
49032
49033 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49034 (sun_partition_map_iterate): Use grub_partition_t instead of
49035 struct grub_partition *. Cast DESC->START_CYLINDER to
49036 grub_uint64_t after converting the endian.
49037 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49038 (sun_partition_map_get_name): Add 1 to P->INDEX.
49039
49040 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49041 PCDATA->DOS_PART.
49042 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49043
49044 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49045 zero instead of one.
49046 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49047 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49048
49049 * partmap/apple.c (apple_partition_map_iterate): Change the type
49050 of POS to unsigned.
49051 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49052 (apple_partition_map_get_name): Add 1 into P->INDEX.
49053
49054 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49055 of POS to unsigned.
49056 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49057 calculate the offset of a partition.
49058 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49059 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49060
49061 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49062 SECTOR to grub_disk_addr_t.
49063 (acorn_partition_map_iterate): Likewise.
49064 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49065 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49066 top.
49067 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49068
49069 * kern/i386/pc/init.c (make_install_device): Add 1 into
49070 GRUB_INSTALL_DOS_PART.
49071
49072 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49073 conditional.
49074
49075 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49076
49077 Clean up the code to support 64-bit addressing in disks and
49078 files. This change is not enough for filesystems yet.
49079
49080 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49081 type of "start" to grub_uint64_t.
49082 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49083 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49084 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49085 convert addresses.
49086
49087 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49088 to grub_disk_addr_t.
49089
49090 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49091 string.
49092
49093 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49094
49095 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49096 to char *.
49097
49098 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49099
49100 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49101
49102 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49103
49104 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49105 to grub_off_t, to detect an error from grub_file_seek.
49106 (grub_multiboot_load_elf32): Likewise.
49107
49108 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49109 maximum unsigned long value when an overflow is detected.
49110 (grub_strtoull): New function.
49111 (grub_divmod64): Likewise.
49112 (grub_lltoa): use grub_divmod64.
49113
49114 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49115 grub_disk_addr_t.
49116 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49117 the pointer to next character. Use grub_strtoull instead of
49118 grub_strtoul.
49119 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49120 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49121 respectively.
49122
49123 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49124 return value is signed.
49125 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49126 test if OFFSET is less than zero, as OFFSET is unsigned now.
49127
49128 * kern/disk.c (struct grub_disk_cache): Change the type of
49129 "sector" to grub_disk_addr_t.
49130 (grub_disk_cache_get_index): Change the type of SECTOR to
49131 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49132 unsigned after shifting.
49133 (grub_disk_cache_invalidate): Change the type of SECTOR to
49134 grub_disk_addr_t.
49135 (grub_disk_cache_unlock): Likewise.
49136 (grub_disk_cache_store): Likewise.
49137 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49138 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49139 grub_disk_addr_t and grub_uint64_t, respectively.
49140 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49141 body, as the value of OFFSET is tweaked by
49142 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49143 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49144 respectively.
49145 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49146 body, as the value of OFFSET is tweaked by
49147 grub_disk_check_range. Change the types of LEN and N to
49148 grub_size_t.
49149
49150 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49151 and "saved_offset" to grub_off_t.
49152 (test_header): Cast BUF to char *.
49153 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49154 to char *.
49155 (grub_gzio_read): Change the types of OFFSET and SIZE to
49156 grub_off_t and grub_size_t, respectively.
49157
49158 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49159 Removed.
49160 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49161 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49162 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49163 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49164 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49165
49166 * include/grub/types.h (grub_off_t): Unconditionally set to
49167 grub_uint64_t.
49168 (grub_disk_addr_t): Changed to grub_uint64_t.
49169
49170 * include/grub/partition.h (struct grub_partition): Change the
49171 types of "start", "len" and "offset" to grub_disk_addr_t,
49172 grub_uint64_t and grub_disk_addr_t, respectively.
49173 (grub_partition_get_start): Return grub_disk_addr_t.
49174 (grub_partition_get_len): Return grub_uint64_t.
49175
49176 * include/grub/misc.h (grub_strtoull): New prototype.
49177 (grub_divmod64): Likewise.
49178
49179 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49180 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49181 grub_off_t, respectively.
49182 All callers and references changed.
49183
49184 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49185 grub_size_t in "read".
49186 All callers and references changed.
49187
49188 * include/grub/file.h (struct grub_file): Change the types of
49189 "offset" and "size" to grub_off_t and grub_off_t,
49190 respectively. Change the type of SECTOR to grub_disk_addr_t in
49191 "read_hook".
49192 (grub_file_read): Change the type of LEN to grub_size_t.
49193 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49194 grub_off_t.
49195 (grub_file_size): Return grub_off_t.
49196 (grub_file_tell): Likewise.
49197 All callers and references changed.
49198
49199 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49200 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49201 "write".
49202 (struct grub_disk): Change the type of "total_sectors" to
49203 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49204 "read_hook".
49205 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49206 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49207 (grub_disk_write): Likewise.
49208 All callers and references changed.
49209
49210 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49211 char * for grub_strncmp to silence gcc.
49212 (grub_iso9660_mount): Likewise.
49213 (grub_iso9660_mount): Likewise.
49214 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49215 return statement.
49216 (grub_iso9660_iterate_dir): Likewise.
49217 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49218
49219 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49220 LEN to grub_disk_addr_t and grub_size_t, respectively.
49221
49222 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49223
49224 * fs/jfs.c (grub_jfs_read_file): Likewise.
49225
49226 * fs/minix.c (grub_jfs_read_file): Likewise.
49227
49228 * fs/sfs.c (grub_jfs_read_file): Likewise.
49229
49230 * fs/ufs.c (grub_jfs_read_file): Likewise.
49231
49232 * fs/xfs.c (grub_jfs_read_file): Likewise.
49233
49234 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49235 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49236 respectively.
49237
49238 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49239 BLKNR to -1 instead of returning GRUB_ERRNO.
49240 (grub_ext2_read_file): Change the types of SECTOR and
49241 LEN to grub_disk_addr_t and grub_size_t, respectively.
49242
49243 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49244 LEN to grub_disk_addr_t and grub_size_t, respectively.
49245
49246 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49247 grub_file_read.
49248
49249 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49250 string. Do not cast SECTOR explicitly.
49251
49252 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49253 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49254 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49255 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49256 over 2TB and LBA mode is not supported, raise an error.
49257 (get_safe_sectors): New function.
49258 (grub_biosdisk_read): Use get_safe_sectors.
49259 (grub_biosdisk_write): Likewise.
49260
49261 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49262 (grub_efidisk_write): Likewise.
49263
49264 * disk/loopback.c (delete_loopback): Cosmetic changes.
49265 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49266 correctly.
49267 (grub_loopback_open): Likewise.
49268 (grub_loopback_read): Likewise. Also, change the type of POS to
49269 grub_off_t, and fix the usage of grub_memset.
49270
49271 * commands/i386/pc/play.c: Include grub/machine/time.h.
49272
49273 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49274 print FILE->SIZE.
49275
49276 * commands/configfile.c: Include grub/env.h.
49277
49278 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49279 GRUB_ERRNO directly instead. Change the type of POS to
49280 grub_off_t. Follow the coding standard.
49281
49282 * commands/blocklist.c: Include grub/partition.h.
49283 (grub_cmd_blocklist): Return an error if the underlying device is
49284 not a disk. Take the starting sector of a partition into account,
49285 if a partition is used.
49286
49287 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49288 a length field.
49289 (lba_mode): Support 64-bit addresses.
49290 (chs_mode): Likewise.
49291 (copy_buffer): Adapted to the new offsets of a length field and a
49292 segment field.
49293 (blocklist_default_start): Allocate 64-bit space.
49294
49295 * boot/i386/pc/boot.S (force_lba): Removed.
49296 (boot_drive): Moved to under KERNEL_SECTOR.
49297 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49298 space.
49299 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49300 is useless.
49301 (lba_mode): Refactored to support a 64-bit address. More size
49302 optimization.
49303 (setup_sectors): Likewise.
49304
49305 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49306
49307 * DISTLIST: Added include/grub/i386/linux.h. Removed
49308 include/grub/i386/pc/linux.h
49309
49310 * configure.ac (AC_INIT): Bumped to 1.94.
49311
49312 * config.guess: Updated from gnulib.
49313 * config.sub: Likewise.
49314 * install-sh: Likewise.
49315 * mkinstalldirs: Likewise.
49316
49317 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49318
49319 * conf/common.rmk (grub_modules_init.lst): Depended on
49320 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49321 MODSRCFILES.
49322
49323 * genmk.rb (PModule::rule): Reverted the previous change.
49324
49325 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49326
49327 * conf/common.rmk (grub_modules_init.lst): Depends on
49328 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49329 that the target does not exist before producing.
49330 (grub_modules_init.h): Remove the target before generating.
49331 (grub_emu_init.c): Likewise.
49332
49333 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49334
49335 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49336
49337 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49338 for the target-specific tests. Make sure that we also have the
49339 up-to-date target variables for those tests.
49340
49341 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49342
49343 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49344 (PModule::rule): Likewise.
49345
49346 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49347
49348 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49349 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49350 target-specific flags should be prefixed.
49351 (PModule::rule): Likewise.
49352
49353 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49354
49355 * configure.ac (CMP): Check if cmp is available explicitly.
49356
49357 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49358
49359 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49360 (target_cpu): New variable.
49361 (pkglibdir): Use target_cpu instead of host_cpu.
49362
49363 * util/i386/pc/grub-install.in (host_cpu): Removed.
49364 (target_cpu): New variable.
49365 (pkglibdir): Use target_cpu instead of host_cpu.
49366
49367 * util/genmoddep.c: Removed.
49368
49369 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49370 instead of GRUB_HOST_SIZEOF_VOID_P.
49371 * kern/dl.c: Likewise.
49372
49373 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49374 ...
49375 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49376 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49377 (GRUB_TARGET_SIZEOF_LONG): ... this.
49378 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49379 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49380 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49381 to ...
49382 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49383 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49384 (GRUB_TARGET_SIZEOF_LONG): ... this.
49385 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49386 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49387 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49388 to ...
49389 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49390 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49391 (GRUB_TARGET_SIZEOF_LONG): ... this.
49392 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49393 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49394
49395 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49396 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49397 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49398 instead of GRUB_HOST_SIZEOF_LONG.
49399 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49400 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49401 GRUB_CPU_WORDS_BIGENDIAN.
49402 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49403 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49404 grub_host_ssize_t.
49405
49406 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49407 (genmoddep_SOURCES): Likewise.
49408 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49409 (genmoddep_SOURCES): Likewise.
49410 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49411 (genmoddep_SOURCES): Likewise.
49412 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49413 Likewise.
49414 (genmoddep_SOURCES): Likewise.
49415
49416 * genmoddep.awk: New file.
49417
49418 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49419 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49420 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49421 (PModule::rule): Likewise.
49422 (Program::rule): Likewise.
49423 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49424 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49425 respectively.
49426
49427 * configure.ac: Rewritten intensively to use host and target
49428 instead of build and host, respectively.
49429
49430 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49431 (host_cpu): Removed.
49432 (target_cpu): New variable.
49433 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49434 (BUILD_CC): Removed.
49435 (BUILD_CFLAGS): Likewise.
49436 (BUILD_CPPFLAGS): Likewise.
49437 (TARGET_CC): New variable.
49438 (TARGET_CFLAGS): Likewise.
49439 (TARGET_CPPFLAGS): Likewise.
49440 (TARGET_LDFLAGS): Likewise.
49441 (AWK): Likewise.
49442 (include): Use target_cpu instead of host_cpu.
49443 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49444
49445 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49446
49447 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49448
49449 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49450 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49451 field 'false' to 'exec_on_false'.
49452 (grub_script_create_cmdif): Renamed argument names to reflect above
49453 changes.
49454
49455 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49456
49457 * normal/script.c (grub_script_create_cmdif): Likewise.
49458
49459 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49460
49461 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49462 top.
49463 (grub_hfsplus_btree_recptr): Likewise.
49464 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49465 FILEBLOCK both to pass a block number and store next block
49466 number.
49467 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49468 overflow file correctly. Specify errors appropriately, because
49469 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49470 grub_hfsplus_btree_recptr to get the pointer to a found key.
49471 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49472 is found.
49473
49474 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49475 linux.mod.
49476 (_linux_mod_SOURCES): New variable.
49477 (_linux_mod_CFLAGS): Likewise.
49478 (_linux_mod_LDFLAGS): Likewise.
49479 (linux_mod_SOURCES): Likewise.
49480 (linux_mod_CFLAGS): Likewise.
49481 (linux_mod_LDFLAGS): Likewise.
49482
49483 * DISTLIST: Added loader/i386/efi/linux.c,
49484 loader/i386/efi/linux_normal.c and
49485 include/grub/i386/efi/loader.h.
49486
49487 * loader/i386/efi/linux.c: New file.
49488 * loader/i386/efi/linux_normal.c: Likewise.
49489 * include/grub/i386/efi/loader.h: Likewise.
49490
49491 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49492
49493 * commands/blocklist.c: New file.
49494
49495 * DISTLIST: Added commands/blocklist.c.
49496
49497 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49498 color for the background, and a darker color for the foreground.
49499 (grub_console_checkkey): Return READ_KEY.
49500 (grub_console_cls): Set the background to
49501 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49502
49503 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49504
49505 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49506 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49507
49508 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49509 prototype.
49510
49511 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49512 BG. The spec is wrong again.
49513
49514 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49515 prototype.
49516 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49517
49518 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49519 commands/blocklist.c.
49520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49521
49522 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49523 (blocklist_mod_SOURCES): New variable.
49524 (blocklist_mod_CFLAGS): Likewise.
49525 (blocklist_mod_LDFLAGS): Likewise.
49526
49527 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49528
49529 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49530 duplication.
49531 (lba_mode): Use %eax more intensively to reduce the code size.
49532
49533 2006-05-20 Marco Gerards <marco@gnu.org>
49534
49535 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49536
49537 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49538 for `menuentry'.
49539 (script): Accept leading newlines.
49540 (newlines): New rule to describe 0 or more newlines.
49541 (commands): Accept `command' with trailing newline. Fixed the
49542 order in which arguments were passed to `grub_script_add_cmd'.
49543 Accept commands separated by newlines.
49544 (function): Changed to accept newlines.
49545 (menuentry) Rewritten.
49546
49547 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49548 front of the list, instead of to the end.
49549
49550 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49551
49552 * util/i386/pc/grub-install.in (bindir): New variable.
49553 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49554 Shaver <lbgwjl@gmail.com>.
49555
49556 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49557
49558 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49559 grub/machine/linux.h
49560 * loader/i386/pc/linux.c: Likewise.
49561
49562 * include/grub/i386/pc/linux.h: Moved to ...
49563 * include/grub/i386/linux.h: ... here.
49564
49565 * include/grub/i386/linux.h (struct linux_kernel_params): New
49566 struct.
49567
49568 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49569
49570 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49571 checking.
49572 (grub_video_vbe_blit_glyph): Likewise.
49573 (grub_video_vbe_blit_bitmap): Likewise.
49574 (grub_video_vbe_blit_render_target): Likewise.
49575
49576 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49577
49578 * configure.ac (--with-platform): Properly quote the square
49579 brackets.
49580
49581 2006-05-08 Marco Gerards <marco@gnu.org>
49582
49583 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49584 this...
49585 (kernel_elf_HEADERS): ...to this. Updated all users.
49586 (grubof_symlist.c): Renamed from this...
49587 (kernel_elf_symlist.c): ...to this. Updated all users.
49588 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49589 (grubof_SOURCES): Renamed from this...
49590 (kernel_elf_SOURCES): ...to this.
49591 (grubof_HEADERS): Renamed from this...
49592 (kernel_elf_HEADERS): ...to this.
49593 (grubof_CFLAGS): Renamed from this...
49594 (kernel_elf_CFLAGS): ...to this.
49595 (grubof_ASFLAGS): Renamed from this...
49596 (kernel_elf_ASFLAGS): ...to this.
49597 (grubof_LDFLAGS): Renamed from this...
49598 (kernel_elf_LDFLAGS): ...to this.
49599
49600 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49601 this...
49602 (kernel_elf_HEADERS): ...to this. Updated all users.
49603 (grubof_symlist.c): Renamed from this...
49604 (kernel_elf_symlist.c): ...to this. Updated all users.
49605 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49606 (grubof_SOURCES): Renamed from this...
49607 (kernel_elf_SOURCES): ...to this.
49608 (grubof_HEADERS): Renamed from this...
49609 (kernel_elf_HEADERS): ...to this.
49610 (grubof_CFLAGS): Renamed from this...
49611 (kernel_elf_CFLAGS): ...to this.
49612 (grubof_ASFLAGS): Renamed from this...
49613 (kernel_elf_ASFLAGS): ...to this.
49614 (grubof_LDFLAGS): Renamed from this...
49615 (kernel_elf_LDFLAGS): ...to this.
49616
49617 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49618 `kernel.elf' instead of `grubof'.
49619
49620 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49621
49622 Add --with-platform to configure. Use pkglibdir instead of
49623 pkgdatadir. This is reported by Roger Leigh.
49624
49625 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49626 (host_vendor): Likewise.
49627 (host_os): Likewise.
49628 (pkgdatadir): Likewise.
49629 (platform): New variable.
49630 (pkglibdir): Likewise.
49631 Use PKGLIBDIR instead of PKGDATADIR.
49632
49633 * util/i386/pc/grub-install.in (datadir): Removed.
49634 (host_vendor): Likewise.
49635 (host_os): Likewise.
49636 (pkgdatadir): Likewise.
49637 (platform): New variable.
49638 (pkglibdir): Likewise.
49639 Use PKGLIBDIR instead of PKGDATADIR.
49640
49641 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49642 instead of GRUB_DATADIR.
49643 (main): Likewise.
49644 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49645 (main): Likewise.
49646 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49647 (main): Likewise.
49648
49649 * configure.ac (--with-platform): New option.
49650 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49651
49652 * Makefile.in: Include a makefile based on PLATFORM instead of
49653 HOST_VENDOR.
49654 (pkgdatadir): Not appended by the machine type.
49655 (pkglibdir): Appended by the machine type.
49656 (host_vendor): Removed.
49657 (platform): New variable.
49658 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49659 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49660 (uninstall): Likewise.
49661
49662 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49663
49664 Use the environment context in the menu. Remove the commands
49665 "default" and "timeout", and use variables instead.
49666
49667 * normal/menu.c: Include grub/env.h.
49668 (print_entry): Cast TITLE to silence gcc.
49669 (get_timeout): New function.
49670 (set_timeout): Likewise.
49671 (get_entry_number): Likewise.
49672 (run_menu): Use a default entry, a fallback entry and a timeout
49673 in the environment variables "default", "fallback" and
49674 "timeout". Also, tweak the default entry if it is not within the
49675 current menu entries.
49676 (grub_menu_run): Use a fallback entry in the environment variable
49677 "fallback".
49678
49679 * normal/main.c (read_config_file): Do not initialize
49680 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49681 NEWMENU->TIMEOUT.
49682 (grub_normal_execute): Use a data slot to store the menu.
49683
49684 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49685 fallback_entry and timeout.
49686 (struct grub_menu_list): Removed.
49687 (grub_menu_list_t): Likewise.
49688 (struct grub_context): Likewise.
49689 (grub_context_t): Likewise.
49690 (grub_context_get): Likewise.
49691 (grub_context_get_current_menu): Likewise.
49692 (grub_context_push_menu): Likewise.
49693 (grub_context_pop_menu): Likewise.
49694 (grub_default_init): Likewise.
49695 (grub_default_fini): Likewise.
49696 (grub_timeout_init): Likewise.
49697 (grub_timeout_fini): Likewise.
49698
49699 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49700 and timeout.mod.
49701 (normal_mod_SOURCES): Removed normal/context.c.
49702
49703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49704 commands/default.c, commands/timeout.c and normal/context.c.
49705 (normal_mod_SOURCES): Removed normal/context.c.
49706
49707 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49708 commands/timeout.c and normal/context.c.
49709 (normal_mod_SOURCES): Removed normal/context.c.
49710
49711 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49712 commands/default.c, commands/timeout.c and normal/context.c.
49713 (normal_mod_SOURCES): Removed normal/context.c.
49714
49715 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49716 timeout.mod.
49717 (default_mod_SOURCES): Removed.
49718 (default_mod_CFLAGS): Likewise.
49719 (default_mod_LDFLAGS): Likewise.
49720 (timeout_mod_SOURCES): Removed.
49721 (timeout_mod_CFLAGS): Likewise.
49722 (timeout_mod_LDFLAGS): Likewise.
49723
49724 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49725 normal/context.c.
49726
49727 * commands/default.c: Removed.
49728 * commands/timeout.c: Likewise.
49729 * normal/context.c: Likewise.
49730
49731 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49732
49733 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49734
49735 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49736
49737 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49738 "next" to "prev" for readability.
49739 (struct grub_env_sorted_var): New struct.
49740 (grub_env_context): Renamed to ...
49741 (initial_context): ... this.
49742 (grub_env_var_context): Renamed to ...
49743 (current_context): ... this.
49744 (grub_env_find): Look only at CURRENT_CONTEXT.
49745 (grub_env_context_open): Rewritten to copy exported variables from
49746 previous context.
49747 (grub_env_context_close): Rewritten according to the new
49748 scheme. Also, add an assertion to prevent the initial context from
49749 removed.
49750 (grub_env_insert): Removed the code for the sorted list.
49751 (grub_env_remove): Likewise.
49752 (grub_env_export): Simply mark the variable with
49753 GRUB_ENV_VAR_GLOBAL.
49754 (grub_env_set): A cosmetic change for naming consistency.
49755 (grub_env_get): Likewise.
49756 (grub_env_unset): Likewise.
49757 (grub_env_iterate): Rewritten to sort variables within this
49758 function.
49759 (grub_register_variable_hook): Fixed for naming consistency. Call
49760 grub_env_find again, only if NAME is not found at the first time.
49761 (mangle_data_slot_name): New function.
49762 (grub_env_set_data_slot): Likewise.
49763 (grub_env_get_data_slot): Likewise.
49764 (grub_env_unset_data_slot): Likewise.
49765
49766 * include/grub/env.h (grub_env_var_type): New enum.
49767 (GRUB_ENV_VAR_LOCAL): New constant.
49768 (GRUB_ENV_VAR_GLOBAL): Likewise.
49769 (GRUB_ENV_VAR_DATA): Likewise.
49770 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49771 "type".
49772 (grub_env_set): Replace VAR with NAME for consistency.
49773 (grub_register_variable_hook): Likewise.
49774 (grub_env_export): Specify the name of the argument.
49775 (grub_env_set_data_slot): New prototype.
49776 (grub_env_get_data_slot): Likewise.
49777 (grub_env_unset_data_slot): Likewise.
49778
49779 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49780
49781 Extend the loader so that GRUB can accept a loader which comes
49782 back to GRUB when a loaded image exits. Also, this change adds
49783 support for a chainloader on EFI.
49784
49785 * term/efi/console.c: Include grub/misc.h.
49786 (grub_console_checkkey): Display a scan code on the top for
49787 debugging. This will be removed once the EFI port gets stable.
49788 Correct the scan code mapping.
49789
49790 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49791 allocate memory from larger regions, in order to reduce the number
49792 of allocated regions. Otherwise, the MacOSX loader panics.
49793 (filter_memory_map): Avoid less than 1MB for compatibility with
49794 other loaders.
49795 (add_memory_regions): Allocate from the tail of a region, if
49796 possible, to avoid allocating a region near to 1MB, for the MacOSX
49797 loader.
49798
49799 * kern/efi/init.c (grub_efi_set_prefix): Specify
49800 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49801
49802 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49803 argument IMAGE_HANDLE and specify it to get a loaded image.
49804 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49805 grub_efi_get_loaded_image.
49806 (grub_efi_get_filename): Divide the length by the size of
49807 grub_efi_char16_t.
49808 (grub_efi_get_device_path): New function.
49809 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49810 the length by the size of grub_efi_char16_t for a file path device
49811 path node.
49812
49813 * kern/loader.c (grub_loader_noreturn): New variable.
49814 (grub_loader_set): Accept a new argument NORETURN. Set
49815 GRUB_LOADER_NORETURN to NORETURN.
49816 All callers changed.
49817 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49818 grub_machine_fini.
49819
49820 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49821 prototype.
49822 (grub_efi_get_loaded_image): Take an argument to specify an image
49823 handle.
49824
49825 * include/grub/loader.h (grub_loader_set): Added one more argument
49826 NORETURN.
49827
49828 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49829 instead of grub_efi_open_protocol.
49830 (grub_efidisk_get_device_name): Likewise.
49831 (grub_efidisk_close): Print a newline.
49832 (grub_efidisk_get_device_handle): Fixed to use
49833 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49834 GRUB_EFI_DEVICE_PATH_TYPE.
49835
49836 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49837 * kern/efi/efi.c (device_path_guid): ... here.
49838
49839 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49840 chain.mod.
49841 (kernel_mod_HEADERS): Added efi/disk.h.
49842 (_chain_mod_SOURCES): New variable.
49843 (_chain_mod_CFLAGS): Likewise.
49844 (_chain_mod_LDFLAGS): Likewise.
49845 (chain_mod_SOURCES): Likewise.
49846 (chain_mod_CFLAGS): Likewise.
49847 (chain_mod_LDFLAGS): Likewise.
49848
49849 * DISTLIST: Added include/grub/efi/chainloader.h,
49850 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49851
49852 * include/grub/efi/chainloader.h: New file.
49853 * loader/efi/chainloader.c: Likewise.
49854 * loader/efi/chainloader_normal.c: Likewise.
49855
49856 2006-04-30 Marco Gerards <marco@gnu.org>
49857
49858 * commands/configfile.c (grub_cmd_source): New function.
49859 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49860 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49861
49862 2006-04-30 Marco Gerards <marco@gnu.org>
49863
49864 * normal/execute.c (grub_script_execute_cmd): Change the return
49865 type to `grub_err_t'. Correctly return the error.
49866 (grub_script_execute_cmdline): In case a command line is not a
49867 command or a function, try to interpret it as an assignment.
49868
49869 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49870
49871 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49872 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49873 skip a node whose name is obviously invalid as UTF-16,
49874 i.e. contains a NUL character. Stop the iteration when the last
49875 directory entry is found. Instead of using the return value of
49876 grub_hfsplus_btree_iterate_node, store the value in RET and use
49877 it, because the iterator can be stopped by the last directory
49878 entry.
49879
49880 2006-04-30 Marco Gerards <marco@gnu.org>
49881
49882 * include/grub/env.h (grub_env_export): New prototype. Reported
49883 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49884
49885 2006-04-30 Marco Gerards <marco@gnu.org>
49886
49887 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49888 size of the extents in a catalog file record.
49889
49890 2006-04-29 Marco Gerards <marco@gnu.org>
49891
49892 * commands/configfile.c (grub_cmd_configfile): Execute the
49893 configfile within its own context.
49894
49895 * include/grub/env.h (grub_env_context_open): New prototype.
49896 (grub_env_context_close): Likewise.
49897
49898 * kern/env.c (grub_env): Removed.
49899 (grub_env_sorted): Likewise.
49900 (grub_env_context): New variable.
49901 (grub_env_var_context): Likewise.
49902 (grub_env_find): Search both the active context and the global
49903 context.
49904 (grub_env_context_open): New function.
49905 (grub_env_context_close): Likewise.
49906 (grub_env_insert): Likewise.
49907 (grub_env_remove): Likewise.
49908 (grub_env_export): Likewise.
49909 (grub_env_set): Changed to use helper functions to avoid code
49910 duplication.
49911 (grub_env_iterate): Rewritten so both the current context and the
49912 global context are being used.
49913
49914 * normal/command.c (export_command): New function.
49915 (grub_command_init): Register the `export' function.
49916
49917 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49918
49919 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49920 explicitly to suppress gcc's warnings.
49921 * fs/fat.c (grub_fat_find_dir): Likewise.
49922 (grub_fat_label): Likewise.
49923 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49924 (grub_xfs_mount): Likewise.
49925 (grub_xfs_label): Likewise.
49926 * fs/affs.c (grub_affs_mount): Likewise.
49927 (grub_affs_label): Likewise.
49928 (grub_affs_iterate_dir): Likewise.
49929 * fs/sfs.c (grub_sfs_mount): Likewise.
49930 (grub_sfs_iterate_dir): Likewise.
49931 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49932 * fs/hfs.c (grub_hfs_mount): Likewise.
49933 (grub_hfs_cmp_catkeys): Likewise.
49934 (grub_hfs_find_dir): Likewise.
49935 (grub_hfs_dir): Likewise.
49936 (grub_hfs_label): Likewise.
49937 * fs/jfs.c (grub_jfs_mount): Likewise.
49938 (grub_jfs_opendir): Likewise.
49939 (grub_jfs_getent): Likewise.
49940 (grub_jfs_lookup_symlink): Likewise.
49941 (grub_jfs_label): Likewise.
49942 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49943 (grub_hfsplus_iterate_dir): Likewise.
49944 (grub_hfsplus_btree_iterate_node): Made static.
49945
49946 * util/grub-emu.c (prefix): New variable.
49947 (grub_machine_set_prefix): New function.
49948 (main): Do not set the environment variable "prefix" here. Only
49949 set PREFIX, which is used later by grub_machine_set_prefix.
49950
49951 * include/grub/video.h: Do not include grub/symbol.h.
49952 (grub_video_register): Not exported. This symbol is not defined in
49953 the kernel.
49954 (grub_video_unregister): Likewise.
49955 (grub_video_iterate): Likewise.
49956 (grub_video_setup): Likewise.
49957 (grub_video_restore): Likewise.
49958 (grub_video_get_info): Likewise.
49959 (grub_video_get_blit_format): Likewise.
49960 (grub_video_set_palette): Likewise.
49961 (grub_video_get_palette): Likewise.
49962 (grub_video_set_viewport): Likewise.
49963 (grub_video_get_viewport): Likewise.
49964 (grub_video_map_color): Likewise.
49965 (grub_video_map_rgb): Likewise.
49966 (grub_video_map_rgba): Likewise.
49967 (grub_video_fill_rect): Likewise.
49968 (grub_video_blit_glyph): Likewise.
49969 (grub_video_blit_bitmap): Likewise.
49970 (grub_video_blit_render_target): Likewise.
49971 (grub_video_scroll): Likewise.
49972 (grub_video_swap_buffers): Likewise.
49973 (grub_video_create_render_target): Likewise.
49974 (grub_video_delete_render_target): Likewise.
49975 (grub_video_set_active_render_target): Likewise.
49976
49977 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49978 Undefined.
49979 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49980
49981 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49982 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49983 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49984 instead of $(srcdir)/genkernsyms.sh.
49985
49986 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49987 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49988 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49989 instead of $(srcdir)/genkernsyms.sh.
49990
49991 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49992 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49993 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49994 instead of $(srcdir)/genkernsyms.sh.
49995
49996 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49997 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49998 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49999 instead of $(srcdir)/genkernsyms.sh.
50000
50001 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50002 genkernsyms.sh.
50003
50004 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50005 genkernsyms.sh.
50006 (gensymlist.sh): New target.
50007 (genkernsyms.sh): Likewise.
50008
50009 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50010 genkernsyms.sh.in and gensymlist.sh.in.
50011
50012 * genkernsyms.sh: Removed.
50013 * gensymlist.sh: Likewise.
50014
50015 * genkernsyms.sh.in: New file.
50016 * gensymlist.sh.in: Likewise.
50017
50018 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50019
50020 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50021 clobber "prefix", since we may have already set it manually.
50022
50023 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50024
50025 * kern/misc.c (abort): New alias for grub_abort.
50026
50027 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50028
50029 A new machine-specific function "grub_machine_set_prefix" is
50030 defined. This is called after loading modules, so that a prefix
50031 initialization can use modules. Also, this change adds an
50032 intensive debugging feature for the memory manager via the
50033 configure option "--enable-mm-debug".
50034
50035 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50036 PART.LEN.
50037
50038 * kern/sparc64/ieee1275/init.c (abort): Removed.
50039 (grub_stop): Likewise.
50040 (grub_exit): New function.
50041 (grub_set_prefix): Renamed to ...
50042 (grub_machine_set_prefix): ... this.
50043 (grub_machine_init): Do not call grub_set_prefix.
50044
50045 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50046 (grub_machine_set_prefix): ... this.
50047 (grub_machine_init): Do not call grub_set_prefix.
50048
50049 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50050 (grub_machine_init): Do not set the prefix here.
50051
50052 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50053
50054 * kern/efi/init.c: Include grub/mm.h.
50055 (grub_efi_set_prefix): New function.
50056
50057 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50058 (grub_efi_get_filename): New function.
50059 (grub_print_device_path): Renamed to ...
50060 (grub_efi_print_device_path): ... this.
50061
50062 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50063 [MM_DEBUG] (grub_realloc): Likewise.
50064 [MM_DEBUG] (grub_free): Likewise.
50065 [MM_DEBUG] (grub_memalign): Likewise.
50066 [MM_DEBUG] (grub_mm_debug): New variable.
50067 [MM_DEBUG] (grub_debug_malloc): New function.
50068 [MM_DEBUG] (grub_debug_free): New function.
50069 [MM_DEBUG] (grub_debug_realloc): New function.
50070 [MM_DEBUG] (grub_debug_memalign): New function.
50071
50072 * kern/misc.c (grub_abort): Print a newline to distinguish
50073 the message.
50074
50075 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50076 grub_set_root_dev after loading modules. This is necessary when
50077 setting a prefix depends on modules.
50078
50079 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50080 (grub_efi_print_device_path): ... this.
50081 (grub_efi_get_filename): New prototype.
50082 (grub_efi_set_prefix): Likewise.
50083
50084 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50085 and grub/disk.h.
50086 (grub_efidisk_get_device_handle): New prototype.
50087 (grub_efidisk_get_device_name): Likewise.
50088
50089 * include/grub/mm.h: Include config.h.
50090 (MM_DEBUG): Removed.
50091 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50092 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50093 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50094 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50095 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50096 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50097 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50098 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50099 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50100
50101 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50102
50103 * disk/efi/efidisk.c: Include grub/partition.h.
50104 (iterate_child_devices): New function.
50105 (add_device): First, compare only last device path nodes, so that
50106 devices are sorted by the types.
50107 (grub_efidisk_get_device_handle): New function.
50108 (grub_efidisk_get_device_name): Likewise.
50109
50110 * configure.ac (--enable-mm-debug): New option to enable the
50111 memory manager debugging feature. This makes the binary much
50112 bigger, so is disabled by default.
50113
50114 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50115
50116 Use grub_abort instead of grub_stop, and grub_exit must be
50117 define in each architecture now. Also, this change adds support
50118 for EFI disks.
50119
50120 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50121 (grub_getkey): New function.
50122 (grub_term_get_current): Likewise.
50123
50124 * util/i386/pc/grub-setup.c: Include grub/term.h.
50125 (grub_getkey): New function.
50126 (grub_term_get_current): Likewise.
50127
50128 * util/misc.c (grub_stop): Renamed to ...
50129 (grub_exit): ... this.
50130
50131 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50132 (grub_exit): ... this.
50133 (grub_machine_init): Use grub_abort instead of abort.
50134 (grub_stop): Removed.
50135
50136 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50137 abort.
50138
50139 * kern/i386/pc/startup.S (grub_exit): New function.
50140 (cold_reboot): New label.
50141
50142 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50143 (grub_efi_init): Call grub_efidisk_init.
50144 (grub_efi_fini): Call grub_efidisk_fini.
50145
50146 * kern/efi/efi.c: Include grub/mm.h.
50147 (grub_efi_console_control_guid): Renamed to ...
50148 (console_control_guid): ... this.
50149 (grub_efi_loaded_image_guid): Renamed to ...
50150 (loaded_image_guid): ... this.
50151 (grub_efi_locate_handle): New function.
50152 (grub_efi_open_protocol): Likewise.
50153 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50154 GRUB_EFI_CONSOLE_CONTROL_GUID.
50155 (grub_efi_exit): Removed.
50156 (grub_stop): Likewise.
50157 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50158 (grub_exit): New function.
50159 (grub_print_device_path): Likewise.
50160
50161 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50162 (grub_enter_rescue_mode): Register "exit".
50163
50164 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50165 (grub_abort): New function.
50166
50167 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50168
50169 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50170
50171 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50172
50173 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50174 (grub_print_device_path): New prototype.
50175 (grub_efi_locate_handle): Likewise.
50176 (grub_efi_open_protocol): Likewise.
50177
50178 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50179 * disk/efi/efidisk.c: Likewise.
50180
50181 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50182
50183 * include/grub/efi/console_control.h
50184 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50185
50186 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50187 last 8 bytes as an array.
50188 (GRUB_EFI_DISK_IO_GUID): New macro.
50189 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50190 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50191 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50192 grub_uint8_t.
50193 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50194 (struct grub_efi_device_path): Rename the member "sub_type" to
50195 "subtype".
50196 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50197 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50198 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50199 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50200 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50201 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50202 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50203 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50204 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50205 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50206 (struct grub_efi_pci_device_path): New structure.
50207 (grub_efi_pci_device_path_t): New type.
50208 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50209 (struct grub_efi_pccard_device_path): New structure.
50210 (grub_efi_pccard_device_path_t): New type.
50211 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50212 (struct grub_efi_memory_mapped_device_path): New structure.
50213 (grub_efi_memory_mapped_device_path_t): New type.
50214 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50215 (struct grub_efi_vendor_device_path): New structure.
50216 (grub_efi_vendor_device_path_t): New type.
50217 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50218 (struct grub_efi_controller_device_path): New structure.
50219 (grub_efi_controller_device_path_t): New type.
50220 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50221 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50222 (struct grub_efi_acpi_device_path): New structure.
50223 (grub_efi_acpi_device_path_t): New type.
50224 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50225 (struct grub_efi_expanded_acpi_device_path): New structure.
50226 (grub_efi_expanded_acpi_device_path_t): New type.
50227 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50228 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50229 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50230 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50231 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50232 (struct grub_efi_atapi_device_path): New structure.
50233 (grub_efi_atapi_device_path_t): New type.
50234 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50235 (struct grub_efi_fibre_channel_device_path): New structure.
50236 (grub_efi_fibre_channel_device_path_t): New type.
50237 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50238 (struct grub_efi_1394_device_path): New structure.
50239 (grub_efi_1394_device_path_t): New type.
50240 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50241 (struct grub_efi_usb_device_path): New structure.
50242 (grub_efi_usb_device_path_t): New type.
50243 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50244 (struct grub_efi_usb_class_device_path): New structure.
50245 (grub_efi_usb_class_device_path_t): New type.
50246 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50247 (struct grub_efi_i2o_device_path): New structure.
50248 (grub_efi_i2o_device_path_t): New type.
50249 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50250 (struct grub_efi_mac_address_device_path): New structure.
50251 (grub_efi_mac_address_device_path_t): New type.
50252 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50253 (struct grub_efi_ipv4_device_path): New structure.
50254 (grub_efi_ipv4_device_path_t): New type.
50255 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50256 (struct grub_efi_ipv6_device_path): New structure.
50257 (grub_efi_ipv6_device_path_t): New type.
50258 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50259 (struct grub_efi_infiniband_device_path): New structure.
50260 (grub_efi_infiniband_device_path_t): New type.
50261 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50262 (struct grub_efi_uart_device_path): New structure.
50263 (grub_efi_uart_device_path_t): New type.
50264 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50265 (struct grub_efi_vendor_messaging_device_path): New structure.
50266 (grub_efi_vendor_messaging_device_path_t): New type.
50267 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50268 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50269 (struct grub_efi_hard_drive_device_path): New structure.
50270 (grub_efi_hard_drive_device_path_t): New type.
50271 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50272 (struct grub_efi_cdrom_device_path): New structure.
50273 (grub_efi_cdrom_device_path_t): New type.
50274 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50275 (struct grub_efi_vendor_media_device_path): New structure.
50276 (grub_efi_vendor_media_device_path_t): New type.
50277 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50278 (struct grub_efi_file_path_device_path): New structure.
50279 (grub_efi_file_path_device_path_t): New type.
50280 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50281 (struct grub_efi_protocol_device_path): New structure.
50282 (grub_efi_protocol_device_path_t): New type.
50283 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50284 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50285 (struct grub_efi_bios_device_path): New structure.
50286 (grub_efi_bios_device_path_t): New type.
50287 (struct grub_efi_disk_io): New structure.
50288 (grub_efi_disk_io_t): New type.
50289 (struct grub_efi_block_io_media): New structure.
50290 (grub_efi_block_io_media_t): New type.
50291 (struct grub_efi_block_io): New structure.
50292 (grub_efi_block_io_t): New type.
50293
50294 * include/grub/misc.h (grub_stop): Removed.
50295 (grub_exit): New prototype.
50296 (grub_abort): Likewise.
50297
50298 * include/grub/disk.h (enum grub_disk_dev_id): Added
50299 GRUB_DISK_DEVICE_EFIDISK_ID.
50300
50301 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50302 disk/efi/efidisk.c.
50303 (kernel_syms.lst): Remove the target if an error occurs.
50304
50305 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50306
50307 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50308 as it was simply too buggy.
50309
50310 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50311
50312 * kern/misc.c (grub_lltoa): New function.
50313 (grub_vsprintf): Added support for the long long suffix,
50314 i.e. "ll".
50315
50316 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50317
50318 * Makefile.in (LDFLAGS): Add variable.
50319 (LD): Remove variable.
50320 * configure.ac: Add -m32 to LDFLAGS.
50321 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50322 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50323 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50324 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50325 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50326 variables.
50327 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50328 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50329 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50330
50331 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50332
50333 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50334 length for unknown glyph.
50335
50336 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50337
50338 Add support for pre-loaded modules into the EFI port.
50339
50340 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50341 completely. Accept one more argument DIR. The caller has changed.
50342
50343 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50344
50345 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50346 (grub_efi_loaded_image_guid): New variable.
50347 (grub_efi_get_loaded_image): New function.
50348 (grub_arch_modules_addr): Likewise.
50349
50350 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50351 prototype.
50352
50353 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50354 (struct grub_efi_loaded_image): New structure.
50355 (grub_efi_loaded_image_t): New type.
50356
50357 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50358
50359 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50360 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50361 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50362
50363 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50364
50365 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50366
50367 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50368
50369 * DISTLIST: Added include/grub/efi/console.h,
50370 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50371 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50372
50373 * include/grub/efi/console.h: New file.
50374 * include/grub/efi/time.h: Likewise.
50375 * include/grub/i386/efi/kernel.h: Likewise.
50376 * kern/efi/init.c: Likewise.
50377 * kern/efi/mm.c: Likewise.
50378 * term/efi/console.c: Likewise.
50379
50380 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50381 (grub_stop): Removed.
50382 (grub_get_rtc): Likewise.
50383 (grub_machine_init): Simply call grub_efi_init.
50384 (grub_machine_fini): Call grub_efi_fini.
50385
50386 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50387 (grub_efi_output_string): Removed.
50388 (grub_efi_stall): New function.
50389 (grub_stop): Likewise.
50390 (grub_get_rtc): Likewise.
50391
50392 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50393 (grub_efi_stall): New prototype.
50394 (grub_efi_allocate_pages): Likewise.
50395 (grub_efi_free_pages): Likewise.
50396 (grub_efi_get_memory_map): Likewise.
50397 (grub_efi_mm_init): Likewise.
50398 (grub_efi_mm_fini): Likewise.
50399 (grub_efi_init): Likewise.
50400 (grub_efi_fini): Likewise.
50401
50402 * include/grub/i386/efi/time.h: Do not include
50403 grub/symbol.h. Include grub/efi/time.h.
50404 (GRUB_TICKS_PER_SECOND): Removed.
50405 (grub_get_rtc): Likewise.
50406
50407 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50408 Added padding. The EFI spec is buggy.
50409 (GRUB_EFI_BLACK): New macro.
50410 (GRUB_EFI_BLUE): Likewise.
50411 (GRUB_EFI_GREEN): Likewise.
50412 (GRUB_EFI_CYAN): Likewise.
50413 (GRUB_EFI_RED): Likewise.
50414 (GRUB_EFI_MAGENTA): Likewise.
50415 (GRUB_EFI_BROWN): Likewise.
50416 (GRUB_EFI_LIGHTGRAY): Likewise.
50417 (GRUB_EFI_BRIGHT): Likewise.
50418 (GRUB_EFI_DARKGRAY): Likewise.
50419 (GRUB_EFI_LIGHTBLUE): Likewise.
50420 (GRUB_EFI_LIGHTGREEN): Likewise.
50421 (GRUB_EFI_LIGHTCYAN): Likewise.
50422 (GRUB_EFI_LIGHTRED): Likewise.
50423 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50424 (GRUB_EFI_YELLOW): Likewise.
50425 (GRUB_EFI_WHITE): Likewise.
50426 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50427 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50428 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50429 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50430 (GRUB_EFI_BACKGROUND_RED): Likewise.
50431 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50432 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50433 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50434 (GRUB_EFI_TEXT_ATTR): Likewise.
50435
50436 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50437 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50438 (kernel_mod_HEADERS): Added efi/time.h.
50439
50440 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50441
50442 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50443 include/grub/efi/api.h, include/grub/efi/console_control.h,
50444 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50445 include/grub/i386/efi/time.h, kern/efi/efi.c,
50446 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50447 and util/i386/efi/grub-mkimage.c.
50448
50449 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50450
50451 * genmk.rb (PModule#rule): Do not export symbols if
50452 #{prefix}_EXPORTS is set to "no".
50453
50454 * conf/i386-efi.mk: New file.
50455 * conf/i386-efi.rmk: Likewise.
50456 * include/grub/efi/api.h: Likewise.
50457 * include/grub/efi/console_control.h: Likewise.
50458 * include/grub/efi/efi.h: Likewise.
50459 * include/grub/efi/pe32.h: Likewise.
50460 * include/grub/i386/efi/time.h: Likewise.
50461 * kern/efi/efi.c: Likewise.
50462 * kern/i386/efi/init.c: Likewise.
50463 * kern/i386/efi/startup.S: Likewise.
50464 * util/i386/efi/grub-mkimage.c: Likewise.
50465
50466 2006-04-17 Marco Gerards <marco@gnu.org>
50467
50468 * include/grub/script.h: Include <grub/parser.h> and
50469 "grub_script.tab.h".
50470 (struct grub_lexer_param): New struct.
50471 (struct grub_parser_param): Likewise.
50472 (grub_script_create_arglist): Pass the state in an argument.
50473 (grub_script_add_arglist): Likewise.
50474 (grub_script_create_cmdline): Likewise.
50475 (grub_script_create_cmdblock): Likewise.
50476 (grub_script_create_cmdif): Likewise.
50477 (grub_script_create_cmdmenu): Likewise.
50478 (grub_script_add_cmd): Likewise.
50479 (grub_script_arg_add): Likewise.
50480 (grub_script_lexer_ref): Likewise.
50481 (grub_script_lexer_deref): Likewise.
50482 (grub_script_lexer_record_start): Likewise.
50483 (grub_script_lexer_record_stop): Likewise.
50484 (grub_script_mem_record): Likewise.
50485 (grub_script_mem_record_stop): Likewise.
50486 (grub_script_malloc): Likewise.
50487 (grub_script_yylex): Likewise.
50488 (grub_script_yyparse): Likewise.
50489 (grub_script_yyerror): Likewise.
50490 (grub_script_yylex): Likewise.
50491 (grub_script_lexer_init): Return the state.
50492
50493 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50494 (grub_script_lexer_done): Likewise.
50495 (grub_script_lexer_getline): Likewise.
50496 (grub_script_lexer_refs): Likewise.
50497 (script): Likewise.
50498 (newscript): Likewise.
50499 (record): Likewise.
50500 (recording): Likewise.
50501 (recordpos): Likewise.
50502 (recordlen): Likewise.
50503 (grub_script_lexer_init): Return the state instead of setting
50504 global variables.
50505 (grub_script_lexer_ref): Use the newly added argument for state
50506 instead of globals.
50507 (grub_script_lexer_deref): Likewise.
50508 (grub_script_lexer_record_start): Likewise.
50509 (grub_script_lexer_record_stop): Likewise.
50510 (recordchar): Likewise.
50511 (nextchar): Likewise.
50512 (grub_script_yylex2): Likewise.
50513 (grub_script_yylex): Likewise.
50514 (grub_script_yyerror): Likewise.
50515
50516 * normal/parser.y (func_mem): Removed variable.
50517 (menu_entry): Likewise.
50518 (err): Likewise.
50519 (%lex-param): New parser option.
50520 (%parse-param): Likewise.
50521 (script): Always return the AST.
50522 (argument): Pass the state around.
50523 (arguments): Likewise.
50524 (grubcmd): Likewise.
50525 (commands): Likewise.
50526 (function): Likewise.
50527 (menuentry): Likewise.
50528 (if_statement): Likewise.
50529 (if): Likewise.
50530
50531 * normal/script.c (grub_script_memused): Removed variable.
50532 (grub_script_parsed): Likewise.
50533 (grub_script_malloc): Added a state argument. Use that instead of
50534 global variables.
50535 (grub_script_mem_record): Likewise.
50536 (grub_script_mem_record_stop): Likewise.
50537 (grub_script_arg_add): Likewise.
50538 (grub_script_add_arglist): Likewise.
50539 (grub_script_create_cmdline): Likewise.
50540 (grub_script_create_cmdif): Likewise.
50541 (grub_script_create_cmdmenu): Likewise.
50542 (grub_script_add_cmd): Likewise.
50543 (grub_script_parse): Setup the state before calling the parser.
50544
50545 2006-04-16 Marco Gerards <marco@gnu.org>
50546
50547 * normal/command.c (grub_command_init): Remove the title command.
50548
50549 * normal/lexer.c (grub_script_yylex): Renamed from this...
50550 (grub_script_yylex2): ... to this.
50551 (grub_script_yylex): New function. Temporary
50552 introduced to filter some tokens.
50553 (grub_script_yyerror): Print a newline.
50554
50555 * normal/main.c (read_config_file): Output information about the
50556 lines that contain errors. Wait for a key after all lines have
50557 been processed. Don't return an empty menu.
50558
50559 * normal/parser.y (func_mem): Don't initialize.
50560 (menu_entry): Likewise.
50561 (err): New variable.
50562 (script): Don't return anything when an error was encountered.
50563 (ws, returns): Removed rules.
50564 (argument): Disabled concatenated variable support.
50565 (arguments): Remove explicit separators.
50566 (grubcmd): Likewise.
50567 (function): Likewise.
50568 (menuentry): Likewise.
50569 (if): Likewise.
50570 (commands): Likewise. Add error handling.
50571
50572 * normal/script.c (grub_script_create_cmdline): If
50573 `grub_script_parsed' is 0, assume the parser encountered an error.
50574
50575 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50576
50577 * configure.ac: Add support for EFI. Fix the typo
50578 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50579
50580 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50581
50582 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50583 foreign multibyte characters should be shown correctly.
50584
50585 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50586
50587 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50588 calculation.
50589 (read_config_file): Made it to close file before returning.
50590
50591 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50592
50593 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50594 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50595 video/i386/pc/vbefill.c.
50596
50597 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50598 video/i386/pc/vbefill.c.
50599
50600 * include/grub/video.h (grub_video_blit_format): New enum.
50601 (grub_video_mode_info): Added new member blit_format.
50602 (grub_video_get_blit_format): New function prototype.
50603
50604 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50605 function prototype.
50606 (grub_video_vbe_map_rgb): Likewise.
50607 (grub_video_vbe_unmap_color): Likewise.
50608
50609 * include/grub/i386/pc/vbeblit.h: New file.
50610
50611 * include/grub/i386/pc/vbefill.h: New file.
50612
50613 * video/video.c (grub_video_get_blit_format): New function.
50614 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50615 (grub_video_vbe_map_rgb): Likewise.
50616 (grub_video_vbe_unmap_color): Likewise.
50617
50618 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50619 optimized fills.
50620 (grub_video_vbe_blit_render_target): Changed to use more optimized
50621 blits.
50622 (grub_video_vbe_setup): Added detection for optimized settings.
50623 (grub_video_vbe_create_render_target): Likewise.
50624
50625 * video/i386/pc/vbeblit.c: New file.
50626
50627 * video/i386/pc/vbefill.c: New file.
50628
50629 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50630
50631 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50632 here...
50633
50634 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50635 parsing to support both hex and dec ranges. If filename was missing
50636 show usage information.
50637
50638 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50639
50640 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50641 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50642
50643 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50644 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50645 (video_mod_SOURCES): Added.
50646 (video_mod_CFLAGS): Likewise.
50647 (video_mod_LDFLAGS): Likewise.
50648 (gfxterm_mod_SOURCES): Likewise.
50649 (gfxterm_mod_CFLAGS): Likewise.
50650 (gfxterm_mod_LDFLAGS): Likewise.
50651 (videotest_mod_SOURCES): Likewise.
50652 (videotest_mod_CFLAGS): Likewise.
50653 (videotest_mod_LDFLAGS): Likewise.
50654 (vesafb_mod_SOURCES): Removed.
50655 (vesafb_mod_CFLAGS): Likewise.
50656 (vesafb_mod_LDFLAGS): Likewise.
50657 (vga_mod_SOURCES): Likewise.
50658 (vga_mod_CFLAGS): Likewise.
50659 (vga_mod_LDFLAGS): Likewise.
50660
50661 * commands/videotest.c: New file.
50662
50663 * font/manager.c (fill_with_default_glyph): Modified to use
50664 grub_font_glyph.
50665 (grub_font_get_glyph): Likewise.
50666 (fontmanager): Renamed from this...
50667 (font_manager): ... to this.
50668
50669 * include/grub/font.h (grub_font_glyph): Added new structure.
50670 (grub_font_get_glyph): Modified to use grub_font_glyph.
50671
50672 * include/grub/misc.h (grub_abs): Added as inline function.
50673
50674 * include/grub/video.h: New file.
50675
50676 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50677 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50678 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50679 (grub_vbe_get_controller_info): Renamed from this...
50680 (grub_vbe_bios_get_controller_info): ... to this.
50681 (grub_vbe_get_mode_info): Renamed from this...
50682 (grub_vbe_bios_get_mode_info): ... to this.
50683 (grub_vbe_set_mode): Renamed from this...
50684 (grub_vbe_bios_set_mode): ... to this.
50685 (grub_vbe_get_mode): Renamed from this...
50686 (grub_vbe_bios_get_mode): ... to this.
50687 (grub_vbe_set_memory_window): Renamed from this...
50688 (grub_vbe_bios_set_memory_window): ... to this.
50689 (grub_vbe_get_memory_window): Renamed from this...
50690 (grub_vbe_bios_get_memory_window): ... to this.
50691 (grub_vbe_set_scanline_length): Renamed from this...
50692 (grub_vbe_set_scanline_length): ... to this.
50693 (grub_vbe_get_scanline_length): Renamed from this...
50694 (grub_vbe_bios_get_scanline_length): ... to this.
50695 (grub_vbe_set_display_start): Renamed from this...
50696 (grub_vbe_bios_set_display_start): ... to this.
50697 (grub_vbe_get_display_start): Renamed from this...
50698 (grub_vbe_bios_get_display_start): ... to this.
50699 (grub_vbe_set_palette_data): Renamed from this...
50700 (grub_vbe_bios_set_palette_data): ... to this.
50701 (grub_vbe_set_pixel_rgb): Removed.
50702 (grub_vbe_set_pixel_index): Likewise.
50703
50704 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50705 from this...
50706 (grub_vbe_bios_get_controller_info): ... to this.
50707 (grub_vbe_get_mode_info): Renamed from this...
50708 (grub_vbe_bios_get_mode_info): ... to this.
50709 (grub_vbe_set_mode): Renamed from this...
50710 (grub_vbe_bios_set_mode): ... to this.
50711 (grub_vbe_get_mode): Renamed from this...
50712 (grub_vbe_bios_get_mode): ... to this.
50713 (grub_vbe_set_memory_window): Renamed from this...
50714 (grub_vbe_bios_set_memory_window): ... to this.
50715 (grub_vbe_get_memory_window): Renamed from this...
50716 (grub_vbe_bios_get_memory_window): ... to this.
50717 (grub_vbe_set_scanline_length): Renamed from this...
50718 (grub_vbe_set_scanline_length): ... to this.
50719 (grub_vbe_get_scanline_length): Renamed from this...
50720 (grub_vbe_bios_get_scanline_length): ... to this.
50721 (grub_vbe_set_display_start): Renamed from this...
50722 (grub_vbe_bios_set_display_start): ... to this.
50723 (grub_vbe_get_display_start): Renamed from this...
50724 (grub_vbe_bios_get_display_start): ... to this.
50725 (grub_vbe_set_palette_data): Renamed from this...
50726 (grub_vbe_bios_set_palette_data): ... to this.
50727 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50728 getting corrupted after calling it. Added more pushes and pops.
50729 (grub_vbe_bios_set_mode): Likewise.
50730 (grub_vbe_bios_get_mode): Likewise.
50731 (grub_vbe_bios_get_memory_window): Likewise.
50732 (grub_vbe_bios_set_scanline_length): Likewise.
50733 (grub_vbe_bios_get_scanline_length): Likewise.
50734 (grub_vbe_bios_get_display_start): Likewise.
50735 (grub_vbe_bios_set_palette_data): Likewise.
50736
50737 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50738 (cl_insert): Likewise.
50739 (cl_delete): Likewise.
50740
50741 * term/gfxterm.c: New file.
50742
50743 * term/i386/pc/vesafb.c: Removed file.
50744
50745 * video/video.c: New file.
50746
50747 * video/i386/pc/vbe.c (real2pm): Added new function.
50748 (grub_video_vbe_draw_pixel): Likewise.
50749 (grub_video_vbe_get_video_ptr): Likewise.
50750 (grub_video_vbe_get_pixel): Likewise
50751 (grub_video_vbe_init): Likewise.
50752 (grub_video_vbe_fini): Likewise.
50753 (grub_video_vbe_setup): Likewise.
50754 (grub_video_vbe_get_info): Likewise.
50755 (grub_video_vbe_set_palette): Likewise.
50756 (grub_video_vbe_get_palette): Likewise.
50757 (grub_video_vbe_set_viewport): Likewise.
50758 (grub_video_vbe_get_viewport): Likewise.
50759 (grub_video_vbe_map_color): Likewise.
50760 (grub_video_vbe_map_rgb): Likewise.
50761 (grub_video_vbe_map_rgba): Likewise.
50762 (grub_video_vbe_unmap_color): Likewise.
50763 (grub_video_vbe_fill_rect): Likewise.
50764 (grub_video_vbe_blit_glyph): Likewise.
50765 (grub_video_vbe_blit_bitmap): Likewise.
50766 (grub_video_vbe_blit_render_target): Likewise.
50767 (grub_video_vbe_scroll): Likewise.
50768 (grub_video_vbe_swap_buffers): Likewise.
50769 (grub_video_vbe_create_render_target): Likewise.
50770 (grub_video_vbe_delete_render_target): Likewise.
50771 (grub_video_vbe_set_active_render_target): Likewise.
50772 (grub_vbe_set_pixel_rgb): Remove function.
50773 (grub_vbe_set_pixel_index): Likewise.
50774 (index_color_mode): Remove static variable.
50775 (active_mode): Likewise.
50776 (framebuffer): Likewise.
50777 (bytes_per_scan_line): Likewise.
50778 (grub_video_vbe_adapter): Added new static variable.
50779 (framebuffer): Likewise.
50780 (render_target): Likewise.
50781 (initial_mode): Likewise.
50782 (mode_in_use): Likewise.
50783 (mode_list): Likewise.
50784
50785 2006-03-10 Marco Gerards <marco@gnu.org>
50786
50787 * configure.ac (AC_INIT): Bumped to 1.93.
50788
50789 * DISTLIST: Added `include/grub/hfs.h'.
50790
50791 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50792
50793 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50794 18H, which might help the BIOS falling back to next boot media.
50795
50796 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50797
50798 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50799 Poe Chen <poe.poechen@gmail.com>.
50800
50801 2006-01-17 Marco Gerards <marco@gnu.org>
50802
50803 * include/grub/normal.h: Include <grub/script.h>.
50804 (grub_command_list): Removed struct.
50805 (grub_command_list_t): Removed type.
50806 (grub_menu_entry): Remove members `num' and `command_list'. Add
50807 members `commands' and `sourcecode'.
50808 * include/grub/script.h: Add inclusion guards.
50809 (grub_script_cmd_menuentry): New struct.
50810 (grub_script_execute_menuentry): New prototype.
50811 (grub_script_lexer_record_start): Likewise.
50812 (grub_script_lexer_record_stop): Likewise.
50813 * normal/execute.c (grub_script_execute_menuentry): New function.
50814 * normal/lexer.c (record, recording, recordpos, recordlen): New
50815 variables.
50816 (grub_script_lexer_record_start): New function.
50817 (grub_script_lexer_record_stop): Likewise.
50818 (recordchar): Likewise.
50819 (nextchar): Likewise.
50820 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50821 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50822 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50823 (current_menu): New variable.
50824 (free_menu): Mainly rewritten.
50825 (grub_normal_menu_addentry): New function.
50826 (read_config_file): Rewritten.
50827 * normal/menu.c (run_menu_entry): Mainly rewritten.
50828 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50829 the menu entry.
50830 (run): Mainly rewritten.
50831 * normal/parser.y (menu_entry): New variable.
50832 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50833 (menuentry): New rule.
50834 (command): Add `menuentry'.
50835 (if_statement): Allow additional returns before `fi'.
50836 * normal/script.c (grub_script_create_cmdmenu): New function.
50837
50838 2006-01-03 Marco Gerards <marco@gnu.org>
50839
50840 * INSTALL: GNU Bison is required.
50841 * configure.ac: Rewritten the test to detect Bison.
50842 * Makefile.in (YACC): New variable. Reported by Xun Sun
50843 <xun.sun.cn@gmail.com>.
50844
50845 2006-01-03 Marco Gerards <marco@gnu.org>
50846
50847 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50848 the HFS+ filesystem to filesystem blocks.
50849 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50850 GCC warning is silenced.
50851
50852 2006-01-03 Marco Gerards <marco@gnu.org>
50853
50854 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50855 read from disk from big endian to host byte order.
50856
50857 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50858
50859 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50860 documentation.
50861 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50862 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50863 embedded HFS+ filesystem.
50864 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50865 (grub_hfs_sblock): Move from here...
50866 * include/grub/hfs.h: To here... New file.
50867 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50868 documentation.
50869 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50870 New macros.
50871 (grub_hfsplus_volheader): Change type of member `magic' to
50872 `grub_uint16_t'.
50873 (grub_hfsplus_data): Add new member `embedded_offset'.
50874 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50875 returned block.
50876 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50877 Calculate the offset.
50878
50879 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50880
50881 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50882 Removed.
50883 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50884
50885 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50886
50887 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50888 ENV->NAME is NULL after allocating ENV->VALUE.
50889
50890 2005-12-25 Marco Gerards <marco@gnu.org>
50891
50892 * kern/env.c (grub_env_set): Rewritten the error handling code.
50893
50894 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50895
50896 * geninit.sh: Made more robust, and more portable.
50897
50898 2005-12-25 Marco Gerards <marco@gnu.org>
50899
50900 Add support for Apple HFS+ filesystems.
50901
50902 * fs/hfsplus.c: New file.
50903
50904 * DISTLIST: Added `fs/hfsplus.c'.
50905
50906 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50907 (hfsplus_mod_SOURCES): New variable.
50908 (hfsplus_mod_CFLAGS): Likewise.
50909 (hfsplus_mod_LDFLAGS): Likewise.
50910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50911 (grub_setup_SOURCES): Likewise.
50912 (grub_mkdevicemap_SOURCES): Likewise.
50913 (grub_emu_SOURCES): Likewise.
50914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50915
50916 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50917
50918 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50919
50920 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50921
50922 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50923 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50924 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50925 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50926 normal/lexer.c, normal/parser.y, normal/script.c, and
50927 partmap/gpt.c.
50928 Removed kern/sparc64/cache.c.
50929
50930 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50931 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50932 grub_emu_init.c.
50933
50934 * configure.ac (AC_INIT): Bumped to 1.92.
50935
50936 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50937
50938 * kern/err.c (grub_error_push): Added new function to support error
50939 stacks.
50940 (grub_error_pop): Likewise.
50941 (grub_error_stack_items): New local variable to support error stacks.
50942 (grub_error_stack_pos): Likewise.
50943 (grub_error_stack_assert): Likewise.
50944 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50945 stack depth.
50946 (grub_print_error): Added support to print errors from error stack.
50947
50948 * include/grub/err.h (grub_error_push): Added function prototype.
50949 (grub_error_pop): Likewise.
50950
50951 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50952
50953 * configure.ac: Accept `powerpc64' as host_cpu.
50954 (amd64): Rename to `biarch32'.
50955
50956 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50957 non-cacheline-aligned addresses.
50958
50959 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50960 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50961 if `size' is non-zero.
50962
50963 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50964
50965 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50966 and `cd' to make sure the filename is not prefixed with a
50967 directory name.
50968 (pkgdata_MODULES): Add `gpt.mod'.
50969 (gpt_mod_SOURCES): New variable.
50970 (gpt_mod_CFLAGS): Likewise.
50971 (gpt_mod_LDFLAGS): Likewise.
50972
50973 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50974
50975 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50976 New macro.
50977
50978 * partmap/gpt.c: New file.
50979
50980 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50981 GPT partition map is detected.
50982
50983 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50984
50985 * commands/i386/pc/play.c: New file.
50986 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50987 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50988 macros.
50989
50990 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50991
50992 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50993 ((unused))' to silence gcc warning.
50994
50995 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50996
50997 * configure.ac: Correct `AC_PROG_YACC' test.
50998
50999 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51000
51001 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51002 check before installing files.
51003
51004 2005-11-22 Mike Small <smallm@panix.com>
51005
51006 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51007 number regex so multidigit numbers are recognized correctly.
51008
51009 2005-11-22 Mike Small <smallm@panix.com>
51010
51011 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51012 debugging message before attempting to claim memory.
51013 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51014 multiple addresses in case of failure.
51015
51016 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51017
51018 * term/tparm.c (get_space): Remove empty `if' statement.
51019
51020 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51021
51022 * kern/parser.c (check_varstate): Rename `state' to 's'.
51023
51024 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51025
51026 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51027 variable definitions to the beginning of each function. Sort stack
51028 variables by size.
51029 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51030 `buf' argument to `char *'.
51031
51032 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51033
51034 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51035 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51036 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51037 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51038 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51039 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51040 configfile.mod, search.mod, gzio.mod and test.mod.
51041 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51042 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51043 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51044 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51045 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51046 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51047 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51048 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51049 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51050 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51051 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51052 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51053 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51054 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51055 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51056 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51057 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51058 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51059 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51060 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51061 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51062 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51063 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51064
51065 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51066 `grep --include'.
51067 (pkgdata_MODULES): Add test.mod.
51068
51069 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51070
51071 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51072 appending to variables with "+=".
51073 (PModule): Use full pathname to generate *.lst filenames.
51074
51075 * Makefile.in: Fixed list rules moved from genmk.rb.
51076 (.DELETE_ON_ERROR): New special target.
51077 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51078
51079 * conf/i386-pc.rmk: Include conf/common.mk.
51080 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51081 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51082 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51083 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51084 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51085 configfile.mod, search.mod, gzio.mod and test.mod.
51086 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51087 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51088 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51089 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51090 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51091 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51092 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51093 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51094 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51095 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51096 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51097 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51098 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51099 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51100 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51101 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51102 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51103 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51104 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51105 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51106 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51107 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51108 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51109 here...
51110 * conf/common.rmk: ... to here. New file.
51111
51112 * conf/common.mk: New file.
51113
51114 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51115
51116 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51117 (grub_script.tab.c): ... here.
51118
51119 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51120 (grub_script.tab.c): ... here.
51121
51122 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51123 (grub_script.tab.c): ... here.
51124
51125 * normal/command.c (grub_command_find): Fixed a memory leak of
51126 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51127
51128 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51129
51130 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51131 "@" which marks the start of a comment on ARM.
51132 (VARIABLE): Likewise.
51133
51134 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51135
51136 Add support for Linux/ADFS partition tables.
51137
51138 * partmap/acorn.c: New file.
51139
51140 * include/grub/acorn_filecore.h: Likewise.
51141
51142 * DISTLIST: Added `partmap/acorn.c' and
51143 `include/grub/acorn_filecore.h'.
51144
51145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51146 `partmap/acorn.c'.
51147 (pkgdata_MODULES): Add `acorn.mod'.
51148 (acorn_mod_SOURCES): New variable.
51149 (acorn_mod_CFLAGS): Likewise.
51150
51151 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51152 `partmap/acorn.c'.
51153 (pkgdata_MODULES): Add `acorn.mod'.
51154 (acorn_mod_SOURCES): New variable.
51155 (acorn_mod_CFLAGS): Likewise.
51156
51157 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51158 (pkgdata_MODULES): Add `acorn.mod'.
51159 (acorn_mod_SOURCES): New variable.
51160 (acorn_mod_CFLAGS): Likewise.
51161 (acorn_mod_LDFLAGS): Likewise.
51162
51163 * include/types.h (grub_disk_addr_t): New typedef.
51164
51165 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51166
51167 * geninit.sh: New file.
51168
51169 * geninitheader.sh: Likewise.
51170
51171 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51172 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51173 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51174 * commands/configfile.c (grub_configfile_init)
51175 (grub_configfile_fini): Likewise.
51176 * commands/default.c (grub_default_init, grub_default_fini):
51177 Likewise.
51178 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51179 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51180 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51181 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51182 Likewise.
51183 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51184 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51185 Likewise.
51186 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51187 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51188 Likewise.
51189 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51190 Likewise.
51191 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51192 Likewise.
51193 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51194 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51195 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51196 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51197 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51198 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51199 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51200 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51201 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51202 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51203 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51204 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51205 * partmap/amiga.c (grub_amiga_partition_map_init)
51206 (grub_amiga_partition_map_fini): Likewise.
51207 * partmap/apple.c (grub_apple_partition_map_init)
51208 (grub_apple_partition_map_fini): Likewise.
51209 * partmap/pc.c (grub_pc_partition_map_init)
51210 (grub_pc_partition_map_fini): Likewise.
51211 * partmap/sun.c (grub_sun_partition_map_init,
51212 grub_sun_partition_map_fini): Likewise.
51213 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51214 Likewise.
51215
51216 * util/grub-emu.c: Include <grub_modules_init.h>.
51217 (main): Don't initialize and de-initialize any modules directly,
51218 use `grub_init_all' and `grub_fini_all' instead.
51219
51220 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51221 `grub_vesafb_mod_init'.
51222 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51223 all users.
51224 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51225 `grub_vga_mod_init'. Updated all users.
51226 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51227
51228 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51229 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51230 rules.
51231
51232 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51233 Generate a function to initialize the module in utilities.
51234 Updated all callers.
51235 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51236 initialize the module in utilities. Updated all callers.
51237
51238 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51239
51240 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51241 escape sequence and a literal ^L to clear the screen.
51242
51243 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51244 when returning from Open Firmware.
51245
51246 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51247
51248 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51249 (grub_ofconsole_height): Likewise.
51250 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51251 manually insert a '\n'.
51252 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51253 `grub_ofconsole_height'. Return early if these are already set.
51254
51255 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51256
51257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51258 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51259 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51260 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51261 and `normal/script.c'.
51262 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51263 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51264 (test_mod_SOURCES): New variable.
51265 (test_mod_CFLAGS): Likewise.
51266 (test_mod_LDFLAGS): Likewise.
51267 (pkgdata_MODULES): Add `test.mod'.
51268 (grub_script.tab.c): New rule.
51269 (grub_script.tab.h): Likewise.
51270
51271 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51272
51273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51274 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51275 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51276 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51277 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51278 (test_mod_SOURCES): New variable.
51279 (test_mod_CFLAGS): Likewise.
51280 (pkgdata_MODULES): Add `test.mod'.
51281 (grub_script.tab.c): New rule.
51282 (grub_script.tab.h): Likewise.
51283
51284 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51285
51286 Add initial scripting support.
51287
51288 * commands/test.c: New file.
51289 * include/grub/script.h: Likewise.
51290 * normal/execute.c: Likewise.
51291 * normal/function.c: Likewise.
51292 * normal/lexer.c: Likewise.
51293 * normal/parser.y: Likewise.
51294 * normal/script.c: Likewise.
51295
51296 * configure.ac: Add `AC_PROG_YACC' test.
51297
51298 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51299 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51300 `normal/function.c' and `normal/script.c'.
51301 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51302 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51303 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51304 variables.
51305 (pkgdata_MODULES): Add `test.mod'.
51306 (grub_script.tab.c): New rule.
51307 (grub_script.tab.h): Likewise.
51308
51309 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51310
51311 * include/grub/normal.h (grub_test_init): New prototype.
51312 (grub_test_fini): Likewise.
51313
51314 * normal/command.c: Include <grub/script.h>.
51315 (grub_command_execute): Rewritten.
51316
51317 * util/grub-emu.c (main): Call `grub_test_init' and
51318 `grub_test_fini'.
51319
51320 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51321
51322 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51323 to 0.
51324 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51325 there are no pending characters.
51326
51327 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51328
51329 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51330 `grub_strndup' to drop device arguments. Replace unnecessary
51331 `grub_strndup' with `grub_strdup'.
51332
51333 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51334
51335 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51336 `debug' environment variable has been set.
51337
51338 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51339
51340 * Makefile.in (install-local): Use $(DATA).
51341 (uninstall): Likewise.
51342 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51343 (sbin_UTILITIES): ... to here.
51344 (sbin_SCRIPTS): New variable.
51345 (grub_install_SOURCES): New variable.
51346 * util/powerpc/ieee1275/grub-install.in: New file.
51347 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51348 variable.
51349 (add_segments): Call `grub_util_get_path'.
51350
51351 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51352
51353 From Timothy Baldwin:
51354 * commands/ls.c (grub_ls_list_files): Close FILE with
51355 grub_file_close.
51356 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51357
51358 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51359
51360 * include/grub/parser.h: New file.
51361
51362 * kern/parser.c: Likewise.
51363
51364 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51365 (grub_setup_SOURCES): Likewise.
51366 (grub_probefs_SOURCES): Likewise.
51367 (grub_emu_SOURCES): Likewise.
51368 (kernel_img_HEADERS): Add `parser.h'.
51369
51370 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51371 (grub_emu_SOURCES): Add `kern/parser.c'.
51372 (grubof_SOURCES): Likewise.
51373
51374 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51375 (grubof_SOURCES): Add `kern/parser.c'.
51376
51377 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51378
51379 * kern/misc.c (grub_split_cmdline): Removed function.
51380
51381 * kern/rescue.c: Include <grub/parser.h>.
51382 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51383 of `grub_split_cmdline'.
51384
51385 * normal/command.c: Include <grub/parser.h>.
51386 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51387 of `grub_split_cmdline'.
51388
51389 * normal/completion.c: Include <grub/parser.h>.
51390 (cmdline_state): New variable.
51391 (iterate_dir): End the filename with a quote depending on the
51392 command line state.
51393 (get_state): new function.
51394 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51395 split the arguments and determine the current argument. When the
51396 argument string is not quoted, escape all spaces.
51397
51398 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51399
51400 * normal/sparc64/setjmp.S: New file.
51401
51402 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51403
51404 * include/grub/sparc64/libgcc.h: New file.
51405 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51406 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51407 normal/sparc64/setjmp.c.
51408
51409 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51410
51411 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51412 * kern/sparc64/cache.S: New file.
51413 * kern/sparc64/cache.c: Removed.
51414 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51415 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51416 -mtune=ultrasparc.
51417 (COMMON_LDFLAGS): Add -melf64_sparc.
51418 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51419 (grubof_SOURCES): Use cache.S instead of cache.c.
51420 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51421 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51422 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51423 commented though.
51424 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51425 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51426 (linux_mod_CFLAGS): Commented out.
51427 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51428 out because module isn't built.
51429 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51430 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51431 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51432 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51433 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51434 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51435 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51436 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51437 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51438 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51439 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51440 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51441 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51442 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51443
51444 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51445
51446 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51447 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51448 longer, because HFS should not be used on PC.
51449
51450 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51451
51452 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51453 consistently within the loop.
51454
51455 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51456
51457 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51458 directory can not be read.
51459
51460 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51461
51462 * configure.ac (AC_INIT): Increase the version number to 1.91.
51463
51464 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51465 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51466 term/i386/pc/serial.c.
51467
51468 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51469
51470 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51471 file size must be permitted.
51472
51473 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51474 between %ah and %al.
51475
51476 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51477
51478 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51479 grub_uint64_t.
51480 Call the hook with a NUL-terminated filename.
51481 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51482 grub_cpu_to_be32.
51483
51484 * kern/term.c (cursor_state): New variable.
51485 (grub_term_set_current): Reset the cursor state on a new
51486 terminal.
51487 (grub_setcursor): Rewritten to use CURSOR_STATE.
51488 (grub_getcursor): New function.
51489
51490 * include/grub/term.h (grub_getcursor): New prototype.
51491
51492 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51493 integers on ARM. Reported by Timothy Baldwin
51494 <T.E.Baldwin99@members.leeds.ac.uk>.
51495
51496 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51497
51498 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51499 allocated.
51500 (grub_sfs_dir): Likewise.
51501
51502 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51503
51504 Add support for the SFS filesystem.
51505
51506 * fs/sfs.c: New file.
51507
51508 * DISTLIST: Added `fs/sfs.c'.
51509
51510 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51511 (grub_probefs_SOURCES): Likewise.
51512 (grub_emu_SOURCES): Likewise.
51513 (pkgdata_MODULES): Add `sfs.mod'.
51514 (sfs_mod_SOURCES): New variable.
51515 (sfs_mod_CFLAGS): Likewise.
51516 (sfs_mod_LDFLAGS): Likewise.
51517
51518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51519 (pkgdata_MODULES): Add `sfs.mod'.
51520 (sfs_mod_SOURCES): New variable.
51521 (sfs_mod_CFLAGS): Likewise.
51522
51523 * util/grub-emu.c (main): Call `grub_sfs_init' and
51524 `grub_sfs_fini'.
51525
51526 * include/grub/fs.h (grub_sfs_init): New prototype.
51527 (grub_sfs_fini): Likewise.
51528
51529 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51530
51531 Add support for the AFFS filesystem.
51532
51533 * fs/affs.c: New file.
51534
51535 * DISTLIST: Added `fs/affs.c'.
51536
51537 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51538 (grub_probefs_SOURCES): Likewise.
51539 (grub_emu_SOURCES): Likewise.
51540 (pkgdata_MODULES): Add `affs.mod'.
51541 (affs_mod_SOURCES): New variable.
51542 (affs_mod_CFLAGS): Likewise.
51543 (affs_mod_LDFLAGS): Likewise.
51544
51545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51546 (pkgdata_MODULES): Add `affs.mod'.
51547 (affs_mod_SOURCES): New variable.
51548 (affs_mod_CFLAGS): Likewise.
51549
51550 * util/grub-emu.c (main): Call `grub_affs_init' and
51551 `grub_affs_fini'.
51552
51553 * include/grub/fs.h (grub_affs_init): New prototype.
51554 (grub_affs_fini): Likewise.
51555
51556 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51557
51558 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51559
51560 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51561
51562 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51563 `-m32' to CFLAGS.
51564
51565 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51566 linking.
51567
51568 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51569 (COMMON_LDFLAGS): New variable.
51570 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51571 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51572 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51573 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51574 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51575 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51576 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51577 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51578 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51579 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51580 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51581 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51582 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51583 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51584 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51585 variables.
51586 (normal_mod_ASFLAGS): Add `-m32'.
51587
51588 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51589 (grub_host_size_t, grub_host_ssize_t): New types.
51590 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51591 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51592 `GRUB_HOST_SIZEOF_VOID_P'.
51593
51594 * include/grub/kernel.h (struct grub_module_header): Type of
51595 member offset changed to `grub_host_off_t'. Type of member size
51596 changed to `grub_host_size_t'.
51597 (struct grub_module_info): Type of member offset changed to
51598 `grub_host_off_t'. Type of member size changed to
51599 `grub_host_size_t'.
51600
51601 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51602
51603 Make GRUB's kernel compliant to Multiboot Specification.
51604
51605 * kern/i386/pc/startup.S (multiboot_header): New label.
51606 (multiboot_entry): Likewise.
51607 (multiboot_trampoline): Likewise.
51608
51609 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51610 Increased to 0x4A0.
51611
51612 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51613 put parentheses after a question mark.
51614 [!GRUB_UTIL] (my_mod): New variable.
51615
51616 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51617
51618 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51619
51620 Adds support for the XFS filesystem. Btrees are not supported
51621 yet.
51622
51623 * fs/xfs.c: New file.
51624
51625 * DISTLIST: Added `fs/xfs.c'.
51626
51627 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51628 (grub_probefs_SOURCES): Likewise.
51629 (grub_emu_SOURCES): Likewise.
51630 (pkgdata_MODULES): Add `xfs.mod'.
51631 (xfs_mod_SOURCES): New variable.
51632 (xfs_mod_CFLAGS): Likewise.
51633
51634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51635 (pkgdata_MODULES): Add `xfs.mod'.
51636 (xfs_mod_SOURCES): New variable.
51637 (xfs_mod_CFLAGS): Likewise.
51638
51639 * util/grub-emu.c (main): Call `grub_xfs_init' and
51640 `grub_xfs_fini'.
51641
51642 * include/grub/fs.h (grub_xfs_init): New prototype.
51643 (grub_xfs_fini): Likewise.
51644
51645
51646 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51647
51648 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51649 color modes, allow greater than 16 colors to be configured as
51650 a default palette.
51651
51652 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51653
51654 * normal/completion.c (complete_arguments): Add the qualifier
51655 const into OPTIONS.
51656
51657 From Omniflux <omniflux+lists@omniflux.com>:
51658 * include/grub/terminfo.h: New file.
51659 * include/grub/tparm.h: Likewise.
51660 * include/grub/i386/pc/serial.h: Likewise.
51661 * term/terminfo.c: Likewise.
51662 * term/tparm.c: Likewise.
51663 * term/i386/pc/serial.c: Likewise.
51664 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51665 serial.mod.
51666 (terminfo_mod_SOURCES): New variable.
51667 (terminfo_mod_CFLAGS): Likewise.
51668 (serial_mod_SOURCES): Likewise.
51669 (serial_mod_CFLAGS): Likewise.
51670
51671 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51672
51673 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51674 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51675 and kern/powerpc/ieee1275/cmain.c, respectively.
51676
51677 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51678 * kern/powerpc/ieee1275/crt0.S: ... here.
51679
51680 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51681 * kern/powerpc/ieee1275/cmain.c: ... here.
51682
51683 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51684 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51685 instead of boot/powerpc/ieee1275/crt0.S and
51686 boot/powerpc/ieee1275/cmain.c, respectively.
51687
51688 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51689 sectors. It was not used anyway.
51690
51691 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51692
51693 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51694 `unused parameter' warning.
51695
51696 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51697
51698 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51699 function.
51700 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51701 getcharwidth.
51702
51703 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51704
51705 * include/grub/normal.h (enum grub_completion_type): Added
51706 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51707
51708 * normal/cmdline.c (print_completion): Handle
51709 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51710 * normal/menu_entry.c (store_completion): Likewise.
51711
51712 * normal/completion.c (complete_arguments): New function.
51713 (grub_normal_do_completion): Call `complete_arguments' when the
51714 current words start with a dash.
51715
51716 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51717
51718 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51719 `gzio.mod' instead of `io.mod').
51720
51721 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51722
51723 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51724 (DISTDIRS): Added io and video.
51725 Rewrite the search routine to make an output consistently.
51726
51727 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51728 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51729 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51730 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51731 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51732 util/powerpc/ieee1275/misc.c.
51733
51734 * include/grub/gzio.h: New file.
51735 * io/gzio.c: Likewise.
51736
51737 * kern/file.c (grub_file_close): Call grub_device_close only if
51738 FILE->DEVICE is not NULL.
51739
51740 * include/grub/mm.h [!NULL] (NULL): New macro.
51741
51742 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51743
51744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51745 (pkgdata_MODULES): Added gzio.mod.
51746 (gzio_mod_SOURCES): New variable.
51747 (gzio_mod_CFLAGS): Likewise.
51748
51749 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51750 (pkgdata_MODULES): Added gzio.mod.
51751 (gzio_mod_SOURCES): New variable.
51752 (gzio_mod_CFLAGS): Likewise.
51753
51754 * commands/cat.c: Include grub/gzio.h.
51755 (grub_cmd_cat): Use grub_gzfile_open instead of
51756 grub_file_open.
51757
51758 * commands/cmp.c: Include grub/gzio.h.
51759 (grub_cmd_cmp): Use grub_gzfile_open instead of
51760 grub_file_open.
51761
51762 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51763 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51764 grub_file_open.
51765 (grub_rescue_cmd_module): Likewise.
51766
51767 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51768
51769 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51770 kern/sparc64/ieee1275/init.c because it contains _start.
51771 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51772
51773 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51774
51775 * configure.ac: Add support for sparc64 host with ieee1275
51776 firmware.
51777 * configure: Generated from configure.ac.
51778 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51779 instead of int.
51780 (grub_ofdisk_read): Likewise.
51781 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51782 pointers as (void *) to remove a warning.
51783 (grub_ofdisk_close): Likewise.
51784 (grub_ofdisk_read): Likewise.
51785 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51786 returns, so make it return void to remove a warning.
51787 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51788 Corresponding prototype change.
51789 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51790 values, and cast the pointers as (void *) to remove a warning.
51791 (grub_mm_dump): Likewise.
51792 * conf/sparc64-ieee1275.mk: New file.
51793 * conf/sparc64-ieee1275.rmk: Likewise.
51794 * include/grub/sparc64/setjmp.h: Likewise.
51795 * include/grub/sparc64/types.h: Likewise.
51796 * include/grub/sparc64/ieee1275/console.h: Likewise.
51797 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51798 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51799 * include/grub/sparc64/ieee1275/time.h: Likewise.
51800 * kern/sparc64/cache.c: Likewise.
51801 * kern/sparc64/dl.c: Likewise.
51802 * kern/sparc64/ieee1275/init.c: Likewise.
51803 * kern/sparc64/ieee1275/openfw.c: Likewise.
51804
51805 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51806
51807 * util/console.c (grub_ncurses_putchar): If C is greater than
51808 0x7f, set C to a question mark.
51809 (grub_ncurses_getcharwidth): New function.
51810 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51811 getcharwidth.
51812
51813 * normal/menu.c (print_entry): Made aware of Unicode. First,
51814 convert TITLE to UCS-4, and predict the cursor position by
51815 grub_getcharwidth.
51816
51817 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51818 const to SRC.
51819 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51820
51821 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51822
51823 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51824 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51825 grub_strcat.
51826
51827 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51828 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51829 grub_strcpy and grub_strlen. Take it into account that a space
51830 character is inserted as a delimiter.
51831
51832 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51833
51834 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51835 invalid magic in the error.
51836
51837 * commands/search.c: New file.
51838
51839 * util/grub-emu.c (main): Call grub_search_init and
51840 grub_search_fini.
51841
51842 * kern/rescue.c (grub_rescue_print_disks): Removed.
51843 (grub_rescue_print_devices): New function.
51844 (grub_rescue_cmd_ls): Use grub_device_iterate with
51845 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51846 grub_rescue_print_disks.
51847
51848 * kern/partition.c (grub_partition_iterate): Return the result of
51849 PARTMAP->ITERATE instead of GRUB_ERRNO.
51850
51851 * kern/device.c: Include grub/partition.h.
51852 (grub_device_iterate): New function.
51853
51854 * include/grub/partition.h (grub_partition_iterate): Return int
51855 instead of grub_err_t.
51856
51857 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51858 prototype.
51859 [GRUB_UTIL] (grub_search_fini): Likewise.
51860
51861 * include/grub/device.h (grub_device_iterate): New prototype.
51862
51863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51864 commands/search.c.
51865 (pkgdata_MODULES): Added search.mod.
51866 (search_mod_SOURCES): New variable.
51867 (search_mod_CFLAGS): Likewise.
51868
51869 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51870 (pkgdata_MODULES): Added search.mod.
51871 (search_mod_SOURCES): New variable.
51872 (search_mod_CFLAGS): Likewise.
51873
51874 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51875 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51876 All callers changed.
51877
51878 * DISTLIST: Added commands/search.c.
51879
51880 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51881
51882 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51883 conversion.
51884 (grub_getcharwidth): New function.
51885
51886 * kern/misc.c (grub_utf8_to_ucs4): New function.
51887
51888 * include/grub/term.h (struct grub_term): Added a new member
51889 "getcharwidth".
51890 (grub_getcharwidth): New prototype.
51891
51892 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51893
51894 * term/i386/pc/console.c (map_char): New function. Segregated from
51895 grub_console_putchar.
51896 (grub_console_putchar): Use map_char.
51897 (grub_console_getcharwidth): New function.
51898 (grub_console_term): Specified grub_console_getcharwidth as
51899 getcharwidth.
51900
51901 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51902 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51903
51904 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51905 GRUB_ERRNO.
51906 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51907 on grub_strtoul completely.
51908 (write_char): Declare local variables in the beginning of the
51909 function.
51910 (grub_vesafb_getcharwidth): New function.
51911 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51912 getcharwidth.
51913
51914 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51915
51916 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51917 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51918 commands/i386/pc/vbetest.c.
51919
51920 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51921 call grub_vbe_get_controller_info again, because the returned
51922 information is volatile.
51923 (grub_vbe_set_video_mode): Mostly rewritten.
51924 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51925 grub_vbe_status_t correctly.
51926 (grub_vbe_get_video_mode_info): Likewise.
51927 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51928 several if statements.
51929
51930 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51931 * commands/i386/pc/vbeinfo.c: ... this.
51932
51933 * commands/i386/pc/vbe_test.c: Renamed to ...
51934 * commands/i386/pc/vbetest.c: ... this.
51935
51936 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51937 ...
51938 (grub_cmd_vbeinfo): ... this. Save video modes before
51939 iterating. Skip a video mode, if it is not available, not enough
51940 information is given or it is monochrome. Show the memory
51941 model. Leave the interpretation of MODEVAR to grub_strtoul
51942 completely.
51943 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51944 (GRUB_MOD_FINI): Likewise.
51945
51946 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51947 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51948 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51949 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51950 grub_strtoul completely.
51951 (real2pm): Removed.
51952 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51953 (GRUB_MOD_FINI): Likewise.
51954
51955 * normal/misc.c: Include grub/mm.h.
51956
51957 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51958 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51959 (vbe_list_modes_mod_SOURCES): Removed.
51960 (vbe_list_modes_mod_CFLAGS): Likewise.
51961 (vbe_test_mod_SOURCES): Likewise.
51962 (vbe_test_mod_CFLAGS): Likewise.
51963 (vbeinfo_mod_SOURCES): New variable.
51964 (vbeinfo_mod_CFLAGS): Likewise.
51965 (vbetest_mod_SOURCES): Likewise.
51966 (vbetest_mod_CFLAGS): Likewise.
51967
51968 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51969
51970 * normal/misc.c: New file.
51971
51972 * DISTLIST: Added normal/misc.c.
51973
51974 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51975 DISK to HOOK. Call HOOK with DISK.
51976 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51977 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51978 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51979
51980 * normal/menu_entry.c (struct screen): Added a new member
51981 "completion_shown".
51982 (completion_buffer): New global variable.
51983 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51984 (store_completion): New function.
51985 (complete): Likewise.
51986 (clear_completions): Likewise.
51987 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51988 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51989 a tab, call complete.
51990
51991 * normal/completion.c (disk_dev): Removed.
51992 (print_simple_completion): Likewise.
51993 (print_partition_completion): Likewise.
51994 (print_func): New global variable.
51995 (add_completion): Do not take the arguments WHAT or PRINT any
51996 longer. Added a new argument TYPE. Instead of printing directly,
51997 call PRINT_FUNC if not NULL.
51998 All callers changed.
51999 (complete_device): Use a local variable DEV instead of
52000 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52001 (grub_normal_do_completion): Take a new argument HOOK. Do not
52002 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52003 empty string, return NULL instead.
52004 All callers changed.
52005
52006 * normal/cmdline.c (print_completion): New function.
52007
52008 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52009 to HOOK.
52010 All callers changed.
52011
52012 * kern/disk.c (grub_print_partinfo): Removed.
52013
52014 * include/grub/partition.h (struct grub_partition_map): Add a new
52015 argument DISK into HOOK of ITERATE.
52016 (grub_partition_iterate): Add a new argument DISK to HOOK.
52017
52018 * include/grub/normal.h (enum grub_completion_type): New enum.
52019 (grub_completion_type_t): New type.
52020 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52021 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52022 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52023 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52024 (grub_normal_do_completion): Added a new argument HOOK.
52025 (grub_normal_print_device_info): New prototype.
52026
52027 * include/grub/disk.h (grub_print_partinfo): Removed.
52028
52029 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52030 (normal_mod_SOURCES): Likewise.
52031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52032 (normal_mod_SOURCES): Likewise.
52033
52034 * commands/ls.c (grub_ls_list_disks): Use
52035 grub_normal_print_device_info instead of grub_print_partinfo. Free
52036 PNAME.
52037 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52038 duplicating the code.
52039
52040 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52041
52042 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52043 follow GCS more precisely.
52044 * commands/i386/pc/vbe_test.c: Likewise.
52045 * include/grub/i386/pc/vbe.h: Likewise.
52046 * term/i386/pc/vesafb.c: Likewise.
52047 * video/i386/pc/vbe.c: Likewise.
52048
52049 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52050
52051 * DISTLIST: Added term/i386/pc/vesafb.c
52052 DISTLIST: Added video/i386/pc/vbe.c
52053 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52054 DISTLIST: Added commands/i386/pc/vbe_test.c.
52055 * commands/i386/pc/vbe_list_modes.c: New file.
52056 * commands/i386/pc/vbe_test.c: Likewise.
52057 * term/i386/pc/vesafb.c: Likewise.
52058 * video/i386/pc/vbe.c: Likewise.
52059 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52060 (grub_vbe_probe) Added prototype.
52061 (grub_vbe_set_video_mode) Likewise.
52062 (grub_vbe_get_video_mode) Likewise.
52063 (grub_vbe_get_video_mode_info) Likewise.
52064 (grub_vbe_set_pixel_rgb) Likewise.
52065 (grub_vbe_set_pixel_index) Likewise.
52066 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52067 (pkgdata_MODULES): Added vesafb.mod.
52068 (pkgdata_MODULES): Added vbe_list_modes.mod.
52069 (pkgdata_MODULES): Added vbe_test.mod.
52070 (vbe_mod_SOURCES): Added.
52071 (vbe_mod_CFLAGS): Likewise.
52072 (vesafb_mod_SOURCES): Likewise.
52073 (vesafb_mod_CFLAGS): Likewise.
52074 (vbe_list_modes_mod_SOURCES): Likewise.
52075 (vbe_list_modes_mod_CFLAGS): Likewise.
52076 (vbe_test_mod_SOURCES): Likewise.
52077 (vbe_test_mod_CFLAGS): Likewise.
52078
52079 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52080
52081 * normal/command.c (grub_command_execute): If INTERACTIVE is
52082 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52083 CMDLINE. Disable the pager if INTERACTIVE is true.
52084 All callers are changed.
52085
52086 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52087 before reading a config file.
52088 * normal/main.c (read_config_file): Even if a command is not
52089 found, register it if it is within an entry.
52090
52091 * util/grub-emu.c: Include sys/types.h and unistd.h.
52092 (options): Added --hold.
52093 (struct arguments): Added a new member "hold".
52094 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52095 missing.
52096 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52097 cleared by a debugger, if it is not zero.
52098
52099 * include/grub/normal.h (grub_command_execute): Add an argument
52100 INTERACTIVE.
52101
52102 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52103
52104 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52105
52106 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52107
52108 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52109 program with another one, because the old one didn't detect a bug
52110 in gcc-3.4. Always use regparm 2, because the new test is still
52111 not enough for gcc-4.0. Someone must investigate a simple test
52112 case which detects a bug in gcc-4.0.
52113
52114 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52115
52116 * DISTLIST: Added normal/completion.c.
52117
52118 * normal/completion.c: New file.
52119
52120 * term/i386/pc/console.c (grub_console_getwh): New function.
52121 (grub_console_term): Assign grub_console_getwh to getwh.
52122
52123 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52124 function is defined in normal/completion.c as
52125 grub_normal_do_completion.
52126 (grub_cmdline_get): Use grub_normal_do_completion instead of
52127 grub_tab_complete.
52128
52129 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52130 returns non-zero, otherwise return 0.
52131 (grub_partition_iterate): First, probe the partition map. Then,
52132 call ITERATE only for this partition map.
52133
52134 * kern/misc.c (grub_strncmp): Rewritten.
52135
52136 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52137 returns non-zero. Otherwise return 0.
52138
52139 * include/grub/partition.h (grub_partition_map_iterate): Return
52140 int instead of void.
52141
52142 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52143
52144 * include/grub/misc.h (grub_strncmp): Change the type of N to
52145 grub_size_t.
52146
52147 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52148 of void.
52149
52150 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52151 unsigned explicitly before comparing it with I.
52152
52153 * kern/main.c (grub_env_write_root): Add the attribute unused into
52154 VAR.
52155
52156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52157 normal/completion.c.
52158 (normal_mod_SOURCES): Likewise.
52159 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52160 (normal_mod_SOURCES): Likewise.
52161
52162 * normal/command.c (grub_iterate_commands): If ITERATE returns
52163 non-zero, return one immediately.
52164
52165 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52166
52167 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52168 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52169 descriptions.
52170 (grub_vbe_get_controller_info): New function.
52171 (grub_vbe_get_mode_info): Likewise.
52172 (grub_vbe_set_mode): Likewise.
52173 (grub_vbe_get_mode): Likewise.
52174 (grub_vbe_set_memory_window): Likewise.
52175 (grub_vbe_get_memory_window): Likewise.
52176 (grub_vbe_set_scanline_length): Likewise.
52177 (grub_vbe_get_scanline_length): Likewise.
52178 (grub_vbe_set_display_start): Likewise.
52179 (grub_vbe_get_display_start): Likewise.
52180 (grub_vbe_set_palette_data): Likewise.
52181 * include/grub/i386/pc/vbe.h: New file.
52182
52183 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52184
52185 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52186 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52187 * DISTLIST: Likewise.
52188 * kern/ieee1275/of.c: Moved to ...
52189 * kern/ieee1275/ieee1275.c: ... here.
52190
52191 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52192
52193 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52194 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52195 Pass 0 as `end' parameter to grub_strtoul().
52196
52197 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52198
52199 * include/grub/powerpc/ieee1275/console.h: Do not include
52200 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52201 ifdef.
52202 (grub_console_cur_color): Remove i386-specific prototype.
52203 (grub_console_real_putchar): Likewise.
52204 (grub_console_checkkey): Likewise.
52205 (grub_console_getkey): Likewise.
52206 (grub_console_getxy): Likewise.
52207 (grub_console_gotoxy): Likewise.
52208 (grub_console_cls): Likewise.
52209 (grub_console_setcursor): Likewise.
52210 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52211 Include <grub/machine/console.h>.
52212 * term/ieee1275/ofconsole.c: Likewise.
52213
52214 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52215
52216 * Makefile.in (LIBLZO): New variable.
52217
52218 * configure.ac: Check for LZO version 2.
52219
52220 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52221 lzo/lzo1x.h instead of lzo1x.h.
52222
52223 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52224 of -llzo.
52225
52226 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52227 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52228
52229 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52230 copying the data from PARTITION to P.
52231
52232 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52233
52234 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52235 negative, unload the module.
52236
52237 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52238 map is "pc_partition_map" but not "pc".
52239 (usage): Fix the description. The options are --boot-image and
52240 --core-image but not --boot-file or --core-file.
52241 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52242 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52243 DEFAULT_DIRECTORY.
52244
52245 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52246 --core-file. Specify INSTALL_DEVICE as an argument.
52247
52248 * util/console.c: Include config.h.
52249 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52250 [HAVE_NCURSES_H]: Include ncurses.h.
52251 [HAVE_CURSES_H]: Include curses.h.
52252 [!A_NORMAL] (A_NORMAL): Defined as zero.
52253 [!A_STANDOUT] (A_STANDOUT): Likewise.
52254
52255 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52256 -lncurses.
52257 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52258
52259 * configure.ac: Check for curses libraries and headers.
52260
52261 * Makefile.in (LIBCURSES): New variable.
52262
52263 * genmk.rb (Script::rule): Set the executable bits.
52264
52265 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52266 name of the PC partition map is "pc_partition_map" but not "pc".
52267
52268 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52269
52270 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52271 (modules): Likewise.
52272 (usage): Added descriptions for --modules and --grub-probefs.
52273 Handle --modules and --grub-probefs. Save the arguments in MODULES
52274 and GRUB_PROBEFS, respectively.
52275 Auto-detect a filesystem module against GRUBDIR. If the result is
52276 empty and modules are not specified explicitly, abort the
52277 installation. Add the result to MODULES.
52278
52279 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52280 disk/powerpc/ieee1275/ofdisk.c,
52281 include/grub/powerpc/ieee1275/init.h and
52282 term/powerpc/ieee1275/ofconsole.c.
52283 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52284 term/ieee1275/ofconsole.c.
52285
52286 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52287
52288 * COPYING: Upgraded to the latest version. Only the address of the
52289 FSF office has changed.
52290
52291 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52292
52293 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52294 kern/ieee1275.c with kern/ieee1275/of.c.
52295
52296 * kern/ieee1275.c: Moved to ...
52297 * kern/ieee1275/of.c: ... here.
52298
52299 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52300
52301 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52302 readability.
52303
52304 * config.guess: Updated to the latest version from gnulib.
52305 * config.sub: Likewise.
52306 * install.sh: Likewise.
52307 * mkinstalldirs: Likewise.
52308
52309 * include/grub/console.h: Removed. This file is arch-specific. Do
52310 not put this in include/grub.
52311
52312 * include/grub/i386/pc/console.h: Resurrected.
52313
52314 * util/console.c: Include grub/machine/console.h instead of
52315 grub/console.h.
52316 * util/grub-emu.c: Likewise.
52317
52318 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52319
52320 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52321 hardcoded value.
52322
52323 From Vincent Pelletier <subdino2004@yahoo.fr>
52324 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52325 Redefined to use grub_getwh.
52326 (grub_term): New member named getwh.
52327 (grub_getwh): New prototype.
52328 * kern/term.c (grub_getwh): New function.
52329 * term/i386/pc/console.c (grub_console_getwh): New function.
52330 (grub_console_term): New member `getwh'.
52331 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52332 (grub_vga_term): New member `getwh'.
52333 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52334 grub_ssize_t.
52335 (grub_ofconsole_getw): New function.
52336 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52337 (grub_ofconsole_term): New field named getwh and new initial
52338 value.
52339
52340 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52341
52342 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52343 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52344 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52345 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52346 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52347 of <grub/machine/ieee1275.h>.
52348 * commands/ieee1275/reboot.c: Likewise.
52349 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52350 * kern/ieee1275.c: ... to here. All users updated. Change all
52351 parameter structs to use new type `grub_ieee1275_cell_t'.
52352 * term/powerpc/ieee1275/ofconsole.c: Move ...
52353 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52354 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52355 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52356 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52357 to return int.
52358 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52359 Remove unused prototypes. All users updated.
52360 * include/grub/powerpc/ieee1275/console.h: Removed.
52361 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52362 `grub_ieee1275_cell_t'.
52363 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52364 Cast comparisons with -1 to the correct type.
52365 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52366 type to match `grub_ieee1275_entry_fn'.
52367
52368 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52369
52370 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52371
52372 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52373 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52374 partmap/sun.c.
52375 (grub_probefs_SOURCES): New variable.
52376
52377 * util/i386/pc/grub-probefs.c: New file.
52378
52379 * util/i386/pc/grub-setup.c (main): Call
52380 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52381 grub_hfs_init and grub_jfs_init to initialize the system. Call
52382 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52383 grub_pc_partition_map_fini to finish the system.
52384
52385 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52386
52387 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52388 function.
52389 (grub_multiboot_load_elf32): Likewise.
52390 (grub_multiboot_is_elf64): Likewise.
52391 (grub_multiboot_load_elf64): Likewise.
52392 (grub_multiboot_load_elf): Likewise.
52393 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52394 an ELF32 or ELF64 file.
52395 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52396
52397 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52398 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52399 NULL before calling FS->LABEL.
52400 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52401 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52402 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52403 before calling FS->LABEL.
52404
52405 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52406
52407 * util/i386/pc/grub-install.in (datadir): New variable.
52408 (libdir): Removed.
52409 (pkgdatadir): New variable.
52410 (pkglibdir): Removed.
52411
52412 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52413
52414 * DISTLIST: Added util/i386/pc/grub-install.in.
52415
52416 * util/i386/pc/grub-install.in: New file.
52417
52418 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52419 (grub_install_SOURCES): Likewise.
52420
52421 * genmk.rb: Added support for scripts.
52422 (Script): New class.
52423 (scripts): New variable.
52424
52425 * Makefile.in (install-local): Install sbin_SCRIPTS by
52426 INSTALL_SCRIPT.
52427 (uninstall): Remove sbin_SCRIPTS.
52428
52429 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52430 device, try to get a GRUB device by
52431 grub_util_biosdisk_get_grub_dev.
52432 Free DEST_DEV.
52433
52434 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52435 description for --device-map.
52436
52437 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52438
52439 Change the semantics of variable hooks. They now return strings
52440 instead of error values.
52441
52442 * util/i386/pc/grub-setup.c: Include grub/env.h.
52443 (setup): Use grub_device_set_root instead of grub_env_set.
52444
52445 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52446 grub_env_get instead of grub_device_set_root and
52447 grub_device_get_root, respectively.
52448
52449 * kern/main.c (grub_env_write_root): New function.
52450 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52451 grub_env_set instead of grub_device_set_root.
52452
52453 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52454 many variables.
52455 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52456 rather than calling ENV->WRITE_HOOK afterwards.
52457 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52458 passing a pointer of a pointer.
52459 (grub_register_variable_hook): Change the types of "read_hook" and
52460 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52461 respectively.
52462 Allocate the default empty string on the heap, because this string
52463 may be freed later.
52464
52465 * kern/device.c: Include grub/env.h.
52466 (grub_device_set_root): Removed.
52467 (grub_device_get_root): Likewise.
52468 (grub_device_open): Use grub_env_get instead of
52469 grub_device_get_root.
52470
52471 * include/grub/env.h (grub_env_read_hook_t): New type.
52472 (grub_env_write_hook_t): Likewise.
52473 (grub_env_var): Change the types of "read_hook" and "write_hook"
52474 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52475 (grub_register_variable_hook): Likewise.
52476
52477 * include/grub/device.h (grub_device_set_root): Removed.
52478 (grub_device_set_root): Likewise.
52479
52480 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52481 make sure that DIRNAME terminates with '/', so that
52482 grub_fat_find_dir will fail if PATH is not a directory.
52483
52484 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52485 from DIRNAME.
52486 Use the qualifier auto for print_files and print_files_long.
52487 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52488 as a regular file.
52489 Put a newline only if there is no error.
52490 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52491 used.
52492
52493 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52494
52495 * kern/partition.c (grub_partition_probe): Initialize PART to
52496 NULL. Otherwise, when no partition map is registered, this returns
52497 a garbage.
52498
52499 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52500
52501 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52502 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52503 valid.
52504
52505 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52506
52507 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52508 information on each device, if it does not have partitions. Print
52509 "Device" instead of "Disk", because this function is not specific
52510 to disk devices.
52511
52512 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52513 static to ensure that it is put on the memory rather than a
52514 register.
52515
52516 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52517
52518 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52519 (grub_cat_init): Likewise.
52520 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52521 (options): Likewise.
52522 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52523 (grub_configfile_init): Likewise.
52524 * font/manager.c (GRUB_MOD_INIT): Likewise.
52525 * commands/help.c (GRUB_MOD_INIT): Likewise.
52526 (grub_help_init): Likewise.
52527 * normal/command.c (grub_command_init): Likewise.
52528 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52529 * disk/loopback.c (grub_loop_init): Likewise.
52530 (GRUB_MOD_INIT): Likewise.
52531 * commands/ls.c (grub_ls_init): Likewise.
52532 (GRUB_MOD_INIT): Likewise.
52533 (options): Likewise.
52534 * commands/boot.c (grub_boot_init): Likewise.
52535 (GRUB_MOD_INIT): Likewise.
52536 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52537 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52538 (GRUB_MOD_INIT): Likewise.
52539 * commands/cmp.c (grub_cmp_init): Likewise.
52540 (GRUB_MOD_INIT): Likewise.
52541
52542 * normal/arg.c: Use <> instead of "" to include header files.
52543 (SHORT_ARG_HELP): New macro.
52544 (SHORT_ARG_USAGE): Likewise.
52545 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52546 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52547 descriptions.
52548 (find_short): Check if C is 'h' or 'u' explicitly.
52549 (grub_arg_show_help): Use space characters instead of tabs. Treat
52550 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52551 are shown with --help and --usage only if they are not used for
52552 the command itself.
52553 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52554 'h' and 'u'.
52555
52556 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52557 const into "longarg". Change the type of "shortarg" to int.
52558
52559 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52560
52561 * boot/i386/pc/boot.S (boot_drive_check): New label.
52562
52563 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52564 macro.
52565
52566 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52567 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52568
52569 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52570
52571 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52572 When turning off Gate A20, skip the check and return immediately,
52573 because this is not fatal usually.
52574
52575 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52576
52577 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52578 be 0x7C00 instead of 0x8000.
52579
52580 * boot/i386/pc/pxeboot.S: Rewritten.
52581
52582 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52583 EXT_C.
52584 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52585 result.
52586
52587 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52588
52589 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52590 robustness. This routine now supports a BIOS call and System
52591 Control Port A to modify the gate A20.
52592
52593 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52594 Increased to 0x440.
52595
52596 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52597
52598 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52599 device path and resulting ihandle.
52600 (grub_ofdisk_close): dprintf the ihandle being closed.
52601 (grub_ofdisk_read): dprintf function parameters.
52602 * kern/mm.c (grub_mm_init_region): Likewise.
52603 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52604 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52605 size, and boot arguments.
52606 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52607 before loading into memory.
52608 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52609 before loading into memory.
52610
52611 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52612
52613 * kern/mm.c: Added much documentation.
52614 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52615 8, set to 5 instead of 8.
52616
52617 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52618
52619 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52620
52621 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52622 (grub_mkdevicemap_SOURCES): New variable.
52623
52624 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52625 lib/device.c of GRUB Legacy.
52626
52627 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52628
52629 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52630 instead of PATH is NULL.
52631
52632 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52633
52634 * commands/cmp.c (BUFFER_SIZE): New macro.
52635 (grub_cmd_cmp): Close the right file at the right time. Compare
52636 only data just read. Don't report files of different size as
52637 identical. Dynamically allocate buffers. Move variable
52638 declarations at the beginning of function.
52639
52640 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52641
52642 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52643 reverse.
52644
52645 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52646
52647 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52648 when backspace is pressed at beginning of line.
52649
52650 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52651
52652 * DISTLIST: Added genfslist.sh.
52653
52654 * normal/main.c (fs_module_list): New variable.
52655 (autoload_fs_module): New function.
52656 (read_fs_list): Likewise.
52657 (grub_normal_execute): Call read_fs_list.
52658
52659 * kern/fs.c (grub_fs_autoload_hook): New variable.
52660 (grub_fs_probe): Added support for auto-loading.
52661
52662 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52663 (grub_fs_module_list_t): New type.
52664
52665 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52666 (grub_fs_autoload_hook): New prototype.
52667
52668 * genfslist.sh: New file.
52669
52670 * genmk.rb: Added a rule to generate a filesystem list.
52671
52672 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52673
52674 * configure.ac: Fix the test for cross-compiling.
52675
52676 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52677 define GRUB_UTIL anymore.
52678
52679 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52680 so this function works on other systems than just big endian.
52681 (load_modules): Likewise.
52682 (add_segments): Likewise.
52683
52684 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52685
52686 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52687 contains `l' modifier, get a long from va_arg().
52688
52689 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52690
52691 * kern/mm.c (grub_free): If the next free block which is being
52692 merged is the first free block, set the first block to the block
52693 being freed.
52694 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52695
52696 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52697
52698 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52699 `grub_ieee1275_chosen'.
52700
52701 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52702
52703 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52704 (grub_ieee1275_chosen): New variable.
52705 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52706 `chosen'.
52707 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52708 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52709 Rename first argument to `phandle' for consistency.
52710 (grub_ieee1275_get_property_length): Likewise.
52711 (grub_ieee1275_next_property): Likewise. Change type of first argument
52712 to grub_ieee1275_phandle_t.
52713 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52714 Move export next to declaration.
52715 (grub_ieee1275_chosen): New variable.
52716 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52717 Correct cosmetic typo.
52718 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52719 `grub_ieee1275_chosen'.
52720 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52721 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52722 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52723 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52724 `grub_ieee1275_chosen'.
52725
52726 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52727
52728 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52729 /chosen/bootargs.
52730 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52731 /chosen/bootargs as "variable=value" pairs.
52732
52733 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52734
52735 * include/grub/misc.h (grub_dprintf): New macro.
52736 (grub_real_dprintf): New prototype.
52737 (grub_strword): Likewise.
52738 (grub_iswordseparator): Likewise.
52739 * kern/misc.c (grub_real_dprintf): New function.
52740 (grub_strword): Likewise.
52741 (grub_iswordseparator): Likewise.
52742
52743 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52744
52745 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52746 (roundup): Remove macro.
52747 (grub_ieee1275_flags): Make static.
52748 (grub_ieee1275_realmode): Remove.
52749 (grub_ieee1275_test_flag): New function.
52750 (grub_ieee1275_set_flag): Likewise.
52751 (find_options): Rename to `grub_ieee1275_find_options'; update
52752 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52753 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52754 (cmain): New prototype.
52755 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52756 `grub_ieee1275_flags' directly.
52757 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52758 machine/biosdisk.h.
52759 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52760 Don't include grub/machine/init.h.
52761 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52762 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52763 Remove prototype.
52764 (grub_ieee1275_realmode): Likewise.
52765 (grub_ieee1275_flag): New enum.
52766 (grub_ieee1275_test_flag): New prototype.
52767 (grub_ieee1275_set_flag): New prototype.
52768 * include/grub/powerpc/ieee1275/init.h: Remove file.
52769 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52770 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52771 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52772 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52773 comment.
52774 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52775 `grub_ieee1275_test_flag'.
52776 (grub_ieee1275_encode_devname): Likewise.
52777
52778 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52779
52780 * include/grub/powerpc/ieee1275/ieee1275.h
52781 (grub_ieee1275_encode_devname): New prototype.
52782 (grub_ieee1275_get_filename): Likewise.
52783 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52784 function.
52785 (grub_set_prefix): Likewise.
52786 (grub_machine_init): Call grub_set_prefix.
52787 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52788 (grub_parse_type): New enum.
52789 (grub_ieee1275_get_devargs): New function.
52790 (grub_ieee1275_get_devname): Likewise.
52791 (grub_ieee1275_parse_args): Likewise.
52792 (grub_ieee1275_get_filename): Likewise.
52793 (grub_ieee1275_encode_devname): Likewise.
52794
52795 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52796
52797 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52798 `grub_loader_unset'.
52799
52800 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52801
52802 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52803 instead of grub_ieee1275_interpret.
52804 (grub_halt_init): New function.
52805 (grub_halt_fini): Likewise.
52806 (GRUB_MOD_INIT): Correct message grammar.
52807 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52808 instead of grub_ieee1275_interpret.
52809 (grub_reboot_init): New function.
52810 (grub_reboot_fini): Likewise.
52811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52812 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52813 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52814 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52815 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52816 function.
52817 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52818 Add prototype.
52819 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52820 prototype.
52821 (grub_halt): Likewise.
52822 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52823 (cmain): Remove __attribute__((unused)).
52824 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52825 (grub_heap_len): Likewise.
52826 (grub_machine_fini): New function.
52827 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52828 (grub_halt): Likewise.
52829 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52830 function.
52831 * util/powerpc/ieee1275/misc.c: New file.
52832
52833 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52834
52835 * DISTLIST: New file.
52836 * gendistlist.sh: Likewise.
52837
52838 * Makefile.in (COMMON_DISTFILES): Removed.
52839 (BOOT_DISTFILES): Likewise.
52840 (CONF_DISTFILES): Likewise.
52841 (DISK_DISTFILES): Likewise.
52842 (FS_DISTFILES): Likewise.
52843 (INCLUDE_DISTFILES): Likewise.
52844 (KERN_DISTFILES): Likewise.
52845 (LOADER_DISTFILES): Likewise.
52846 (TERM_DISTFILES): Likewise.
52847 (UTIL_DISTFILES): Likewise.
52848 (DISTFILES): Likewise.
52849 (uninstall): Uninstall files in $(pkgdata_DATA).
52850 (DISTLIST): New target.
52851 (distdir): Use the contents of the file DISTLIST to get a list of
52852 distributed files.
52853
52854 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52855
52856 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52857 descriptor. This is ported from GRUB Legacy.
52858
52859 * gencmdlist.sh: Added an extra semicolon to make it work with
52860 old sed versions. Reported by Robert Bihlmeyer
52861 <robbe@orcus.priv.at>.
52862
52863 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52864
52865 Automatic loading of commands is supported.
52866
52867 * normal/main.c (read_command_list): New function.
52868 (grub_normal_execute): Call read_command_list.
52869
52870 * normal/command.c (grub_register_command): Return zero or CMD.
52871 Allocate CMD->NAME from the heap.
52872 Initialize CMD->MODULE_NAME to zero.
52873 Find the same name as well. If the same command is found and it is
52874 a dummy command, overwrite members. If it is not a dummy command,
52875 return zero.
52876 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52877 (grub_command_find): If a dummy command is found, load a module
52878 and retry to find a command only once.
52879
52880 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52881 make sure that each command is loaded.
52882
52883 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52884 macro.
52885 (struct grub_command): Remove const from the member `name'.
52886 Add a new member `module_name'.
52887 (grub_register_command): Return grub_command_t.
52888
52889 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52890 sure that each command is loaded.
52891
52892 * genmk.rb (PModule::rule): Specify a module name without the
52893 suffix ".mod" to gencmdlist.sh.
52894
52895 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52896
52897 * gencmdlist.sh: New file.
52898
52899 * genmk.rb (PModule::rule): Generate a rule for a command list.
52900 Clean command.lst.
52901 Generate command.lst from $(COMMANDFILES).
52902
52903 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52904 (DATA): Added $(pkgdata_DATA).
52905 (install-local): Install files in $(pkgdata_DATA).
52906
52907 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52908
52909 * term/i386/pc/vga.c (debug_command): Removed.
52910 (GRUB_MOD_INIT): Do not register the command "debug".
52911
52912 From Hollis Blanchard:
52913 * commands/configfile.c: New file.
52914 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52915 commands/configfile.c.
52916 (pkgdata_MODULES): Added configfile.mod.
52917 (configfile_mod_SOURCES): New variable.
52918 (configfile_mod_CFLAGS): Likewise.
52919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52920 commands/configfile.c.
52921 (pkgdata_MODULES): Added configfile.mod.
52922 (configfile_mod_SOURCES): New variable.
52923 (configfile_mod_CFLAGS): Likewise.
52924 * util/grub-emu.c (main): Call grub_configfile_init and
52925 grub_configfile_fini.
52926 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52927 prototype.
52928 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52929
52930 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52931
52932 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52933 address.
52934
52935 * commands/help.c (grub_cmd_help): Do not print newlines after
52936 the last command in print_command_help.
52937
52938 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52939
52940 * commands/default.h: New file.
52941 * commands/timeout.h: Likewise.
52942 * normal/context.c: Likewise.
52943
52944 * util/misc.c: Do not include sys/times.h.
52945 Include sys/time.h and grub/machine/time.h.
52946 (grub_get_rtc): Rewritten with gettimeofday.
52947
52948 * util/grub-emu.c (main): Call grub_default_init and
52949 grub_timeout_init before grub_normal_init, and call
52950 grub_timeout_fini and grub_default_fini after grub_main.
52951
52952 * util/console.c (grub_ncurses_checkkey): Return the read
52953 character or -1.
52954
52955 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52956 timeouts.
52957
52958 * normal/main.c (read_config_file): Push MENU. If this fails,
52959 print an error and wait for a user input.
52960 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52961 If a menu is empty or an error occurs, pop MENU.
52962 (grub_normal_execute): Pop and free MENU after grub_menu_run
52963 returns.
52964
52965 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52966
52967 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52968 include time.h.
52969 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52970 without GRUB_UTIL.
52971 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52972 time.h.
52973 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52974 without GRUB_UTIL.
52975
52976 * include/grub/normal.h (struct grub_menu_list): New struct.
52977 (grub_menu_list_t): New type.
52978 (struct grub_context): New struct.
52979 (grub_context_t): New type.
52980 (grub_register_command): Got rid of EXPORT_FUNC.
52981 (grub_unregister_command): Likewise.
52982 (grub_context_get): New prototype.
52983 (grub_context_get_current_menu): Likewise.
52984 (grub_context_push_menu): Likewise.
52985 (grub_context_pop_menu): Likewise.
52986 [GRUB_UTIL] (grub_default_init): Likewise.
52987 [GRUB_UTIL] (grub_default_fini): Likewise.
52988 [GRUB_UTIL] (grub_timeout_init): Likewise.
52989 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52990
52991 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52992 commands/timeout.c and normal/context.c.
52993 (pkgdata_MODULES): Added default.mod and timeout.mod.
52994 (normal_mod_SOURCES): Added normal/context.c.
52995 (default_mod_SOURCES): New variable.
52996 (default_mod_CFLAGS): Likewise.
52997 (timeout_mod_SOURCES): Likewise.
52998 (timeout_mod_CFLAGS): Likewise.
52999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53000 conf/i386-pc.rmk.
53001 (pkgdata_MODULES): Added default.mod and timeout.mod.
53002 (normal_mod_SOURCES): Added normal/context.c.
53003 (default_mod_SOURCES): New variable.
53004 (default_mod_CFLAGS): Likewise.
53005 (timeout_mod_SOURCES): Likewise.
53006 (timeout_mod_CFLAGS): Likewise.
53007
53008 * Makefile.in (all-local): Added $(MKFILES).
53009
53010 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53011
53012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53013 (grub_emu_SOURCES): Likewise.
53014 (pkgdata_MODULES): Add `sun.mod'.
53015 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53017 `partmap/sun.c'.
53018 (pkgdata_MODULES): Add `sun.mod'.
53019 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53020 * include/grub/partition.h (grub_sun_partition_map_init): New
53021 prototype.
53022 (grub_sun_partition_map_fini): Likewise.
53023 * partmap/sun.c: New file.
53024 * util/grub-emu.c (main): Initialize and de-initialize the sun
53025 partitionmap support.
53026
53027 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53028
53029 This implements an Emacs-like menu entry editor.
53030
53031 * normal/menu_entry.c: New file.
53032
53033 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53034 characters to ASCII.
53035 (saved_char): New variable.
53036 (grub_ncurses_checkkey): Rewritten completely.
53037 (grub_ncurses_getkey): Likewise.
53038 (grub_ncurses_init): Call raw instead of cbreak.
53039
53040 * normal/menu.c (print_entry): Do not put a space.
53041 (init_page): Renamed to ...
53042 (grub_menu_init_page): ... this. All callers changed.
53043 (edit_menu_entry): Removed.
53044 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53045
53046 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53047
53048 * kern/misc.c (grub_vprintf): Call grub_refresh.
53049
53050 * normal/menu.c (DISP_LEFT): Renamed to ...
53051 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53052 * normal/menu.c (DISP_UP): Renamed to ...
53053 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53054 * normal/menu.c (DISP_RIGHT): Renamed to ...
53055 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53056 * normal/menu.c (DISP_DOWN): Renamed to ...
53057 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53058 * normal/menu.c (DISP_HLINE): Renamed to ...
53059 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53060 * normal/menu.c (DISP_VLINE): Renamed to ...
53061 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53062 * normal/menu.c (DISP_UL): Renamed to ...
53063 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53064 * normal/menu.c (DISP_UR): Renamed to ...
53065 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53066 * normal/menu.c (DISP_LL): Renamed to ...
53067 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53068 * normal/menu.c (DISP_LR): Renamed to ...
53069 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53070 * normal/menu.c (TERM_WIDTH): Renamed to ...
53071 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53072 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53073 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53074 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53075 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53076 * normal/menu.c (TERM_MARGIN): Renamed to ...
53077 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53078 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53079 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53080 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53081 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53082 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53083 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53084 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53085 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53086 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53087 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53088 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53089 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53090 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53091 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53092 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53093 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53094 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53095 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53096 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53097 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53098 All callers changed.
53099
53100 * include/grub/normal.h: New prototype.
53101
53102 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53103 normal/menu_entry.c.
53104 (normal_mod_SOURCES): Likewise.
53105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53106 (normal_mod_SOURCES): Likewise.
53107
53108 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53109
53110 * include/grub/normal.h (grub_halt_init): New prototype.
53111 (grub_halt_fini): Likewise.
53112 (grub_reboot_init): Likewise.
53113 (grub_reboot_fini): Likewise.
53114
53115 * util/grub-emu.c: Include signal.h.
53116 (main_env): New global variable.
53117 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53118 catch C-c.
53119 (grub_machine_fini): New function.
53120 (main): Call grub_halt_init and grub_reboot_init before
53121 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53122 Call setjmp with MAIN_ENV to go back afterwards.
53123 Call grub_machine_fini right before return.
53124
53125 * include/grub/util/misc.h: Include setjmp.h.
53126 (main_env): New prototype.
53127
53128 * include/grub/kernel.h (grub_machine_fini): New prototype.
53129 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53130 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53131
53132 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53133 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53134 * term/i386/pc/console.c (grub_console_fini): Likewise.
53135
53136 * util/i386/pc/misc.c: New file.
53137
53138 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53139 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53140 commands/i386/pc/reboot.c.
53141
53142 2005-02-14 Guillem Jover <guillem@hadrons.org>
53143
53144 * include/grub/dl.h (grub_dl_check_header): New prototype.
53145 (grub_arch_dl_check_header): Change return type to grub_err_t,
53146 remove size parameter and export function. Update all callers.
53147 * kern/dl.c (grub_dl_check_header): New function.
53148 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53149 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53150 are inside the core.
53151 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53152 independent ELF header checks.
53153 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53154 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53155 `grub_dl_check_header' instead of explicit checks. Check for the
53156 ELF type.
53157 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53158 `grub_dl_check_header' instead of explicit checks. Remove arch
53159 specific ELF header checks.
53160
53161 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53162 argument SIZE.
53163
53164 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53165
53166 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53167 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53168
53169 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53170
53171 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53172 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53173 (part_map_iterate): Clear `grub_errno' and return 0 if
53174 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53175 * partmap/amiga.c (amiga_partition_map_iterate): Return
53176 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53177 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53178
53179 2005-02-01 Guillem Jover <guillem@hadrons.org>
53180
53181 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53182 help info.
53183
53184 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53185
53186 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53187 Removed prototype.
53188 (grub_rescue_cmd_linux): New prototype.
53189 (grub_rescue_cmd_initrd): Likewise.
53190 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53191 `bi_rec'.
53192 (grub_linux_release_mem): Release the memory for the initrd.
53193 (grub_load_linux): Renamed from this...
53194 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53195 Changed `entry' not to be static. Loop over memory regions to
53196 find another one when the default fails.
53197 (grub_rescue_cmd_initrd): New function.
53198 (grub_linux_init): Remove function.
53199 (grub_linux_fini): Likewise.
53200 (GRUB_MOD_INIT): Register `initrd'.
53201 (GRUB_MOD_FINI): Unregister `initrd'.
53202 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53203 Function removed.
53204 (grub_linux_normal_fini): Likewise.
53205 (GRUB_MOD_INIT): Register `initrd'.
53206 (GRUB_MOD_FINI): Unregister `initrd'.
53207
53208 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53209
53210 * commands/help.c: New file.
53211 * normal/arg.c (show_help): Renamed to...
53212 (grub_arg_show_help): ... this.
53213 * commands/i386/pc/halt.c: New file.
53214 * commands/i386/pc/reboot.c: Likewise.
53215 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53216 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53217 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53218 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53219 variables.
53220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53221 `commands/help.c'.
53222 (pkgdata_MODULES): Add `help.mod'.
53223 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53224 * grub/i386/pc/init.h (grub_reboot): New prototype.
53225 (grub_halt): Likewise.
53226 * include/grub/normal.h (grub_arg_show_help): New prototype.
53227 (grub_help_init): Likewise.
53228 (grub_help_fini): Likewise.
53229 * util/grub-emu.c (main): Initialize and deinitialize the help
53230 command.
53231
53232 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53233
53234 * normal/command.c (grub_command_init): Fixed the description of
53235 the `set' and `unset' commands.
53236
53237 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53238
53239 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53240 function.
53241 * commands/ieee1275/halt.c: New file.
53242 * commands/ieee1275/reboot.c: Likewise.
53243 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53244 `__attribute__ ((unused))'. Some GCS related fixed.
53245 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53246 (grub_suspend_fini): Likewise.
53247 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53248 and `halt.mod'.
53249 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53250 (halt_mod_CFLAGS): New variables.
53251 * include/grub/powerpc/ieee1275/ieee1275.h
53252 (grub_ieee1275_interpret): New prototype.
53253
53254 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53255
53256 * include/grub/misc.h (memmove): New prototype.
53257 (memcpy): Likewise.
53258
53259 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53260
53261 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53262 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53263
53264 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53265
53266 * kern/misc.c (grub_strndup): Function rewritten.
53267
53268 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53269
53270 * normal/menu.c (TERM_WIDTH): Macro redefined.
53271 (TERM_TOP_BORDER_Y): Likewise.
53272 (draw_border): Replaced while-loop by a for-loop. Make the number
53273 of lines consistent with the number of lines displayed in
53274 print_entries. Added a margin below the rectangle.
53275 (print_entry): Make the entry fit in the rectangle.
53276 (print_entries): Display the scroll arrows next to the right
53277 border.
53278
53279 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53280
53281 * fs/minix.c (grub_minix_find_file): Reserve more space for
53282 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53283 `grub_strncpy' to copy `path' into it.
53284
53285 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53286
53287 Add the loopback device, a device via which files can be accessed
53288 as devices.
53289
53290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53291 (pkgdata_MODULES): Add loopback.mod.
53292 (loopback_mod_SOURCES): New variable.
53293 (loopback_mod_CFLAGS): Likewise.
53294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53295 `disk/loopback.c'.
53296 (pkgdata_MODULES): Add loopback.mod.
53297 (loopback_mod_SOURCES): New variable.
53298 (loopback_mod_CFLAGS): Likewise.
53299 * disk/loopback.c: new file.
53300 * include/grub/normal.h (grub_loop_init): New prototype.
53301 (grub_loop_fini): New prototype.
53302 * util/grub-emu.c (main): Initialize and de-initialize loopback
53303 support.
53304 * include/grub/disk.h (grub_disk_dev_id): Add
53305 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53306
53307 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53308
53309 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53310 function.
53311 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53312 (suspend_mod_SOURCES): New variable.
53313 (suspend_mod_CFLAGS): Likewise.
53314 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53315 New prototype.
53316 * commands/ieee1275/suspend.c: New file.
53317
53318 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53319
53320 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53321 ((unused))' to `__attribute__ ((used))'.
53322 (GRUB_MOD_FINI): Likewise.
53323 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53324 * genmk.rb (PModule): Assign space to common symbols when linking
53325 modules.
53326
53327 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53328
53329 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53330 `unsigned' arguments to `grub_size_t'.
53331 (grub_malloc): Likewise.
53332 (grub_realloc): Likewise.
53333 (grub_memalign): Likewise.
53334 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53335 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53336 * util/misc.c (grub_malloc): Likewise.
53337 (grub_realloc): Likewise.
53338 * kern/mm.c (get_header_from_pointer): Change the casts to
53339 `unsigned' into a cast to `grub_size_t'.
53340
53341 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53342 point to `currnode' when `currnode' is changed.
53343
53344 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53345 Schottelius <nico-linux@schottelius.org>.
53346
53347 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53348
53349 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53350 (note_path): Remove variable.
53351 (GRUB_IEEE1275_NOTE_NAME): New macro.
53352 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53353 (grub_ieee1275_note_hdr): New structure.
53354 (grub_ieee1275_note_desc): Likewise.
53355 (grub_ieee1275_note): Likewise.
53356 (load_note): Remove `dir' argument. All callers updated. Remove
53357 `note_img' and `path'. Do not load a file from `note_path'.
53358 Initialize a struct grub_ieee1275_note and write that to `out'.
53359 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53360
53361 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53362
53363 * util/misc.c (grub_util_read_image): Revert last change. It
53364 called `grub_util_read_at', which seeks from the beginning of the
53365 file.
53366
53367 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53368
53369 * TODO: Add note about endianness in grub-mkimage.
53370 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53371 section.
53372 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53373 (grub_mkimage_SOURCES): New target.
53374 * include/grub/kernel.h (grub_start_addr): Remove variable.
53375 (grub_end_addr): Likewise.
53376 (grub_total_module_size): Likewise.
53377 (grub_kernel_image_size): Likewise.
53378 (GRUB_MODULE_MAGIC): New constant.
53379 (grub_module_info): New structure.
53380 (grub_arch_modules_addr): New prototype.
53381 (grub_get_end_addr): Remove prototype.
53382 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53383 * include/grub/powerpc/ieee1275/kernel.h: New file.
53384 * include/grub/util/misc.h (grub_util_get_fp_size): New
53385 prototype.
53386 (grub_util_read_at): Likewise.
53387 (grub_util_write_image_at): Likewise.
53388 * kern/main.c (grub_get_end_addr): Remove function.
53389 (grub_load_modules): Call grub_arch_modules_addr instead of using
53390 grub_end_addr. Look for a grub_module_info struct in memory. Use
53391 the grub_module_info fields instead of calling grub_get_end_addr
53392 as loop conditions. Move grub_add_unused_region code here.
53393 (grub_add_unused_region): Remove function.
53394 * kern/i386/pc/init.c: Include grub/cache.h.
53395 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53396 one call to add_mem_region.
53397 (grub_arch_modules_addr): New function.
53398 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53399 (grub_total_module_size): Likewise.
53400 Include grub/machine/kernel.h.
53401 (grub_arch_modules_addr): New function.
53402 * util/grub-emu.c (grub_end_addr): Remove variable.
53403 (grub_total_module_size): Likewise.
53404 (grub_arch_modules_addr): New function.
53405 * util/misc.c: Include unistd.h.
53406 (grub_util_get_fp_size): New function.
53407 (grub_util_read_at): Likewise.
53408 (grub_util_write_image_at): Likewise.
53409 (grub_util_read_image): Call grub_util_read_at.
53410 (grub_util_write_image): Call grub_util_write_image_at.
53411 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53412 additional memory in kernel_img for a struct grub_module_info.
53413 Fill in that grub_module_info.
53414 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53415
53416 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53417
53418 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53419 New function.
53420 * include/grub/powerpc/ieee1275/ieee1275.h
53421 (grub_ieee1275_milliseconds): New prototype.
53422 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53423 Change to 1000.
53424 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53425 grub_ieee1275_milliseconds.
53426
53427 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53428
53429 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53430 variable.
53431 (find_options): New function.
53432 (cmain): Call find_options.
53433 * include/grub/powerpc/ieee1275/ieee1275.h
53434 (grub_ieee1275_realmode): New extern variable.
53435 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53436 grub_map if grub_ieee1275_realmode is false.
53437
53438 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53439
53440 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53441 lines are inserted and make it work like readline. Reported by
53442 Vincent Pelletier <subdino2004@yahoo.fr>.
53443
53444 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53445
53446 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53447
53448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53449 `kern/powerpc/cache.S'.
53450
53451 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53452
53453 * genmk.rb: Handle the `Program' class in the main loop. Written
53454 by Johan Rydberg <jrydberg@gnu.org>.
53455 (Program): New class.
53456 (programs): New variable.
53457 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53458 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53459 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53460 (help_arch): Function removed.
53461 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53462 `powerpc/libgcc.h' and `loader.h'.
53463 (pkgdata_PROGRAMS): New variable.
53464 (sbin_UTILITIES): Variable removed.
53465 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53466 (grubof_SOURCES): Variable re-defined so it only includes the
53467 core functionality.
53468 (grubof_CFLAGS): Remove `-DGRUBOF'.
53469 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53470 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53471 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53472 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53473 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53474 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53475 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53476 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53477 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53478 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53479 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53480 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53481 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53482 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53483 (pc_mod_CFLAGS): New variables.
53484 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53485 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53486 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53487 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53488 Moved from here...
53489 * include/grub/i386/pc/init.h (grub_os_area_addr)
53490 (rub_os_area_size): ... to here.
53491 * include/grub/powerpc/ieee1275/ieee1275.h
53492 (grub_ieee1275_entry_fn): Export symbol.
53493 * include/grub/powerpc/ieee1275/init.h: New file.
53494 * include/grub/powerpc/libgcc.h: Likewise.
53495 * include/grub/cache.h: Likewise.
53496 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53497 <hollis@penguinppc.org>.
53498 * kern/dl.c: Include <grub/cache.h>.
53499 (grub_dl_flush_cache): New function.
53500 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53501 for this module.
53502 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53503 (grub_console_init): Removed prototypes.
53504 (grub_machine_init): Don't initialize the modules anymore.
53505 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53506 static.
53507 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53508 Macro undef removed.
53509 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53510 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53511 relocation `R_PPC_REL32'. Return an error when the relocation is
53512 unknown.
53513 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53514 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53515 * util/misc.c (grub_arch_sync_caches): Likewise.
53516
53517 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53518
53519 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53520 `symlist.c', add `grubof_symlist.c'.
53521 (symlist.c): Variable removed.
53522 (grubof_HEADERS): Variable added.
53523 (grubof_symlist.c): New target.
53524 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53525 `kernel_img_HEADERS'.
53526 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53527 * kern/powerpc/dl.c: New file.
53528 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53529 Function removed.
53530 (grub_arch_dl_relocate_symbols): Likewise.
53531 (grub_register_exported_symbols): Likewise.
53532
53533 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53534
53535 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53536 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53537 to fail instead. Reported by Vincent Pelletier
53538 <subdino2004@yahoo.fr>.
53539
53540 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53541 it is not allocated. Reported by Vincent Pelletier
53542 <subdino2004@yahoo.fr>.
53543
53544 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53545 output so the output looks better.
53546
53547 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53548
53549 Modulize the partition map support and add support for the amiga
53550 partition map.
53551
53552 * commands/ls.c: Include <grub/partition.h> instead of
53553 <grub/machine/partition.h>.
53554 * kern/disk.c: Likewise.
53555 * kern/rescue.c: Likewise.
53556 * loader/i386/pc/chainloader.c: Likewise.
53557 * normal/cmdline.c: Likewise.
53558 * kern/powerpc/ieee1275/init.c: Likewise.
53559 (grub_machine_init): Call `grub_pc_partition_map_init',
53560 `grub_amiga_partition_map_init' and
53561 `grub_apple_partition_map_init'.
53562 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53563 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53564 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53565 `partition.h' and `pc_partition.h'.
53566 (grub_setup_SOURCES): Remove
53567 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53568 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53569 (grub_emu_SOURCES): Likewise.
53570 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53571 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53572 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53574 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53575 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53576 (grubof_SOURCES): Likewise.
53577 * disk/i386/pc/partition.c: File removed.
53578 * disk/powerpc/ieee1275/partition.c: Likewise.
53579 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53580 * include/grub/i386/pc/partition.h: Likewise.
53581 * kern/partition.c: New file.
53582 * partmap/amiga.c: Likewise.
53583 * partmap/apple.c: Likewise.
53584 * partmap/pc.c: Likewise.
53585 * include/grub/partition.h: Likewise..
53586 * include/grub/pc_partition.h: Likewise.
53587 * util/grub-emu.c: Include <grub/partition.h> instead of
53588 <grub/machine/partition.h>.
53589 (main): Call `grub_pc_partition_map_init',
53590 `grub_amiga_partition_map_init' and
53591 `grub_apple_partition_map_init' and deinitialize afterwards.
53592 * util/i386/pc/biosdisk.c: Include `#include
53593 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53594 `<grub/machine/partition.h>'.
53595 * util/i386/pc/grub-setup.c: Likewise.
53596 * util/i386/pc/biosdisk.c: Likewise.
53597 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53598 partition information in case of a PC partition.
53599 * util/i386/pc/grub-setup.c: Include `#include
53600 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53601 `<grub/machine/partition.h>'.
53602 (setup): Only access the PC specific partition information in case
53603 of a PC partition.
53604
53605 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53606
53607 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53608 (grub_longjmp): Likewise.
53609 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53610 20.
53611 * normal/powerpc/setjmp.S: New file.
53612 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53613 `normal/powerpc/setjmp.S'.
53614 (grubof_CFLAGS): Add `-DGRUBOF'.
53615 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53616 [GRUB_UTIL && !GRUBOF].
53617
53618 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53619
53620 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53621 property named `name'. Correctly handle the error returned by
53622 `grub_ieee1275_finddevice' if a device can not be opened.
53623
53624 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53625
53626 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53627 `actual' for negativity.
53628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53629 kern/fshelp.c.
53630
53631 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53632
53633 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53634 (PAGE_OFFSET): New macro.
53635 (CRTC_ADDR_PORT): Likewise.
53636 (CRTC_DATA_PORT): Likewise.
53637 (START_ADDR_HIGH_REGISTER): Likewise.
53638 (START_ADDR_LOW_REGISTER): Likewise.
53639 (GRAPHICS_ADDR_PORT): Likewise.
53640 (GRAPHICS_DATA_PORT): Likewise.
53641 (READ_MAP_REGISTER): Likewise.
53642 (INPUT_STATUS1_REGISTER): Likewise.
53643 (INPUT_STATUS1_VERTR_BIT): Likewise.
53644 (page): New variable.
53645 (wait_vretrace): New function.
53646 (set_read_map): Likewise.
53647 (set_start_address): Likewise.
53648 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53649 the right page.
53650 (check_vga_mem): Take the page into account.
53651 (write_char): Likewise.
53652 (write_cursor): Likewise.
53653 (scroll_up): Likewise. Copy the page to the page that is not
53654 shown and switch between both pages.
53655 (grub_vga_putchar): Fix off by one error.
53656 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53657 account.
53658
53659 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53660
53661 Add support for iso9660 (including rockridge).
53662
53663 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53664 (iso9660_mod_SOURCES): New variable.
53665 (iso9660_mod_CFLAGS): Likewise.
53666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53667 * include/grub/fs.h (grub_iso9660_init): New prototype.
53668 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53669 * fs/iso9660.c: New file.
53670
53671 * include/grub/misc.h (grub_strncat): New prototype.
53672 * kern/misc.c (grub_strncat): New function.
53673
53674 * fs/hfs.c (grub_hfs_mount): Translate the error
53675 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53676 * fs/jfs.c (grub_jfs_mount): Likewise.
53677 * fs/ufs.c (grub_ufs_mount): Likewise.
53678
53679 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53680
53681 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53682 which initialized BAT registers.
53683 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53684 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53685 Move from here...
53686 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53687 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53688 ... to here.
53689 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53690 (grub_mapclaim): Likewise.
53691 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53692 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53693 hand.
53694
53695 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53696
53697 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53698 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53699 -ffreestanding and -msoft-float.
53700
53701 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53702
53703 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53704 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53705 set in grub_ieee1275_flags.
53706
53707 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53708
53709 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53710 prototype.
53711 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53712 grub_console_init first.
53713 Change the memory range used for grub_ieee1275_claim and
53714 grub_mm_init_region.
53715 Print an error message if the claim fails.
53716 Include <grub/misc.h>.
53717
53718 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53719
53720 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53721 Call grub_children_iterate for device nodes of type `scsi',
53722 `ide', or `ata'.
53723 (grub_ofdisk_open): Remove manual device alias resolution.
53724 Fix memory leak when device cannot be opened.
53725 * include/grub/powerpc/ieee1275/ieee1275.h
53726 (grub_children_iterate): New prototype.
53727 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53728 New function.
53729 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53730 Return -1 if args.size was -1.
53731
53732 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53733
53734 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53735 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53736 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53737 Open Firmware's memory for it; claim memory from _start to _end.
53738 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53739 (_end): New extern.
53740 (_start): Zero BSS from __bss_start to _end.
53741 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53742 New extern.
53743 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53744
53745 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53746
53747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53748 -1 if args.base was -1.
53749
53750 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53751
53752 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53753 escape sequence instead of a literal ^L. Also call
53754 grub_ofconsole_gotoxy.
53755
53756 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53757
53758 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53759 void * arguments to grub_addr_t. All callers updated. Also make
53760 the `result' argument optional.
53761 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53762 All callers updated.
53763
53764 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53765
53766 * commands/ls.c (grub_ls_list_files): Use the string following the
53767 initial ')', if present, as the filesystem path.
53768 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53769
53770 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53771
53772 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53773
53774 Make the source code of the menu interface more readable.
53775
53776 * normal/menu.c: Include grub/mm.h.
53777 (TERM_WIDTH): New macro.
53778 (TERM_HEIGHT): Likewise.
53779 (TERM_INFO_HEIGHT): Likewise.
53780 (TERM_MARGIN): Likewise.
53781 (TERM_SCROLL_WIDTH): Likewise.
53782 (TERM_TOP_BORDER_Y): Likewise.
53783 (TERM_LEFT_BORDER_X): Likewise.
53784 (TERM_BORDER_WIDTH): Likewise.
53785 (TERM_MESSAGE_HEIGHT): Likewise.
53786 (TERM_BORDER_HEIGHT): Likewise.
53787 (TERM_NUM_ENTRIES): Likewise.
53788 (TERM_FIRST_ENTRY_Y): Likewise.
53789 (TERM_ENTRY_WIDTH): Likewise.
53790 (TERM_CURSOR_X): Likewise.
53791 (draw_border): Use macros instead of magic numbers.
53792 (print_entry): Likewise.
53793 (print_entries): Likewise.
53794 (run_menu): Likewise. Also, handle the key 'e'.
53795 (run_menu_entry): Ignore empty command lines.
53796 (print_message): Added a new argument EDIT. If EDIT is true,
53797 print a different message.
53798 (init_page): Likewise.
53799 (edit_menu_entry): New function. Not implemented yet.
53800
53801 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53802
53803 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53804 can be loaded from normal mode.
53805
53806 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53807 `multiboot.mod'.
53808 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53809 (multiboot_mod_CFLAGS): New variables.
53810 * loader/i386/pc/linux_normal.c: New file.
53811 * loader/i386/pc/multiboot_normal.c: Likewise.
53812
53813 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53814 attribute `unused'.
53815
53816 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53817 `fdiro' to read the mode information from instead of `diro'.
53818
53819 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53820 looking up a symlink.
53821
53822 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53823 macro.
53824 * normal/command.c (grub_command_execute): Don't parse the
53825 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53826 flags of the command.
53827
53828 * normal/menu.c (grub_menu_run): Fix typo.
53829
53830 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53831
53832 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53833
53834 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53835 `y + 1' instead of `y - 1'.
53836
53837 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53838
53839 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53840
53841 From Hollis Blanchard <hollis@penguinppc.org>:
53842 * kern/misc.c (memmove): New alias for grub_memmove.
53843 (memcmp): New alias for grub_memcmp.
53844 (memset): New alias for grub_memset.
53845 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53846 Change "int handle" to "grub_ieee1275_phandle_t handle".
53847 * include/grub/powerpc/ieee1275/ieee1275.h
53848 (grub_ieee1275_get_property): Likewise.
53849
53850 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53851
53852 Added normal mode command `chainloader' as module chain.mod, which
53853 depends on normal.mod and _chain.mod.
53854
53855 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53856 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53857 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53858 Deleted prototype.
53859 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53860 but arguments parsing moved to ...
53861 (grub_chainloader_cmd): ... here. New function.
53862 * include/grub/i386/pc/chainloader.h: New file.
53863 * loader/i386/pc/chainloader_normal.c: Likewise.
53864
53865 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53866
53867 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53868 (grub_mkimage_LDFLAGS): Likewise.
53869 (grub_emu_SOURCES): Likewise.
53870 (kernel_img_HEADERS): Added fshelp.h.
53871 * fs/ext2.c: Include <grub/fshelp.h>.
53872 (FILETYPE_REG): New macro.
53873 (FILETYPE_INO_REG): Likewise.
53874 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53875 Changed all users.
53876 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53877 all users.
53878 (grub_fshelp_node): New struct.
53879 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53880 to a pointer.
53881 (grub_ext2_get_file_block): Removed function.
53882 (grub_ext2_read_block): New function.
53883 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53884 This function was written.
53885 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53886 (grub_ext2_find_file): Removed function.
53887 (grub_ext2_read_symlink): New function.
53888 (grub_ext2_iterate_dir): Likewise.
53889 (grub_ext2_open): Rewritten.
53890 (grub_ext2_dir): Rewritten.
53891 * include/grub/fshelp.h: New file.
53892 * fs/fshelp.c: Likewise.
53893
53894 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53895
53896 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53897 (print_message): Add a missing newline.
53898 (run_menu): Added timeout support.
53899 (run_menu_entry): New local function.
53900 (grub_menu_run): Added support for booting.
53901
53902 * kern/loader.c (grub_loader_is_loaded): New function.
53903
53904 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53905 (grub_get_rtc): Exported.
53906
53907 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53908 (grub_get_rtc): Exported.
53909
53910 * include/grub/normal.h (struct grub_command_list): Remove
53911 constant from the member `command'.
53912
53913 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53914
53915 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53916
53917 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53918
53919 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53920
53921 Add support for the JFS filesystem.
53922
53923 * fs/jfs.c: New file.
53924 * include/grub/fs.h (grub_jfs_init): New prototype.
53925 (grub_jfs_fini): New prototype.
53926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53927 (grub_emu_SOURCES): Likewise.
53928 (pkgdata_MODULES): Add jfs.mod.
53929 (jfs_mod_SOURCES): New variable.
53930 (jfs_mod_CFLAGS): Likewise.
53931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53932 (grubof_SOURCES): Likewise.
53933 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53934
53935 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53936 endian to the host endian.
53937 (grub_fat_utf16_to_utf8): Move function from there...
53938 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53939 the endianness of the source string anymore.
53940 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53941
53942 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53943
53944 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53945 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53946 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53947 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53948
53949 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53950 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53951 for `node_found' and `it_dir'.
53952 (grub_hfs_dir): Add prototype for `dir_hook'.
53953
53954 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53955 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53956 and `indir32' to silence a gcc warning.
53957
53958 * include/grub/fs.h (grub_hfs_init): New prototype.
53959 (grub_hfs_fini): Likewise.
53960
53961
53962 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53963
53964 Each disk device has its own id now. This is useful to make use
53965 of multiple disk devices.
53966
53967 * include/grub/disk.h (grub_disk_dev_id): New enum.
53968 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53969 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53970
53971 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53972 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53973
53974 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53975 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53976
53977 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53978 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53979
53980 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53981 "id" which is used by the cache manager.
53982
53983 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53984 of just "GRUB".
53985
53986 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53987
53988 * fs/hfs.c: New file.
53989 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53990 (grub_emu_SOURCES): Likewise.
53991 (pkgdata_MODULES): Add hfs.mod.
53992 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53993 (grubof_SOURCES): Likewise.
53994 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53995
53996 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53997 * kern/misc.c (grub_strncasecmp): Add function.
53998
53999 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54000
54001 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54002 with parentheses.
54003
54004 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54005 (grub_ext2_dir): In case the directory entry type is unknown, read
54006 it from the inode.
54007
54008 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54009
54010 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54011 grub_load_linux instead of grub_rescue_cmd_linux as second
54012 argument of grub_rescue_register_command.
54013
54014 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54015
54016 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54017
54018 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54019 function.
54020 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54021 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54022 `loader/powerpc/ieee1275/linux.c',
54023 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54024 * include/grub/powerpc/ieee1275/ieee1275.h
54025 (grub_ieee1275_release): New prototype.
54026 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54027 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54028 normal, boot, linux and linux_normal.
54029 * loader/powerpc/ieee1275/linux.c: New file.
54030 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54031
54032 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54033
54034 * normal/arg.c (grub_arg_parse): Correct error handling after
54035 reallocating the argumentlist (check if `argl' is not null instead
54036 of checking if `args' is not null).
54037 * kern/mm.c (grub_realloc): Return the same pointer when using the
54038 same region, instead of returning the header address.
54039
54040 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54041
54042 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54043 one block instead of two when looking for the initial partition.
54044 (grub_partition_probe): Initialize the local variable `p' with 0.
54045 Use base 10 for the grub_strtoul call.
54046 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54047 need for one local variable.
54048 (grub_strtoul): Don't add the new value to `num', instead of that
54049 just assign it.
54050
54051 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54052
54053 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54054 (pxeboot_img_SOURCES): New variable.
54055 (pxeboot_img_ASFLAGS): Likewise.
54056 (pxeboot_img_LDFLAGS): Likewise.
54057 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54058 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54059 <lode_leroy@hotmail.com>.
54060
54061 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54062
54063 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54064 there was no input.
54065
54066 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54067
54068 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54069 the history buffer logic.
54070
54071 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54072
54073 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54074 (FILETYPE_INO_SYMLINK): New macros.
54075 (grub_ext2_find_file): Check if the node is a directory using the
54076 inode stat information instead of using the filetype in the
54077 dirent. Exclude the first character of an absolute symlink.
54078 (grub_ext2_dir): Mask out the filetype part of the mode member of
54079 the inode.
54080
54081 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54082
54083 Add support for UFS version 1 and 2. Add support for the minix
54084 filesystem version 1 and 2, both the variants with 14 and 30 long
54085 filenames.
54086
54087 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54088 fs/minix.c.
54089 (grub_emu_SOURCES): Likewise.
54090 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54091 (ufs_mod_SOURCES): New variable.
54092 (ufs_mod_CFLAGS): Likewise.
54093 (minix_mod_SOURCES): Likewise.
54094 (minix_mod_CFLAGS): Likewise.
54095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54096 fs/minix.c.
54097 (grubof_SOURCES): Likewise.
54098 * fs/ufs.c: New file.
54099 * fs/minix.c: New file.
54100 * include/grub/fs.h (grub_ufs_init): New prototype.
54101 (grub_ufs_fini): Likewise.
54102 (grub_minix_init): Likewise.
54103 (grub_minix_fini): Likewise.
54104 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54105 minix fs.
54106
54107 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54108
54109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54110 commands/ls.c, commands/terminal.c, commands/boot.c,
54111 commands/cmp.c and commands/cat.c.
54112 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54113
54114 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54115 "env.h"
54116
54117 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54118
54119 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54120 and grub_, respectively. Because the conversion is trivial and
54121 mechanical, I omit the details here. Please refer to the CVS
54122 if you need more information.
54123
54124 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54125
54126 * include/pupa: Renamed to ...
54127 * include/grub: ... this.
54128 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54129 * util/i386/pc/grub-mkimage.c: ... this.
54130 * util/i386/pc/pupa-setup.c: Renamed to ...
54131 * util/i386/pc/grub-setup.c: ... this.
54132 * util/pupa-emu.c: Renamed to ...
54133 * util/grub-emu.c: ... this.
54134
54135 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54136
54137 Add support for the newworld apple macintosh (PPC). This has been
54138 tested on the powerbook 2000 only. It only adds support for
54139 generic ieee1275 functions, console and disk support. This should
54140 be easy to port to other architectures with support for Open
54141 Firmware.
54142
54143 * configure.ac: Accept the powerpc as host_cpu. In the case of
54144 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54145 specific tests are only executed while building for the i386.
54146 Inverse test for crosscompile.
54147 * genmk.rb (Utility): Allow assembler files.
54148 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54149 * conf/powerpc-ieee1275.rmk: New file.
54150 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54151 * disk/powerpc/ieee1275/partition.c: Likewise.
54152 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54153 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54154 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54155 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54156 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54157 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54158 * include/pupa/powerpc/ieee1275/loader.h
54159 * include/pupa/powerpc/setjmp.h: Likewise.
54160 * include/pupa/powerpc/types.h: Likewise.
54161 * kern/powerpc/ieee1275/init.c: Likewise.
54162 * kern/powerpc/ieee1275/openfw.c: Likewise.
54163 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54164
54165 These files were written by Johan Rydberg
54166 (jrydberg@night.trouble.net) and I only modified them slightly.
54167
54168 * boot/powerpc/ieee1275/cmain.c: New file.
54169 * boot/powerpc/ieee1275/crt0.S: Likewise.
54170 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54171 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54172
54173 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54174
54175 * Makefile.in: Update copyright.
54176 * genmodsrc.sh: Likewise.
54177 * gensymlist.sh: Likewise.
54178 * term/i386/pc/vga.c: Indent correctly.
54179
54180 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54181 bugreporting address.
54182 * util/i386/pc/pupa-setup.c (usage): Likewise,
54183 (main): Call pupa_ext2_init and pupa_ext2_fini.
54184
54185 * fs/fat.c (log2): Renamed to ...
54186 (fat_log2): ... this.
54187 All callers changed.
54188 * kern/misc.c (memcpy): Alias to pupa_memmove.
54189 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54190 lvalue cast.
54191 * util/console.c (pupa_ncurses_fini): Return 0.
54192
54193 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54194 Move fail label here.
54195 [__GNU__]: Don't warn when using stat.
54196 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54197 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54198 long int. Use strtol instead of strtoul.
54199
54200 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54201
54202 * commands/boot.c: New file.
54203 * commands/cat.c: Likewise.
54204 * commands/cmp.c: Likewise.
54205 * commands/ls.c: Likewise.
54206 * commands/terminal.c: Likewise.
54207 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54208 (pupa_register_command): Changed interface to match the new
54209 argument parser.
54210 (pupa_command_execute): Changed (almost rewritten) so it uses
54211 pupa_split_command. Added support for setting variables using the
54212 syntax `foo=bar'.
54213 (rescue_command): Changed to work with the new argument parser.
54214 (terminal_command): Moved from here to commands/terminal.c.
54215 (set_command): New function.
54216 (unset_command): New function.
54217 (insmod_command): New function.
54218 (rmmod_command): New function.
54219 (lsmod_command): New function.
54220 (pupa_command_init): Don't initialize the command terminal
54221 anymore. Initialize the commands set, unset, insmod, rmmod and
54222 lsmod.
54223 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54224 (kernel_img_HEADERS): Add arg.h and env.h.
54225 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54226 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54227 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54228 normal/arg.c.
54229 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54230 terminal.mod.
54231 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54232 (boot_mod_SOURCES): New variable.
54233 (terminal_mod_SOURCES): Likewise.
54234 (ls_mod_SOURCES): Likewise.
54235 (cmp_mod_SOURCES): Likewise.
54236 (cat_mod_SOURCES): Likewise.
54237
54238 * normal/arg.c: New file.
54239 * kern/env.c: Likewise.
54240 * include/pupa/arg.h: Likewise.
54241 * include/pupa/env.h: Likewise.
54242 * font/manager.c (font_command): Changed to match argument parsing
54243 interface changes.
54244 (PUPA_MOD_INIT): Likewise.
54245 * hello/hello.c (pupa_cmd_hello): Likewise.
54246 (PUPA_MOD_INIT): Likewise.
54247 * include/pupa/disk.h: Include <pupa/device.h>.
54248 (pupa_print_partinfo): New prototype.
54249 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54250 (pupa_dl_get_prefix): Likewise.
54251 * include/pupa/misc.h: Include <pupa/err.h>.
54252 (pupa_isgraph): New prototype.
54253 (pupa_isdigit): Likewise.
54254 (pupa_split_cmdline): Likewise.
54255 * include/pupa/normal.h: Include <pupa/arg.h>.
54256 (pupa_command): Changed the prototype of the member `func' to
54257 match the argument parsing interface. Added member `options'.
54258 (pupa_register_command): Updated to match function.
54259 (pupa_arg_parse): New prototype.
54260 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54261 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54262 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54263 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54264 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54265 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54266 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54267 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54268 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54269 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54270 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54271 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54272 * kern/disk.c: Include <pupa/file.h>.
54273 (pupa_print_partinfo): New function.
54274 * kern/dl.c: Include <pupa/env.h>.
54275 (pupa_dl_dir): Variable removed.
54276 (pupa_dl_load): Use the environment variable `prefix' instead of
54277 the variable pupa_dl_dir.
54278 (pupa_dl_set_prefix): Function removed.
54279 (pupa_dl_get_prefix): Likewise.
54280 * kern/i386/pc/init.c: Include <pupa/env.h>.
54281 (pupa_machine_init): Use the environment variable `prefix' instead of
54282 using pupa_dl_set_prefix to set the prefix.
54283 * kern/main.c: Include <pupa/env.h>.
54284 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54285 using pupa_dl_get_prefix to get the prefix.
54286 * kern/misc.c: Include <pupa/env.h>.
54287 (pupa_isdigit): New function.
54288 (pupa_isgraph): Likewise.
54289 (pupa_ftoa): Likewise.
54290 (pupa_vsprintf): Added support for printing values of the type
54291 `double'. Make it possible to format variable output when using
54292 formatting like `%1.2%f'.
54293 (pupa_split_cmdline): New function.
54294 * kern/rescue.c: Include <pupa/env.h>.
54295 (next_word): Removed function.
54296 (pupa_rescue_cmd_prefix): Likewise.
54297 (pupa_rescue_cmd_set): New function.
54298 (pupa_rescue_cmd_unset): New function.
54299 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54300 split the command line instead of splitting it here. Added
54301 support for setting variables using the syntax `foo=bar'. Don't
54302 initialize the prefix command anymore. Initialized the set and
54303 unset commands.
54304 * normal/cmdline.c: Include <pupa/env.h>.
54305 (pupa_tab_complete): Added prototypes for print_simple_completion,
54306 print_partition_completion, add_completion, iterate_commands,
54307 iterate_dev, iterate_part and iterate_dir. Moved code to print
54308 partition information from here to kern/disk.c.
54309 (pupa_cmdline_run): Don't check if the function exists anymore.
54310 * normal/main.c: Include <pupa/env.h>.
54311 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54312 instead of using pupa_dl_get_prefix to get the prefix.
54313 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54314 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54315 warning.
54316 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54317 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54318 ((unused))' to silence a gcc warning.
54319 (pupa_vga_setcolor): Likewise.
54320 (debug_command): Changed to match argument parsing
54321 interface changes.
54322 * util/pupa-emu.c: Include <pupa/env.h>.
54323 (options): Added 0's for unused fields to silence a gcc warning.
54324 (argp): Likewise.
54325 (main): Use the environment variable `prefix' instead of using
54326 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54327 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54328 and terminal.
54329
54330 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54331 * util/misc.c: Include <malloc.h>.
54332 (pupa_malloc): Rewritten so errors are correctly reported.
54333 (pupa_realloc): Likewise.
54334 (pupa_memalign): Likewise.
54335 (pupa_mm_init_region): Declare unused variables with
54336 `__attribute__ ((unused))' to silence a gcc warning.
54337 * normal/i386/setjmp.S: Remove tab at the end of the file to
54338 silence a gcc warning.
54339 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54340 variables with `__attribute__ ((unused))' to silence a gcc
54341 warning.
54342 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54343 local variable i unsigned to silence a gcc warning.
54344
54345 * kern/term.c: Include <pupa/misc.h>.
54346 (pupa_more_lines): New variable.
54347 (pupa_more): Likewise.
54348 (pupa_putcode): When the pager is active pause at the end of every
54349 screen.
54350 (pupa_set_more): New function.
54351 * include/pupa/term.h (pupa_set_more): New prototype.
54352
54353
54354 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54355
54356 Now this project is GRUB 2 rather than PUPA. The location of
54357 the CVS repository was moved to GRUB's.
54358
54359 * configure.ac: Use bug-grub as the reporting address.
54360 Use GRUB instead of PUPA.
54361 Change the version number to 1.90.
54362
54363 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54364
54365 * genkernsyms.sh: Updated copyright information.
54366 * genmk.rb: Likewise.
54367 * genmodsrc.sh: Likewise.
54368 * gensymlist.sh: Likewise.
54369 * boot/i386/pc/boot.S: Likewise.
54370 * boot/i386/pc/diskboot.S: Likewise.
54371 * disk/i386/pc/biosdisk.c: Likewise.
54372 * disk/i386/pc/partition.c: Likewise.
54373 * font/manager.c: Likewise.
54374 * fs/ext2.c: Likewise.
54375 * fs/fat.c: Likewise.
54376 * include/pupa/boot.h: Likewise.
54377 * include/pupa/device.h: Likewise.
54378 * include/pupa/disk.h: Likewise.
54379 * include/pupa/dl.h: Likewise.
54380 * include/pupa/elf.h: Likewise.
54381 * include/pupa/err.h: Likewise.
54382 * include/pupa/file.h: Likewise.
54383 * include/pupa/font.h: Likewise.
54384 * include/pupa/fs.h: Likewise.
54385 * include/pupa/kernel.h: Likewise.
54386 * include/pupa/loader.h: Likewise.
54387 * include/pupa/misc.h: Likewise.
54388 * include/pupa/mm.h: Likewise.
54389 * include/pupa/net.h: Likewise.
54390 * include/pupa/normal.h: Likewise.
54391 * include/pupa/rescue.h: Likewise.
54392 * include/pupa/setjmp.h: Likewise.
54393 * include/pupa/symbol.h: Likewise.
54394 * include/pupa/term.h: Likewise.
54395 * include/pupa/types.h: Likewise.
54396 * include/pupa/i386/setjmp.h: Likewise.
54397 * include/pupa/i386/types.h: Likewise.
54398 * include/pupa/i386/pc/biosdisk.h: Likewise.
54399 * include/pupa/i386/pc/boot.h: Likewise.
54400 * include/pupa/i386/pc/console.h: Likewise.
54401 * include/pupa/i386/pc/init.h: Likewise.
54402 * include/pupa/i386/pc/kernel.h: Likewise.
54403 * include/pupa/i386/pc/linux.h: Likewise.
54404 * include/pupa/i386/pc/loader.h: Likewise.
54405 * include/pupa/i386/pc/memory.h: Likewise.
54406 * include/pupa/i386/pc/multiboot.h: Likewise.
54407 * include/pupa/i386/pc/partition.h: Likewise.
54408 * include/pupa/i386/pc/time.h: Likewise.
54409 * include/pupa/i386/pc/vga.h: Likewise.
54410 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54411 * include/pupa/util/getroot.h: Likewise.
54412 * include/pupa/util/misc.h: Likewise.
54413 * include/pupa/util/resolve.h: Likewise.
54414 * kern/device.c: Likewise.
54415 * kern/disk.c: Likewise.
54416 * kern/dl.c: Likewise.
54417 * kern/err.c: Likewise.
54418 * kern/file.c: Likewise.
54419 * kern/fs.c: Likewise.
54420 * kern/loader.c: Likewise.
54421 * kern/main.c: Likewise.
54422 * kern/misc.c: Likewise.
54423 * kern/mm.c: Likewise.
54424 * kern/rescue.c: Likewise.
54425 * kern/term.c: Likewise.
54426 * kern/i386/dl.c: Likewise.
54427 * kern/i386/pc/init.c: Likewise.
54428 * kern/i386/pc/lzo1x.S: Likewise.
54429 * kern/i386/pc/startup.S: Likewise.
54430 * loader/i386/pc/chainloader.c: Likewise.
54431 * loader/i386/pc/linux.c: Likewise.
54432 * loader/i386/pc/multiboot.c: Likewise.
54433 * normal/cmdline.c: Likewise.
54434 * normal/command.c: Likewise.
54435 * normal/main.c: Likewise.
54436 * normal/menu.c: Likewise.
54437 * normal/i386/setjmp.S: Likewise.
54438 * term/i386/pc/console.c: Likewise.
54439 * term/i386/pc/vga.c: Likewise.
54440 * util/console.c: Likewise.
54441 * util/genmoddep.c: Likewise.
54442 * util/misc.c: Likewise.
54443 * util/pupa-emu.c: Likewise.
54444 * util/resolve.c: Likewise.
54445 * util/unifont2pff.rb: Likewise.
54446 * util/i386/pc/biosdisk.c: Likewise.
54447 * util/i386/pc/getroot.c: Likewise.
54448 * util/i386/pc/pupa-mkimage.c: Likewise.
54449 * util/i386/pc/pupa-setup.c: Likewise.
54450
54451 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54452
54453 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54454 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54455 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54456 reading and reset it after reading.
54457 (pupa_ext2_close): Return PUPA_ERR_NONE.
54458
54459 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54460 Correct value.
54461 (struct linux_kernel_header): Add kernel_version and
54462 initrd_addr_max.
54463 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54464 pupa_file_read succeeds.
54465 (pupa_rescue_cmd_initrd): Implement.
54466
54467 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54468
54469 * fs/ext2.c (pupa_ext2_label): New function.
54470 (pupa_ext2_fs): Added label.
54471 * fs/fat.c (pupa_fat_label): New function.
54472 (pupa_fat_fs): Added label.
54473 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54474
54475 * kern/misc.c (pupa_strndup): New function.
54476 * include/pupa/misc.h (pupa_strndup): New prototype.
54477
54478 * include/pupa/normal.h: Include <pupa/err.h>.
54479 (pupa_set_history): New prototype.
54480 (pupa_iterate_commands): New prototype.
54481 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54482 <pupa/disk.h>, <pupa/file.h>.
54483 (hist_size): New variable.
54484 (hist_lines): Likewise.
54485 (hist_end): Likewise.
54486 (hist_used): Likewise.
54487 (pupa_set_history): New function.
54488 (pupa_history_get): Likewise.
54489 (pupa_history_add): Likewise.
54490 (pupa_history_replace): Likewise.
54491 (pupa_tab_complete): Likewise.
54492 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54493 completion shows partitionnames while completing partitions, this
54494 feature was suggested by Jeff Bailey.
54495 * normal/command.c (pupa_iterate_commands): New function.
54496 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54497 (pupa_normal_init): Initialize history buffer.
54498 (PUPA_MOD_INIT): Likewise.
54499 (pupa_normal_fini): Free the history buffer.
54500 (PUPA_MOD_FINI): Likewise.
54501
54502 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54503 key.
54504
54505 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54506 * configure.ac [i386]: Check for regparam bug.
54507 (NESTED_FUNC_ATTR) [! i386]: Defined.
54508
54509 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54510
54511 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54512 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54513 (pupa_emu_SOURCES): New variable.
54514 (pupa_emu_LDFLAGS): Likewise.
54515 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54516 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54517 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54518 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54519 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54520 (pupa_jmp_buf): New typedef.
54521 (pupa_setjmp) [PUPA_UTIL]: New macro.
54522 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54523 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54524 (pupa_refresh): New prototype.
54525 * include/pupa/util/getroot.h: New file.
54526 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54527 it.
54528 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54529 (pupa_rescue_cmd_cat): Likewise.
54530 (pupa_rescue_cmd_ls): Likewise.
54531 (pupa_rescue_cmd_testload): Likewise.
54532 (pupa_rescue_cmd_lsmod): Likewise.
54533 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54534 * normal/menu.c (run_menu): Likewise.
54535 * kern/term.c (pupa_cls): Likewise.
54536 (pupa_refresh): New function.
54537 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54538 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54539 * util/console.c: New file.
54540
54541 * util/i386/pc/getroot.c: New file.
54542 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54543 (pupa_putchar): New function.
54544 (pupa_refresh): Likewise.
54545 (xgetcwd): Function moved to ...
54546 (strip_extra_slashes): Likewise.
54547 (get_prefix): Likewise.
54548 * util/i386/pc/getroot.c: ... here.
54549 (find_root_device): Function moved and renamed to...
54550 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54551 Changed all callers.
54552 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54553 and renamed to...
54554 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54555 Changed all callers.
54556 * util/misc.c (pupa_memalign): New function.
54557 (pupa_mm_init_region): Likewise.
54558 (pupa_register_exported_symbols): Likewise.
54559 (pupa_putchar): Function removed.
54560 * util/pupa-emu.c: New file.
54561
54562 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54563
54564 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54565 (_multiboot_mod_SOURCES): New variable.
54566 (_multiboot_mod_CFLAGS): Likewise.
54567 * loader/i386/pc/multiboot.c: New file.
54568 * include/pupa/i386/pc/multiboot.h: Likewise.
54569 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54570 (pupa_multiboot_real_boot): New function.
54571 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54572 (pupa_multiboot_real_boot): New prototype.
54573 (pupa_rescue_cmd_multiboot): Likewise
54574 (pupa_rescue_cmd_module): Likewise.
54575
54576 * kern/loader.c (pupa_loader_set): Continue when
54577 pupa_loader_unload_func() fails.
54578 (pupa_loader_unset): New function.
54579 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54580
54581 * kern/misc.c (pupa_stpcpy): New function.
54582 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54583
54584 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54585
54586 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54587 for available extensions.
54588
54589 * include/pupa/i386/pc/time.h: New file.
54590 * kern/disk.c: Include <pupa/machine/time.h>.
54591 (PUPA_CACHE_TIMEOUT): New macro.
54592 (pupa_last_time): New variable.
54593 (pupa_disk_open): Flush the cache when there was a timeout.
54594 (pupa_disk_close): Reset the timer.
54595 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54596 pupa_currticks.
54597 * util/misc.c: Include <sys/times.h>
54598 (pupa_get_rtc): New function.
54599
54600 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54601
54602 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54603 as blocks.
54604 (pupa_ext2_get_file_block): Use blocks member.
54605
54606 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54607 first block. Return -1 instead of pupa_errno on error.
54608
54609 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54610
54611 * README: In the pupa-mkimage example use _chain instead of chain
54612 and ext2 instead of fat.
54613 * TODO: Replace ext2fs with jfs as an example. Add an item for
54614 adding journal playback for ext2fs.
54615 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54616 (pkgdata_MODULES): Added ext2.mod.
54617 (ext2_mod_SOURCES): New variable.
54618 (ext2_mod_CFLAGS): Likewise.
54619 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54620 * include/pupa/misc.h (pupa_strncpy): New prototype.
54621 (pupa_strcat): Likewise.
54622 (pupa_strncmp): Likewise.
54623 * kern/misc.c (pupa_strcat): Enable function.
54624 (pupa_strncpy): New function.
54625 (pupa_strncmp): Likewise.
54626 * fs/ext2.c: New file.
54627
54628 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54629 when the read failed before retrying.
54630 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54631 (_FILE_OFFSET_BITS): Likewise.
54632 * configure.ac: Added AC_SYS_LARGEFILE.
54633
54634 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54635
54636 * genmk.rb (PModule#rule): Make sure to get only symbol names
54637 from the output of nm.
54638 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54639
54640 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54641
54642 I forgot to check in these changes for a long time. This adds
54643 incomplete support for VGA console, and this is still very
54644 buggy. Also, a lot of consideration is required for I18N,
54645 UNICODE, and VGA font issues. Therefore, assume that this is
54646 such that "better than nothing".
54647
54648 * font/manager.c: New file.
54649 * include/pupa/font.h: Likewise.
54650 * include/pupa/i386/pc/vga.h: Likewise.
54651 * term/i386/pc/vga.c: Likewise.
54652 * util/unifont2pff.rb: Likewise.
54653
54654 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54655 (pkgdata_MODULES): Added vga.mod and font.mod.
54656 (vga_mod_SOURCES): New variables.
54657 (vga_mod_CFLAGS): Likewise.
54658 (font_mod_SOURCES): Likewise.
54659 (font_mod_CFLAGS): Likewise.
54660
54661 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54662
54663 * include/pupa/term.h: Include pupa/err.h.
54664 (struct pupa_term): Added init and fini.
54665 Changed the argument of putchar to pupa_uint32_t.
54666
54667 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54668 (pupa_console_real_putchar): New prototype.
54669 (pupa_console_putchar): Removed.
54670 (pupa_console_checkkey): Exported.
54671 (pupa_console_getkey): Likewise.
54672
54673 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54674 characters.
54675
54676 * kern/term.c (pupa_term_set_current): Rewritten.
54677 (pupa_putchar): Likewise.
54678 (pupa_putcode): New function.
54679
54680 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54681 (pupa_console_real_putchar): ... this.
54682 (pupa_vga_set_mode): New function.
54683 (pupa_vga_get_font): Likewise.
54684
54685 * normal/command.c: Include pupa/term.h.
54686 (terminal_command): New function.
54687 (pupa_command_init): Register the command "terminal".
54688
54689 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54690 (DISP_UP): Likewise.
54691 (DISP_RIGHT): Likewise.
54692 (DISP_DOWN): Likewise.
54693 (DISP_HLINE): Likewise.
54694 (DISP_VLINE): Likewise.
54695 (DISP_UL): Likewise.
54696 (DISP_UR): Likewise.
54697 (DISP_LL): Likewise.
54698 (DISP_LR): Likewise.
54699
54700 * term/i386/pc/console.c (pupa_console_putchar): New function.
54701
54702 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54703
54704 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54705 FIX. Reverse the path_list.
54706
54707 * include/pupa/normal.h: Export pupa_register_command and
54708 pupa_unregister_command.
54709
54710 * hello/hello.c (pupa_cmd_hello): New module.
54711 * conf/i386-pc.rmk: Added hello.mod.
54712
54713 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54714
54715 * kern/i386/pc/lzo1x.S: New file.
54716
54717 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54718 (compress_kernel): New variable.
54719 (generate_image): Heavily modified to support compressing a
54720 large part of the core image.
54721
54722 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54723 leak.
54724 (pupa_util_load_image): New function.
54725
54726 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54727 (pupa_compressed_size): New variable.
54728 (codestart): Enable Gate A20 here.
54729 Decompress the compressed part of the core image.
54730 Rearrange the code to put functions and variables which are
54731 required for initialization in the non-compressed part.
54732 Include lzo1x.S.
54733
54734 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54735 here.
54736
54737 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54738
54739 * include/pupa/i386/pc/kernel.h
54740 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54741 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54742 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54743 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54744 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54745
54746 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54747
54748 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54749 (Utility#rule): Likewise.
54750
54751 * configure.ac: Check if LZO is available.
54752
54753 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54754
54755 * include/pupa/normal.h: New file.
54756 * include/pupa/setjmp.h: Likewise.
54757 * include/pupa/i386/setjmp.h: Likewise.
54758 * normal/cmdline.c: Likewise.
54759 * normal/command.c: Likewise.
54760 * normal/main.c: Likewise.
54761 * normal/menu.c: Likewise.
54762 * normal/i386/setjmp.S: Likewise.
54763
54764 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54765 (pupa_rescue_cmd_initrd): Likewise.
54766
54767 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54768 Likewise.
54769
54770 * kern/i386/pc/startup.S (translation_table): New variable.
54771 (translate_keycode): New function.
54772 (pupa_console_getkey): Call translate_keycode.
54773
54774 * kern/rescue.c (attempt_normal_mode): New function.
54775 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54776 it failed, print a message.
54777
54778 * kern/mm.c (pupa_real_malloc): Print more information when a
54779 free magic is broken.
54780 (pupa_free): If the first free header is not free actually, set
54781 it to P.
54782
54783 * kern/main.c (pupa_load_normal_mode): Just load the module
54784 "normal".
54785 (pupa_main): Don't print the message
54786 "Entering into rescue mode..." here.
54787
54788 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54789 Declared.
54790 (pupa_rescue_cmd_initrd): Likewise.
54791 (pupa_rescue_cmd_initrd): Likewise.
54792
54793 * include/pupa/symbol.h (FUNCTION): Specify the type.
54794 (VARIABLE): Likewise.
54795
54796 * include/pupa/err.h (pupa_err_t): Added
54797 PUPA_ERR_UNKNOWN_COMMAND.
54798
54799 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54800 (pupa_dl_get_prefix): Likewise.
54801
54802 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54803 Added _chain.mod and _linux.mod instead of chain.mod and
54804 linux.mod.
54805 (chain_mod_SOURCES): Renamed to ...
54806 (_chain_mod_SOURCES): ... this.
54807 (chain_mod_CFLAGS): Renamed to ...
54808 (_chain_mod_CFLAGS): ... this.
54809 (linux_mod_SOURCES): Renamed to ...
54810 (_linux_mod_SOURCES): ... this.
54811 (linux_mod_CFLAGS): Renamed to ...
54812 (_linux_mod_CFLAGS): ... this.
54813 (normal_mod_SOURCES): New variable.
54814 (normal_mod_CFLAGS): Likewise.
54815 (normal_mod_ASFLAGS): Likewise.
54816
54817 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54818
54819 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54820 possible.
54821
54822 * kern/dl.c (pupa_dl_ref): Refer depending modules
54823 recursively.
54824 (pupa_dl_unref): Unrefer depending modules recursively.
54825 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54826 a module is unloaded before one depending on that module is
54827 unloaded.
54828 (pupa_dl_unload): Unload depending modules explicitly,
54829 if possible.
54830
54831 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54832
54833 * include/pupa/i386/pc/linux.h: New file.
54834 * loader/i386/pc/linux.c: Likewise.
54835
54836 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54837 Removed.
54838 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54839 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54840 of PUPA_CHAINLOADER_BOOT_SECTOR.
54841
54842 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54843 (pupa_linux_prot_size): New variable.
54844 (pupa_linux_tmp_addr): Likewise.
54845 (pupa_linux_real_addr): Likewise.
54846 (pupa_linux_boot_zimage): New function.
54847 (pupa_linux_boot_bzimage): Likewise.
54848
54849 * kern/i386/pc/init.c (struct mem_region): New structure.
54850 (MAX_REGIONS): New macro.
54851 (mem_regions): New variable.
54852 (num_regions): Likewise.
54853 (pupa_os_area_addr): Likewise.
54854 (pupa_os_area_size): Likewise.
54855 (pupa_lower_mem): Likewise.
54856 (pupa_upper_mem): Likewise.
54857 (add_mem_region): New function.
54858 (compact_mem_regions): Likewise.
54859 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54860 the size of the conventional memory and that of so-called upper
54861 memory (before the first memory hole).
54862 Instead of adding each found region to free memory, use
54863 add_mem_region and add them after removing overlaps.
54864 Also, add only 1/4 of the upper memory to free memory. The rest
54865 is used for loading OS images. Maybe this is ad hoc, but this
54866 makes it much easier to relocate OS images when booting.
54867
54868 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54869 (pupa_enter_rescue_mode): Don't register initrd and module.
54870
54871 * kern/mm.c: Include pupa/dl.h.
54872
54873 * kern/main.c: Include pupa/file.h and pupa/device.h.
54874
54875 * kern/loader.c (pupa_loader_load_module_func): Removed.
54876 (pupa_loader_load_module): Likewise.
54877
54878 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54879 ``.o''.
54880
54881 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54882 (pupa_linux_tmp_addr): Likewise.
54883 (pupa_linux_real_addr): Likewise.
54884 (pupa_linux_boot_zimage): Likewise.
54885 (pupa_linux_boot_bzimage): Likewise.
54886
54887 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54888 (pupa_upper_mem): Likewise.
54889 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54890 module is too dangerous.
54891
54892 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54893 (pupa_os_area_size): Likewise.
54894 (pupa_loader_set): Remove the first argument. Loader doesn't
54895 manage modules or initrd any longer.
54896 (pupa_loader_load_module): Removed.
54897
54898 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54899 (linux_mod_SOURCES): New variable.
54900 (linux_mod_CFLAGS): Likewise.
54901
54902 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54903
54904 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54905 the length of a blocklist correctly.
54906
54907 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54908 Use ioctl only if the OS file is a block device.
54909 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54910 not very useful for normal files.
54911
54912 * kern/main.c (pupa_set_root_dev): New function.
54913 (pupa_load_normal_mode): Likewise.
54914 (pupa_main): Call those above.
54915
54916 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54917 pupa_uint16_t.
54918
54919 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54920
54921 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54922
54923 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54924 (setup): Configure the installed partition information and the
54925 dl prefix.
54926
54927 * loader/i386/pc/chainloader.c (my_mod): New variable.
54928 (pupa_chainloader_unload): New function.
54929 (pupa_rescue_cmd_chainloader): Refer itself.
54930 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54931
54932 * kern/i386/pc/startup.S (install_partition): Removed.
54933 (version_string): Likewise.
54934 (config_file): Likewise.
54935 (pupa_install_dos_part): New variable.
54936 (pupa_install_bsd_part): Likewise.
54937 (pupa_prefix): Likewise.
54938 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54939
54940 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54941 and pupa/misc.h.
54942 (make_install_device): New function.
54943 (pupa_machine_init): Set the dl prefix.
54944
54945 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54946 (buf): Renamed to ...
54947 (linebuf): ... this.
54948 (pupa_rescue_cmd_prefix): New function.
54949 (pupa_rescue_cmd_insmod): Likewise.
54950 (pupa_rescue_cmd_rmmod): Likewise.
54951 (pupa_rescue_cmd_lsmod): Likewise.
54952 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54953 rmmod and lsmod.
54954
54955 * kern/mm.c (pupa_memalign): If failed even after invalidating
54956 disk caches, unload unneeded modules and retry.
54957
54958 * kern/misc.c (pupa_memmove): New function.
54959 (pupa_memcpy): Removed.
54960 (pupa_strcpy): New function.
54961 (pupa_itoa): Made static.
54962
54963 * kern/dl.c (pupa_dl_iterate): New function.
54964 (pupa_dl_ref): Likewise.
54965 (pupa_dl_unref): Likewise.
54966 (pupa_dl_unload): Return if succeeded or not.
54967 (pupa_dl_unload_unneeded): New function.
54968 (pupa_dl_unload_all): Likewise.
54969 (pupa_dl_init): Renamed to ...
54970 (pupa_dl_set_prefix): ... this.
54971 (pupa_dl_get_prefix): New function.
54972
54973 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54974 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54975 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54976 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54977 (pupa_install_dos_part): Declared.
54978 (pupa_install_bsd_part): Likewise.
54979 (pupa_prefix): Likewise.
54980 (pupa_boot_drive): Likewise.
54981
54982 * include/pupa/types.h: Fix a typo.
54983
54984 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54985 pupa_memmove.
54986 (pupa_memmove): Declared.
54987 (pupa_strcpy): Likewise.
54988
54989 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54990 pupa_mod_init takes one argument, its own module.
54991 (pupa_dl_unload_unneeded): Declared.
54992 (pupa_dl_unload_all): Likewise.
54993 (pupa_dl_ref): Likewise.
54994 (pupa_dl_unref): Likewise.
54995 (pupa_dl_iterate): Likewise.
54996 (pupa_dl_init): Renamed to ...
54997 (pupa_dl_set_prefix): ... this.
54998 (pupa_dl_get_prefix): Declared.
54999
55000 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55001 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55002 unloaded.
55003 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55004 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55005
55006 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55007 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55008
55009 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55010
55011 * util/i386/pc/pupa-setup.c (setup): Define the internal
55012 function find_first_partition_start at the top level, because GCC
55013 3.0.x cannot compile internal functions in deeper scopes
55014 correctly.
55015 (find_root_device): Use lstat instead of stat.
55016 Don't follow symbolic links.
55017 Fix the path-constructing code.
55018
55019 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55020 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55021 by a BLKGETSIZE ioctl first, because block devices don't fill
55022 the member st_mode of the structure stat on Linux.
55023 [__linux__] (linux_find_partition): Use a temporary buffer
55024 REAL_DEV for the working space. Copy it to DEV before returning.
55025 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55026 buffer cache consistent.
55027 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55028 strncmp. The previous value was merely wrong.
55029 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55030
55031 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55032 FAT size is 12. The previous value was merely wrong.
55033
55034 * kern/main.c (pupa_main): Don't split the starting message from
55035 newlines.
55036
55037 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55038 LF, because BIOS goes crazy about character attributes in this
55039 case.
55040
55041 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55042
55043 * include/i386/pc/util/biosdisk.h: New file.
55044 * util/i386/pc/biosdisk.c: Likewise.
55045 * util/i386/pc/pupa-setup.c: Likewise.
55046
55047 * Makefile.in (INCLUDE_DISTFILES): Added
55048 include/pupa/i386/pc/util/biosdisk.h.
55049 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55050 directory util/i386/pc.
55051 (install-local): Added a rule for sbin_UTILITIES.
55052 (uninstall): Likewise.
55053
55054 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55055
55056 * util/misc.c (xrealloc): New function.
55057 (pupa_malloc): Likewise.
55058 (pupa_free): Likewise.
55059 (pupa_realloc): Likewise.
55060 (pupa_stop): Likewise.
55061 (pupa_putchar): Likewise.
55062
55063 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55064
55065 * include/pupa/util/misc.h (xrealloc): Declared.
55066
55067 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55068 macro.
55069 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55070 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55071
55072 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55073 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55074
55075 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55076 way should be implemented.
55077 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55078
55079 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55080 the size of NAME for safety.
55081 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55082 0x88.
55083
55084 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55085 (pupa_setup_SOURCES): Likewise.
55086
55087 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55088
55089 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55090
55091 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55092 bunch of pushl's from pusha, because this destroys the return
55093 value.
55094
55095 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55096
55097 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55098 This means that any missing prototypes could be fatal. Also, you
55099 must take care when writing assembly code. See the comments at
55100 the beginning of startup.S, for more details.
55101
55102 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55103 compilation mechanism.
55104 (pupa_chainloader_real_boot): Likewise.
55105 (pupa_biosdisk_rw_int13_extensions): Likewise.
55106 (pupa_biosdisk_rw_standard): Likewise.
55107 (pupa_biosdisk_check_int13_extensions): Likewise.
55108 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55109 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55110 (pupa_get_memsize): Likewise.
55111 (pupa_get_mmap_entry): Likewise.
55112 (pupa_console_putchar): Likewise.
55113 (pupa_console_setcursor): Likewise.
55114 (pupa_getrtsecs): Use pushl instead of push.
55115
55116 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55117 memory instead of the stack for a mmap entry, because some
55118 BIOSes may ignore the maximum size and overflow.
55119
55120 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55121
55122 * genmk.rb (PModule#rule): Compile automatically generated
55123 sources with module-specific CFLAGS as well as other sources.
55124
55125 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55126
55127 * configure.ac: Check ld.
55128 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55129 respectively, before checking endianness and sizes.
55130
55131 * Makefile.in (LD): New variable.
55132
55133 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55134
55135 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55136
55137 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55138
55139 * Changelog: New file.
55140