]> git.proxmox.com Git - grub2.git/blob - ChangeLog
ce0ea891c822bbb0943d16d88157baa4454c401b
[grub2.git] / ChangeLog
1 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * util/grub-mkfont.c: Downgrade warnings about unhandled features
4 to debug.
5
6 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
9
10 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
11
12 * .gitignore: add missing files and .exe variants.
13
14 2014-01-26 Mike Gilbert <floppym@gentoo.org>
15
16 grub-install: support for partitioned partx loop devices.
17
18 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
19 /dev/loopX as being the parent of /dev/loopXpY.
20
21 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
24 Ensure that pointers are inited to NULL and that pointers are not
25 accessed after free.
26
27 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
28
29 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
30 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
31 * include/grub/emu/misc.h: ... and here.
32 * include/grub/err.h: ... and here.
33 * util/import_gcry.py: ... and here (in files g10lib.h).
34
35 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
36
37 * util/grub-mkimage.c: Make prefix argument mandatory.
38
39 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Fix several translatable strings.
42
43 Suggested by: D. Prévot.
44
45 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * util/grub-install.c: List available targets.
48
49 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
50
51 * util/grub-install.c (write_to_disk): Add an info message.
52
53 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
54
55 * Makefile.am: Allow adding extra files to generated Windows ZIP
56 archive by setting GRUB_WINDOWS_EXTRA_DIST.
57
58 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
59
60 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
61 Show detected font path in summary.
62
63 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
64
65 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
66 interval gradually.
67 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
68 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
69 * grub-core/net/tftp.c (tftp_open): Likewise.
70 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
71
72 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
73
74 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
75 infinite loops.
76
77 In net/net.c there is a while (1) that only exits if there is a stop
78 condition and more then 10 packages or if there is no package received.
79
80 If GRUB is idle and enter in this loop, the only condition to leave is
81 if it doesn't have incoming packages. In a network with heavy traffic
82 this never happens.
83
84 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
85
86 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
87 EPERM when modifying kern.geom.debugflags. It is only a problem for
88 such things as installing GRUB to the MBR, in which case there'll be
89 an error later anyway, not for opening files during tests.
90
91 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
92
93 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
94 instead of MOD_FILES.
95 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
96 both with and without .exe.
97 * grub-core/genemuinitheader.sh: Same.
98
99 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * util/grub-install.c: Fix a typo.
102
103 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
104
105 * grub-core/normal/main.c (read_config_file): Buffer config file.
106 Reduces boot time.
107
108 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
109
110 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
111 symbolic link to directory. It fails in Msys shell on Windows 2003.
112
113 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * Makefile.am (default_payload.elf): Add modules
116 multiboot cbmemc linux16 gzio echo help.
117
118 2014-01-18 Mike Gilbert <floppym@gentoo.org>
119
120 * Makefile.util.def: Link grub-ofpathname with zfs libs.
121
122 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
123
124 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
125 conflicts.
126
127 Reported by: Andrey Borzenkov.
128
129 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
130
131 * include/grub/misc.h: Move macros for compiler features to ...
132 * include/grub/compiler.h: ... new file.
133 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
134 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
135 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
136 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
137 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
138 * grub-core/video/capture.c: Include <grub/misc.h>.
139 * include/grub/command.h: Include <grub/misc.h>.
140 * include/grub/dl.h: Include <grub/misc.h>.
141 * include/grub/procfs.h: Include <grub/misc.h>.
142
143 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
144
145 * configure.ac: Add support for BUILD_EXEEXT and use it ...
146 * Makefile.am: ... here.
147 * Makefile.util.def: ... and here.
148 * grub-core/Makefile.am: ... and here.
149
150 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
151
152 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
153 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
154
155 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/term/terminfo.c: Recognize keys F1-F12.
158
159 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
160
161 * configure.ac: Add support for BUILD_LDFLAGS.
162 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
163 * grub-core/Makefile.am: ... and here.
164 * INSTALL: Mention BUILD_LDFLAGS.
165
166 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
169
170 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
173 and has no //.
174
175 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * NEWS: Add few missing entries.
178
179 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
180
181 * util/grub.d/00_header.in (make_timeout): Use && rather than test
182 -a.
183 * util/grub.d/10_windows.in: Likewise.
184 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
185 than test -o.
186 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
187 rather than test -o.
188
189 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
190
191 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
192 redundant preprocessor conditional.
193
194 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
195
196 * Makefile.util.def (grub-macbless): Change mansection to 8.
197
198 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
199
200 * grub-core/loader/arm64/linux.c: correctly set device path end length.
201
202 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
203
204 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
205 arm64 to comply with EFI specification. Also use grubaa64.efi for
206 consistency.
207 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
208
209 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
210
211 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
212 on MinGW-64 when compiling for 32 bits.
213
214 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
215
216 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
217
218 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * NEWS: Add few missing entries. Correct existing ones.
221
222 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
223
224 Don't abort() on unavailable coreboot tables if not running on coreboot.
225
226 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
227
228 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
229 on mingw.
230
231 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
232
233 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
234 mention of it from 2.02.
235
236 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
239
240 As these functions are used on pre-ARMv6 CPUs as well we don't want
241 to make assembler assume that architecture is higher than default one.
242
243 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
244
245 * NEWS: First draft of 2.02 entry.
246
247 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
248
249 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
250 * docs/grub.texi (Getting the source code): Likewise.
251
252 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
253
254 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
255 detection.
256
257 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * configure.ac: Set version to 2.02~beta2.
260
261 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
264
265 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
266
267 * util/grub-probe.c: Improve help message and simplify list handling.
268
269 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
270
271 Fix buffer overflow in grub_efi_print_device_path.
272
273 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Show SATA device path.
276
277 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
278
279 Revert grub-file usage in grub-mkconfig.
280
281 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
282
283 Make newly-created files other than grub.cfg world-readable.
284
285 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
286
287 * util/grub.d/00_header.in: Improve compatibility with old config.
288
289 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
290
291 Make rijndael.c respect aliasing rules.
292
293 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
294
295 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
296
297 Make grub_util_device_is_mapped_stat available in grub-emu core.
298
299 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
300
301 Add -Qn to TARGET_CFLAGS if it's supported.
302 Fixes compilation on cygwin.
303
304 Reported by: Andrey Borzenkov.
305 Suggested by: Andrey Borzenkov.
306
307 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
308
309 Save TARGET_CC version in modinfo.sh.
310
311 Suggested by: Andrey Borzenkov.
312
313 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
314
315 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
316 follow the same algorithm to avoid method mismatch. Don't assume
317 DMRAID- UUID to mean full disk but instead check that mapping is linear.
318
319 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
320
321 Declare GRUB_EFI_VENDOR_APPLE_GUID.
322
323 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
324
325 Dump type and vendor specific data when printing device path.
326
327 2013-12-23 Colin Watson <cjwatson@debian.org>
328
329 Update some documentation to refer to Git rather than Bazaar.
330
331 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
332 than Bazaar.
333 * po/README: Likewise. Fix spelling mistake.
334
335 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
336
337 Don't distribute config.h.
338
339 * Makefile.am (platform_HEADERS): Move to ...
340 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
341 failure when building from a distributed tarball.
342
343 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
344
345 * configure.ac: Fix spelling.
346 * grub-core/commands/parttool.c: Fix grammar.
347 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
348 Embedding Partition".
349
350 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
351
352 ARM64 support for grub-mkrescue.
353
354 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
355
356 Install modinfo.sh to keep build information around.
357
358 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
359
360 * grub-core/modinfo.sh.in: Add build config information.
361
362 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
363
364 ARM64 grub-file and grub-mkconfig support.
365
366 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
367
368 Remove leftover options defines.
369
370 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
373
374 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/loader/arm64/linux.c: Add missing bracket.
377
378 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
379
380 Add arm64-efi recognition to grub-file.
381
382 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
383
384 Fix ia64-efi recognition in grub-file.
385
386 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
387
388 Recognize raspberry pi kernel in grub-file.
389
390 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
391
392 Enable cache on ARM U-Boot port.
393
394 Without it the port is reidiculously slow.
395
396 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
397
398 Fix ARM cache maintainance.
399
400 More code was converted from ASM to C for easier handling.
401
402 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
405 algorithm on v5.
406
407 Suggested by: Leif Lindholm.
408
409 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
410
411 * util/grub-mkconfig.in: Fix Xen platform conditions.
412
413 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
414
415 * util/grub-mkrescue.c: Split single help message string in several
416 strings used in previous shell version.
417
418 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
419
420 Add arm64 Linux loader.
421
422 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
423
424 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
425
426 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
427
428 Add module loading and parsing boot time checkpoints.
429
430 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
433 platforms.
434
435 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
436
437 * util/grub-mkconfig.in: Skip non-executable files.
438
439 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
440
441 Workaround buggy timer in raspberry pie by using our own timer
442 implementation.
443
444 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
447 Increase to 16 MiB to allow loading the whole memdisk.
448
449 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
450
451 Fix ARM Linux Loader on non-FDT platforms.
452
453 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * configure.ac: Choose link format based on host_os on emu.
456
457 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
460
461 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/kern/emu/main.c: Build fix for emu.
464
465 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
466
467 Build fixes for argp.h with older gcc.
468
469 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
472 in strings.
473
474 Suggested by: David Prévot.
475
476 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
479
480 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
481
482 Enable -Wformat=2 if it's supported.
483
484 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
487 -Wmissing-declarations if supported.
488
489 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
492 u32 as both HFS and HFS+ have 32-bit inodes.
493
494 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * include/grub/misc.h (grub_strtol): Fix overflow.
497
498 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
501 as return type in both conditionals.
502
503 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
506 to use uint8_t for color.
507
508 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * util/misc.c (grub_util_get_image_size): Check for overflow.
511
512 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
515 for size.
516
517 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
520 for pointer difference.
521
522 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * util/import_gcry.py: Skip sample keys.
525
526 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
529
530 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * configure.ac: Remove duplicate warning arguments.
533
534 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Add missing static qualifiers.
537
538 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
539
540 Add missing includes.
541
542 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
543
544 Inline printf templates when possible to enable format checking.
545
546 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * include/grub/crypto.h: Don't discard const attribute.
549
550 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
553 was intended.
554
555 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * grub-core/lib/crypto.c: Don't discard const attribute.
558
559 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/lib/disk.c: Fix potential overflow.
562
563 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * grub-core/lib/arg.c: Don't discard const attribute.
566
567 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/kern/dl.c: Don't discard const attribute.
570
571 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/kern/disk.c: Fix potential overflow.
574
575 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * conf/Makefile.common: Don't include non-existing directory
578 grub-core/lib/libgcrypt-grub/include.
579
580 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
581
582 Clarify several translatable messages.
583
584 2013-12-21 David Prévot <david@tilapin.org>
585
586 Correct some translatable strings.
587
588 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
589
590 * util/grub-mkrescue.c: Rephrase mkrescue description.
591
592 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
593 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
594
595 Clarify several translatable messages.
596
597 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
598
599 Be more verbose about some configure failures.
600
601 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
602
603 Fix various build problems on GNU/Hurd.
604
605 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
606 !defined (__GNU__).
607 (xgetcwd): Likewise.
608 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
609 [__GNU__]: Add prototype.
610 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
611 long int using %ld rather than %d.
612
613 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * util/grub-install.c: Inform user about install platform.
616
617 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * configure.ac: Set version to 2.02~beta1.
620
621 2013-12-18 Allen Pais <allen.pais@oracle.com>
622 2013-12-18 Bob Picco <bob.picco@oracle.com>
623
624 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
625
626 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
627
628 Make grub_zlib_decompress handle incomplete chunks.
629
630 Fixes squash4.
631
632 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
633
634 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
635 on i386-multiboot.
636
637 2013-12-18 Aleš Nesrsta <starous@volny.cz>
638
639 * grub-core/disk/usbms.c: Retry on unknown errors.
640 Reuse the same tag on retries.
641
642 2013-12-18 Aleš Nesrsta <starous@volny.cz>
643
644 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
645
646 Avoid confusing them with already completed transfers.
647
648 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
649
650 Remove xen VFB.
651
652 Due to XEN bug it prevents Linux boot. Remove it at least, until
653 workaround is found.
654
655 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
656
657 * po/exclude.pot: Add 2 missing excludes.
658
659 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
660
661 Add missing license section in macbless.mod and macho.mod.
662
663 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
664
665 Allow compilation without thumb-interwork as long as no thumb is
666 involved or only thumb2 is used.
667
668 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
669
670 Use -Wl,--no-relax rather than -mno-relax for uniformity.
671
672 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * INSTALL: Update comment as to why sparc64 clang isn't usable.
675
676 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
677
678 Add __attribute__ ((sysv_abi)) only if it's really needed.
679
680 Some compilers don't support it.
681
682 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
685
686 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
687
688 Remove -Wold-style-definition.
689
690 Not very useful and interaction of it with regexp depends on GCC
691 version.
692
693 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
694
695 Make grub_util_get_windows_path_real static.
696
697 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/commands/fileXX.c: Silence cast-align.
700 * grub-core/loader/i386/xen_fileXX.c: Likewise.
701
702 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
703
704 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
705 rather than LL suffix.
706
707 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
708
709 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
710
711 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
712
713 * grub-core/loader/arm/linux.c: Use common initrd functions.
714
715 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
716
717 Decrease number of strings to translate.
718
719 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
722
723 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
724
725 Mark strings for translation and add remaining ones to exclude list.
726
727 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
728
729 * util/grub-file.c (main): Fix sizeof usage.
730
731 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
732
733 Silence spurious warning.
734
735 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Remove check_nt_hiberfil as it's been superseeded by file command.
738
739 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * docs/osdetect.cfg: Add isolinux config to detected OSes.
742
743 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
744
745 Implement syslinux parser.
746
747 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
748
749 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
750
751 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
752
753 Support cpuid --pae.
754
755 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
756
757 Use AT keyboard on Yeeloong 3A.
758
759 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
760
761 Add Yeeloong 3A reboot and halt.
762
763 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
764
765 Add Radeon Yeeloong 3A support.
766
767 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
768
769 Add bonito 3A support.
770
771 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
774
775 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
778
779 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/loader/macho.c: Fix compilation on non-i386.
782
783 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
784
785 Add missing format_arg attribute to check that printf with translated
786 messages has proper arguments.
787
788 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
789
790 Use grub_xasprintf to format translated error messages containing
791 64-bit quantity.
792
793 2013-12-17 Jon McCune <jonmccune@google.com>
794
795 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
796
797 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
798
799 Unify message for unsupported relocation.
800
801 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
802
803 Mark miscompile error for translation.
804
805 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
806
807 Use %I64 and not %ll when using OS printf if compiling for windows.
808
809 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
810
811 Update Mac code to match new register_efi prototype.
812
813 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Implement better integration with Mac firmware.
816
817 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/loader/multiboot_mbi2.c: Implement special value for
820 load_addr.
821
822 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
823
824 Include serial module in default_payload.elf.
825
826 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
827
828 Add explicit thumb interwork bx in asm files.
829
830 Shouldn't matter for armv >= 5 but let's be safe.
831
832 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
833
834 Implement Truecrypt ISO loader.
835
836 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * grub-core/lib/arg.c: Ensure at least a single space between commands.
839
840 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
841
842 Implement grub_file tool and use it to implement generating of config
843 in separate root.
844
845 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
846
847 Change to v1 xen grants.
848
849 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
852
853 GRUB relied on %ebx being preserved across hypercall which isn't true.
854
855 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
856
857 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
858
859 GRUB relied on %rdi being preserved across hypercall which isn't true.
860
861 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
862
863 Implement XEN VFB support.
864
865 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
866
867 Remove grub_bios_interrupt on coreboot.
868
869 It's not used currently and cannot be used safely currently.
870
871 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
872
873 Update exclude.pot and mark few strings for translation.
874
875 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
878
879 Reported by: Jon McCune
880
881 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
882
883 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
884 Add verbose information which firmware directories were tried.
885
886 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
887
888 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
889 function to optionally redirect all three standard descriptors.
890 Redefine grub_util_exec, grub_util_exec_redirect and
891 grub_util_exec_redirect_null to use it.
892 * include/grub/emu/exec.h: Define it.
893 * include/grub/osdep/exec_unix.h: Delete, it is unused.
894 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
895 Use grub_util_exec_redirect_all to redirect error to NULL.
896
897 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * grub-core/tests/sleep_test.c: Silence spurious warning.
900
901 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
902
903 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
904 linker trying to "fixup" the code.
905
906 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
907
908 * grub-core/kern/x86_64/xen/startup.S: Align stack.
909
910 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
911
912 Add support for converting PE+ to Elf64.
913
914 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
917
918 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
919
920 Remove practice of assigning random const pointers to device id.
921
922 This is not required as cache code already checks driver id as well.
923
924 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
927 with mingw.
928
929 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * include/grub/efi/api.h: Don't use call wrappers when compiled with
932 mingw or cygwin as API already matches.
933
934 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
937
938 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
939
940 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
941 not on long.
942
943 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
944
945 Handle X86_64_PC64 relocation.
946
947 Those are generated by some cygwin compilers.
948
949 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
950
951 Determine the need for mingw-related stubs at compile time rather than
952 using not very significant $target_os.
953
954 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
957 may not work with ELF.
958
959 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
960
961 Use unix functions for temporary files and special files on cygwin.
962
963 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Define functions explicitly rather than using --defsym in tests
966 whenever possible. Respect locality in remaining cases.
967
968 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
971
972 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
973
974 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
975 unlikely errors when getting EFI variables and make exhaustive search
976 for all BootNNNN variables to find matching one.
977
978 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
979
980 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
981
982 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
983
984 New functional test for sleep function.
985
986 This test allows to check sleep without qemu. Keep qemu version as
987 well as functional test won't notice if all clocks are going too fast
988 or too slow.
989
990 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
991
992 Add explicit sysv_abi on amd64 asm routines.
993
994 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
997 num_table_entries.
998
999 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1002 functions.
1003
1004 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1007 appropriate.
1008
1009 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1012
1013 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1016 appropriate.
1017
1018 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1021
1022 In case of quick removal of loopback and adding another one it may
1023 get same ID, confusing the cache system.
1024
1025 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1028 appropriate.
1029
1030 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1033 than converting to long.
1034
1035 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1038
1039 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1042 than almost useless pointer.
1043
1044 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 Add gcc_struct to all packed structures when compiling with mingw.
1047
1048 Just "packed" doesn't always pack the way we expect.
1049
1050 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1053
1054 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * util/grub-pe2elf.c: Fix handling of .bss.
1057
1058 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 Implement windows flavour of EFI install routines.
1061
1062 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1065
1066 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 Change grub_install_register_efi interface to pass GRUB device.
1069
1070 This allows grub_install_register_efi to request partition info
1071 directly.
1072
1073 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1076
1077 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 Do not use TCHAR string functions as they are not available on cygwin.
1080
1081 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 Workaround windows bug when querying EFI system partition parameters.
1084
1085 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1088 by using bitfields.
1089
1090 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1093
1094 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Make i386-* other than i386-pc compileable under cygwin.
1097
1098 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Fix definition of grub_efi_hard_drive_device_path. Take care that
1101 existing code would work even if by some reason bogus definition is
1102 used by EFI implementations.
1103
1104 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1107
1108 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1111 invocation.
1112
1113 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * util/config.c: Remove trailing newline from distributor in simple
1116 parsing.
1117
1118 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * include/grub/efi/api.h: Rename protocol and interface to avoid
1121 conflict.
1122
1123 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * .gitignore: add .exe variants. add missing files. remove few outdated
1126 entries.
1127
1128 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/osdep/exec.c: Use unix version on cygwin.
1131
1132 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 Implement multiboot2 EFI BS specification.
1135
1136 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1139 Crash happened only in some cases like a string starting at the
1140 half of the screen of same length.
1141
1142 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1145 with EFI counterpart.
1146
1147 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 Propagate the EFI commits to x86-efi specific parts.
1150
1151 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1154
1155 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Introduce grub_efi_packed_guid and use it where alignment is not
1158 guaranteed.
1159
1160 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1163 unaligned u16 rather than u8[2].
1164
1165 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1168 for relocation range.
1169
1170 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1173 non-function pcrel21b relocation. It happens with .text.unlikely
1174 section.
1175
1176 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1177
1178 * make MAX_USABLE_ADDRESS platform-specific
1179 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1180
1181 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1182
1183 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1184
1185 2013-12-09 Jon McCune <jonmccune@google.com>
1186
1187 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1188 in grub-install and grub-bios-setup for x86 BIOS targets.
1189
1190 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 Add missing compile and link options for sparc64-emu.
1193
1194 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 Implement sparc64 trampolines (needed for sparc64-emu).
1197
1198 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1201 range of R_SPARC_HI22.
1202 Implement R_SPARC_LM22.
1203
1204 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1207 Do not explicitly check for symbol table as it's already checked in
1208 platform-independent layer.
1209
1210 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1213 on ia64 as __clear_cache is a dummy on ia64.
1214
1215 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1218 Do not explicitly check for symbol table as it's already checked in
1219 platform-independent layer.
1220
1221 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1222
1223 * util/grub-mkconfig.in: Add missing newline to output.
1224
1225 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1228 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1229
1230 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1233 compilation with GCC <= 4.2.
1234 * grub-core/kern/emu/argp_common.c: Likewise.
1235
1236 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1239 right platform rather than leaking to sparc64-emu.
1240
1241 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1244 But ensure that the variables in question are indeed unsigned.
1245
1246 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1249
1250 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 Remove grub_memalign on emu.
1253
1254 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1257 truncate incomplete lines but instead flushes them.
1258
1259 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1262 and implement windows variant.
1263
1264 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Fix mips-emu compilation.
1267
1268 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * configure.ac: Check for freetype library usability.
1271
1272 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 Make arm-emu work.
1275
1276 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1279
1280 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1281
1282 * docs/grub.texi (Environment): Update color_normal and color_highlight
1283 defaults (light-gray instead of white).
1284
1285 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1286
1287 * grub-core/normal/main.c (INIT): Set default color to light-gray
1288 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1289 and apparently BIOS defaults.
1290
1291 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 Transform -C option to grub-mkstandalone to --core-compress available
1294 in all grub-install flavours.
1295
1296 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 Merge GRUBFS and GRUB_FS variables.
1299
1300 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1301
1302 Revert commit 69ca97c820, it caused failures when using OS device name
1303 in grub-install. Instead just strip off parenthesis in grub-install
1304 if (hdX) was passed.
1305
1306 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1307
1308 * util/grub-install.c (push_partmap_module): Add helper to convert
1309 partmap names to module names and use it in probe_mods(). Fixes
1310 failure to find partmap modules in diskfilter case.
1311
1312 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 * configure.ac: Make unifont mandatory on coreboot.
1315
1316 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * configure.ac: Skip unifont 6.3 pcf and bdf.
1319
1320 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 * Makefile.am: Remove partial font files if generation failed.
1323
1324 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1325
1326 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1327 strings.
1328 * include/grub/util/misc.h: Define it ...
1329 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1330
1331 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1332
1333 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1334 ${grub_probe}.
1335
1336 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 Don't add -mlong-calls when compiling with clang.
1339
1340 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 * configure.ac: Fix a typo.
1343
1344 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Revamp relocation handling.
1347
1348 Move more code to common dl.c. Add missing veneers for arm and arm64.
1349 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1350
1351 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1354
1355 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1356
1357 * INSTALL: Raise minimum python version to 2.6.
1358 * gentpl.py: Use python3-style print function.
1359
1360 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * util/grub-install.c: Mention Boot* variable.
1363
1364 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1365
1366 * grub-core/osdep/linux/hostdisk.c
1367 (grub_util_find_partition_start_os): Initialise start to avoid
1368 spurious compiler warning.
1369
1370 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1371
1372 On Linux, read partition start offsets from sysfs if possible, to
1373 cope with block device drivers that don't implement HDIO_GETGEO.
1374 Fixes Ubuntu bug #1237519.
1375
1376 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1377 function.
1378 (sysfs_partition_start): Likewise.
1379 (grub_util_find_partition_start_os): Try sysfs_partition_start
1380 before HDIO_GETGEO.
1381
1382 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1383
1384 * grub-core/kern/fdt.c: Update struct size when adding node.
1385
1386 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 Handle unaligned .bss on sparc64.
1389
1390 Current code improperly assumes that both __bss_start and _end are
1391 aligned to 8-bytes. Eliminating this assumption and explicitly align
1392 modules.
1393
1394 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1397 so it doesn't land in the middle of loaded image.
1398
1399 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * configure.ac: Move all warning options that may be absent in
1402 gcc >= 3.1 to optional.
1403
1404 Note: while this allows to compile with older GCC, official requirements
1405 remain the same and no support for older GCC.
1406
1407 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1408
1409 Copying the themes directory in grub-shell isn't
1410 parallel-test-friendly and breaks on the second test when the source
1411 directory is read-only (as in "make distcheck"). Instead, add a
1412 hidden --themes-directory option to grub-mkrescue et al, and use it
1413 in grub-shell.
1414
1415 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1418 as it's no longer necessarry.
1419
1420 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * configure.ac: Allow compilation with older GCC for ARM.
1423
1424 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1427 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1428 ppc.
1429
1430 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1433
1434 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 Pass font config to config.h and not by TARGET_CFLAGS as adding
1437 arguments doesn't work if TARGET_CFLAGS is specified on command
1438 line.
1439
1440 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * configure.ac: Add -Wvla if compiler supports it.
1443
1444 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1447 Remove variable length arrays.
1448 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1449
1450 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1453
1454 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * include/grub/types.h: Declare all byteswaps as inline functions
1457 except compile-time ones.
1458
1459 Solves variable shadowing in constructions like
1460 cpu_to_le (le_to_cpu(x) + 1).
1461
1462 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1465
1466 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1469 minutes.
1470
1471 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1474 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1475
1476 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1477
1478 * grub-core/Makefile.core.def (setjmp): Distribute
1479 lib/arm64/setjmp.S.
1480
1481 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1482
1483 Add a new timeout_style environment variable and a corresponding
1484 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1485 controls hidden-timeout handling more simply than the previous
1486 arrangements, and pressing any hotkeys associated with menu entries
1487 during the hidden timeout will now boot the corresponding menu entry
1488 immediately.
1489
1490 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1491 generates a warning, and if it shows the menu it will do so as if
1492 the second timeout were not present. Other combinations are
1493 translated into reasonable equivalents.
1494
1495 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1496
1497 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * util/config.c: Add missing pointer adjustment.
1500 Reported by: qwertial
1501
1502 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1503
1504 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1505 directly, not via `cpu' link, to fix libgrub.pp generation.
1506
1507 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1508
1509 New port arm64-efi.
1510
1511 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1512
1513 * docs/grub.texi (sleep): Document exit codes.
1514
1515 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 Ensure that -mno-unaligned-access or some equivalent option is used.
1518
1519 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1522 -march=armv3.
1523
1524 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1527
1528 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1529
1530 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1531 builds, since we don't have an EPS version of font_char_metrics.png.
1532 Add leading dot to image extension per the Texinfo documentation.
1533
1534 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1535
1536 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1537 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1538 * util/grub-gen-widthspec.c: Likewise.
1539 * util/grub-mkfont.c: Likewise.
1540
1541 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1542
1543 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1544 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1545 failed to install on (hdX).
1546 * util/grub-setup.c (get_device_name): Remove, not needed after
1547 above change.
1548
1549 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1552
1553 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * util/grub-fstest.c: Remove variable length arrays.
1556
1557 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1560
1561 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1564 computing crc32 rather than handling with md fundtions directly.
1565
1566 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1569 checking fwstart.img rather than md fundtions directly.
1570
1571 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * util/grub-mkrescue.c (main): Check that fread succeeded.
1574
1575 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * conf/Makefile.common: Remove -mexplicit-relocs and
1578 -DUSE_ASCII_FALLBACK on yeeloong.
1579
1580 -DUSE_ASCII_FALLBACK is already added by font snippets.
1581 -mexplicit-relocs isn't needed is compiler/assemblera are
1582 configured properly.
1583 If they're not we shouldn't attempt to fix it by ourselves.
1584 Binary compare between before and after shows no difference.
1585
1586 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1589 sources in dependencies directly.
1590
1591 This was the only instance of "library" in core config. A bug was
1592 reported that -fno-stack-protector wasn't passed to it. Instead of
1593 figuring out why it failed just remove this construction used
1594 needlessly.
1595
1596 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1599 fgets succeeded.
1600
1601 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1602
1603 * docs/grub.texi (ls): Fix command description in case of a device name
1604 passed as argument.
1605
1606 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 Eliminate variable length arrays in grub_vsnprintf_real.
1609
1610 A bit tricky because this function has to continue to work without
1611 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1612 but make all stack references use 32-bit offset rather than 8-bit one.
1613 So split va_args preparsing to separate function and put the prealloc
1614 into the caller.
1615
1616 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1619 Fixes build for windows.
1620
1621 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * gentpl.py: Don't generate platform-dependent conditionals for
1624 platform-independent targets.
1625
1626 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1627
1628 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1629 references to mdadm from otherwise generic code.
1630 (grub_util_exec_pipe): Likewise.
1631 (grub_util_exec_pipe_stderr): Likewise.
1632 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1633 This function calls vgs, not mdadm; adjust variable names
1634 accordingly.
1635
1636 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1637
1638 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1639 of Autogen. The Autogen definitions files remain intact as they
1640 offer a useful abstraction.
1641
1642 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1643
1644 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1645 into no-ops, and use it in programs that copy files but do not need
1646 to take special care to sync writes (grub-mknetdir, grub-rescue,
1647 grub-mkstandalone).
1648
1649 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1650
1651 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1652 than hardcoding /usr/local/bin/xorriso.
1653
1654 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Add PCI command activation to all PCI drivers as required for coreboot
1657 and maybe some other firmwares.
1658
1659 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1662 and non-Apple variants of efiemu compile.
1663
1664 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1665
1666 * configure.ac: Add explicit check for linking format of
1667 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1668 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1669 hardcoding linking format.
1670
1671 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1674 and not pkgdatadir.
1675
1676 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1677 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 Add a --locale-directory option to grub-install and related tools.
1680
1681 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1682 --locale-directory option.
1683 (enum grub_install_options): Add
1684 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1685 * util/grub-install-common.c (grub_install_help_filter): Handle
1686 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1687 (grub_install_parse): Likewise.
1688 (get_localedir): New function to check for a user-provided option
1689 before trying grub_util_get_localedir.
1690 (copy_locales): Use get_localedir rather than
1691 grub_util_get_localedir. Handle differing locale directory layouts.
1692 (grub_install_copy_files): Likewise.
1693
1694 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1697 Don't rely on PATH_MAX.
1698
1699 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/genmoddep.awk: Use more portable && rather than and.
1702
1703 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1706 an object after data. While it doesn't seem right solution, it
1707 works well enough and OSX isn't main compilation platform.
1708
1709 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1712 While it doesn't seem right solution, it works well enough and
1713 OSX isn't main compilation platform.
1714
1715 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * configure.ac: Add -static to LDFLAGS when using apple linker to
1718 prevent it from pulling in dynamic linker.
1719
1720 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 Apple assembly doesn't handle symbol arithmetic well. So define an
1723 offset symbol in boot.S and use it.
1724
1725 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 Apple assembly doesn't handle symbol arithmetic well. So instead
1728 of getting addres of kernel_sector + 4 define kernel_sector_high.
1729 It also makes code more readable.
1730
1731 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 With Apple assembly in .macro environvemnt you have to use $$ instead
1734 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1735 to $$x on Apple and to $x on everything else.
1736
1737 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1740 OBJCONV.
1741
1742 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1743
1744 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1745 and non-Apple. This instruction is shorter and faster,
1746 so no reason not to use it on both.
1747
1748 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1751 .text when compiling for Apple.
1752
1753 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1756
1757 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1758
1759 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1760 %dx restore the probe worked on non-existant drive. Reorganize the
1761 code a little bit to free 2 bytes necessary for push/pop.
1762
1763 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1766 Add missing cast to silence warning.
1767
1768 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1769
1770 * util/grub-install.c (update_nvram): Support --no-nvram flag
1771 for EFI targets.
1772
1773 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1776
1777 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * util/garbage-gen.c: Add missing include of sys/time.h.
1780
1781 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 Don't add -mflush-func if it's not supported by compiler.
1784
1785 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Move common BIOS/coreboot memory map declarations to
1788 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
1789
1790 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
1791
1792 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
1793
1794 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 * INSTALL: Document why older clang versions aren't appropriate.
1797
1798 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 * INSTALL: Document about clang for mips.
1801
1802 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1805 clang.
1806
1807 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 Add *-xen to the list of grub-install-common platforms.
1810
1811 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1814 3 last commits.
1815
1816 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1819
1820 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1823 with -mcmodel=large.
1824
1825 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1828 range-checking for 32-bit quantities.
1829
1830 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * configure.ac: Compile with -fPIC when compiling with clang on
1833 mips.
1834
1835 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1838 when compiling with clang.
1839
1840 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 clang emits calls to abort () under some unknown conditions.
1843 Export abort () when compiling with clang.
1844
1845 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 * docs/grub-dev.texi: Document stack and heap sizes.
1848
1849 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * include/grub/i386/pc/memory.h: Decrease
1852 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1853 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1854 The binary doesn't change (checked). It's more to better reflect actual
1855 usage.
1856
1857 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1860 at compile time that enough of scratch size is available.
1861
1862 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1865 Previously we misaligned stack by 8 in startup.S and compensated
1866 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1867 right behaviour is to align stack in startup.S and keep it aligned
1868 in callwrap.S. startup.S part was committed few commits before. This
1869 takes care of callwrap.S.
1870 Reported by: Gary Lin.
1871
1872 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1875 .data and .bss. May happen if compiler and assembly use different
1876 alignment.
1877
1878 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1881 way.
1882
1883 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 Add support for a new magic symbol _gp_disp on mips to handle PIC
1886 binaries.
1887
1888 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1891
1892 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1895 when rest of GRUB is compiled for hisher stepping. Instead use
1896 .set mips3/.set mips1 around cache and sync opcodes.
1897
1898 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1901 do essentially the same thing, do it in similar way.
1902
1903 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1904
1905 * util/grub-mkrescue.c (main): If a source directory is not
1906 specified, read platform-specific files from subdirectories of
1907 pkglibdir, not pkgdatadir.
1908
1909 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1910
1911 * grub-core/normal/progress.c: Remove unused file.
1912
1913 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1916 array.
1917
1918 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1921 than grub.cfg.
1922
1923 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * coreboot.cfg: Add missing file.
1926
1927 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1930
1931 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1932
1933 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1934 selectively skipping systems.
1935
1936 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1937
1938 * Makefile.util.def (grub-mkimage): Add
1939 grub-core/osdep/aros/config.c to extra_dist.
1940 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1941 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1942 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1943 grub-core/gnulib-no-gets.diff.
1944
1945 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 Add automated filesystem checking based on scripts I've used now for
1948 quite some time locally. Most of the test require root so they are
1949 skipped when run without necessarry privelegies.
1950
1951 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1952
1953 * util/grub-install.c (main): Adjust info messages to match
1954 installed paths of grub-bios-setup and grub-sparc64-setup.
1955
1956 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1957
1958 * util/grub-install-common.c (copy_locales): Consistently use
1959 grub_util_get_localedir () rather than LOCALEDIR.
1960 (grub_install_copy_files): Likewise.
1961
1962 2013-11-19 Josh Triplett <josh@joshtriplett.org>
1963
1964 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1965 16-byte boundary, as required by the x86-64 ABI, before calling
1966 grub_main. In some cases, GCC emits code that assumes this
1967 alignment, which crashes if not aligned. The EFI firmware is also
1968 entitled to assume that stack alignment without checking.
1969
1970 2013-11-18 Josh Triplett <josh@joshtriplett.org>
1971
1972 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1973 4k page boundaries as expected by firmware rather than 1k
1974 boundaries.
1975 (grub_mmap_malign_and_register): Likewise.
1976
1977 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1980 fragmentation 512M is enough.
1981
1982 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1985 pointer to 32K. This is the size of cache element which is the most
1986 common allocation >1K. This way the pointer is always around blocks
1987 of 32K and so we keep performance while decreasing fragmentation.
1988
1989 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1990
1991 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1992 current memory when allocating large chunks. This significantly
1993 decreases memory fragmentation.
1994
1995 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1996
1997 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1998 but for symmetry).
1999 * tests/lzocompress_test.in: Skip if lzop is not installed.
2000 * tests/xzcompress_test.in: Skip if xz is not installed.
2001
2002 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2003
2004 * util/grub-mkrescue.c (main): Fix typo.
2005
2006 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2009 clock frequency to 200 MHz,
2010
2011 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2014
2015 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2018 Load config file from (cbfsdisk)/etc/grub.cfg.
2019
2020 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * util/grub-install-common.c (grub_install_copy_files): Fix module
2023 destination directory.
2024
2025 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2026
2027 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2028 files have not been built.
2029
2030 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2031
2032 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2033 Handle errors from mkstemp.
2034 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2035
2036 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2039 on primary master on pseries.
2040
2041 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2044 already loaded. This saves memory needed for tests,
2045
2046 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2049 work again.
2050
2051 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2054 work again.
2055
2056 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2059 master since with some combinations of qemu and firmware only primary
2060 IDE channel is available.
2061
2062 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2065 low-memory platforms where we don't have enough memory for them.
2066 * grub-core/tests/videotest_checksum.c: Likewise.
2067
2068 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2071 already loaded. This saves memory needed for tests,
2072
2073 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Fix handling of install lists.
2076
2077 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2080
2081 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2084 the devices before accessing them.
2085
2086 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2089 as file argument.
2090
2091 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2094
2095 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2098 (grub_file_close): Free file->name.
2099
2100 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2103 (grub_load_public_key): Likewise.
2104 (grub_verify_signature_real): Likewise.
2105 (grub_cmd_verify_signature): Likewise.
2106
2107 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2110 memory leak.
2111
2112 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2115 (grub_longjmp): Restore r31.
2116 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2117
2118 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2121 modules to be in line with make_image_abs.
2122
2123 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2126
2127 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2128
2129 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2130
2131 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2132
2133 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2136 to leave some memory to firmware.
2137
2138 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2141 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2142 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2143 Load gfxmenu.
2144
2145 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2148 now needs full arguments.
2149
2150 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * util/grub-mkrescue.c (main): Add trailing \n in
2153 .disk_label.contentDetails to be in line with previous shell script.
2154
2155 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2158
2159 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * util/grub-install-common.c (grub_install_parse): Recognize
2162 --compress=none like shell script did.
2163
2164 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 * include/grub/misc.h: Replace check for __sparc64__ with one for
2167 __sparc__ as __sparc64__ isn't actually defined.
2168
2169 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2172 counterpart of fixing the naming of escc ports.
2173
2174 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * util/grub-install-common.c (platforms): Fix the order of entries and
2177 remove useless field val.
2178
2179 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * util/grub-install.c: Add new option --no-bootsector to skip
2182 installing of bootsector. Accept --grub-setup=/bin/true as
2183 backwards-compatible synonym.
2184
2185 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2186
2187 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2188 order of qsort arguments (number of elements vs. element size).
2189
2190 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2193 the function of these files exceeds what can be sanely handled in shell
2194 in posix-comaptible way. Also writing it in C extends the functionality
2195 to non-UNIX-like OS and minimal environments.
2196
2197 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2200 compiling to thumb2.
2201 * grub-core/kern/arm/cache_armv7.S: Likewise.
2202 * grub-core/lib/arm/setjmp.S: Likewise.
2203
2204 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2205
2206 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2207 in grub_uboot_syscall
2208
2209 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 Decrease stack usage in lexer.
2212
2213 We have only 92K of stack and using over 4K per frame is wasteful
2214
2215 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2216 as macros so that compiler would remove useless structure on stack.
2217 Better solution would be to fix flex not to put this structure on
2218 the stack but flex is external program.
2219
2220 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 Decrease stack usage in signature verification.
2223
2224 We have only 92K of stack and using over 4K per frame is wasteful
2225
2226 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2227 rather than stack.
2228 (grub_verify_signature_real): Likewise.
2229
2230 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Decrease stack usage in mdraid 0.9x.
2233
2234 We have only 92K of stack and using over 4K per frame is wasteful
2235
2236 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2237 rather than stack.
2238
2239 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 Decrease stack usage in BtrFS.
2242
2243 We have only 92K of stack and using over 4K per frame is wasteful
2244
2245 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2246 rather than stack.
2247
2248 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Decrease stack usage in JFS.
2251
2252 We have only 92K of stack and using over 4K per frame is wasteful
2253
2254 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2255 stack. Note: this function is recursive.
2256 (grub_jfs_read_inode): Read only part we care about.
2257
2258 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2259
2260 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2261 handling
2262
2263 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2264
2265 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2266
2267 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2268
2269 * docs/grub.texi (Environment): Document cmdpath.
2270
2271 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2272
2273 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2274 Remove "unused" attribute from arguments, they are used.
2275
2276 2013-11-15 Colin Watson <cjwatson@debian.org>
2277
2278 * .gitignore: Only ignore grub-mk* at the top level.
2279
2280 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2281
2282 * util/grub-reboot.in (usage): Fix a typo.
2283
2284 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 Replace libgcc version of ctz with our own.
2287
2288 On upcoming arm64 port libgcc ctz* are not usable in standalone
2289 environment. Since we need ctz* for this case and implementation is
2290 in C we may as well use it on all concerned platforms.
2291
2292 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * configure.ac: Probe for linking format rather than guessing it based
2295 on target_os.
2296
2297 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2300 "1" prior to handoff.
2301
2302 Reported by: M A Young.
2303
2304 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2307 \0 to all files.
2308
2309 Reported by: M A Young.
2310
2311 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2314 compilation on NetBSD.
2315
2316 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * acinclude.m4: Don't add -P on initial nm test.
2319
2320 Note: even though this patch postdates Andrey's it bears 14 Nov as
2321 date due to timezone difference.
2322
2323 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2324
2325 * grub-core/Makefile.core.def (signature_test): Add missing
2326 tests/signatures.h.
2327
2328 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2329
2330 * util/grub-install_header: Set localedir here, since this file is
2331 where it's used.
2332 * util/grub-install.in: Remove setting of localedir.
2333 * util/grub-mkrescue.in: Likewise.
2334
2335 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2338
2339 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * configure.ac: Move nm checks to the end.
2342 Call grub_PROG_NM_WORKS.
2343 * acinclude.m4: New check grub_PROG_NM_WORKS.
2344 Use $TARGET_CFLAGS -c when compiling test binary.
2345
2346 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2347
2348 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2349 unused variables.
2350
2351 2013-11-14 Matthew Garrett <mjg@redhat.com>
2352
2353 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2354 cmdpath to firmware directory.
2355
2356 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2359 at the start of second iteration.
2360
2361 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2364
2365 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * Makefile.am (default_payload.elf): New target for easier coreboot
2368 build.
2369
2370 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2373 clang (not necessarry with -no-integrated-as).
2374 * include/grub/symbol.h [__arm__]: Likewise.
2375
2376 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * configure.ac: Use -no-integrated-as on arm with clang.
2379 * INSTALL: Mention ARM compilation with clang.
2380
2381 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2384 -mthumb-interwork.
2385
2386 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2387
2388 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2389 code for indirect block handling.
2390
2391 Saves 185 bytes on compressed image.
2392
2393 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2394
2395 Fix make clean.
2396
2397 * Makefile.am: Remove build-grub-* in make clean.
2398
2399 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2400
2401 New files to gitignore.
2402
2403 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2404 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2405
2406 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2407
2408 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2409
2410 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2411
2412 * .gitignore: fix rules for .dep* and add *.a post git migration
2413
2414 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2415
2416 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2417 to match INSTALL.
2418
2419 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2420
2421 * grub-core/kern/misc.c: Don't redirect divisions in the
2422 GRUB_UTIL case.
2423 * include/grub/misc.h: Likewise.
2424
2425 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2426
2427 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2428 systems that require checking the return value of write.
2429
2430 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2431
2432 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2433 efibootmgr quiet when --debug is not used, rather than when it is.
2434
2435 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2436
2437 * gentpl.py (define_macro_for_platform_dependencies): Remove
2438 first (and thus unused) of two definitions for this function.
2439 (platform_dependencies): Likewise.
2440
2441 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2442
2443 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2444 functions, we only need to check this for the target, not the host.
2445 * configure.ac (grub_apple_cc): Likewise.
2446
2447 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2450 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2451 asm to stay in arm even if surrounding is thumb.
2452
2453 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2456 helper functions are needed for thumb.
2457
2458 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2461 level / 3 division explicitly unsigned. Saves few bytes.
2462
2463 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2466
2467 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2470 division.
2471
2472 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2475 grub_uboot_boot_data to asm part.
2476
2477 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2480 literal load.
2481 (grub_uboot_syscall): Save/restore r9 and align stack.
2482
2483 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2486
2487 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2490 occurencies with END.
2491
2492 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2493
2494 * util/grub-editenv.c (help_filter, argp): Document how to delete
2495 the whole environment block.
2496 Reported by Dan Jacobson. Fixes Debian bug #726265.
2497
2498 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2499
2500 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2501 sectioning.
2502
2503 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2504
2505 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2506 increment/decrement.
2507
2508 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2511 compiling with clang.
2512
2513 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2516 ".".
2517
2518 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 Redirect all divisions to grub_divmod64.
2521
2522 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2525
2526 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 Add missing includes of loader.h.
2529
2530 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * configure.ac: Allow disabling themes.
2533
2534 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2535
2536 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2537
2538 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2541 until it becomes operational.
2542
2543 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/Makefile.core.def (legacy_password_test): Disable
2546 on platforms where no legacycfg is compiled.
2547 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2548 load legacy_password_test.
2549
2550 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2553
2554 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2557
2558 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2561 strict-aliasing warning.
2562 (fsync): Silence cast warning.
2563
2564 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * grub-core/commands/verify.c: Remove variable length arrays.
2567 Load gcry_dsa/gcry_rsa automatically.
2568
2569 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/tests/signature_test.c: New test.
2572
2573 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2576 API.
2577
2578 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2581 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2582
2583 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2586
2587 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * grub-core/fs/proc.c: Allow \0 in proc files.
2590
2591 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2594
2595 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2598
2599 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * grub-core/fs/ext2.c: Remove variable length arrays.
2602
2603 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2606 length arrays.
2607
2608 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2611 * grub-core/disk/cryptodisk.c: Likewise.
2612 * grub-core/disk/geli.c: Likewise.
2613 * grub-core/disk/luks.c: Likewise.
2614
2615 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * grub-core/tests/legacy_password_test.c: New test.
2618 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2619
2620 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2621
2622 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2623
2624 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/tests/pbkdf2_test.c: New test.
2627
2628 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2631
2632 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * grub-core/io/lzopio.c: Remove variable length arrays.
2635
2636 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * include/grub/crypto.h: Add maximums on hash size and cipher block
2639 size.
2640
2641 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2644
2645 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/tests/xnu_uuid_test.c: New test.
2648
2649 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2652 covers it).
2653
2654 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/commands/hashsum.c: Remove variable length arrays.
2657
2658 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2661 condition.
2662 * tests/grub_func_test.in: Increase memory allocation.
2663
2664 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2667 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2668 sys/mount.h.
2669
2670 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2673 (grub_util_get_fd_size_os): ...this.
2674 (grub_hostdisk_flush_initial_buffer): New empty function.
2675
2676 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2679 without --defined-only.
2680
2681 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2684 rip-relative addressing in prologue.
2685
2686 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2689 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2690
2691 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2694 Add missing semicolon.
2695
2696 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2699
2700 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * configure.ac: Check for lzma.h for enabling liblzma and allow
2703 manual disabling.
2704
2705 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 Add missing includes of loader.h.
2708
2709 2013-11-11 Fam Zheng <famcool@gmail.com>
2710
2711 * util/grub.d/30_os-prober.in: Add minix entry.
2712
2713 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2716 right buffer for temporary load.
2717
2718 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2721
2722 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2725 payload.
2726
2727 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2730 not Types.h.
2731 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2732 environment.
2733 (LzmaDec_InitDicAndState): Make static.
2734
2735 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2738
2739 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2742
2743 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2744
2745 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * docs/grub-dev.texi: Replace bzr references with git ones.
2748
2749 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2750
2751 * docs/grub.texi (Simple configuration): Remove reference to
2752 grub-reboot from saved default entry description - grub-default
2753 does not use it anymore.
2754
2755 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2758 compiled with.
2759
2760 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2761
2762 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2763
2764 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 Fix grub_machine_fini bitrot.
2767
2768 Reported by: Glenn Washburn.
2769
2770 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2773
2774 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2777 -DELF.
2778 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2779 instead of ELF*.
2780
2781 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2784 Add -march=core2 when testing compile of efiemu64.
2785
2786 Thanks Andrey Borzenkov for spotting this.
2787
2788 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
2791 XEN PV environment and load kernels.
2792
2793 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
2796 * grub-core/loader/multiboot_mbi2.c: Likewise.
2797
2798 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2801 handling.
2802
2803 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2806
2807 Tested by: Denis 'GNUtoo' Carikli.
2808
2809 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2812
2813 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2816 Use to get rounded angle rather than truncated.
2817
2818 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/term/serial.c: Add option for enabling/disabling
2821 RTS/CTS flow control.
2822
2823 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2826 divisions.
2827
2828 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2831 Use grub_fatal rather than divide by zero.
2832 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2833
2834 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2837 truncate.
2838 (grub_fixed_fsf_divide): Likewise.
2839
2840 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2843 division by-zero and senseless negative divisions.
2844
2845 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2848 division by-zero and senseless negative divisions.
2849 (circprog_set_property): Don't accept negative num_ticks.
2850
2851 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2854 division by-zero and senseless negative divisions.
2855
2856 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * configure.ac: Use elf_*_fbsd on kfreebsd.
2859
2860 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/tests/div_test.c: New test.
2863
2864 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2865
2866 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2867 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2868 * grub-core/gfxmenu/view.c: Likewise.
2869 * grub-core/video/fb/video_fb.c: Introduce new functions:
2870 grub_video_set_area_status, grub_video_get_area_status,
2871 grub_video_set_region, grub_video_get_region.
2872 * grub-core/video/bochs.c: Likewise.
2873 * grub-core/video/capture.c: Likewise.
2874 * grub-core/video/video.c: Likewise.
2875 * grub-core/video/cirrus.c: Likewise.
2876 * grub-core/video/efi_gop.c: Likewise.
2877 * grub-core/video/efi_uga.c: Likewise.
2878 * grub-core/video/emu/sdl.c: Likewise.
2879 * grub-core/video/radeon_fuloong2e.c: Likewise.
2880 * grub-core/video/sis315pro.c: Likewise.
2881 * grub-core/video/sm712.c: Likewise.
2882 * grub-core/video/i386/pc/vbe.c: Likewise.
2883 * grub-core/video/i386/pc/vga.c: Likewise.
2884 * grub-core/video/ieee1275.c: Likewise.
2885 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2886 * include/grub/video.h: Likewise.
2887 * include/grub/video_fb.h: Likewise.
2888 * include/grub/fbfill.h: Updated render_target structure.
2889 grub_video_rect_t viewport, region, area
2890 int area_offset_x, area_offset_y, area_enabled
2891 * include/grub/gui.h: New helper function
2892 grub_video_bounds_inside_region.
2893 * docs/grub-dev.texi: Added information about new functions.
2894
2895 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2898 for alignment.
2899
2900 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2903 missing attribute.
2904 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2905
2906 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2909 simple division on arm and ia64.
2910
2911 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2914 link with libgcc.
2915
2916 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2919
2920 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2923 prefix symbol, not @.
2924
2925 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * INSTALL: Add note about older gcc and clang.
2928
2929 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2932
2933 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2936 NULL pointer dereference.
2937
2938 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2941 clang.
2942
2943 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2946 warnings.
2947
2948 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2951 function.
2952 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2953 * grub-core/disk/geli.c (ascii2hex): Likewise.
2954
2955 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * configure.ac: Run linker tests without -Werror.
2958 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2959 Change all occurences of -static-libgcc resp -lgcc to
2960 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2961
2962 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2965
2966 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 Allow compiling with clang (not really supported though).
2969
2970 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2971 unconditionally.
2972 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2973 Add -mrtd -mregparm=3 on i386 when not using clang.
2974 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2975
2976 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2979 bindings.
2980 * grub-core/lib/reed_solomon.c: Likewise.
2981 * include/grub/i386/gdb.h: Likewise.
2982 * include/grub/i386/pc/int.h: Likewise.
2983 * include/grub/i386/pc/pxe.h: Likewise.
2984 * include/grub/ieee1275/ieee1275.h: Likewise.
2985
2986 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 Import libgcrypt 1.5.3.
2989
2990 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * configure.ac: Don't add -Wcast-align on x86.
2993
2994 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 * configure.ac: Add -freg-struct-return on all platforms that
2997 support it.
2998
2999 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * acinclude.m4: Use -Werror on parameter tests.
3002 * configure.ac: Likewise.
3003
3004 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3007
3008 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * configure.ac: Check that -malign-loops works rather than assuming that
3011 either -falign-loops or -malign-loops work.
3012
3013 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3016
3017 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * configure.ac: Prevent cflags leaking to subsequent tests by always
3020 resetting cflags to target_cflags in target tests.
3021
3022 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3025 function.
3026
3027 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3030
3031 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3034
3035 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/normal/cmdline.c (grub_cmdline_get):
3038 Remove nested functions.
3039
3040 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3041
3042 * tests/test_sha512sum.in: Make it work on emu.
3043
3044 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3047 functions.
3048 (grub_bidi_line_logical_to_visual): Likewise.
3049
3050 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 Remove vestiges of -Wunsafe-loop-optimisations.
3053
3054 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3055 -Wno-unsafe-loop-optimisations.
3056 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3057 pragma.
3058 * grub-core/io/gzio.c: Likewise.
3059 * grub-core/script/parser.y: Likewise.
3060 * grub-core/script/yylex.l: Likewise.
3061 * util/grub-mkfont.c: Likewise.
3062
3063 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * util/grub-mkfont.c (process_cursive): Remove nested function.
3066
3067 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3070 (grub_boot_time): Likewise.
3071
3072 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * include/grub/symbol.h (FUNCTION): Use @function rather than
3075 "function".
3076 (VARIABLE): Likewise.
3077
3078 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3081
3082 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3085 (parse_dhcp_vendor): Likewise.
3086
3087 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3090
3091 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3094 Define after defining type and not before.
3095
3096 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3099 type.
3100 (grub_gcm_decrypt): Likewise.
3101 (algo_decrypt): Likewise.
3102 (grub_zfs_decrypt_real): Transform error type.
3103
3104 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3107
3108 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3111 (grub_usbms_cbi_reset): Likewise.
3112 (grub_usbms_bo_reset): Likewise.
3113 (grub_usbms_reset): Likewise.
3114 (grub_usbms_attach): Likewise.
3115 (grub_usbms_transfer_cbi): Likewise.
3116
3117 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3120 "checksum = checksum;".
3121
3122 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3125 entry_type.
3126
3127 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3130 BIOS disk check.
3131
3132 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3135 type.
3136 (grub_ehci_fini_hw): Likewise.
3137 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3138
3139 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3142 return grub_usb_err_t for cosistency. All users updated.
3143
3144 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3147 assigning to itself.
3148
3149 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3150 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3151
3152 Issue separate DNS queries for ipv4 and ipv6
3153
3154 Adding multiple questions on a single DNS query is not supportted by
3155 most DNS servers. This patch issues two separate DNS queries
3156 sequentially for ipv4 and then for ipv6.
3157
3158 Fixes: https://savannah.gnu.org/bugs/?39710
3159
3160 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3161 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3162 * (grub_net_dns_lookup): Now using separated dns packages.
3163 * (grub_cmd_nslookup): Add error condition.
3164 * (grub_cmd_list_dns): Print DNS option.
3165 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3166 --prefer-ipv4, and --prefer-ipv6.
3167 * include/grub/net.h (grub_dns_option_t): New enum.
3168 * (grub_net_network_level_address): option added.
3169
3170 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3171
3172 * grub-core/video/fb/video_fb.c: Merge two blit functions
3173 into one.
3174
3175 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * grub-core/term/terminfo.c: Add sequences for home and end.
3178
3179 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3182 graphics console.
3183
3184 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3187 add mode 0x12.
3188
3189 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3192 e-mail by Per Öberg.
3193
3194 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3197 name.
3198
3199 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3200
3201 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3202 emu platforms.
3203 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3204
3205 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * docs/grub.texi: Document usage of menuentry id.
3208
3209 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3212
3213 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3214
3215 * grub-core/commands/i386/nthibr.c: New command.
3216
3217 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3220
3221 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3224 coordinate.
3225
3226 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 Support GRUB_DISABLE_SUBMENU config.
3229
3230 Inspired by patch from Prarit Bhargava.
3231
3232 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * docs/grub.texi: Mention RSA support.
3235
3236 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3237
3238 * grub-core/commands/verify.c: Add RSA support.
3239
3240 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3243 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3244 device is known to be ATAPI.
3245
3246 2013-11-03 Mike Frysinger <vapier>
3247
3248 * configure.ac: Don't add target-prefix.
3249
3250 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3253 variables.
3254
3255 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3258 if language is English.
3259
3260 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3263
3264 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * configure.ac: Don't add -m32/-m64 on emu.
3267
3268 2013-11-02 neil
3269
3270 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3271 broken linux headers.
3272
3273 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3276
3277 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3280 Reed-Solomon recovery if more than half of redundancy info is 0.
3281
3282 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * util/grub-mount.c: Handle symlinks to directories.
3285
3286 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3289 find_file recursively for symlink.
3290
3291 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * tests/util/grub-shell.in: Copy themes.
3294
3295 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3298
3299 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * configure.ac: Use 0x8000 for address instead of 8000.
3302
3303 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3306 signature.
3307
3308 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3311 variable.
3312
3313 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3316
3317 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3320 file_progress_read_hook.
3321 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3322
3323 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3326 and double.
3327
3328 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3331
3332 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 Rewrite blocklist functions in order to get progress when
3335 reading large extents and decrease amount of blocklist hook calls.
3336
3337 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3340 of SI suffixes.
3341
3342 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 Support --base-clock for serial command to handle weird cards with
3345 non-standard base clock.
3346
3347 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3350 strncpy.
3351 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3352 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3353 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3354 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3355 + strcpy rather than strncpy.
3356
3357 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3360 (check_pool_label): Likewise. Fixes overflow.
3361 (nvlist_find_value): Fix comparison.
3362
3363 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3366 more appropriate functions.
3367
3368 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3369
3370 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3371 realloc.
3372
3373 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3376
3377 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3380 on core size.
3381
3382 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3385
3386 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3389 (initialize_tables): reset tl and td to NULL after freeing.
3390
3391 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3394
3395 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3398 of supported tags.
3399
3400 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3403
3404 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3407 quirks.
3408
3409 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3412 a page in protected space.
3413
3414 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3417 allocate space for zero-sized modules.
3418
3419 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3422
3423 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3424
3425 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3426
3427 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3430 safeguards. Fixes a crash with i386/pc/console.c.
3431
3432 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3435 and grub_hostfs_init.
3436
3437 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3440 windows method on other platforms without good stat as well.
3441
3442 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3443
3444 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3445
3446 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 Make / in btrfs refer to real root, not the default volume.
3449 Modify mkrelpath to work even if device is mounted with subvolid option.
3450
3451 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3452
3453 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3454 extra_dist.
3455 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3456 extra_dist.
3457
3458 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3461 fails.
3462
3463 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3464
3465 * docs/autoiso.cfg: New file.
3466
3467 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3470 COND_GRUB_PE2ELF conditions.
3471
3472 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3475 "vnd", "rd" and "fd" disks.
3476
3477 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Move grub_disk_write out of kernel into disk.mod.
3480
3481 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3484 handling.
3485
3486 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/kern/misc.c (grub_abort): Make static
3489
3490 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3493 transform invalid unicode codepoints.
3494
3495 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3498 \0 checking.
3499
3500 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3503
3504 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 Consolidate cpuid code.
3507
3508 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 Move cpuid code to cpuid.h and TSC code to tsc.c.
3511
3512 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3513
3514 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3515
3516 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3517
3518 * util/grub-mkconfig.in: Replace $0 with $self.
3519 * util/grub-reboot.in: Likewise.
3520 * util/grub-set-default.in: Likewise.
3521
3522 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3523
3524 * docs/osdetect.cfg: New file.
3525
3526 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3527
3528 * tests/util/grub-shell.in: Add new --debug option.
3529
3530 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3531
3532 * tests/test_unset.in: New test.
3533
3534 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3535
3536 * tests/test_sha512sum.in: New test.
3537
3538 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3541 * include/grub/misc.h: Remove strncat.
3542 * grub-core/lib/posix_wrap/string.h: Likewise.
3543
3544 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3547 Try to handle more than 0xFFFF packets.
3548 Reported by: Bernhard Übelacker <bernhardu>.
3549 He also spotted few overflows in first version of this patch.
3550
3551 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * tests/date_unit_test.c: New test.
3554
3555 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3558 of first three years after start of validity of unixtime.
3559
3560 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3563 division as the one making more sense.
3564 (update_screen): Likewise.
3565 (complete): Likewise.
3566
3567 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3570
3571 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 Make char and string width grub_size_t rather than grub_ssize_t.
3574
3575 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3578 unsigned.
3579 (grub_history_replace): Likewise.
3580
3581 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3584 appropriate.
3585
3586 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3589 appropriate.
3590
3591 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3594 Use unsigned divisions rather than signed variants.
3595
3596 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3599 unsigned arithmetics.
3600 Add missing break.
3601
3602 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3605
3606 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3609 rather than signed one.
3610 (recovery): Likewise.
3611
3612 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3615
3616 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3619 than signed.
3620
3621 2013-10-25 Jon McCune <jonmccune@google.com>
3622
3623 * docs/grub.texi: Cleanup security documentation around signatures.
3624
3625 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3628
3629 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3632 than int.
3633
3634 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3637 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3638 functions when compiling for kernel.
3639
3640 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3643 unsigned long long when using %llu.
3644
3645 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3648 terminal after updating progress.
3649
3650 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3653 argument. We don't disable Gate A20 in this code.
3654
3655 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3658 Conceptually based on change in branch "vbe-on-coreboot".
3659
3660 2013-10-24 Robert Millan <rmh@gnu.org>
3661
3662 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3663 numeric constants with their symbolic equivalent.
3664 Taken from branch "vbe-on-coreboot".
3665
3666 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3669
3670 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3673 divmod64 for offset division.
3674
3675 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3676
3677 Rename .bzrignore to .gitignore. Add "*.o" rule.
3678
3679 * .bzrignore: Renamed to...
3680 * .gitignore: ...this.
3681
3682 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3683
3684 Add new progress module that displays the load progress of files.
3685
3686 * grub-core/lib/progress.c: New file.
3687 * grub-core/Makefile.core.def (progress): New module.
3688 * grub-core/kern/file.c (grub_file_open): File name added.
3689 * (grub_file_read): Progress hook added.
3690 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3691 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3692 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3693 * include/grub/file.h (struct grub_file): Add progress module members.
3694 * include/grub/term.h (struct grub_term_output): Likewise.
3695 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3696 Terminal velocity added.
3697 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3698 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3699 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3700 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3701 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3702 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3703 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3704 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3705 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3706 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3707 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3708 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3709
3710 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 Verify signatures of signatures unless --skip-sig is specified.
3713
3714 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3717 \0 checking.
3718
3719 Saves 70 bytes on compressed image.
3720
3721 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3724 check.
3725
3726 Saves 10 bytes on compressed image.
3727
3728 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/kern/misc.c (grub_isprint): Move to ...
3731 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3732
3733 Saves 20 bytes on compressed image due to remving exporting.
3734
3735 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3738
3739 Saves 5 bytes on compressed image.
3740
3741 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3744 function get_utf8.
3745
3746 Saves 379 bytes on compressed image.
3747
3748 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3751
3752 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3755
3756 Saves 40 bytes on compressed image.
3757
3758 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3761 mask rather than 64-bit type.
3762
3763 Saves 20 bytes on compressed image.
3764
3765 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3768 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3769
3770 Saves 273 bytes on compressed image.
3771
3772 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3775 variable length arrays.
3776
3777 Saves 50 bytes on compressed image.
3778
3779 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3782
3783 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * grub-core/fs/ufs.c: Remove variable length arrays.
3786
3787 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
3790
3791 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/fs/zfs.c: Remove variable length arrays.
3794 Reduces zfs.mod by 160 bytes (208 compressed).
3795
3796 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
3799
3800 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/net/arp.c: Remove variable length arrays.
3803 * grub-core/net/bootp.c: Likewise.
3804 * grub-core/net/dns.c: Likewise.
3805 * grub-core/net/icmp6.c: Likewise.
3806 * grub-core/net/net.c: Likewise.
3807
3808 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/fs/ntfs.c: Remove variable length arrays.
3811 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3812 compressed).
3813
3814 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/fs/hfs.c: Remove variable length arrays.
3817 Reduces hfs.mod by 8 bytes (52 compressed).
3818
3819 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * grub-core/fs/udf.c: Remove variable length arrays.
3822 Increases udf.mod by 128 bytes (but decreases by 13 when
3823 compressed).
3824
3825 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * grub-core/fs/iso9660.c: Remove variable length arrays.
3828 Increases iso9660.mod by 200 bytes (but decreases by 79 when
3829 compressed).
3830
3831 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/fs/nilfs2.c: Remove variable length arrays.
3834 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
3835 compressed).
3836
3837 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/fs/xfs.c: Remove variable length arrays.
3840 Reduces xfs.mod by 40 bytes (43 compressed).
3841
3842 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * grub-core/fs/fshelp.c: Remove variable length arrays.
3845 Reduces fshelp.mod by 116 bytes (23 compressed).
3846
3847 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * grub-core/normal/completion.c: Remove variable length arrays.
3850 * grub-core/normal/menu_entry.c: Likewise.
3851
3852 Reduces normal.mod by 496 bytes.
3853
3854 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3857 by 356 bytes (158 compressed).
3858
3859 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3862 by 364 bytes (169 compressed).
3863
3864 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3867 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3868 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3869
3870 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3873 bitmasks to small structures of size chosen to fit in registers.
3874
3875 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 * conf/Makefile.common: Use -freg-struct-return on i386. This
3878 decreases code size and improves performance.
3879
3880 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3883
3884 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3887 "(null)" string.
3888 Simplify expressions to save around 256 bytes in kernel.img.
3889 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3890
3891 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3894 Use GRUB_UTIL_FD_O_* rather than O_*.
3895
3896 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 Add haiku-specific functions.
3899
3900 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3903
3904 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 Move stat () and device mode checking into OS-dependent files as
3907 long as performance doesn't suffer.
3908
3909 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 Split make_system_path_relative_to_its_root into separate file
3912 relpath.c from getroot.c as it's common between unix and haiku
3913 but otherwise haiku doesn't use any functions from unix getroot.c.
3914
3915 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3918 New function.
3919 (grub_util_is_special_file): Likewise.
3920
3921 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3924 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3925
3926 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3929 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3930
3931 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3934 (load_image): Likewise.
3935
3936 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * util/grub-render-label.c: Move backend part to ...
3939 * util/render-label.c: ... here.
3940
3941 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3944 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3945
3946 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3949
3950 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3953 CD-ROM in case when it's declared as having subpartitions.
3954
3955 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 Don't add -lm on haiku.
3958
3959 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3960 and empty on haiku.
3961 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3962 -lm.
3963
3964 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3965
3966 * configure.ac: Use -melf_*_haiku as target on haiku.
3967
3968 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * Makefile.util.def: Add util/setup.c to extra_dist.
3971
3972 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3975 unknown types through.
3976
3977 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3980 (grub_util_check_char_device): Likewise.
3981 * include/grub/emu/getroot.h: Likewise.
3982
3983 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3986 memset rather than inline static function.
3987
3988 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3991 not doing embedded decompressor.
3992
3993 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3996 shadowing.
3997 * grub-core/kern/disk.c: Likewise.
3998 * grub-core/kern/misc.c: Likewise.
3999 * include/grub/parser.h: Likewise.
4000 * include/grub/script_sh.h: Likewise.
4001 * include/grub/zfs/zfs.h: Likewise.
4002
4003 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4006
4007 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4010 defined before trying to use it.
4011
4012 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4015 warning.
4016
4017 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4020 Use __unused__ rather than __used__ on gcc < 3.2.
4021
4022 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4025 gcc < 4.0.
4026 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4027
4028 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4031
4032 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4035 * include/grub/emu/misc.h: Likewise.
4036
4037 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4040 cur_color.
4041
4042 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4043
4044 * grub-core/tests/checksums.h: Regenerated due to progress bar
4045 get_minimal_size changes.
4046
4047 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4048
4049 Added `tr' command support.
4050
4051 * grub-core/commands/tr.c: New file.
4052 * grub-core/Makefile.core.def: Build rules for new module.
4053
4054 * tests/grub_cmd_tr.in: New test.
4055 * Makefile.util.def: Build rules for new test.
4056
4057 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4058
4059 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4060
4061 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4062
4063 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4064 * docs/gurb.texi: Likewise.
4065
4066 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4067
4068 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4069 Pixmap highlighted section with east and west slices was displayed
4070 incorrectly due to negative width of the central slice.
4071
4072 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4073
4074 * docs/grub.texi: Graphical options information update.
4075 Removed outdated. Updated current. Inserted missed.
4076
4077 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * docs/grub.texi: Mention few new platform-specific commands.
4080
4081 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4084 currently used so this doesn't really have any effect.
4085 Reported by: Douglas Ray <dougray>
4086
4087 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4090 compilation but prevents gcc from displaying messages in non-Latin
4091 alphabets.
4092 * conf/Makefile.common: Likewise.
4093
4094 2013-10-16 Hiroyuki YAMAMORI
4095
4096 Handle Japanese special keys.
4097 Reported by: Hiroyuki YAMAMORI.
4098 Codes supplied by: Hiroyuki YAMAMORI.
4099
4100 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4101
4102 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4103
4104 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4105
4106 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4107 * docs/grub.texi: Likewise.
4108
4109 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4112 value in case of incomplete read.
4113 (grub_util_fd_write): Likewise.
4114
4115 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4118
4119 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * util/grub-editenv.c (create_envblk_file): More from here ...
4122 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4123
4124 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4127 canonicalize file name before doing the rest.
4128
4129 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4132 mingw32.
4133
4134 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 Define grub_util_is_directory/regular/special_file and
4137 use OS-dependent versions rather than to rely on stat().
4138
4139 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 * util/grub-mkimage.c: Move backend part to ...
4142 * util/mkimage.c: ... here.
4143
4144 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 Allow compilation with mingw64 albeit with warnings due to lack of
4147 %llx/%llu.
4148
4149 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4150 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4151 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4152 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4153 on mingw64.
4154 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4155
4156 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 Remove leftover references to some of the system headers.
4159
4160 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4163 read.
4164
4165 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4168 of strerror.
4169
4170 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 Split out blocklist retrieving from setup.c to
4173 grub-core/osdep/blocklist.c and add windows implementation since
4174 generic version doesn't work on NTFS on Windows due to aggressive
4175 unflushable cache.
4176
4177 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4180 files.
4181
4182 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4185 Cut tailing newline. Remove arbitrary limitation. Always use
4186 grub_util_tchar_to_utf8.
4187
4188 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4191 * tests/printf_unit_test.c (printf_test): Add %% tests.
4192 Reported by: Paulo Flabiano Smorigo.
4193
4194 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4197 implement fsync.
4198
4199 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4202 use nvlist_lookup_string and don't use nvlist_print.
4203
4204 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4207 closedir to handle filename charset translation.
4208
4209 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * include/grub/emu/hostdisk.h: Move file operations to
4212 * include/grub/emu/hostfile.h: ... here.
4213
4214 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4217 unicode path.
4218
4219 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4222
4223 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4226 and remove export.h.
4227
4228 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/kern/emu/error.c: Removed.
4231 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4232 explicitly as it's already in libgnu.a.
4233
4234 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4237 config-util.h include.
4238
4239 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 Split emunet into platform-dependent and GRUB-binding parts. Keep
4242 platform-dependent part in kernel for easy access to OS functions.
4243
4244 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4247 open/read/write.
4248
4249 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/osdep/windows/emuconsole.c: New file.
4252
4253 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4254
4255 * conf/Makefile.extra-dist: Add osdep/*/init.c
4256
4257 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4260
4261 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * util/grub-probe.c (probe): Separate different drives in hint-str
4264 by spaces and not newlines.
4265 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4266
4267 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4268
4269 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4270 Handle CD-ROMs.
4271
4272 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 Pass-through unknown E820 types. It required reorganisation of mmap
4275 module.
4276
4277 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4278
4279 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4280
4281 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4284 fseeko.
4285
4286 2013-10-14 qwertial <qwertial>
4287
4288 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4289
4290 2013-10-14 Jon McCune <jonmccune@google.com>
4291
4292 * docs/grub.texi: Document new signatures possibility.
4293
4294 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4297
4298 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4301 missing prototype.
4302 (grub_util_tchar_to_utf8): Likewise.
4303
4304 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4307 * grub-core/kern/emu/main.c: Add missing include.
4308 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4309 Don't call grub_util_init_nls.
4310 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4311 Likewise.
4312
4313 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4316 stat.
4317
4318 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4321
4322 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4325
4326 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 Add a wrapper for fopen. On unix-like systems just pass-through. On
4329 windows use unicode version.
4330
4331 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 Move set_program_name and init_nls to host_init. On windows
4334 fix in this fuction console and argument charset as well.
4335
4336 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4337
4338 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4339 GRUB_ENABLE_CRYPTODISK.
4340
4341 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4342 GRUB_ENABLE_CRYPTODISK.
4343 * util/grub-mkconfig_lib.in: Likewise.
4344
4345 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4346
4347 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4348
4349 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4350
4351 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4352 error when enabling debug.
4353
4354 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4355
4356 * configure.ac: Use -melf_*_obsd on openbsd.
4357
4358 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4361
4362 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * include/grub/misc.h: Use gnu_printf rather than printf as format
4365 template since our functions are independent of libc.
4366
4367 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * util/grub-setup.c (setup): Move copying of partition table as
4370 futher up as possible to avoid possible overwrite by floppy routines.
4371
4372 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4375
4376 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4377
4378 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4379 * docs/grub.texi: Likewise.
4380
4381 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4384 it's mostly unused. Move vestiges to the callers.
4385
4386 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4389 version of salt and hash. Use grub_snprintf rather than snprintf.
4390
4391 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * docs/grub.texi: Fix problem with braces.
4394
4395 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * conf/Makefile.extra-dist: Fix extra-dist list.
4398 * grub-core/Makefile.core.def: Likewise.
4399
4400 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * docs/grub.texi: Document disk names used on Windows and AROS.
4403
4404 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4407 with AROS devs.
4408 * grub-core/osdep/aros/hostdisk.c: Likewise.
4409
4410 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 Avoid including hostfile.h when not necessarry as it pulls
4413 in OS-specific headers which may redefine generic names
4414 like "far".
4415
4416 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4417
4418 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4419 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4420 scrollbar_bottom_pad
4421 * docs/grub.texi: Likewise.
4422
4423 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4424
4425 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4426
4427 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4430
4431 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4434 Removed.
4435 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4436 Made static.
4437
4438 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4439
4440 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4441 leftover.
4442
4443 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 Move OS-specific driver configuration to grub_util_fd_open. This
4446 moves OS-dependent parts from kern/emu/hostdisk.c to
4447 grub-core/osdep/*/hostdisk.c.
4448
4449 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 * util/grub-mkimage.c (generate_image): Use size_t instead of
4452 grub_size_t.
4453 * util/grub-mkimagexx.c (locate_sections): Likewise.
4454 (load_image): Likewise.
4455
4456 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4459 size_t.
4460 (grub_util_write_image): Likewise.
4461
4462 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4465 get random when no RNG is available.
4466 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4467
4468 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * include/grub/util/lvm.h: Removed.
4471
4472 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4475 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4476
4477 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4480
4481 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4484
4485 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/net/drivers/emu/emunet.c: Move to ..
4488 * grub-core/osdep/linux/emunet.c: ..here.
4489
4490 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * util/ieee1275/ofpath.c: Move to ...
4493 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4494 * grub-core/osdep/basic/ofpath.c: ..here.
4495
4496 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 Move password-querying (util-version) routines to grub-core/osdep.
4499
4500 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 Move sleep routines to grub-core/osdep.
4503
4504 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 Move OS-dependent files to grub-core/osdep and document it.
4507
4508 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4509
4510 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4511 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4512
4513 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4514
4515 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4516
4517 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * util/misc.c: Remove leftover inclusion of malloc.h.
4520
4521 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * include/grub/setjmp.h: Remove leftover GRUBOF.
4524
4525 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * util/raid.c: Fold into ...
4528 * util/getroot_linux.c: ... here. Make all functions static.
4529
4530 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4533 macros to GRUB ones.
4534
4535 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4536
4537 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4538 occasional bug. If there are too many boot entries or too low
4539 scrollbar height then we need to use another formula to calculate
4540 the position and size of the scrollbar thumb.
4541
4542 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4545
4546 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4547
4548 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4549 * docs/grub.texi: Likewise.
4550
4551 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4552
4553 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4554 viewport.
4555
4556 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4557
4558 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4559 minimal width calculations.
4560
4561 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * docs/grub.texi: Update note on colors on emu console.
4564
4565 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4568 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4569 it's FS and not GRUB limitation.
4570
4571 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4572
4573 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4574
4575 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4578
4579 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4580
4581 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4582 kernels by version order.
4583
4584 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4587
4588 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 Add AROS hostdisk and getroot routines.
4591
4592 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 Make cryptodisk and diskfilter probe data retrievable programmatically
4595 and not just printable.
4596
4597 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 Split random retrieving code into separate files.
4600
4601 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4604 R_ARM_V4BX.
4605
4606 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4609 condition.
4610 * grub-core/tests/fake_input.c: Likewise.
4611 * grub-core/tests/cmdline_cat_test.c: Likewise.
4612
4613 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/video/capture.c: Do not do finalization when .fini
4616 is called as there is explicit capture_end.
4617
4618 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4621 changing windows to avoid crash.
4622
4623 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4626
4627 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * po/exclude.pot: Add several strings to exclude.
4630
4631 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4634
4635 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4638 ./util/grub-gen-asciih.c to exclude list.
4639
4640 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4643 and don't mark error strings for translation.
4644
4645 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4648 properly in case of missing block size.
4649
4650 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 * grub-core/lib/arm/setjmp.S: Add missing license section.
4653
4654 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * po/swiss.sed: Add replacement for key names and for term computer.
4657
4658 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4659
4660 * grub-core/gfxmenu/theme_loader.c: New global options for the
4661 theme background image handling. desktop-image-scale-method,
4662 desktop-image-h-align, desktop-image-v-align.
4663 * grub-core/gfxmenu/view.c: Likewise.
4664 * include/gfxmenu_view.h: Likewise.
4665 * include/bitmap_scale.h: Proportional scale functions introduced.
4666 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4667 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4668 cases of unexpected input variables for scale functions.
4669 * docs/grub.texi: Updated documentation for new options.
4670
4671 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4674
4675 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4676
4677 * grub-core/tests/checksums.h: Corrected due to changes in
4678 bilinear interpolation function.
4679
4680 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4681
4682 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4683 to eliminate artefacts in bilinear interpolation.
4684
4685 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/video/readers/tga.c: Support paletted tga.
4688
4689 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4692 incorrect cbcr setting when in color mode.
4693
4694 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/video/readers/png.c: Support paletted images and clean up
4697 greyscale support.
4698
4699 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4702 usage of wrong table which resulted in mishandling of 4-byte
4703 sequences.
4704
4705 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * grub-core/term/terminfo.c: Add Home and End key sequences.
4708
4709 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4712 Fix formula for computing total number of bytes.
4713
4714 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4717 image processing, fix big-endian and support grayscale.
4718
4719 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4722 Correctly will with maximum transparency when using index color.
4723
4724 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 * grub-core/video/readers/png.c: Support grayscale
4727
4728 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/video/readers/jpeg.c: Support grayscale.
4731
4732 2013-09-26 Jon McCune <jonmccune@google.com>
4733
4734 * grub-core/commands/loadenv.c: Support skipping signature check
4735 and variable names filtering.
4736
4737 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4740 * grub-core/kern/emu/hostfs.c: Likewise.
4741 * util/getroot_unix.c: Likewise.
4742
4743 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4746 Migrate all explicit defines to this new one.
4747
4748 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4751 grub_util_fd_strerror when using grub_util_fd_*.
4752 (grub_util_fd_open_device): Likewise.
4753 (grub_util_biosdisk_read): Likewise.
4754 (grub_util_biosdisk_write): Likewise.
4755 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4756 (grub_util_fd_strerror): Likewise.
4757 (grub_util_fd_sync): Likewise.
4758 (grub_util_fd_close): Likewise.
4759 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4760 (grub_util_fd_close): Likewise.
4761 (grub_util_fd_strerror): Likewise.
4762 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4763 function proto rather than macro.
4764 (grub_util_fd_sync): Likewise.
4765 (grub_util_fd_open): Likewise.
4766 (grub_util_fd_strerror): New proto.
4767
4768 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4771 platforms on which it doesn't work.
4772
4773 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4776 stat immediately to where it's used.
4777
4778 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * util/getroot.c (grub_util_check_block_device): Move to ...
4781 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4782 * util/getroot.c (grub_util_check_char_device): Move to ...
4783 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4784
4785 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
4788 disk closing logic.
4789
4790 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4791
4792 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
4793
4794 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4795
4796 * docs/grub.texi (File name syntax): Document ZFS filenames
4797 (/volume@snapshot/...).
4798
4799 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4802 Always return full path. Fixes a problem with mkrelpath.
4803
4804 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4805
4806 * util/grub-install.in: Add GPT PReP support.
4807 * util/grub-probe.c (probe): Support GPT partition type.
4808 (main): Support -t gpt_parttype.
4809
4810 2013-09-23 Aleš Nesrsta <starous@volny.cz>
4811
4812 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4813
4814 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4815
4816 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4817
4818 2013-09-23 Tim Hardeck <thardeck>
4819
4820 * util/grub.d/10_hurd.in: Filter out character for the class.
4821 * util/grub.d/10_kfreebsd.in: Likewise.
4822 * util/grub.d/10_linux.in: Likewise.
4823 * util/grub.d/20_linux_xen.in: Likewise.
4824
4825 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4826
4827 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4828 "changed".
4829
4830 2013-09-23 Josh Triplett <josh@joshtriplett.org>
4831
4832 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4833 boot partition.
4834
4835 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4838 doesn't use posix_wrap. Keep literal -fno-builtin however.
4839
4840 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4843
4844 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4845 2013-09-23 neil
4846
4847 * configure.ac: Do not enable -Wmissing-noreturn as its
4848 usefulness is limited and creates problems on some OS notably with
4849 code generated by bison.
4850
4851 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4852 2013-09-23 neil
4853
4854 * configure.ac: Do not explicitly enable -Waddress as it's not
4855 supported by all gcc and when it is, it's already enabled by -Wall.
4856
4857 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4860 desactivated use of EDID at all.
4861
4862 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4863 2013-09-23 neil
4864
4865 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4866 video if no text is available.
4867
4868 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4869 2013-09-23 neil
4870
4871 * configure.ac: Substitute TARGET_RANLIB.
4872
4873 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4874 2013-09-23 neil
4875
4876 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4877
4878 Based on patches from AROS.
4879
4880 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4881 2013-09-23 neil
4882
4883 * grub-core/Makefile.am: Override STRIP and RANLIB.
4884 * configure.ac: compute TARGET_RANLIB.
4885 * INSTALL: Document TARGET_RANLIB
4886
4887 Based on patches from AROS.
4888
4889 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4892 that floppies are unpartitioned.
4893
4894 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4897 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4898
4899 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4902 less nice but more portable.
4903 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4904
4905 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4908 for cheat_fd.
4909 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4910 functions.
4911 (grub_cryptodisk_cheat_insert): Likewise.
4912 (grub_cryptodisk_close): Likewise.
4913
4914 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4917 Use windows path for DEFAULT_DIRECTORY.
4918
4919 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4922 difference was likely just gcc version, not anything mingw-related.
4923
4924 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 Use Winapi on both cygwin and mingw32 to share more code between both.
4927
4928 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4929
4930 * util/grub-install.in: Add --grub-editenv option.
4931 * util/grub-install_header (grub_compress_file): Explicitly check for
4932 plain file to avoid cp error.
4933
4934 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4935
4936 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4937 names; fix LVM driver name (lvm, not lv).
4938 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4939 names.
4940
4941 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4944 files rather than one file with loads of #if's.
4945 * util/getroot.c: Likewise.
4946
4947 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4950
4951 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4954 GNU/Hurd to the list of checked PRNG.
4955
4956 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4959
4960 2013-09-21 Ales Nesrsta <starous@volny.cz>
4961
4962 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
4963
4964 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4967 * grub-core/disk/lvm.c: Add LVM UUIDs.
4968 * util/getroot.c: Use LVM UUIDs whenever possible.
4969
4970 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4971
4972 * docs/grub.texi (Networking commands): Add documentation for
4973 network related commands.
4974
4975 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4978 to determine if device is handled by devmapper.
4979 (convert_system_partition_to_system_disk): Likewise.
4980 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4981 already done in grub_util_open_dm.
4982
4983 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4984
4985 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4986 Clean up stack manipulation (sync_caches_armv*)
4987
4988 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 * util/lvm.c: Remove since unused. Remove remaining references.
4991
4992 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 Handle the case of partitioned LVM properly.
4995
4996 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4997 Stop on meeting LVM, mpath or DMRAID.
4998 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4999 (read_device_map): Likewise.
5000 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5001 device is full disk rather than erroring out on LVM and similar cases.
5002
5003 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5006
5007 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5008
5009 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5010 4K before the end.
5011 Reported by: Leif Lindholm
5012
5013 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5014 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5017 codes.
5018
5019 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5020
5021 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5022 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5023
5024 2013-09-18 Douglas Ray <dougray@cpan.org>
5025
5026 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5027 as secure.
5028
5029 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5030
5031 * docs/grub.texi: Fix broken link.
5032
5033 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5034
5035 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5036 to break endless loop.
5037
5038 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * util/grub-fstest.c: Fix several printf formats.
5041 * util/grub-mkimage.c: Likewise.
5042 * util/grub-mkimagexx.c: Likewise.
5043 * util/grub-script-check.c: Likewise.
5044
5045 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5048 error.
5049
5050 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5053
5054 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5057 removed in current versions cygwin_conv_*.
5058
5059 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * configure.ac: Disable efiemu runtime on cygwin.
5062
5063 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5066 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5067
5068 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5071 error message.
5072
5073 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5076 windows variant.
5077 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5078 data.
5079
5080 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5083 when on x86 and not cygwin.
5084 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5085 -Wl,-melf_x86_64.
5086
5087 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5088
5089 * configure.ac: Set CPP to build one when checkoing for freetype for
5090 build.
5091
5092 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5095 [!GRUB_BUILD]: Remove has_argument.
5096
5097 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5100 Replace with a dummy.
5101
5102 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * configure.ac: Don't change host_os from mingw to cygwin.
5105
5106 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 * configure.ac: Change target_os from windows to cygwin.
5109
5110 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5111
5112 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5113
5114 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5115 (build-grub-gen-asciih): Likewise.
5116 (build-grub-gen-widthspec): Likewise.
5117 * Makefile.util.def (grub-pe2elf): Remove.
5118 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5119 * configure.ac: Separate tests for build.
5120 Move ./build-grub-pe2elf to grub-core.
5121 Fix typo.
5122 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5123 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5124 defined.
5125 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5126 constants.
5127 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5128 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5129 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5130
5131 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5134 mingw32 as well based on grub_util_get_disk_size.
5135 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5136 grub_util_get_fd_size.
5137 (sync): Removed.
5138 (fsync): Moved to ...
5139 * grub-core/kern/emu/misc.c (fsync): ... here.
5140
5141 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * include/grub/mm.h (grub_extend_alloc): Remove.
5144 * grub-core/loader/i386/pc/plan9.c: Use own version of
5145 grub_extend_alloc with appropriate types.
5146
5147 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5150
5151 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5154
5155 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 Fix dependencies on cygwin.
5158
5159 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5160 dependencies when used and defined.
5161 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5162
5163 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5166 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5167
5168 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5171 implementation available to cause compile-time rather than runtime
5172 error.
5173
5174 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * util/grub-fstest.c: Don't check for symlinks on windows.
5177
5178 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * INSTALL: Mention unavailability of man pages when cross-compiling.
5181
5182 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5185 and gcry_log_bug.
5186 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5187
5188 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * INSTALL: Document cross-compilation.
5191 * acinclude.m4: Determine whether nm support -P and --defined-only.
5192 * configure.ac: Add TARGET_ to all variables pertaining to target
5193 that don't have it yet.
5194 * gentpl.py: Likewise.
5195 * grub-core/Makefile.am: Likewise.
5196 * grub-core/genmod.sh.in: Likewise.
5197 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5198 as well.
5199
5200 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5201
5202 * configure.ac: Remove -Wempty-body. It's not essential and needs
5203 recent gcc.
5204
5205 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5206
5207 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5208 * util/getroot.c: Likewise.
5209
5210 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * grub-core/disk/ahci.c: Add needed explicit cast.
5213 * grub-core/lib/backtrace.c: Likewise.
5214 * grub-core/net/ip.c: Likewise.
5215 * grub-core/net/tcp.c: Likewise.
5216 * grub-core/net/udp.c: Likewise.
5217
5218 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5221
5222 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * util/import_gcry.py: Add final newline in visibility.h.
5225
5226 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * conf/Makefile.common: Fix typo.
5229
5230 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5231
5232 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5233
5234 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 * Makefile.am (widthspec.h): Fix typo.
5237 * util/grub-gen-widthspec.c: Likewise.
5238
5239 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 Move ascii.h and widthspec.h generation to a separate build-time-only
5242 tool.
5243
5244 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5245
5246 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5247 Always fill bootdisk info and improve check for NetBSD disklabel.
5248
5249 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 * conf/Makefile.extra-dist: Add util/bin2h.c.
5252 Reported by: floppym.
5253
5254 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5257
5258 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * configure.ac: Disable unifont and starfield if no freetype was found.
5261
5262 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5265 on NetBSD and OpenBSD.
5266
5267 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5268
5269 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5270
5271 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5272
5273 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5274 reduced. Inheritant options are processed during the theme loading.
5275
5276 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5277
5278 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5279
5280 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5281
5282 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5283
5284 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5285
5286 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5287 using qemu.
5288
5289 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5290
5291 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5292 remove-potcdate.sed.
5293
5294 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5295
5296 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5297 unused attribute from pull argument.
5298
5299 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5300
5301 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5302 memory leak.
5303
5304 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5305
5306 * util/getroot.c (pull_lvm_by_command): add --separator option
5307 to vgs call to disable padding of output to 10 characters.
5308
5309 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5312 here ...
5313 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5314 here.
5315
5316 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5319 length.
5320
5321 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5324 full Canadian cross. Tested with build=x86_64, host=arm,
5325 target=ppc-ieee1275.
5326
5327 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 * configure.ac: Error if no $BUILD_CC could be found.
5330 Reported by: DevHC.
5331
5332 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5335 i386-multiboot.
5336
5337 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5338
5339 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5340 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5341
5342 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5343
5344 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5345 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5346 falling back to the partition device, otherwise a later call to this
5347 function may fail spuriously.
5348 Reported by Axel Beckert. Fixes Debian bug #708614.
5349
5350 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5351
5352 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5353
5354 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5355
5356 Prevent shadowing of stdlib's devname(3) on BSD.
5357
5358 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5359 and devlast to diskname and disklast, respectively.
5360
5361 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5362
5363 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5364
5365 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5366
5367 * docs/grub.texi: Introduce terminal window position options:
5368 terminal-left: terminal window's left position
5369 terminal-top: terminal window's top position
5370 terminal-width: terminal window's width
5371 terminal-height: terminal window's height
5372 terminal-border: terminal window's border width
5373 * grub-core/gfxmenu/theme-loader.c: Likewise.
5374 * include/grub/gfxmenu_view.h: Likewise.
5375 * po/exlude.pot: Likewise.
5376 * grub-core/gfxmenu/view.c: Likewise.
5377 Also updated minimal window size.
5378 Also terminal_sanity_check function has been introduced.
5379 * grub-core/tests/checksums.h: Update (terminal window height
5380 is adjusted now for low resolution screen)
5381
5382 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5385 position).
5386
5387 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 * po/exclude.pot: Add few recent exceptions.
5390
5391 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 * tests/grub_func_test.in: Add unicode.pf2.
5394
5395 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5398 standard rather than noral color, in line with other terminals.
5399
5400 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5403 analysis.
5404
5405 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5408
5409 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5412 inappropriate printf.
5413
5414 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5415
5416 * .bzrignore: Remove grub-core/lib/dtc-grub,
5417 grub-core/Makefile.libfdt.def
5418 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5419
5420 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * include/grub/video.h (grub_video_register): Keep double-linked as
5423 well as single-linked invariants.
5424 Reported by: qwertial.
5425
5426 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/commands/nativedisk.c (get_uuid): Handle
5429 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5430
5431 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5432
5433 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5434 maximum of NW, N, NE heights instead of N's height and maximum of
5435 NW, W, SW widths instead of W's width. (So the box will be always
5436 correctly drawn)
5437
5438 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5439
5440 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5441 Fix misuse of variable count.
5442
5443 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5444 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5445 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 New ports to arm-uboot and arm-efi.
5448 Mostly by Leif Lindholm with some additions from
5449 Francesco Lavra and cleanup by Vladimir Serbinenko.
5450
5451 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5454 and not before.
5455 Reported by: Leon Drugi.
5456
5457 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5460 Reported by: Paulo Flabiano Smorigo.
5461
5462 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5463
5464 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5465
5466 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5467
5468 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5469
5470 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5473
5474 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5477
5478 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5479
5480 * grub-core/net/bootp.c: Export net_* variables.
5481 * grub-core/net/net.c: Likewise.
5482
5483 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5486
5487 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5490
5491 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5494
5495 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5498
5499 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5500
5501 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5502 <= 0.
5503
5504 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5505
5506 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5507 functions.
5508
5509 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5510
5511 * grub-core/fs/zfs/zfs_lz4.c: New file.
5512 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5513
5514 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5515
5516 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5517
5518 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5519
5520 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5521 (check_pool_label): Likewise.
5522 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5523
5524 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5525
5526 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5527
5528 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5529
5530 * docs/grub.texi (Commands): Document postition parameters
5531 for menuentry command.
5532
5533 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5534
5535 * util/grub-mknetdir.in: Remove stray line from help output.
5536
5537 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5538
5539 Remove early sm712 init as there is no reason for it (the "watchdog"
5540 effect was due to wrong GPIO map).
5541
5542 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5543
5544 * grub-core/commands/pcidump.c: Remove static variables.
5545
5546 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5549
5550 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * configure.ac: Move delimiter after the infos.
5553
5554 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5557
5558 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5561 not filling whole 8x16 space.
5562
5563 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5566
5567 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 * configure.ac: Indicate which liblzma is used if any.
5570
5571 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5572 2013-06-21 Craig Sanders <savannah@taz.net.au>
5573
5574 * util/grub-reboot.in: Document submenu usage.
5575
5576 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5577
5578 * .bzrignore: Update with a number of new test-related files.
5579
5580 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5581
5582 * util/grub-script-check.c: Fail on scripts containing no
5583 commands, to guard against corrupted grub-mkconfig setups that
5584 produce no useful output.
5585 * tests/grub_script_no_commands.in: New test.
5586 * Makefile.util.def (grub_script_no_commands): Add.
5587 Reported by Hans Putter. Fixes Debian bug #713886.
5588
5589 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5590
5591 * grub-core/disk/diskfilter.c: Forgot to remove comment
5592 from previous commit.
5593
5594 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5595
5596 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5597 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5598
5599 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5600
5601 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5602
5603 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5604
5605 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5606 rescan diskfilter devices until nothing new is found.
5607
5608 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5611
5612 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5613
5614 Don't try to detect cbfs on *-emu.
5615
5616 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5619
5620 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 Add support for processed coreboot payload chainloading.
5623
5624 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 Enable coreboot information commands even when not loaded as
5627 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5628
5629 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 Support for cbfs. Also factor out the part which is common
5632 for all archives to a separate module. This splits tar from cpio
5633 as they are very different but keeps cpio, cpio_be, odc and newc
5634 together since they're very similar.
5635
5636 2013-06-15 David Michael <fedora.dm0@gmail.com>
5637
5638 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5639 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5640
5641 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * tests/grub_script_eval.in: Really add the eval test.
5644
5645 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 Move flavour-specific parts out of common cpio.c file and
5648 rename remaining to cpio_common.c
5649
5650 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5651
5652 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5653 off new function grub_script_execute_new_scope. Change callers to use
5654 either of them as appropriate.
5655 * grub-core/commands/eval.c: New command eval.
5656 * docs/grub.texi (Commands): Document it.
5657
5658 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5659
5660 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5661 to fetch values when listing.
5662
5663 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5664
5665 Fix make dist on non-pc.
5666
5667 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5668
5669 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5670 without a device name.
5671
5672 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 Remove enable_executable_check as it's not needed anymore.
5675 Reported by: dougray.
5676
5677 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5680 ambigouos RAID before discovering RAIDs on top of it.
5681 Reported by: bodom.
5682
5683 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 Fix typo (failback vs fallback).
5686
5687 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5688
5689 * util/grub.d/30_os-prober.in: Add support for probing EFI
5690 System Partition (as of os-prober 1.58).
5691
5692 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * configure.ac: Add yet another path to unifont. For parabola.
5695
5696 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5697
5698 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5699 handling to copy the killed characters to the kill buffer as
5700 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5701 stored as char. Eliminates UCS4 truncation and corruption
5702 observed when killing characters with Ctrl-u and yanking them
5703 back with Ctrl-y.
5704
5705 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 Detach optional parts of gfxterm and integrate in with coreboot init.
5708
5709 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 Move blit and fill dispatcher to appropriate files to decrease export
5712 and relocation overhead.
5713
5714 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5717 functions.
5718
5719 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/Makefile.am: Fix compilation problem with some
5722 automake versions.
5723
5724 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5727
5728 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5731 automake versions.
5732
5733 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5734
5735 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5736 SSDT.
5737
5738 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5739
5740 * grub-core/partmap/dfly.c: New partition map.
5741
5742 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5745 checking.
5746 Reported by: Francesco Lavra.
5747
5748 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5749
5750 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5751 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5752 false conditions.
5753 * conf/Makefile.common: define dist_grubconf_DATA
5754
5755 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 Progressively skip menu elements on small terminals rather
5758 than crashing.
5759
5760 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5763 to avoid losing last column.
5764
5765 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * po/exclude.pot: Add missing string "%C".
5768
5769 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5772 after the test.
5773
5774 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * util/grub-install.in: Gettextize "Not found" message.
5777
5778 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 Fix distfiles list.
5781 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5782
5783 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5784
5785 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5786 present.
5787 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
5788
5789 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
5792
5793 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
5796 attribute since structure is not necessarily aligned.
5797
5798 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
5799
5800 * docs/grub.texi (Device syntax): Clarify description of network
5801 drives.
5802
5803 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5804
5805 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5806 for vasprintf presence.
5807
5808 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * util/grub-install.in: Handle efibootmgr presence check.
5811 Reported by: Leif Lindholm.
5812
5813 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5814
5815 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5816 new strings to translate.
5817
5818 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5821 yet another string (pun intended) to translate.
5822
5823 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * po/POTFILES-shell.in: Autogenerate it.
5826
5827 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5830
5831 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5834 misnomer.
5835
5836 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5837
5838 * docs/grub.texi (Network): Add description of net_default_interface,
5839 net_default_ip and net_default_mac. Rewrite variables description
5840 to emphasize that they are per-interface.
5841
5842 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 New test: cmdline and cat.
5845
5846 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/commands/cat.c: Show UTF-8 characters.
5849
5850 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * conf/Makefile.common: Poison float and double on non-emu.
5853
5854 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * configure.ac: Don't disable extended registers on emu.
5857
5858 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * configure.ac: Don't use extended registers on x86_64.
5861 Reported by: Peter Jones.
5862
5863 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/term/efi/console.c: Fix compile error.
5866
5867 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 Compressed HFS+ support.
5870
5871 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5874 pixel".
5875
5876 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 Menu color test.
5879
5880 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/tests/setjmp_test.c: New test.
5883
5884 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 New variables 'net_default_*' to determine MAC/IP of default interface.
5887
5888 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * tests/gettext_strings_test.in: A test to check for strings not
5891 marked for translation.
5892
5893 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 * autogen.sh: Exclude unused libgcrypt files from translation.
5896
5897 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 Simplify few strings.
5900
5901 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 Mark few forgotten strings for translation.
5904
5905 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5908 rather than printf.
5909
5910 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5913 rather than printf.
5914 * grub-core/video/readers/tga.c: Likewise.
5915
5916 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * tests/priority_queue_unit_test.cc: New test.
5919
5920 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5923 than printf.
5924
5925 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5926
5927 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5928 variable for one time boot menu entry.
5929
5930 2013-05-05 Bean <bean123ch@gmail.com>
5931
5932 * grub-core/commands/testspeed.c: New command testspeed.
5933
5934 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 Factor-out human-size printing.
5937
5938 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5939
5940 Agglomerate more mallocs to speed-up gfxterm.
5941
5942 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 Speed-up gfxterm by slightly agglomerating mallocs.
5945
5946 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 More video checks.
5949
5950 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 Speed-up gfxterm by saving intermediate results in index+alpha
5953 format.
5954
5955 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5958 test.
5959
5960 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5963 line of timeout as it may contain the rest of long line.
5964
5965 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * grub-core/normal/main.c: Fix freed memory dereference.
5968
5969 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 Fix several memory leaks.
5972
5973 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5976
5977 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5980
5981 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 Fix test -a and -o precedence.
5984 Reported by: adrian15.
5985
5986 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5989
5990 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5991
5992 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5993 and add it as source to functional_test module.
5994
5995 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5998
5999 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 New series of tests for gfxterm and gfxmenu.
6002
6003 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6006 the theme path relative to $prefix/themes.
6007
6008 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6011 Fix order bug.
6012 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6013
6014 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6015
6016 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6017 descriptor.
6018
6019 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6022 grub_gfxmenu_timeout_notifications.
6023 (grub_gfxmenu_view_destroy): Likewise.
6024
6025 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6028
6029 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 Several fixes to ieee1275 and big-endian video.
6032
6033 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 Add missing exports on mips.
6036
6037 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6040 if no unifont is found.
6041 Restore original keyboard.
6042
6043 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6046 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6047
6048 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 First automated video test (running videotest and comparing results)
6051
6052 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6055 instead of 2 to have full RGB/CMY test pattern.
6056
6057 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 Add few more tests.
6060
6061 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6064 ARCS. All users updated.
6065
6066 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6069
6070 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6073
6074 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6077 Reported by: qwertial.
6078
6079 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6080
6081 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6082 with syntax "XXX deg"/"XXX °".
6083
6084 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6085
6086 Make PCI init in i386-qemu port more robust.
6087
6088 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6089
6090 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6091 cached view is reused.
6092 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6093 open boot menus.
6094
6095 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 Unify more code in grub-install_header.
6098
6099 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 Add few new tests.
6102
6103 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 Enforce disabling of firmware disk drivers when native drivers kick in.
6106
6107 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/commands/nativedisk.c: Customize the list of modules on
6110 platform. Don't try to search for disks already using native drivers.
6111
6112 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6115 platforms.
6116
6117 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6120 handling of variables containing backslash.
6121
6122 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6125 dereference.
6126 Reported by: qwertial.
6127
6128 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6131
6132 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6135 dereference.
6136 Reported by: qwertial.
6137
6138 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6141
6142 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6145
6146 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 New command `nativedisk'.
6149
6150 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6153 * grub-core/loader/i386/bsd.c: Likewise.
6154
6155 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6158
6159 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6162 grub_get_unaligned16 rather than shifts.
6163
6164 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * grub-core/kern/file.c: Use const char * rather than casting to
6167 non-const.
6168
6169 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 * grub-core/commands/probe.c: Add missing grub_device_close.
6172
6173 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * INSTALL: Document linguas.sh.
6176
6177 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 Remove POTFILES.in and regenerate it in autogen.sh.
6180
6181 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 Move --directory/--override-directorry to grub-install_header and unify.
6184
6185 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/term/morse.c: Macroify dih and dah.
6188
6189 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6190
6191 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6192
6193 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * grub-core/term/ns8250.c: Systematically probe ports by writing
6196 to SR before using them.
6197
6198 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6199
6200 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6201 disks.
6202 (check_sas): Get sas_adress info.
6203
6204 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6207 ports.
6208
6209 2013-04-27 Leon Drugi <eyak>
6210
6211 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6212 BSS clearing.
6213
6214 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 Core compression test.
6217
6218 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Implement grub_machine_get_bootlocation for ARC.
6221
6222 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 Improve AHCI detection and command issuing.
6225
6226 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 Fix pseries test.
6229
6230 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 Make 'make check' work on emu.
6233
6234 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 Replace libcurses with our own vt100 handling for the ease of testing
6237 and decreasing prerequisites.
6238
6239 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6242
6243 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6246 compile when not needed.
6247
6248 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * tests/pseries_test.in: New test.
6251
6252 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 Add test to check that different boot mediums work.
6255
6256 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6259 ofw limited ISO support.
6260
6261 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * configure.ac: Fix loongson conditional.
6264
6265 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 Enable mipsel-arc.
6268
6269 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 Add serial on ARC platform.
6272
6273 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6276 commit.
6277
6278 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * tests/partmap_test.in: Add missing double semicolon.
6281
6282 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * util/grub-mkrescue.in: Fix loongson filename.
6285
6286 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * util/grub-mkrescue.in: Move all files that don't have a location
6289 set in stone under /boot/grub. Use ISO hard links rather than copies
6290 to save some space.
6291
6292 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6295 bogus SLOF values.
6296
6297 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 Make check work on mips-arc.
6300
6301 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * util/grub-mkrescue.in: Alias sashARCS as sash.
6304
6305 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6308 it's serial.
6309
6310 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * util/grub-install.in: Fix target fo qemu_mips.
6313 Fix extension on EFI.
6314
6315 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6318 in front of chosen entry to mark it even if highlighting is lost.
6319
6320 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6323 gfxpayload=keep if cbfb is active.
6324
6325 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6328
6329 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 Add missing video ids to coreboot and ieee1275 video.
6332
6333 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 * util/grub-mkrescue.in: Add mips-arc support.
6336
6337 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6340
6341 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 Move mips-arc link address. Previous link address was chosen
6344 in belief that RAM on SGI platforms grows down while in fact it
6345 grows up from an unusual base.
6346
6347 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6350 Fix a type which prevented CD-ROM and floppy boot.
6351
6352 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 Support coreboot framebuffer.
6355
6356 * grub-core/video/i386/coreboot/cbfb.c: New file.
6357
6358 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6361 detecting too small regions.
6362
6363 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6366
6367 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6370 Remove dprintf.
6371 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6372
6373 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6376 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6377 * grub-core/loader/powerpc/ieee1275/linux.c
6378 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6379
6380 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6383 Look for /boot-rom as well as /rom/boot-rom.
6384
6385 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6388 handling when creating text_layer failed.
6389 * grub-core/video/video.c (grub_video_create_render_target):
6390 Set result to 0 on error.
6391 (grub_video_delete_render_target): Do not dereference NULL.
6392
6393 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6396 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6397 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6398 (grub_linux_load64): Mask out 2 high bits.
6399
6400 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6401
6402 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6403 more place.
6404
6405 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 Add support for pseries and other bootinfo machines to grub-mkrescue.
6408
6409 Tested by: Paulo Flabiano Smorigo.
6410
6411 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 * util/grub-mkrescue.in: Add GPT for EFI boot.
6414
6415 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6418 It improves performance in qemu.
6419
6420 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * build-aux/snippet: Add missing gnulib files.
6423
6424 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6425
6426 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6427
6428 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6429
6430 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6431
6432 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6433 2013-04-15 Peter Jones <pjones@redhat.com>
6434
6435 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6436 sectors.
6437 Based on patch by Peter Jones.
6438
6439 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 Fix DMRAID partition handling.
6442
6443 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * tests/grub_cmd_date.in: Skip on sparc64.
6446
6447 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6450 firmware error messages.
6451
6452 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6455 source and destination differ.
6456
6457 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6460 detection.
6461
6462 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6465 match config-util.h to avoid warnings and increase compatibility.
6466
6467 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6468 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 Add option to compress files on install/image creation.
6471
6472 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * docs/grub-dev.texi: Rearrange menu to match the section order.
6475 Reported by: Bryan Hundven.
6476
6477 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6480
6481 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 Move GRUB out of system area when using xorriso 1.2.9 or later.
6484
6485 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * tests/grub_cmd_date.in: Add missing exit 1.
6488
6489 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * tests/partmap_test.in: Skip on sparc64.
6492
6493 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 Support grub-shell on sparc64.
6496
6497 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Support mkrescue on sparc64.
6500
6501 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6504 Needed on OpenBIOS due to incomplete device tree.
6505
6506 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6509 would be otherwise excluded.
6510
6511 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6514 Inline name defines used only once.
6515
6516 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 Fix memory leaks in ofnet.
6519 Reported by: Francesco Lavra.
6520
6521 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * docs/man/grub-glue-efi.h2m: Add missing file.
6524
6525 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6528
6529 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 Better support Apple Intel Macs on CD.
6532
6533 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 Replace stpcpy with grub_stpcpy in tools.
6536
6537 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 Handle Japanese special keys.
6540 Reported by: Hiroyuki YAMAMORI.
6541 Codes supplied by: Hiroyuki YAMAMORI.
6542
6543 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * util/grub-mkimage.c: Document memdisk implying --prefix.
6546
6547 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6550 much we can do about it anyway.
6551
6552 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6553
6554 Fix handling of split transfers.
6555
6556 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * grub-core/net/http.c: Fix bad free.
6559
6560 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6563 than buffer size.
6564
6565 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6568
6569 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * tests/util/grub-shell.in: Fix it on powerpc.
6572
6573 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 Turn off QEMU ACPI-way since new releases don't have shutdown port
6576 anymore.
6577
6578 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * docs/grub.texi: Update coreboot status info.
6581
6582 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * tests/grub_cmd_date.in: New test for datetime.
6585
6586 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * tests/partmap_test.in: Fix missing qemudisk setting.
6589
6590 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 Support i386-ieee1275 grub-mkrescue and make check on it.
6593
6594 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6597 feature for it.
6598
6599 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6602 GRUB_CMDLINE_XEN_DEFAULT.
6603 Reported by: Marc Warne (GigaTux) <gigatux>
6604
6605 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 Import new gnulib.
6608
6609 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6610
6611 Use ACPI shutdown intests as traditional port was removed.
6612
6613 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6614
6615 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6616 distinction.
6617
6618 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6621 Fix few warining messages and leaks while on it.
6622
6623 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6624
6625 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6626 links under grub-core/lib/libgcrypt-grub/mpi.
6627
6628 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 Fix ia64-efi image generation on big-endian machines. Deduplicate
6631 some code while on it.
6632 Reported by: Leif Lindholm.
6633
6634 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6635
6636 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6637 as extra_dist.
6638
6639 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6640
6641 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6642
6643 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6644
6645 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6646 texinfo-5.1.
6647
6648 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/normal/term.c: Few more fixes for menu entry editor
6651 rendering.
6652 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6653
6654 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6655
6656 * grub-core/normal/term.c: Few more fixes for menu entry editor
6657 rendering.
6658 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6659
6660 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6661
6662 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6663 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6664
6665 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6666
6667 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6668 instead of hardcoding grub.mo.
6669
6670 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6671
6672 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6673
6674 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6677 grub-core/disk/geli.c.
6678
6679 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6680
6681 * util/grub-mkfont.c: Prefer enum to #define.
6682
6683 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6686
6687 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6690
6691 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6692
6693 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6694
6695 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6696
6697 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6698
6699 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * include/grub/bsdlabel.h: Use enums.
6702
6703 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 Move GRUB_CHAR_BIT to types.h.
6706
6707 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6708
6709 * docs/grub.texi: Document more user commands.
6710
6711 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6712
6713 * docs/grub.texi: Document menuentry --id option.
6714
6715 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6716
6717 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6718
6719 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 Unify file copying setup across different install scripts. Add
6722 options for performing partial install.
6723
6724 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6725 2013-04-04 Peter Jones <pjones@redhat.com>
6726
6727 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6728
6729 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 Use TSC as a possible time source on i386-ieee1275.
6732
6733 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6736 Init err.
6737
6738 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 * util/grub-setup.c (setup): Handle some corner cases.
6741
6742 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6745
6746 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/commands/verify.c: Save verified file to avoid it being
6749 tampered with after verification was done.
6750
6751 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6754 reported width by one to compensate for curesor algorithm problem.
6755
6756 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 Fix screen corruption in menu entry editor and simplify the code
6759 flow while on it.
6760
6761 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6762
6763 * util/grub-mount.c (fuse_init): Return error if fuse_main
6764 failed.
6765
6766 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6767
6768 * include/grub/elf.h: Add missing ARM relocation codes and fix
6769 existing ones.
6770
6771 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6772
6773 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6774
6775 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6776 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6779 into account when calculating radius.
6780
6781 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6782
6783 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6784
6785 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6786
6787 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
6788
6789 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6790
6791 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
6792 missing closing bracket.
6793
6794 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6795
6796 * INSTALL: Mention xorriso requirement.
6797
6798 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
6799
6800 * grub-core/commands/verify.c: Fix hash algorithms values for
6801 the first three hashes - they start with 1, not with 0.
6802
6803 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6806 Try terminating EFI services several times due to quirks in some
6807 implementations.
6808
6809 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
6810
6811 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6812 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6813 BankField extended opcodes.
6814 (get_sleep_type): Add minimal scope handling (just enough to
6815 handle setting the scope to the root path).
6816 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6817 * include/grub/acpi.h: Add enumeration values for Event, Device,
6818 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6819
6820 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6821
6822 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6823 memory leak.
6824
6825 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/disk/ahci.c: Give more time for AHCI request.
6828
6829 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6832 command.
6833
6834 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 Replace the region at 0 from coreboot tables to available in BSD
6837 memory map.
6838
6839 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6842 non-BIOS platforms.
6843
6844 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6847 platforms.
6848
6849 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6852 handling of multi-device filesystems.
6853
6854 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6857 platforms.
6858
6859 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 Add new 'proc' filesystem framework and put luks_script into it.
6862
6863 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6866 and qemu.
6867
6868 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6871
6872 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 Add ability to generate newc additions on runtime.
6875
6876 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6879 description.
6880
6881 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * po/POTFILES.in: Regenerate.
6884
6885 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * grub-core/commands/verify.c (hashes): Add several hashes
6888 from the spec.
6889
6890 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 Slight improve in USB-related boot-time checkpoints.
6893
6894 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/commands/boottime.c: Fix copyright header.
6897
6898 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6901 coreboot tables content. Support for cbmemc.
6902
6903 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 Fix a conflict between ports structures with 2 controllers of
6906 same kind.
6907
6908 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * include/grub/boottime.h: Add missing file.
6911
6912 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 Initialize USB ports in parallel to speed-up boot.
6915
6916 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Fix USB devices not being detected when requested
6919 due to delayed attach.
6920
6921 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 Implement boot time analysis framework.
6924
6925 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 Remove get_endpoint_descriptor and change all functions needing
6928 descriptor to just receive it as argument rather than endpoint
6929 address.
6930
6931 2013-03-19 Aleš Nesrsta <starous@volny.cz>
6932
6933 Better estimate the maximum USB transfer size.
6934
6935 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6936
6937 Resend a packet if we got the wrong buffer in status.
6938
6939 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6942 multiplication rather than division.
6943
6944 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6947 than divisions.
6948
6949 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6952 operations to have intended shifts and not divisions.
6953
6954 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6957 intended shifts rather than division.
6958
6959 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6962 computation for some years before epoch. Avode confusing division
6963 while on it.
6964
6965 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * grub-core/video/i386/pc/vbe.c
6968 (grub_video_vbe_print_adapter_specific_info): Replace division by
6969 shifts.
6970
6971 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 Adjust types in gdb module to have intended unsigned shifts rather than
6974 signed divisions.
6975
6976 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6979 maximum size is 4G - 1 on hfs
6980
6981 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6982
6983 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6984
6985 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6988 function.
6989
6990 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6991
6992 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6993 causing gcc error with gcc 4.7.1.
6994
6995 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6996
6997 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6998 dereference null pointer. While the code is technically correct, gcc
6999 may eliminate a null check if pointer is already dereferenced.
7000
7001 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7002
7003 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7004 OOM check.
7005 * grub-core/normal/term.c (read_terminal_list): Likewise.
7006
7007 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 Lift up core size limits on some platforms. Fix potential memory
7010 corruption with big core on small memory systems. Document remaining
7011 limits.
7012
7013 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7016 gotoxy to 0,0.
7017
7018 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 Remove all trampoline support. Add -Wtrampolines when
7021 present. Remove symbols used for trampolines to make
7022 link fail if trampolines are present.
7023
7024 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7027 append out of its parent.
7028
7029 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7032 parent.
7033
7034 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7037 all vars to a macro. All users updated.
7038
7039 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7042 i386-ieee1275.
7043
7044 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7047
7048 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7051
7052 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Move to more hookless approach in IEEE1275 devices handling.
7055
7056 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 * grub-core/kern/term.c (grub_term_normal_color),
7059 (grub_term_highlight_color): Add back lost defaults.
7060
7061 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7062
7063 Make elfload not use hooks. Opt for flags and iterators instead.
7064
7065 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7068 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7069
7070 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7073
7074 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7077 hook pass-through parameter. All users updated and unnested.
7078
7079 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7082 out of its parent.
7083
7084 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 * grub-core/fs/hfs.c: Remove nested functions.
7087
7088 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7091 the context through.
7092 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7093
7094 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 * util/grub-editenv.c (list_variables): Move print_var out of its
7097 parent.
7098
7099 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7100
7101 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7102 function.
7103
7104 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * grub-core/gentrigtables.c: Make tables const.
7107
7108 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 Remove nested functions from videoinfo iterators.
7111
7112 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7115 for 64-bit platforms.
7116
7117 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7120 a FOR_CHILDREN macro.
7121
7122 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7125 platform from firmware path.
7126
7127 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 Enable linux16 on non-BIOS systems for i.a. memtest.
7130
7131 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7132 correctly.
7133 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7134
7135 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7138 Fix end of table condition.
7139
7140 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7143 out of its parent.
7144
7145 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7146
7147 * grub-core/fs/jfs.c: Remove nested functions.
7148
7149 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/fs/minix.c: Remove nested functions.
7152
7153 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/fs/iso9660.c: Remove nested functions.
7156
7157 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7160 of parent function.
7161
7162 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * util/grub-fstest.c: Remove nested functions.
7165
7166 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 * grub-core/loader/machoXX.c: Remove nested functions.
7169
7170 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7171
7172 Remove nested functions from disk and file read hooks.
7173
7174 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7175 (struct grub_disk): Add read_hook_data member.
7176 * include/grub/file.h (struct grub_file): Likewise.
7177 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7178 argument.
7179
7180 Update all callers.
7181
7182 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7183
7184 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7185 Fix off by one error in enumerating extended partitions.
7186
7187 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7188
7189 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7190 memory leak if device name is not found.
7191
7192 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7193
7194 * grub-core/normal/menu_entry.c (update_screen): remove
7195 unused variable `off' which caused scroll down arrow to be always shown.
7196
7197 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7198
7199 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7200 access to unallocated memory.
7201
7202 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7203
7204 * Makefile.util.def: Add partmap/msdos.c to common library.
7205 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7206 * grub-core/disk/ldm.c: Check for existence of
7207 GRUB_PC_PARTITION_TYPE_LDM.
7208
7209 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7212 sizes and display sector size.
7213
7214 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 Implement new command cmosdump.
7217
7218 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7219
7220 Support Openfirmware disks with non-512B sectors.
7221
7222 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7223 size of the disk.
7224 * (grub_ofdisk_get_block_size): New function.
7225 * (grub_ofdisk_prepare): Use the correct block size.
7226 * (grub_ofdisk_read): Likewise.
7227 * (grub_ofdisk_write): Likewise.
7228 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7229 New proto.
7230
7231 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7234
7235 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7238 on first error.
7239
7240 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7243 freeing it.
7244
7245 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 Implement USBDebug (full USB stack variant).
7248
7249 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7252 unless they have unexpected values.
7253
7254 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7257 grub_print_error.
7258
7259 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7262 zero-out of port structure.
7263
7264 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7267 of extended attributes.
7268
7269 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7270
7271 * util/grub-install.in: change misleading comment about
7272 device.map creation
7273
7274 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7275
7276 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7277 when menu highlight color isn't set.
7278
7279 2013-01-27 C. Masloch <pushbx@38.de>
7280
7281 Improve FreeDOS direct loading support compatibility.
7282
7283 * include/grub/i386/relocator.h (grub_relocator16_state):
7284 New member ebp.
7285 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7286 variable.
7287 (grub_relocator16_boot): Handle %ebp.
7288 * grub-core/lib/i386/relocator16.S: Likewise.
7289 * grub-core/loader/i386/pc/freedos.c:
7290 Load BPB to pass kernel which partition to load from.
7291 Check that kernel file is not too large.
7292 Set register dl to BIOS unit number as well.
7293
7294 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7295
7296 * util/grub-reboot.in (usage): Document the need for
7297 GRUB_DEFAULT=saved.
7298 * util/grub-set-default.in (usage): Likewise.
7299 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7300
7301 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7304 than defining WORDS_BIGENDIAN manually.
7305
7306 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7307
7308 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7309 invariants.
7310
7311 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7312
7313 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7314 nested.
7315 (blit_comb: add_device_width): Likewise.
7316
7317 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7318
7319 Remove nested functions from USB iterators.
7320
7321 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7322 (grub_usb_controller_iterate_hook_t): Likewise.
7323 (grub_usb_iterate): Add hook_data argument.
7324 (grub_usb_controller_iterate): Likewise.
7325 (struct grub_usb_controller_dev.iterate): Likewise.
7326
7327 Update all implementations and callers.
7328
7329 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7332 margin when not needed.
7333
7334 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 Make color variables global instead of it being per-terminal.
7337
7338 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7341 asterisk.
7342
7343 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7344
7345 Fix powerpc and sparc64 build failures caused by un-nesting memory
7346 map iterators.
7347
7348 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7349
7350 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7351 parameter declarations.
7352
7353 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7356
7357 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 Improve spkmomdem reliability by adding a separator between bytes.
7360
7361 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7362
7363 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7364 an Acer registration utility with several sightings in the wild.
7365 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7366
7367 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7368
7369 Remove nested functions from filesystem directory iterators.
7370
7371 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7372 (struct grub_fs.dir): Add hook_data argument.
7373
7374 Update all implementations and callers.
7375
7376 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7377
7378 * docs/grub.texi (Multi-boot manual config): Fix typo for
7379 "recommended".
7380
7381 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7382
7383 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7384 until after its use in generate_image.
7385
7386 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7387
7388 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7389 initrd size to addr_min, since the initrd will be allocated after
7390 this address.
7391
7392 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7393
7394 * conf/Makefile.common: Fix autogen rules to pass definition
7395 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7396
7397 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7398
7399 * include/grub/elf.h: Update ARM definitions based on binutils.
7400
7401 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7402
7403 Split long USB transfers into short ones.
7404
7405 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7406
7407 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7408 is interrupted by ESC.
7409
7410 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * util/grub-script-check.c (main): Uniform the error message.
7413
7414 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7415
7416 Remove nested functions from ELF iterators.
7417
7418 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7419
7420 Remove nested functions from device iterators.
7421
7422 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7423 (grub_arc_iterate_devs): Add hook_data argument.
7424 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7425 (struct grub_ata_dev.iterate): Add hook_data argument.
7426 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7427 (grub_device_iterate): Add hook_data argument.
7428 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7429 (struct grub_disk_dev.iterate): Add hook_data argument.
7430 (grub_disk_dev_iterate): Likewise.
7431 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7432 Likewise.
7433 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7434 Likewise.
7435 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7436 type.
7437 (struct grub_partition_map.iterate): Add hook_data argument.
7438 (grub_partition_iterate): Likewise.
7439 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7440 (struct grub_scsi_dev.iterate): Add hook_data argument.
7441
7442 Update all callers.
7443
7444 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7445
7446 Fix typos for "developer" and "development".
7447
7448 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 Add license header to spkmodem-recv.c.
7451
7452 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 Rewrite spkmodem to use PIT for timing. Double the speed.
7455
7456 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 Add new command pcidump.
7459
7460 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 New terminal outputs using serial: morse and spkmodem.
7463
7464 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 Improve bidi handling in entry editor.
7467
7468 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7471 argument to prevent name collision.
7472
7473 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7474
7475 Remove nested functions from script reading and parsing.
7476
7477 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7478 getline_data argument, passed to getline.
7479 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7480 getline_data argument, passed to grub_parser_split_cmdline.
7481 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7482 lexerstate->getline_data to lexerstate->getline.
7483 (grub_script_lexer_init): Add getline_data argument, saved in
7484 lexerstate->getline_data.
7485 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7486 argument, passed to grub_script_parse.
7487 * grub-core/script/script.c (grub_script_parse): Add getline_data
7488 argument, passed to grub_script_lexer_init.
7489 * include/grub/parser.h (grub_parser_split_cmdline): Update
7490 prototype. Update all callers to pass appropriate getline data.
7491 (struct grub_parser.parse_line): Likewise.
7492 (grub_rescue_parse_line): Likewise.
7493 * include/grub/reader.h (grub_reader_getline_t): Add void *
7494 argument.
7495 * include/grub/script_sh.h (struct grub_lexer_param): Add
7496 getline_data member.
7497 (grub_script_parse): Update prototype. Update all callers to pass
7498 appropriate getline data.
7499 (grub_script_lexer_init): Likewise.
7500 (grub_normal_parse_line): Likewise.
7501
7502 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7503 data argument.
7504 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7505 static instead of nested. Rename to ...
7506 (grub_parser_execute_getline): ... this.
7507 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7508 data argument.
7509 * grub-core/normal/main.c (read_config_file: getline): Make static
7510 instead of nested. Rename to ...
7511 (read_config_file_getline): ... this.
7512 (grub_normal_read_line): Add unused data argument.
7513 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7514 getline): Make static instead of nested. Rename to ...
7515 (grub_script_execute_sourcecode_getline): ... this.
7516 * util/grub-script-check.c (main: get_config_line): Make static
7517 instead of nested.
7518
7519 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7520
7521 Remove nested functions from memory map iterators.
7522
7523 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7524 argument, passed to hook.
7525 * grub-core/kern/i386/coreboot/mmap.c
7526 (grub_linuxbios_table_iterate): Likewise.
7527 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7528 instead of nested.
7529 (grub_machine_mmap_iterate): Add hook_data argument.
7530 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7531 Add hook_data argument, passed to hook.
7532 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7533 Likewise.
7534 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7535 Likewise.
7536 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7537 Likewise.
7538 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7539 Likewise.
7540 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7541 Likewise.
7542 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7543 Likewise.
7544 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7545 (grub_machine_mmap_iterate): Likewise.
7546 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7547 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7548 prototype.
7549 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7550 Remove NESTED_FUNC_ATTR from here and from all users.
7551 (grub_mmap_iterate): Update prototype.
7552 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7553 pass appropriate hook data.
7554 (grub_machine_mmap_iterate): Likewise.
7555
7556 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7557 static instead of nested.
7558 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7559 Rename to ...
7560 (lsmmap_hook): ... this.
7561 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7562 Likewise.
7563 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7564 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7565 heap_init): Likewise.
7566 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7567 Rename to ...
7568 (mmap_iterate_hook): ... this.
7569 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7570 Likewise.
7571 * grub-core/lib/ieee1275/relocator.c
7572 (grub_relocator_firmware_get_max_events: count): Likewise.
7573 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7574 to ...
7575 (grub_relocator_firmware_fill_events_iter): ... this.
7576 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7577 hook): Likewise. Rename to ...
7578 (grub_relocator_alloc_chunk_align_iter): ... this.
7579 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7580 Rename to ...
7581 (generate_e820_mmap_iter): ... this.
7582 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7583 Rename to ...
7584 (count_hook): ... this.
7585 (grub_linux_boot: hook): Likewise. Rename to ...
7586 (grub_linux_boot_mmap_find): ... this.
7587 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7588 (grub_linux_boot_mmap_fill): ... this.
7589 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7590 hook): Likewise. Rename to ...
7591 (grub_fill_multiboot_mmap_iter): ... this.
7592 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7593 hook): Likewise. Rename to ...
7594 (count_hook): ... this.
7595 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7596 hook): Likewise. Rename to ...
7597 (grub_fill_multiboot_mmap_iter): ... this.
7598 * grub-core/loader/powerpc/ieee1275/linux.c
7599 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7600 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7601 Likewise. Rename to ...
7602 (alloc_phys_choose): ... this.
7603 (determine_phys_base: get_physbase): Likewise.
7604 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7605 find_hook): Likewise.
7606 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7607 (malloc_hook: count_hook): Likewise.
7608 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7609 Likewise. Rename to ...
7610 (lower_hook): ... this.
7611 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7612 (upper_hook): ... this.
7613 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7614 (post64_hook): ... this.
7615 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7616 Likewise. Rename to ...
7617 (lower_hook): ... this.
7618 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7619 (upper_hook): ... this.
7620 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7621 (grub_mmap_iterate: fill_hook): Likewise.
7622 (fill_mask): Pass addr and mask within a single struct.
7623 (grub_cmd_badram: hook): Make static instead of nested. Rename
7624 to ...
7625 (badram_iter): ... this.
7626 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7627 (cutmem_iter): ... this.
7628
7629 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7632 delimit path in strings using quotes.
7633 * util/getroot.c (grub_guess_root_devices): Likewise.
7634 (grub_make_system_path_relative_to_its_root): Likewise.
7635 * util/grub-probe.c (probe): Likewise.
7636 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7637 (xrealpath): Likewise.
7638
7639 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7640
7641 Fix compilation with older compilers.
7642
7643 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7644 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7645 declarations.
7646 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7647 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7648 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7649 identifier with b.
7650 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7651 * include/grub/crypto.h: Add type defines.
7652 * util/import_gcrypth.sed: Remove duplicate type defines.
7653
7654 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 New command list_trusted.
7657
7658 * grub-core/commands/verify.c (grub_cmd_list): New function.
7659
7660 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7661
7662 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7663 info message.
7664
7665 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7666
7667 Remove nested functions from PCI iterators.
7668
7669 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7670 passed to hook. Update all callers to pass appropriate hook data.
7671 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7672 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7673 Remove NESTED_FUNC_ATTR from here and from all users.
7674 (grub_pci_iterate): Update prototype.
7675 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7676 instead of nested. Rename to ...
7677 (grub_cs5536_find_iter): ... this.
7678 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7679 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7680 Likewise.
7681 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7682 Likewise.
7683 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7684 Likewise.
7685 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7686 Likewise.
7687 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7688 * grub-core/video/radeon_fuloong2e.c
7689 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7690 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7691 find_card): Likewise.
7692 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7693 Likewise.
7694
7695 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * grub-core/commands/verify.c: Mark messages for translating.
7698
7699 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7702 fatal.
7703
7704 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7705
7706 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7707 fatal.
7708
7709 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * autogen.sh: Do not try to delete nonexistant files.
7712 * util/import_gcrypth.sed: Add some missing header removals.
7713
7714 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7715
7716 Clean up dangling references to grub-setup.
7717 Fixes Ubuntu bug #1082045.
7718
7719 * docs/grub.texi (Images): Refer generally to grub-install rather
7720 than directly to grub-setup.
7721 (Installing GRUB using grub-install): Remove direct reference to
7722 grub-setup.
7723 (Device map) Likewise.
7724 (Invoking grub-install): Likewise.
7725 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7726 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7727 * util/grub-install.in (usage): Likewise.
7728
7729 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7730 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7731 grub-setup.
7732 * configure.ac: Remove grub_setup output variable.
7733
7734 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7735 to grub-bios-setup.
7736 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7737 grub-setup to grub-sparc64-setup.
7738
7739 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 Import gcrypt public-key cryptography and implement signature checking.
7742
7743 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/fs/ntfs.c: Ue more appropriate types.
7746 * grub-core/fs/ntfscomp.c: Likewise.
7747 * include/grub/ntfs.h: Likewise.
7748
7749 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 Support Apple FAT binaries on non-Apple platforms.
7752
7753 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7754 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7755 Likewise.
7756 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7757 Apple FAT binaries.
7758
7759 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7762 sector devices.
7763
7764 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7765
7766 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7767 explicitly zeroing elements.
7768 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7769 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7770 of elements in a structure already allocated using grub_zalloc.
7771 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7772
7773 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7774
7775 * docs/grub.texi (grub_cpu): New subsection.
7776 (grub_platform): Likewise.
7777
7778 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7781
7782 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7783
7784 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7785 divisions.
7786
7787 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
7790 * grub-core/fs/ntfscomp.c: Likewise.
7791 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
7792 (grub_ntfs_comp): Likewise.
7793
7794 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
7797 Rename to ...
7798 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
7799 of groups_per_block. All users updated.
7800
7801 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7804 grub_error properly.
7805 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7806 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7807
7808 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7811 always in /boot/zfs.
7812 Reported by: Yuta Satoh.
7813
7814 2013-01-03 Yuta Satoh <nigoro>
7815
7816 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7817 ${grub_probe}
7818
7819 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * configure.ac: Extend -Wno-trampolines to host.
7822
7823 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7826 entry->len = 0.
7827
7828 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7829
7830 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7831 (Invoking grub-script-check): Likewise.
7832
7833 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7834
7835 * docs/grub.texi (Invoking grub-mount): New section.
7836 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7837
7838 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7839
7840 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7841 test failures, so that a failing unit test correctly causes 'make
7842 check' to fail.
7843
7844 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7845
7846 Fix failing printf test.
7847
7848 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7849 '$' in the correct order when collecting type information.
7850
7851 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7852
7853 * docs/grub.texi (configfile): Explain environment variable
7854 handling.
7855 (source): New section.
7856 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7857
7858 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
7859
7860 Remove several trivially-unnecessary uses of nested functions.
7861
7862 * grub-core/commands/i386/pc/sendkey.c
7863 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7864 instead of nested.
7865 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7866 Rename to ...
7867 (legacy_file_getline): ... this.
7868 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7869 Likewise.
7870 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7871 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7872 to ...
7873 (probe_dummy_iter): ... this.
7874 * grub-core/kern/i386/coreboot/mmap.c
7875 (grub_linuxbios_table_iterate: check_signature): Likewise.
7876 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7877 check_varstate): Likewise. Mark inline.
7878 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7879 an additional parameter.
7880 (find_long: fnd_long): Likewise. Pass two additional parameters.
7881 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7882 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7883 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7884 Likewise. Rename to ...
7885 (grub_cmos_find_port_iter): ... this.
7886 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7887 Rename to ...
7888 (find_rtc_iter): ... this.
7889
7890 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7891 function directly into the function body, since it is only called
7892 once.
7893
7894 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
7895
7896 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7897 __attribute__ ((unused)).
7898 * grub-core/video/bochs.c (find_card): Likewise.
7899 * grub-core/video/cirrus.c (find_card): Likewise.
7900 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7901 * grub-core/video/sis315pro.c (find_card): Likewise.
7902 * grub-core/video/sm712.c (find_card): Likewise.
7903
7904 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7905
7906 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7907 Fixes Savannah bug #37821.
7908
7909 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7910
7911 Apply program name transformations at build-time rather than at
7912 run-time. Fixes Debian bug #696465.
7913
7914 * acinclude.m4 (grub_TRANSFORM): New macro.
7915 * configure.ac: Create output variables with transformed names for
7916 most programs.
7917 * util/bash-completion.d/grub-completion.bash.in: Use
7918 pre-transformed variables for program names.
7919 * util/grub-install.in: Likewise.
7920 * util/grub-kbdcomp.in: Likewise.
7921 * util/grub-mkconfig.in: Likewise.
7922 * util/grub-mkconfig_lib.in: Likewise.
7923 * util/grub-mknetdir.in: Likewise.
7924 * util/grub-mkrescue.in: Likewise.
7925 * util/grub-mkstandalone.in: Likewise.
7926 * util/grub-reboot.in: Likewise.
7927 * util/grub-set-default.in: Likewise.
7928 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7929 * tests/util/grub-shell-tester.in: Remove unused assignment.
7930 * tests/util/grub-shell.in: Likewise.
7931 * util/grub.d/00_header.in: Likewise.
7932
7933 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7934
7935 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7936
7937 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7938 HAVE_RAW_DECL_GETS.
7939 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7940
7941 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7944 Reported by: Eriks Latosheks <foresterlv>.
7945
7946 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * docs/grub.texi (Network): Update instructions on generating netboot
7949 image.
7950
7951 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7954 around device name if necessarry.
7955
7956 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7957
7958 * util/grub-install.in: Follow the symbolic link parameter added
7959 to the file command.
7960
7961 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7962
7963 * util/grub-install.in: Remove stale TODO.
7964
7965 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7966
7967 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7968 dynamic allocation for the bootpath buffer.
7969
7970 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7971
7972 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7973 window too small.
7974
7975 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7978 argument rather than font name. All users updated.
7979 (grub_gfxterm_set_window): Likewise.
7980
7981 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7982
7983 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7984 from working.
7985
7986 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * util/getroot.c (convert_system_partition_to_system_disk): Support
7989 nbd disks.
7990
7991 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7994 infinite loop on corrupted FS.
7995
7996 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7997
7998 Fix big-endian mtime.
7999
8000 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8001 together sec and usec.
8002 (grub_ufs_dir): Use correct byteswapping for UFS time.
8003
8004 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 Support big-endian UFS1.
8007
8008 * Makefile.util.def (libgrubmods): Add ufs_be.c
8009 * grub-core/Makefile.core.def (ufs1_be): New module.
8010 * grub-core/fs/ufs_be.c: New file.
8011 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8012 the file.
8013
8014 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8015
8016 * include/grub/types.h: Fix functionality unaffecting typo in
8017 GRUB_TARGET_WORDSIZE conditional macro.
8018
8019 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8020
8021 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8022
8023 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8024
8025 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8026 that /netbsd appears first (when it exists).
8027
8028 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8029
8030 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8031 Fixes Savannah bug #37558.
8032
8033 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8034
8035 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8036 description of extract_entries_configfile.
8037
8038 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8039
8040 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8041 preferred_address.
8042 (grub_cmd_linux): Likewise.
8043 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8044 preferred_lifetime. Update all users.
8045
8046 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8047
8048 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8049 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8050
8051 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8052
8053 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8054 errors from grub-probe to /dev/null, not stdout.
8055
8056 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8059 sector 1.
8060
8061 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8062
8063 * util/grub-install.in: Make the error message if $source_dir
8064 doesn't exist more useful.
8065
8066 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8067
8068 Fix grub-emu build on FreeBSD.
8069
8070 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8071 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8072 headers on Linux.
8073 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8074 implementation is currently Linux-specific.
8075 * util/getroot.c (exec_pipe): Define only on Linux or when either
8076 libzfs or libnvpair is unavailable.
8077 (find_root_devices_from_poolname): Remove unused path variable.
8078
8079 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8080
8081 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8082 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8083 should fit before end == 63.
8084
8085 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8086
8087 * util/grub-setup.c (write_rootdev): Remove unused core_img
8088 parameter. Update all callers.
8089 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8090 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8091 GRUB_SETUP_BIOS.
8092
8093 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8096 (grub_add_tab): New function.
8097 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8098 * util/grub.d/10_illumos.in: Likewise.
8099 * util/grub.d/10_kfreebsd.in: Likewise.
8100 * util/grub.d/10_linux.in: Likewise.
8101 * util/grub.d/10_netbsd.in: Likewise.
8102 * util/grub.d/10_windows.in: Likewise.
8103 * util/grub.d/10_xnu.in: Likewise.
8104 * util/grub.d/20_linux_xen.in: Likewise.
8105 * util/grub.d/30_os-prober.in: Likewise.
8106
8107 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8110 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8111 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8112 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8113 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8114 ieee1275-nocursor.
8115 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8116 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8117
8118 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8121 le-conversion.
8122 Reported by: BURETTE, Bernard.
8123
8124 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8125
8126 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8127 from comment.
8128
8129 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8130
8131 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8132 IEEE1275 machines. Fixes powerpc-emu compilation.
8133 * include/grub/terminfo.h: Likewise.
8134
8135 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8136
8137 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8138 a const pointer.
8139 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8140 const pointer.
8141 (efiemu_set_variable): Make vendor_guid a const pointer.
8142
8143 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 Don't require grub-mkconfig_lib to generate manpages for programs.
8146
8147 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8148 dependencies, don't add grub-mkconfig_lib.
8149 (program): Pass empty adddeps.
8150 (script): Pass grub-mkconfig_lib as adddeps.
8151
8152 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8153
8154 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8155 * util/getroot.c (grub_find_device): Likewise.
8156 (get_mdadm_uuid): Likewise.
8157 (grub_util_is_imsm): Likewise.
8158 (grub_util_pull_device): Likewise.
8159 * util/grub-probe.c (probe): Likewise.
8160
8161 2012-09-10 Benoit Gschwind <gschwind>
8162
8163 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8164 (devs): Add devpath_8.
8165
8166 2012-09-08 Peter Jones <pjones@redhat.com>
8167
8168 * grub-core/Makefile.core.def (efifwsetup): New module.
8169 * grub-core/commands/efi/efifwsetup.c: New file.
8170 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8171 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8172 New define.
8173 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8174
8175 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8176
8177 * configure.ac: Add SuSe path.
8178
8179 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8180
8181 * NEWS: Fix typo.
8182
8183 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8184
8185 * util/import_gcry.py: Sort cipher_files, to make build system
8186 generation more deterministic.
8187
8188 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8191 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8192 (grub_set_datetime): Likewise.
8193
8194 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8197 warnings.
8198
8199 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8200
8201 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8202
8203 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8206
8207 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8208
8209 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8210 required for checkouts from bzr, but it may be useful for users or
8211 distributors wishing to update translations against a tarball
8212 distribution, and it can be helpful for the tarball to be a superset
8213 of what's in bzr.
8214
8215 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8216
8217 * Makefile.am (EXTRA_DIST): Add
8218 grub-core/tests/boot/linux.init-mips.S,
8219 grub-core/tests/boot/linux.init-ppc.S, and
8220 grub-core/tests/boot/linux-ppc.cfg.
8221
8222 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8223
8224 * grub-core/mmap/mips/loongson: Remove empty directory.
8225
8226 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8227
8228 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8229 gone.
8230
8231 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8232
8233 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8234 grub-sparc64-setup.
8235
8236 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8237
8238 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8239
8240 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8241
8242 * po/POTFILES.in: Regenerated.
8243
8244 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8245
8246 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8247 (NetBSD): New subsection.
8248
8249 2012-07-22 Ales Nesrsta <starous@volny.cz>
8250
8251 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8252 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8253
8254 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8257 * util/grub.d/10_hurd.in: Add missing quoting.
8258 * util/grub.d/10_illumos.in: Likewise.
8259 * util/grub.d/10_kfreebsd.in: Likewise.
8260 * util/grub.d/10_linux.in: Likewise.
8261 * util/grub.d/20_linux_xen.in: Likewise.
8262
8263 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 New command `lsefi'.
8266
8267 * grub-core/Makefile.core.def (lsefi): New module.
8268 * grub-core/commands/efi/lsefi.c: New file.
8269 * include/grub/efi/api.h: Add more GUIDs.
8270
8271 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8274 (grub_bsd_elf32_hook): Likewise.
8275 (grub_bsd_elf64_size_hook): Likewise.
8276 (grub_bsd_elf64_hook): Likewise.
8277 (grub_bsd_load_elf): Likewise.
8278
8279 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8282 if hash function is unavailable.
8283 (dec_stream_header): Likewise.
8284
8285 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8288 filter state.
8289
8290 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8291
8292 Fix coreboot compilation.
8293
8294 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8295 (grub_vga_text_init_real): ... this.
8296 (grub_vga_text_fini): Rename to ...
8297 (grub_vga_text_fini_real): ... this.
8298
8299 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8302
8303 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8304
8305 * grub-core/lib/legacy_parse.c: Support clear and testload.
8306
8307 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8310
8311 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8314
8315 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * grub-core/net/tftp.c (ack): Fix endianness problem.
8318 (tftp_receive): Likewise.
8319 Reported by: Michael Davidsaver.
8320
8321 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8322
8323 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8324
8325 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8328 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8329 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8330
8331 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8332
8333 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8334 efi_mmap_size.
8335 Reported by: Stuart Hayes.
8336
8337 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8338
8339 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8340
8341 * grub-core/Makefile.core.def (mda_text): New module.
8342 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8343 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8344 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8345 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8346 here.
8347 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8348 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8349 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8350 here.
8351 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8352 to ..
8353 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8354 ... here
8355 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8356 here.
8357 * grub-core/term/i386/vga_common.c: Removed.
8358 * include/grub/i386/vga_common.h: Likewise.
8359 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8360 (grub_vga_cr_bw_read): Likewise.
8361 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8362 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8363 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8364 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8365 grub_vga_cr_read/grub_vga_cr_write.
8366 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8367
8368 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * configure.ac: Bump version to 2.00.
8371 * grub-core/normal/main.c (features): Add feature_200_final.
8372
8373 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8374 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8375
8376 * NEWS: Fix unclarity and language mistakes.
8377
8378 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8381 additional size to 3 pages.
8382 Reported by: Stuart Hayes.
8383
8384 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 * NEWS: Add 2.00 entry.
8387
8388 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8391 put explicit "/" for empty path.
8392 (wildcard_expand): Improve dprintf.
8393
8394 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8397 it's equal to currnode. This can happen with "" symlink.
8398
8399 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8400
8401 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8402 echo shell command by printf command.
8403
8404 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8407 the value returned by firmware is the maximal position, not diumension.
8408 (grub_terminfo_output_state): Use a more sane fallback.
8409
8410 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8413
8414 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8417 frequency to 150 MHz.
8418
8419 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 Apple fixes.
8422
8423 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8424 __APPLE_
8425 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8426 definition.
8427 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8428
8429 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 Handle slash in HFS label.
8432
8433 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8434 (grub_hfs_dir): Tanslate slash.
8435 (grub_hfs_label): Don't translate slash.
8436
8437 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8440 network protocol listing since it introduces problematic dependency on
8441 net module.
8442
8443 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8446
8447 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8448
8449 Init video early on yeeloong to avoid being rebooted by watchdog.
8450
8451 * grub-core/Makefile.am (gensm712): New target.
8452 (sm712_start.S): Likewise.
8453 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8454 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8455 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8456 description.
8457 * include/grub/vga.h: Move registry definitions to...
8458 * include/grub/vgaregs.h: ... here.
8459
8460 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8461
8462 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8463 signedness.
8464
8465 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8468 platforms with firmware disk drivers in the core.
8469
8470 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8471
8472 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8473 informative verbose message.
8474 (read_lv): Handle 64-bit segment size.
8475
8476 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8477
8478 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8479
8480 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8483 character but still remove trainling spaces.
8484 (grub_fat_label): Ignore archive flag.
8485
8486 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8489 cast between linux_kernel_header and linux_kernel_params.
8490
8491 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8494 type for size.
8495 (grub_raid6_recover_func_t): Likewise.
8496 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8497 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8498
8499 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8502
8503 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8504
8505 Fix overflow.
8506
8507 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8508 [__NetBSD__]: Add explicit cast before bitshift.
8509
8510 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * configure.ac: Bump to 2.00~rc1.
8513
8514 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8517 half of $a0.
8518
8519 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8520 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8521
8522 * docs/grub.texi: Fix search syntax.
8523 (Multi-boot manual config): Put msdos rather than GPT example.
8524 Grammar corrections.
8525
8526 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8529
8530 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8533
8534 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8537 message on double free. Put the value of magic in case of mismatch.
8538
8539 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 Speed-up video on yeeloong.
8542
8543 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8544 add cached_ptr.
8545 (grub_video_sm712_video_fini): Unmap cached_ptr.
8546 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8547 (grub_video_sm712_set_active_render_target): Removed.
8548 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8549 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8550 sync caches.
8551
8552 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 Avoid flushing the same line multiple times on loongson.
8555
8556 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8557 Step in 32 bytes and not 1 byte.
8558 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8559 Likewise.
8560
8561 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8562
8563 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8564 subvolumes.
8565
8566 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 Implement flow control for http.
8569
8570 * grub-core/net/http.c (parse_line): Handle response 206.
8571 (http_receive): Stall if too many packets are in the queue.
8572 (http_establish): Fix range header.
8573 (http_seek): Fix double free.
8574 (http_close): Likewise.
8575 (http_packets_pulled): New function.
8576 (grub_http_protocol): Set http_seek
8577 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8578 (ack_real): Set window depending on i_stall.
8579 (grub_net_send_tcp_packet): Likewise.
8580 (grub_net_tcp_stall): New function.
8581 (grub_net_tcp_unstall): Likewise.
8582 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8583 (grub_net_tcp_unstall): Likewise.
8584
8585 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8588
8589 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8592
8593 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * tests/util/grub-shell.in: Fix a typo.
8596
8597 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 Implement flow control for tftp.
8600
8601 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8602 packets but stop only if stop condition is satisfied.
8603 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8604 `stall' instead of `eof' as stop condition.
8605 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8606 (http_err): Likewise.
8607 * grub-core/net/tftp.c (ack): Replace the first argument with data
8608 instead of socket.
8609 (tftp_receive): Stall if too many packets are in wait queue.
8610 (tftp_packets_pulled): New function.
8611 (grub_tftp_protocol): Set packets_pulled.
8612 * include/grub/net.h (grub_net_packets): New field count.
8613 (grub_net_put_packet): Increment count.
8614 (grub_net_remove_packet): Likewise.
8615 (grub_net_app_protocol): New field `packets_pulled'.
8616 (grub_net): New field `stall'.
8617
8618 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8621 sync part to handle them.
8622
8623 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8626 * grub-core/net/drivers/ieee1275/ofnet.c
8627 (grub_ieee1275_net_config_real): Likewise.
8628
8629 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8632 the direct route for server/gateway.
8633
8634 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8637 IP address to server name since we may not hame the DNS.
8638
8639 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8642 freeing random buffer on failure.
8643 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8644
8645 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8646
8647 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8648
8649 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8650
8651 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8652 reserved bytes.
8653 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8654 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8655 Handle malloc error correctly.
8656
8657 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8660 blocks.
8661
8662 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8665 increment.
8666
8667 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8670 none is explicitly specified.
8671
8672 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8675 while reallocating.
8676
8677 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 Respect netmask from bootp/dhcp.
8680
8681 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8682 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8683 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8684 into ...
8685 (grub_net_add_ipv4_local): ... this.
8686 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8687 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8688 (grub_net_add_ipv4_local): New proto.
8689
8690 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8693 determining EFI memory map size.
8694
8695 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8698
8699 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8702 when looking for partition separator.
8703
8704 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8707 Escape commas.
8708
8709 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 Restructure FAT driver to avoid hook in label reading as it hits a
8712 GCC bug.
8713
8714 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8715 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8716 (grub_fat_iterate_dir): Split into ...
8717 (grub_fat_iterate_init): ... this, ...
8718 (grub_fat_iterate_fini): ... this, ...
8719 (grub_fat_iterate_dir_next): ... and this. All users updated.
8720
8721 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8724 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8725 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8726 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8727 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8728 New fields last_key and last_key_time.
8729 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8730 extended key-esc into extended key-extended key.
8731
8732 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 Avoid unnecessary memcpy of whole video buffer.
8735
8736 * grub-core/video/fb/video_fb.c (dirty): New struct.
8737 (framebuffer): Add members current_dirty and previous_dirty.
8738 (dirty): New function.
8739 (grub_video_fb_fill_rect): Update dirty.
8740 (common_blitter): Likewise.
8741 (grub_video_fb_scroll): Likewise.
8742 (doublebuf_blit_update_screen): Copy only dirty part.
8743 (doublebuf_pageflipping_update_screen): Likewise.
8744 (grub_video_fb_doublebuf_blit_init): Init dirty.
8745 (doublebuf_pageflipping_init): Likewise.
8746 (grub_video_fb_setup): Likewise.
8747
8748 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8751 poll rate.
8752
8753 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 Fix wildcard regexp dot and other special characters handling.
8756 Reported by: Robert Mabee.
8757
8758 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8759 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8760 (split_path): Trigger expansion on '?'.
8761 (unescape): New function.
8762 (wildcard_expand): Unescape parts copied without globbing.
8763 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8764 (grub_script_arglist_to_argv): Don't unescape expansions.
8765
8766 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8767
8768 * include/grub/net.h (grub_net_card): New member txbufsize.
8769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8770 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8771 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8772 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8773 txbufsize.
8774 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8775 compatible property to check for macs. Set
8776 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8777 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8778 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8779 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8780 (send_card_buffer): Use txbuf.
8781 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8782 nested function out of the parent while on it.
8783
8784 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8787 presence check.
8788 (grub_ieee1275_net_config_real): Fix config pointer.
8789
8790 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
8793 filename parsing to non-block devices.
8794
8795 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * grub-core/kern/device.c (grub_device_open): Remove dead code.
8798
8799 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8802 All users updated.
8803
8804 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8807 UUID search command even if hints probing failed.
8808
8809 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * po/POTFILES.in: Regenerated.
8812
8813 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 Speed-up video on fuloong.
8816
8817 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8818 New function.
8819 (grub_pci_device_unmap_range): Handle non-cached address.
8820 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8821 add direct_ptr.
8822 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8823 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8824 (grub_video_sis315pro_set_active_render_target): Removed.
8825 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8826 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8827 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8828 sync caches.
8829 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8830 New proto.
8831
8832 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * docs/grub.texi (Multi-boot manual config): New section.
8835
8836 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 Avoid slow read-back from VRAM.
8839
8840 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8841 Move from here ...
8842 * grub-core/video/fb/video_fb.c
8843 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8844 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8845 (front_target): Remove front_target. Add pages.
8846 (grub_video_fb_init): Skip setting front_pages.
8847 (grub_video_fb_fini): Likewise.
8848 (doublebuf_blit_update_screen): Use pages.
8849 (grub_video_fb_doublebuf_blit_init): Likewise.
8850 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8851 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8852 (grub_video_fb_setup): Prefer doublebuffing.
8853
8854 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8857 gzio.
8858
8859 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 Add loongson tests.
8862
8863 * tests/util/grub-shell.in: Handle loongson.
8864 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8865 drivers.
8866 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8867 Reboot instead of shutdown if REBOOT is defined.
8868
8869 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8872 sized ports since unlike on real hardware qemu supports only 32-bit
8873 regs.
8874
8875 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8878 * util/grub-mkrescue.in: Handle loongson.
8879
8880 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8883 Set is_part appropriately.
8884 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8885 names. Canonicalize partition without full disk.
8886
8887 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 Revert usb-quiesce since it's wrong.
8890
8891 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8892 (grub_ofdisk_init): Don't do quiesce.
8893
8894 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8897 PowerMac workaround to Xserves as well.
8898 Information supplied by: Benjamin Herrenschmidt.
8899
8900 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 Don't assume that beginning address is also the entry point on ppc.
8903
8904 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8905 (grub_linux_boot): Use linux_entry.
8906 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8907 (grub_linux_load64): Likewise.
8908
8909 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8912
8913 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8916 needlessly lose the console.
8917
8918 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8921 space.
8922
8923 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8926 than current grub_get_rtc() not implemented when booted with
8927 coreboot without TSC.
8928
8929 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8930 Add machine/time.h to kernel headers on loongson.
8931 * grub-core/Makefile.core.def (kernel): Remove
8932 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8933 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8934 (grub_get_rtc): Likewise.
8935 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8936 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8937 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8938 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8939 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8940 rather than installing known non-working time source.
8941 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8942 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8943 * include/grub/time.h: Don't include machine/time.h.
8944 * include/grub/efi/time.h: Removed.
8945 * include/grub/i386/efi/time.h: Likewise.
8946 * include/grub/i386/ieee1275/time.h: Likewise.
8947 * include/grub/powerpc/ieee1275/time.h: Likewise.
8948 * include/grub/sparc64/ieee1275/time.h: Likewise.
8949 * include/grub/x86_64/efi/time.h: Likewise.
8950
8951 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8952
8953 Remove dot on i and j when combining with above diacritics.
8954
8955 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8956 value.
8957 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8958 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8959 with dotless variants when any combining above is present.
8960
8961 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8964 text and not binary.
8965
8966 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 Stop polling as soon as we have the packet we were waiting for.
8969
8970 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8971 All users updated.
8972 * grub-core/net/arp.c (have_pending): New var.
8973 (pending_req): Likewise.
8974 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8975 stop indicator.
8976 (grub_net_arp_receive): Set have_pending.
8977 * grub-core/net/dns.c (recv_data): New field stop.
8978 (recv_hook): Set stop.
8979 (grub_net_dns_lookup): Init stop and use as stop condition.
8980 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8981 condition.
8982 * grub-core/net/net.c (grub_net_poll_cards): New argument
8983 stop_condition. Stop when it goes true.
8984 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8985 indicator.
8986 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8987
8988 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 Keep TX and RX buffers on EFI rather than always allocate new ones.
8991
8992 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8993 card. All users updated.
8994 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8995 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8996 (get_card_packet): Likewise.
8997 (grub_efinet_findcards): Init new fields.
8998
8999 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9002 compilation error on sparc64.
9003
9004 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 Use ITC on IA64 rather than broken routine based on daytime.
9007
9008 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9009 ia64.
9010 (grub_get_rtc) [__ia64__]: Likewise.
9011 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9012 (get_itc): New function.
9013 (grub_rtc_get_time_ms): Likewise.
9014 (grub_machine_init): Calibrate ITC.
9015 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9016 Keep only on non-ia64. Don't export since it's broken and used only
9017 if TSC is unavailable.
9018
9019 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9020
9021 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9022 even if it's used.
9023 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9024 Skip if parent is unused.
9025
9026 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9029
9030 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 Fix wildcard escaping.
9033
9034 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9035 * grub-core/script/execute.c (wildcard_escape): .. to here.
9036 Don't escape dot.
9037 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9038 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9039 Don't escape dot.
9040 * grub-core/script/execute.c (gettext_append): Always escape.
9041 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9042 * grub-core/script/yylex.l: Don't cut away the escaping.
9043 * tests/grub_script_echo1.in: Add tests with wildcard.
9044
9045 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9048 (ftdi_hw_configure): Likewise.
9049 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9050 define.
9051 (real_config): Handle 1.5 stop bits.
9052 (pl2303_hw_configure): Likewise.
9053
9054 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * Makefile.am: Add ppc linux bootcheck.
9057 * grub-core/tests/boot/linux-ppc.cfg: New file.
9058 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9059
9060 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 * tests/grub_script_expansion.in: Skip network protocols.
9063
9064 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9067
9068 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9071 --rom-directory.
9072 Add -graft-points.
9073
9074 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 ESCC serial driver for conducting sautomated tests in qemu.
9077 Not tested on real hardware.
9078
9079 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9080 * grub-core/term/ieee1275/escc.c: New file.
9081 * grub-core/Makefile.core.def (escc): New module.
9082
9083 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9086 invalid on error.
9087 (serial_hw_fetch): Don't read invalid handle.
9088 (serial_hw_put): Don't write into invalid handle.
9089
9090 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 Add a 1.5 stop bits value.
9093
9094 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9095 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9096 GRUB_SERIAL_STOP_BITS_1_5.
9097
9098 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9101 value rather than let it uninited.
9102
9103 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/commands/wildcard.c (+check_file): New function.
9106 (wildcard_expand): Don't expand to non-existing files, expand with
9107 suffix and not attempt to expand if not needed.
9108
9109 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9112 out of partitions containing other partitions.
9113
9114 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9117 on some qemu versions with GRUB.
9118
9119 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9120 define.
9121 (grub_openbsd_bootarg_pcibios): New struct.
9122 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9123 Add PCIINFO.
9124
9125 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9126
9127 * tests/util/grub-shell.in: Trim firmware output on EFI.
9128
9129 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9132 and coreboot since it's already in kernel.
9133
9134 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9137 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9138 to here. New return value start. All users updated.
9139 Recursively scan linear mappings.
9140 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9141 proto.
9142 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9143 Use grub_util_get_dm_node_linear_info.
9144 * util/getroot.c (convert_system_partition_to_system_disk): Use
9145 grub_util_info rather than grub_dprintf.
9146 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9147
9148 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9151
9152 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9153 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9154
9155 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 * include/grub/types.h (grub_set_unaligned64): New function.
9158 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9159 (setup): Likewise.
9160
9161 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9162
9163 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9164 (grub_ofdisk_fini): Quiesce USB devices.
9165
9166 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9169 caches.
9170
9171 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9174
9175 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/disk/pata.c (grub_pata_pio_read)
9178 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9179 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9180
9181 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 Extend automated tests to qemu-mips.
9184
9185 * Makefile.am: reorganise tests and enable qemu-mips.
9186 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9187 * grub-core/tests/boot/linux.init-mips.S: New file.
9188 * tests/partmap_test.in: Handle ata0 disks.
9189 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9190 non-pc i386.
9191
9192 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9195 ia64.
9196 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9197 quotes while on it.
9198
9199 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9202 (grub_halt): Likewise.
9203 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9204
9205 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * grub-core/term/serial.c (grub_serial_register)
9208 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9209 the behaviour in line with x86 platforms.
9210
9211 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9214 (grub_ata_strncpy): Likewise.
9215 (grub_ata_identify): Add missing byteswaps.
9216
9217 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9218
9219 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9220 byte-swap.
9221 (screen_read_char): Likewise.
9222 (grub_vga_text_cls): Likewise.
9223
9224 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9227 filenames.
9228 (make_file_path): Likewise.
9229
9230 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9233 machines.
9234 Tested by: Paulo Flabiano Smorigo.
9235 Crucial information about API supplied by: Coleen <Last name unknown>.
9236 Reviewed by: Coleen <Last name unknown>.
9237
9238 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * util/grub-mkimage.c: Disable -Wcast-align.
9241
9242 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9245 as they are fatal.
9246
9247 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9250
9251 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 * util/grub-probe.c (escape_of_path): Fix double free.
9254
9255 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 * grub-core/commands/videoinfo.c (hook): Show pitch.
9258
9259 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9262
9263 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9266 (probe): Add ieee1275 to OFW devices.
9267
9268 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9271
9272 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 Handle IBM OFW path.
9275
9276 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9277 available.
9278 (of_path_of_scsi): Handle vdevice.
9279
9280 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9283 Allocate in multiples of 16 to avoid adding a few bytes free region the
9284 windows bugs upon.
9285
9286 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9287
9288 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9289 Allocate in multiples of 16 to avoid adding a few bytes free region the
9290 windows bugs upon.
9291 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9292
9293 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9296 resolutions.
9297 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9298 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9299
9300 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9301
9302 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9303
9304 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9307 resulted in \\ at the end of the line.
9308
9309 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9312 (grub_parser_cmdline_state): Likewise.
9313 (grub_parser_split_cmdline): Likewise.
9314
9315 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9318 /dev/root and /dev/dm-*.
9319
9320 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9323 fix partially stale display.
9324
9325 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9326
9327 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9328 substraction.
9329
9330 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9333 Fix MBR remapping workaround.
9334 (grub_util_biosdisk_read) [__linux__]: Likewise.
9335
9336 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9339
9340 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 * configure.ac: Bump to beta6.
9343
9344 2012-05-31 Christer Weinigel <christer@weinigel.se>
9345
9346 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9347
9348 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9349
9350 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9351 (grub_cmd_linux): Likewise.
9352
9353 2012-05-31 Christer Weinigel <christer@weinigel.se>
9354
9355 Fix EHCI low-speed.
9356
9357 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9358 (GRUB_EHCI_MULT_TWO): Likewise.
9359 (GRUB_EHCI_MULT_THREE): Likewise.
9360 (GRUB_EHCI_CMASK_MASK): New enum value.
9361 (GRUB_EHCI_SMASK_MASK): Likewise.
9362 (GRUB_EHCI_CMASK_OFF): Likewise.
9363 (GRUB_EHCI_SMASK_OFF): Likewise.
9364 (grub_ehci_pci_iter): Enable periodic schedule.
9365 (grub_ehci_parse_notrun): Likewise.
9366 (grub_ehci_restore_hw): Likewise.
9367 (grub_ehci_setup_qh): Set flags for low speed transfers.
9368 (grub_ehci_find_qh): Use periodic list for low speed.
9369 (grub_ehci_setup_transfer): Check periodic queue as well.
9370 (grub_ehci_check_transfer): Likewise.
9371 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9372
9373 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9374
9375 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9376 parameter is used.
9377
9378 2012-05-31 Peter Jones <pjones@redhat.com>
9379
9380 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9381 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9382 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9383
9384 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9385
9386 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9387 uninited variable. Allocate at least setup_sects.
9388
9389 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9390
9391 Fix handling of EFI with big memory maps.
9392
9393 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9394 (real_mode_mem): Likewise.
9395 (real_mode_target): Likewise.
9396 (real_mode_pages): Likewise.
9397 (prot_mode_pages): Likewise.
9398 (linux_params): New var.
9399 (linux_cmdline): Likewise.
9400 (free_pages): Don't set real mode variables.
9401 (allocate_pages): Don't allocate real mode memory.
9402 (grub_e820_add_region): Remove the limit.
9403 (grub_linux_boot): Allocate and copy real mode memory.
9404 (grub_linux_unload): Free linux_cmdline.
9405 (grub_cmd_linux): Use temporary storage for parameters.
9406 (grub_cmd_initrd): Likewise.
9407 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9408 (linux_kernel_params): Make it 1K big.
9409
9410 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * Makefile.util.def: Remove -Wno-format.
9413 * grub-core/Makefile.core.def: Likewise.
9414
9415 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 * tests/cmp_unit_test.c: Add missing failure message.
9418 * tests/example_unit_test.c: Likewise.
9419 * tests/printf_unit_test.c: Likewise.
9420
9421 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9424 relaxation of protective MBR requirements.
9425
9426 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * configure.ac: Add condition for COND_HOST_XNU.
9429 * Makefile.util.def (10_xnu): New script.
9430 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9431
9432 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9435 objconv bug.
9436
9437 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9440 Binary on other platforms stays identical.
9441
9442 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9445 Apple.
9446
9447 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9448
9449 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9450
9451 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9454 rather than defining size_t ourselves to avoid conflict.
9455
9456 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9459 initialisation to avoid __bzero reference.
9460
9461 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9464 version.
9465 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9466 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9467 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9468 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9469 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9470
9471 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9474 * grub-core/kern/misc.c: Likewise.
9475 * grub-core/loader/i386/xnu.c: Likewise.
9476 * include/grub/i386/tsc.h: Likewise.
9477 * include/grub/symbol.h: Likewise.
9478
9479 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9482 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9483 on older compiler.
9484
9485 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9488 Implement Apple flavour.
9489 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9490
9491 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9494 (memmove) [__APPLE__]: Likewise.
9495 (memcpy) [__APPLE__]: Likewise.
9496 (memset) [__APPLE__]: Likewise.
9497 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9498 (memmove) [__APPLE__]: Likewise.
9499 (memcpy) [__APPLE__]: Likewise.
9500 (memset) [__APPLE__]: Likewise.
9501
9502 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9505 dependency discard.
9506
9507 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/normal/main.c (read_config_file): Provide config_file and
9510 config_directory.
9511 * util/grub.d/41_custom.in: Use config_directoy when available.
9512
9513 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9516 (grub_bfs_dir): Likewise.
9517
9518 2012-05-27 Peter Jones <pjones@redhat.com>
9519
9520 The old code gives arguments to a printf function which can't work
9521 correctly, and the compiler complains.
9522
9523 * grub-core/tests/example_functional_test.c (example_test): Add
9524 missing text.
9525 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9526 * include/grub/test.h (grub_test_assert_helper): New declaration.
9527 (grub_test_assert): Use grub_test_assert_helper.
9528
9529 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9532 (exfctest): ... this to avoid overlong filenames.
9533 All users updated.
9534
9535 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9536
9537 Handle "." and ".." on squashfs.
9538
9539 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9540 Make inode numbers into stack.
9541 (grub_squash_read_symlink): Use stack.
9542 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9543 (make_root_node): Fill stack.
9544 (grub_squash_open): Use stack.
9545
9546 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9549 freeing.
9550
9551 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9554 stderr on test calls.
9555
9556 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9559
9560 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9563
9564 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9567 "..".
9568
9569 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9572 (grub_hfsplus_iterate_dir): Add "." and "..".
9573
9574 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9577 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9578
9579 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9582 (find_path): Handle "." and "..".
9583
9584 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9587 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9588 (grub_affs_iterate_dir): Handle hardlinks.
9589
9590 2012-05-26 Matthew Garrett <mjg@redhat.com>
9591
9592 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9593 (grub_efi_console_fini): Likewise.
9594 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9595 (grub_video_gop_fill_mode_info): Rename to ...
9596 (grub_video_gop_fill_real_mode_info): ... this.
9597 (grub_video_gop_fill_mode_info): New function.
9598 (grub_video_gop_setup): Setup double framebuffer.
9599 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9600 Free offscreen.
9601 (grub_video_gop_swap_buffers): Copy framebuffer.
9602 (grub_video_gop_fini): Free offscreen buffer.
9603 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9604 New enum.
9605 (grub_efi_gop_blt_pixel): New struct.
9606
9607 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * gentpl.py: Remove error disabling for objconv.
9610
9611 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9612
9613 * configure.ac: Remove -Wunitialized as it's not available on older
9614 compilers.
9615
9616 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 Fix extent overflow comparator.
9619
9620 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9621 (grub_hfsplus_read_block): Set type.
9622 (grub_hfsplus_cmp_extkey): Compare type.
9623
9624 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9627
9628 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9631 than 0.
9632
9633 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9636 (dejavu_bold_14.pf2): New target.
9637
9638 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * configure.ac: Fix djvu font detection.
9641
9642 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9645 ext* instead of ext2.
9646
9647 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9648
9649 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9650 name with \0.
9651
9652 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9653
9654 * docs/grub-dev.texi: Remove dot from .png.
9655
9656 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9657
9658 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9659 protective entry in any slot.
9660 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9661 if protective entry is found in any slot.
9662
9663 Protective entry in non-first slot make no sense but is a widespread
9664 brain damage.
9665
9666 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9669
9670 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9673 with old reiserfs.
9674 (grub_reiserfs_open): Don't free root.
9675
9676 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9679 after freeing for safety.
9680
9681 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9684 Reported by: Jordan Uggla.
9685
9686 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9687
9688 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9689 actual implementation. Specifically, clarify that the grub menu will
9690 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9691 passed.
9692
9693 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9694
9695 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9696 of r0.
9697
9698 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 Remove unjustified hard dependency of normal.mod on gfxterm.
9701
9702 * include/grub/term.h (grub_term_output): New member fullscreen.
9703 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9704 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9705 (grub_gfxterm): Set .fullscreen.
9706 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9707 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9708
9709 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9712 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9713 Mention case-insensitive AFFS, SFS and JFS.
9714
9715 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9718
9719 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9722 a bad FS.
9723
9724 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9727 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9728
9729 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9732 (grub_jfs_mount): Fill caseins.
9733 (grub_jfs_find_file): Respect caseins.
9734
9735 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9738 through UTF-16.
9739
9740 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9743 New argument origpath. All users updated.
9744
9745 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9748 (read_attr): Ensure that we read start of possibly compressed block.
9749
9750 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9753 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9754 All users updated.
9755
9756 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9759 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9760 (dejavu.pf2): Replace with ...
9761 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9762 this.
9763
9764 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 * util/grub.d/20_linux_xen.in: Add missing line.
9767
9768 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9769
9770 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9771 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9772 (grub_utf16_to_utf8): Likewise.
9773
9774 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9777 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9778 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9779 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9780 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9781 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9782
9783 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9786 a bad FS.
9787
9788 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/fs/udf.c (read_string): Bail out on size=0.
9791 (grub_udf_read_symlink): Handle read_string failure.
9792
9793 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
9796 comment.
9797
9798 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 Fix handling of UDF symlinks.
9801
9802 * grub-core/fs/udf.c (read_string): New argument outbuf.
9803 All users updated.
9804 (grub_ufs_read_symlink): Rename to ...
9805 (grub_udf_read_symlink): ... this. All users updated.
9806 Handle symlinks with more than one component.
9807
9808 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9811 symlinks. Replace leading colon with a slash.
9812
9813 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9816 filename.
9817
9818 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9821 match in inner node.
9822
9823 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9826 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9827 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9828 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9829 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9830 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9831 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9832 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9833 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9834
9835 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9836
9837 Use grub-probe and not cmp to check that disk is empty.
9838
9839 * util/grub-install.in: Use grub-probe for zero-check.
9840 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9841 (probe): Handle PRINT_ZERO_CHECK.
9842 (argp_parser): Handle -t zero_check.
9843
9844 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 Flush block cache on adding disk to device map.
9847
9848 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9849 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9850 adding.
9851 (read_device_map): Likewise.
9852 (open_device): Flush on opening.
9853
9854 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9857 (handle_symlink): Fix off-by-one error.
9858 Canonicalize the target.
9859 (grub_cpio_dir): Canonicalize the name.
9860 Fix memory leak.
9861 Set directory.
9862 (grub_cpio_open): Canonicalize the name.
9863
9864 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9867 handling.
9868
9869 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9872 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9873
9874 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9877 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
9878 All users updated.
9879
9880 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9883 counterpart.
9884
9885 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 Fix UFS1 big file support.
9888
9889 * grub-core/fs/ufs.c (INODE): Removed.
9890 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9891 64-bit.
9892 (INODE_MODE): Simplify.
9893 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9894 (grub_ufs_lookup_symlink): Don't use INODE.
9895
9896 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9899
9900 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9901 (grub_minix_data): Replace log_block_size with block_size.
9902 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9903 (grub_minix_mount): Fill block_size.
9904
9905 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * configure.ac: Bump to beta5.
9908
9909 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9910
9911 Fix wrapped HFS+ handling.
9912
9913 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9914 blocks_start. All users updated.
9915 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9916 wrapping offset.
9917 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9918
9919 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 Fix long symlinks on reiserfs.
9922
9923 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9924 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9925 (grub_reiserfs_iterate_dir): Save size for non-directories.
9926 (grub_reiserfs_open): Don't reread stat block as we already know the
9927 size.
9928 (grub_reiserfs_read): Split into...
9929 (grub_reiserfs_read_real): ... and ...
9930 (grub_reiserfs_read): ...this.
9931
9932 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 Fix non-indexed JFS.
9935
9936 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9937 (grub_jfs_data): New field namecomponentlen.
9938 (grub_jfs_mount): Fill namecomponentlen.
9939 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9940
9941 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9944 * tests/grub_script_echo1.in: Add tests.
9945
9946 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * util/grub-install.in: Ignore empty devicetree directory.
9949
9950 2012-05-08 Bean <bean123ch@gmail.com>
9951
9952 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9953 All users updated.
9954 (free_rsm): Free header as well.
9955 (free_old_fragments): Fix memory leak.
9956 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9957 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9958 (destroy_pq): Likewise.
9959 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9960
9961 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9964 resulting hash as a precaution.
9965
9966 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9969 '_' in variable names.
9970 * grub-core/net/net.c (grub_net_network_level_interface_register):
9971 Likewise.
9972
9973 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 Fix AFFS with non-512B blocks.
9976
9977 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9978 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9979 (grub_affs_data): Replace blocksize with log_blocksize.
9980 (grub_affs_read_block): Fix non-512B blocks.
9981 (grub_affs_read_symlink): Likewise.
9982 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9983 (grub_affs_read): Fix non-512B blocks.
9984 (grub_affs_label): Likewise.
9985 (grub_affs_mtime): Likewise.
9986 (grub_affs_mount): Fix block detection routine.
9987
9988 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 Add filesystem mtime to AFFS.
9991
9992 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9993 (aftime2ctime): New function.
9994 (grub_affs_dir): Use aftime2ctime.
9995 (grub_affs_label): Fix return value.
9996 (grub_affs_mtime): New function.
9997 (grub_affs_fs): Add mtime.
9998
9999 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10002 UTF-8.
10003
10004 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10005
10006 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10007 UTF-8.
10008
10009 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10012
10013 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10016 flags.
10017 (FLAGS_CASE_SENSITIVE): New enum value.
10018 (cache_entry): New struct.
10019 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10020 cache_size and cache.
10021 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10022 Add log_blocksize and fshelp_flags.
10023 (grub_sfs_read_extent): Handle non-512 blocks.
10024 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10025 (grub_sfs_read_file): Handle non-512 blocks.
10026 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10027 fshelp_flags.
10028 (grub_sfs_read_symlink): Handle non-512 blocks.
10029 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10030 (grub_sfs_dir): Free cache.
10031 (grub_sfs_close): Likewise.
10032
10033 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10036 filesystems.
10037
10038 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10041
10042 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10045
10046 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10049 (grub_sfs_read_extent): Likewise.
10050 (grub_sfs_read_block): Likewise.
10051 (grub_sfs_mount): Likewise.
10052 (grub_sfs_iterate_dir): Likewise.
10053 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10054 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10055
10056 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 Fix errors on compressed NTFS with 512B clusters.
10059
10060 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10061 types.
10062 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10063 not 0.
10064 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10065 Relax check for inline extents.
10066 (ntfscomp): Return correct -1 on error and not 0.
10067
10068 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * util/grub-install.in: Fix handling of prefix containing spaces.
10071
10072 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10075 (grub_squash_read_data): Fix offset byte-swapping.
10076
10077 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10080 per common usage and preffered in several parts of code.
10081 (grub_memcmp): Likewise.
10082 (grub_strncmp): Likewise.
10083 * include/grub/misc.h (grub_strcasecmp): Likewise.
10084 (grub_strncasecmp): Likewise.
10085 * Makefile.util.def (cmp_test): New test.
10086 (grub_script_strcmp): Likewise.
10087 * tests/cmp_unit_test.c: New file.
10088 * tests/grub_script_strcmp.in: Likewise.
10089 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10090
10091 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * include/grub/pci.h: Move enums into no-asm part.
10094
10095 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10098
10099 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10100
10101 * util/getroot.c (find_hurd_root_device): Try to make error message
10102 and comments to translators clearer.
10103
10104 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10107
10108 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10111 btrfs.
10112
10113 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * docs/grub.cfg: Update.
10116
10117 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * docs/grub.texi (PXE): Remove not present variables.
10120
10121 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * grub-core/net/net.c (defserver_set_env): New function.
10124 (defserver_get_env): Likewise.
10125 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10126
10127 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10128
10129 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10130 entries.
10131
10132 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10135 * grub-core/kern/emu/hostdisk.c: Likewise.
10136
10137 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10138
10139 Handle hurd userspace partitions.
10140
10141 * util/getroot.c (find_hurd_root_device): New function.
10142 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10143
10144 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10147 names.
10148 Reported by: Bastian Blank.
10149
10150 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10153 crossing page boundary.
10154
10155 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 Fix B-tree search in BFS, especially in presence of non-ASCII
10158 characters.
10159
10160 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10161 (find_in_b_tree): Use standard bsearch + btree algorithm.
10162
10163 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10166 and so on.
10167
10168 2012-05-03 Matthew Garrett <mjg@redhat.com>
10169 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 Suspend broadcom cards in order to stop their DMA.
10172
10173 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10174 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10175 (pci): Don't build on x86 EFI.
10176 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10177 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10178 New function.
10179 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10180 stop_broadcom if running on EFI.
10181 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10182 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10183 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10184 (grub_pci_find_capability): New proto.
10185
10186 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * docs/grub.texi: Remove dot from the extension as it apparently
10189 doesn't work with some makeinfo versions.
10190
10191 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10194 with GRUB expectance.
10195
10196 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10199
10200 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10203 zero after directory block since last entry may be not 0-terminated if
10204 it ends on block boundary. Use continue instead of if spanning whole
10205 loop.
10206
10207 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 Support 4K sectors UDF inline files.
10210
10211 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10212 (grub_udf_extended_file_entry): Likewise.
10213 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10214 All users updated.
10215 (get_fshelp_size): New function.
10216 (grub_udf_read_icb): Read whole block.
10217 (grub_udf_iterate_dir): Likewise.
10218 (grub_udf_dir): Likewise.
10219 (grub_udf_open): Likewise.
10220
10221 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10224
10225 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10228 inline symlinks in addition to workaround.
10229
10230 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10233
10234 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10237
10238 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10239
10240 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10241
10242 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 Fix reiserfs big seek times.
10245
10246 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10247 exact. All users updated.
10248 (grub_reiserfs_read): Use nearest btree search for seeking.
10249 Fix return value on error.
10250
10251 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10254 entries.
10255 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10256 * docs/grub.texi: Update menuentry description.
10257
10258 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10261 crash when embedding onto filesystem.
10262
10263 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10266 name.
10267
10268 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10271
10272 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10273
10274 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10275 commit.
10276
10277 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10278 2012-05-01 Bean <bean123ch@gmail.com>
10279
10280 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10281
10282 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10285 Special behaviour for len = 0 to read whole file isn't used anywhere and
10286 can cause buffer ovewrflows in several places.
10287
10288 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10291
10292 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 Handle RAIDZ on non-512B sectors.
10295
10296 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10297 max_children_ashift.
10298 (fill_vdev_info_real): Fill max_children_ashift.
10299 (read_device): Use max_children_ashift.
10300
10301 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10304
10305 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10306
10307 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10308 disk names.
10309 * docs/grub.texi: Update device.map parts.
10310
10311 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 Don't scan into non-diskfilter devices having diskfilter names.
10314
10315 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10316 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10317 handling.
10318 (scan_disk_hook): New function.
10319
10320 2012-04-29 Bean <bean123ch@gmail.com>
10321
10322 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10323 allocation.
10324
10325 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10326
10327 * configure.ac: Detect starfield theme font path
10328 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10329
10330 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10333 geometry on serial consoles.
10334
10335 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10338 because of network consoles.
10339
10340 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10343 handling.
10344
10345 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10348 falls on Q syndrom.
10349
10350 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10353 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10354
10355 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10358 Allocate at lest 8192 for temporary buffer as required for lzo.
10359
10360 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10363 to cluster_bits, since it's already added in.
10364 (grub_fat_read_data): Likewise.
10365
10366 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10369 as long as cluster size is multiple of 512 bytes.
10370
10371 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * util/grub-mkrescue.in: Fix locale directory.
10374
10375 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 * grub-core/kern/emu/hostdisk.c (map): Make static.
10378
10379 2012-04-23 Bean <bean123ch@gmail.com>
10380
10381 * util/grub-fstest.c (fstest): Add missing break.
10382
10383 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10384
10385 Fix hurd build.
10386
10387 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10388 not define nr variable.
10389 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10390 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10391 grub_find_device): Do not define.
10392
10393 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 Fix kfreebsd compile and behaviour.
10396
10397 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10398 format-security.
10399 * util/getroot.c: Fix wait.h include.
10400 (grub_guess_root_devices): Error if grub_find_device fails.
10401 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10402 (grub_util_get_dev_abstraction): Likewise.
10403 (grub_util_pull_device): Likewise.
10404 (grub_util_get_grub_dev): Likewise.
10405 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10406
10407 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 Fix and unify wholedisk detection.
10410
10411 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10412 is_part. All users updated.
10413 (device_is_wholedisk): Removed.
10414 (grub_util_biosdisk_get_grub_dev): Use is_part.
10415
10416 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10419 mode.
10420
10421 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 * configure.ac: Bump to beta4.
10424
10425 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10428 --fs-uuid --set UUID syntax.
10429
10430 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10433 disunification.
10434
10435 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10438
10439 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10440
10441 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10442
10443 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10444
10445 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10446
10447 2012-04-18 Bean <bean123ch@gmail.com>
10448
10449 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10450 place.
10451
10452 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10455 users updated.
10456 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10457 corresponding to GRUB partitions.
10458 (grub_util_biosdisk_write): Likewise.
10459
10460 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 Scan mdraid before LVM.
10463
10464 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10465 (grub_diskfilter_register_front): ... this.
10466 (grub_diskfilter_register_back): New function.
10467 All users of grub_diskfilter_register updated.
10468
10469 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 * util/grub-install.in: Fix an automatic target detection bug.
10472
10473 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 * util/grub-install.in: New option --efi-directory.
10476
10477 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10480 boot services if we have no other choice.
10481
10482 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10485 document it.
10486 * tests/util/grub-shell.in: Update to --directory.
10487
10488 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10491
10492 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10495 (grub_minix_read_file): Likewise.
10496 (grub_minix_read_inode): Likewise.
10497 (grub_minix_find_file): Likewise.
10498 (grub_minix_dir): Likewise.
10499
10500 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * util/grub-setup.c (setup): Fix partition handling and blocklist
10503 check.
10504
10505 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10508 redundant buggy overlap check.
10509
10510 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10513 and grub-mknetdir.
10514
10515 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10518 kh.loadflags on pre-2.00 kernels.
10519
10520 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 Terminate UNDI and PXE before launching the payload to avoid problems
10523 with DMA.
10524
10525 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10526 (grub_loader_flags): ... this. All users updated.
10527 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10528 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10529 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10530 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10531 function.
10532 (grub_pxe_restore): Likewise.
10533 (fini_hnd): New var.
10534 (GRUB_MOD_INIT): Register shutdown hook.
10535 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10536 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10537 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10538 (grub_loader_set): Rename second argument to flags.
10539
10540 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10541
10542 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10543 written bytes.
10544 (grub_get_num_of_utf8_bytes): New function.
10545 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10546 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10547 executing it.
10548 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10549 (grub_ucs4_to_utf8): Change return type.
10550
10551 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10554 warning.
10555 * grub-core/fs/bfs.c (hop_level): Likewise.
10556 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10557
10558 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 * grub-core/lib/adler32.c: Recode due to license unclearness.
10561
10562 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10565 (test_header): Likewise.
10566
10567 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 Fix --help formatting.
10570
10571 * util/grub-mkconfig_lib.in (print_option_help): New function.
10572 (grub_fmt): Likewise.
10573 * util/grub-install.in: Use print_option_help and grub_fmt.
10574 * util/grub-kbdcomp.in: Likewise.
10575 * util/grub-mkconfig.in: Likewise.
10576 * util/grub-mknetdir.in: Likewise.
10577 * util/grub-mkrescue.in: Likewise.
10578 * util/grub-mkstandalone.in: Likewise.
10579 * util/grub-reboot.in: Likewise.
10580 * util/grub-set-default.in: Likewise.
10581 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10582
10583 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * linguas.sh: Remove autogenerated *.po.
10586
10587 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * po/README: Move language fetcing to ...
10590 * linguas.sh: ... here.
10591 * po/README: Point to linguas.sh.
10592
10593 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 * po/README: Exclude ko.po due to disclaimer problems.
10596
10597 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10598
10599 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10600 len = 0.
10601 (grub_gettext_translate_real): Handle 0th string.
10602 (grub_gettext_translate): Ensure that "" isn't translated.
10603
10604 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10607 TRANSLATORS comment.
10608 (grub_diskfilter_print_partmap): Propagate changing of error into
10609 warning.
10610
10611 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10614 to uint64_t to prevent overflow.
10615 (grub_diskfilter_lv): Increase start_extent and extent_count
10616 to uint64_t to prevent overflow.
10617
10618 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 * configure.ac: Increase version.
10621
10622 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10625
10626 * po/Rules-translit: New file.
10627 * po/arabic.sed: Likewise.
10628 * po/cyrillic.sed: Likewise.
10629 * po/greek.sed: Likewise.
10630 * po/hebrew.sed: Likewise.
10631 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10632 * po/Makefile.in.in: Add extra_dist4.
10633
10634 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10637
10638 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10639 modify names. Introduce MODE_BIGENDIAN.
10640 * grub-core/fs/minix_be.c: New file.
10641 * grub-core/fs/minix2_be.c: Likewise
10642 * grub-core/fs/minix3_be.c: Likewise.
10643 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10644 minix3_be.
10645 * grub-core/Makefile.core.def (minix_be): New module.
10646 (minix2_be): Likewise.
10647 (minix3_be): Likewise.
10648
10649 2012-04-01 Felix <email@hamburg.de>
10650
10651 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10652 (devs): Add MBP 2011.
10653
10654 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10657
10658 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10659
10660 * grub-core/normal/cmdline.c (print_completion): New field
10661 prompt_len.
10662 (grub_cmdline_get): Handle width properly.
10663
10664 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10665
10666 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10667
10668 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10669
10670 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10671 after 29th of February.
10672
10673 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 Fix exfat endianness handling.
10676
10677 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10678 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10679 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10680 Byte-swap utf16 when necessary.
10681 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10682
10683 2012-03-31 Anton Blanchard <anton@samba.org>
10684 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 Fix btrfs endianness handling.
10687
10688 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10689 (lower_bound): Make root uint64_t. Use root in le.
10690 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10691 (find_path): Fix template key init.
10692 (grub_btrfs_dir): Fix mtime byteswap.
10693 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10694
10695 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10698 recursion_depth. Break infinite resursions. All users updated.
10699
10700 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10703 after free.
10704 Reported by: Peter Jones.
10705
10706 2012-03-31 Anton Blanchard <anton@samba.org>
10707
10708 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10709 8 bit values.
10710
10711 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 * util/grub-install.in: Fix nvram call for PreP.
10714
10715 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10718 the error when some elements are missing into a warning.
10719
10720 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10723
10724 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10725
10726 * docs/grub.texi (Invoking grub-probe): New section.
10727 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10728
10729 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10730
10731 Fix tab and wide character handling in editor and menu.
10732
10733 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10734 agglomerate control characters with combining marks.
10735 (bidi_line_wrap): Allow break on tab.
10736 (grub_unicode_get_comb_start): New function.
10737 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10738 and tab correctly.
10739 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10740 with a space.
10741 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10742 fixed_tab_size. All users updated.
10743 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10744 (grub_term_getcharwidth): Handle \t.
10745 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10746 and copy.
10747
10748 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 Handle big-endian mdraid.
10751
10752 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10753 * grub-core/Makefile.core.def (mdraid09_be): New module.
10754 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10755 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10756 * grub-core/disk/mdraid_linux_be.c: New file.
10757
10758 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10761
10762 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10765 missing quotes which caused confusion among translators.
10766
10767 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * util/grub-mkconfig_lib.in: Fix typo.
10770
10771 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10774 spaces.
10775 * tests/grub_script_leading_whitespace.in: New file.
10776 * Makefile.util.def (grub_script_leading_whitespace): New test.
10777
10778 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10781 to work.
10782
10783 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10786 starts with control character.
10787
10788 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
10791 overflow.
10792 (grub_gdb_outbuf): Likewise.
10793
10794 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
10797 zero terminator. Fixes a crash.
10798
10799 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10800
10801 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10802 beyond 4 GiB.
10803 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10804 images independently of preffered adderss field.
10805
10806 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10809 * grub-core/commands/regexp.c: Likewise.
10810 * grub-core/loader/i386/linux.c: Likewise.
10811 * grub-core/partmap/msdos.c: Likewise.
10812 * grub-core/script/execute.c: Likewise.
10813 * grub-core/term/gfxterm.c: Likewise.
10814
10815 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10816
10817 Add variable parsing in $"..." and fix several mismatches with bash.
10818
10819 * Makefile.util.def (grub_script_gettext): New test.
10820 * grub-core/script/execute.c (parse_string): New function.
10821 (gettext_append): Likewise.
10822 (grub_script_arglist_to_argv): Use gettext_append.
10823 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10824 * tests/grub_script_gettext.in: New file.
10825
10826 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 Fix handling of leading spaces in scripts.
10829
10830 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10831 spaces.
10832 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10833 other than skipping \r. All users updated.
10834 * tests/grub_script_echo1.in: Add space-related tests.
10835 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10836
10837 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10838
10839 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10840
10841 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 * configure.ac: Bump up the version to beta2.
10844
10845 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 Fix gettext reload bugs (e.g. inability to disable gettext
10848 once enabled).
10849
10850 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10851 main_context and secondary_context. All functions updated.
10852 (grub_gettext_translate): Rename to ...
10853 (grub_gettext_translate_real): ... this. Return NULL on failed
10854 translate.
10855 (grub_gettext_translate): Handle secondary context.
10856 (grub_gettext_delete_list): Close file and zero-out the context.
10857 (grub_mofile_open): Don't call grub_gettext_delete_list.
10858 Don't close file.
10859 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10860 if locale="" to avoid pointless error message.
10861 (grub_gettext_env_write_lang): Update lang even if load fails.
10862 Handle secondary context.
10863 (grub_gettext_reread_prefix): New function.
10864 (read_main): Likewise.
10865 (read_secondary): Likewise.
10866 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10867 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10868 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10869 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10870
10871 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * configure.ac: Decrease warning level to avoid spurious warnings and
10874 to be able to compile with GCC 4.2.
10875 * Makefile.util.def: Remove -Wno-error=logical-op.
10876
10877 2012-03-10 William Bittner <william.bittner@gmail.com>
10878
10879 * util/import_unicode.py: Add missing brackets around string for
10880 python 3 support.
10881
10882 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 Fix efi chainloader on network root.
10885
10886 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10887 network devices.
10888 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10889 New function.
10890
10891 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10894 unused show_text member.
10895 * docs/grub.texi: Document "text" property.
10896
10897 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10900 in dprintf.
10901
10902 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 Fix IMSM handling on Fedora.
10905
10906 * util/getroot.c (grub_util_is_imsm): New function.
10907 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10908
10909 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10910
10911 * Makefile.am: Strip gold section.
10912 * conf/Makefile.common: Likewise.
10913 * gentpl.py: Likewise.
10914 * grub-core/Makefile.core.def: Likewise.
10915 * grub-core/genmod.sh.in: Likewise.
10916
10917 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10920 * util/grub.d/20_linux_xen.in: Likewise.
10921 Based on Debian patch.
10922
10923 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * util/grub.d/10_linux.in: Fix syntax error resulting in
10926 Richard Laager's patch.
10927 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10928
10929 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10932 dependencies.
10933
10934 2012-03-10 Richard Laager <rlaager@wiktel.com>
10935
10936 * util/grub.d/10_linux.in: Fix ZFS root passing.
10937
10938 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10941 * grub-core/commands/xnu_uuid.c: Likewise.
10942 * grub-core/loader/efi/appleloader.c: Likewise.
10943 * grub-core/script/execute.c: Likewise.
10944 * grub-core/script/main.c: Likewise.
10945 * util/grub-mkfont.c: Likewise.
10946
10947 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10948
10949 * util/grub-mkfont.c (options): Use more appropriate "select" that
10950 "set" for face index.
10951
10952 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * util/grub-editenv.c (options): Gettextize command summaries.
10955
10956 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10959 "out of memory" error messagge.
10960
10961 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10962
10963 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10964 of diskfilter for diskfilter on diskfilter support.
10965
10966 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10967
10968 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10969
10970 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10971
10972 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10973 themes/starfield.
10974
10975 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10976
10977 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10978
10979 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10980
10981 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10982
10983 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10986 of error message.
10987
10988 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10989
10990 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10991
10992 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10995 message.
10996 * util/grub-install.in: Fix and gettextize error message.
10997
10998 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11001 Gettextize.
11002 * util/grub-mount.c (options): Likewise.
11003
11004 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11005
11006 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11007 gettextize.
11008 * grub-core/commands/search_wrap.c (options): Likewise.
11009
11010 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11013
11014 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11015
11016 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11017 size calculation.
11018 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11019 none is known.
11020
11021 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11022
11023 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11024 "temporary" since it's used in identifier and is limited in space.
11025
11026 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 * po/POTFILES.in: Regenerate. Include *.h since they contain
11029 translatable strings as well.
11030
11031 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11032
11033 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11034 byte-swap on big-endian.
11035 Reported by: Lennart Sorensen
11036
11037 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11040 (allocate_pages): Improve dprintf.
11041 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11042 code32_start. Fill code32_start and kernel_alignment in params.
11043 (grub_cmd_initrd): Use prot_init_space.
11044
11045 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11046
11047 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11048
11049 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * util/grub-install.in: Add missing dot at the end of sentence.
11052
11053 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11056 * grub-core/commands/videotest.c: Likewise.
11057 * grub-core/loader/i386/linux.c: Likewise.
11058
11059 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11062 sentence.
11063 Reported by: Milo Casagrande.
11064
11065 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11068 * grub-core/commands/gptsync.c: Likewise.
11069 * grub-core/commands/hashsum.c: Likewise.
11070 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11071 * grub-core/commands/legacycfg.c: Likewise.
11072 * grub-core/io/gzio.c: Likewise.
11073 * grub-core/net/net.c: Likewise.
11074 * grub-core/term/gfxterm.c: Likewise.
11075 * grub-core/term/terminfo.c: Likewise.
11076 * grub-core/tests/test_blockarg.c: Likewise.
11077 * grub-core/video/video.c: Likewise.
11078 * util/grub-install.in: Likewise.
11079 * util/grub-mkfont.c: Likewise.
11080
11081 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11082
11083 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11084
11085 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/commands/search_wrap.c (options): Fix a typo.
11088 Reported by: David Prévot.
11089
11090 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11093 description.
11094
11095 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 * util/grub-script-check.c (main): Fix a syntax error message which was
11098 unclear.
11099
11100 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11103
11104 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11107 messages.
11108
11109 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11112 without argument.
11113 * util/grub-mount.c (options): Likewise.
11114
11115 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11118
11119 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11120
11121 * grub-core/net/http.c: Add TRANSLATORS comments.
11122 * grub-core/normal/cmdline.c: Likewise.
11123 * grub-core/normal/misc.c: Likewise.
11124 * grub-core/partmap/msdos.c: Likewise.
11125 * grub-core/parttool/msdospart.c: Likewise.
11126 * grub-core/script/execute.c: Likewise.
11127 * grub-core/script/main.c: Likewise.
11128 * grub-core/term/terminfo.c: Likewise.
11129 * grub-core/video/bitmap.c: Likewise.
11130 * util/grub-install.in: Likewise.
11131 * util/grub-mkimage.c: Likewise.
11132 * util/grub-mklayout.c: Likewise.
11133 * util/grub-setup.c: Likewise.
11134
11135 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11138 with similar messages in grub-fstest.
11139
11140 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * util/grub-install.in: Unify "option requires an argument" message
11143 with similar messages in other files.
11144 * util/grub-mkconfig.in: Likewise.
11145
11146 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11147
11148 * util/grub-set-default.in: Replace printf with gettext_printf (the
11149 string in in question is already translated from grub-reboot)
11150
11151 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 * configure.ac: Bump up the version to beta1.
11154
11155 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11156
11157 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11158 case when min_align = 0.
11159
11160 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11163 and fix a case when line_start overflows.
11164
11165 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 * util/grub-reboot.in (usage): Mention id posibility.
11168 * util/grub-set-default.in (usage): Likewise.
11169
11170 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11173 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11174 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11175 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11176 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11177 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11178 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11179
11180 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * grub-core/commands/menuentry.c (options): Remove
11183 GRUB_ARG_OPTION_REPEATABLE.
11184 Reported by: Andreas Vogel
11185
11186 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11187
11188 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11189
11190 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11191
11192 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11193 error.
11194
11195 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 Use sort -V by the idea of Georgi Georgiev.
11198
11199 * util/grub-mkconfig_lib.in (version_sort): New function.
11200 (version_test_numeric): Use version_sort.
11201
11202 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 Use submenus in grub-mkconfig.
11205
11206 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11207 * util/grub-mkconfig_lib.in (grub_quote): New function.
11208 (gettext_printf): Use gettext and not gettext_quoted to fix several
11209 messages.
11210 * util/grub.d/10_hurd.in: Use submenus.
11211 * util/grub.d/10_kfreebsd.in: Likewise.
11212 * util/grub.d/10_linux.in: Likewise.
11213 * util/grub.d/10_netbsd.in: Likewise.
11214 * util/grub.d/20_linux_xen.in: Likewise.
11215 * util/grub.d/30_os-prober.in: Likewise.
11216 * util/grub.d/10_illumos.in: Add missing quoting.
11217 * util/grub.d/10_windows.in: Likewise.
11218
11219 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 Fix menu title instability bug.
11222
11223 * grub-core/commands/menuentry.c (options): New option --id.
11224 (grub_normal_add_menu_entry): New argument id. All users updated.
11225 (grub_cmd_menuentry): Handle --id.
11226 (grub_menu_init): Accept unknown arguments.
11227 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11228 feature_menuentry_options.
11229 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11230 saved_entry.
11231 (get_entry_number): Match with id as well.
11232 * include/grub/menu.h (grub_menu_entry): New member id.
11233 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11234 * util/grub.d/00_header.in: Define menuentry_id_option.
11235 * util/grub.d/10_hurd.in: Define id.
11236 * util/grub.d/10_illumos.in: Likewise.
11237 * util/grub.d/10_kfreebsd.in: Likewise.
11238 * util/grub.d/10_linux.in: Likewise.
11239 * util/grub.d/10_netbsd.in: Likewise.
11240 * util/grub.d/10_windows.in: Likewise.
11241 * util/grub.d/20_linux_xen.in: Likewise.
11242 * util/grub.d/30_os-prober.in: Likewise.
11243
11244 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11247 "scope" with "body".
11248
11249 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11250
11251 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11252 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11253 prot_size and prot_file_size.
11254
11255 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11256
11257 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11258 All users updated. If easily=1 require raid-5/-6 to be full.
11259 (is_node_readable): Likewise.
11260 (scan_devices): Scan incomplete but readable LVs at the end.
11261 (grub_diskfilter_memberlist): Pull missing devices.
11262 (insert_array): Skip scanning until device is complete or scan is
11263 done otherwise.
11264 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11265 check.
11266 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11267 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11268
11269 2012-03-03 Matthew Garrett <mjg@redhat.com>
11270 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 Avoid EFI boot services when loading Linux.
11273
11274 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11275 avoid_efi_bootservices. All users updated.
11276 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11277 argument avoid_efi_bootservices. All users updated.
11278 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11279 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11280 align, min_align, relocatable, prefered_address. All users updated.
11281 Allocate avoiding boot services if kernel is relocatable.
11282 (grub_cmd_linux): Check if kernel is relocatable.
11283 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11284 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11285 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11286 avoid_efi_boot_services.
11287 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11288 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11289 (linux_kernel_params): Likewise.
11290
11291 2012-03-03 Matthew Garrett <mjg@redhat.com>
11292 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 Use EDID on EFI.
11295
11296 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11297 datasize_out.
11298 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11299 modes. Set gop_handle.
11300 (grub_video_gop_get_edid): New function.
11301 (grub_gop_get_preferred_mode): Likewise.
11302 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11303 (grub_video_efi_gop_adapter): Set .get_edid.
11304 * include/grub/efi/edid.h: New file.
11305 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11306
11307 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 * util/grub-install.in: Load efivars unconditionally.
11310
11311 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 * po/Rules-piglatin: Change suffix from .po-update-en to
11314 .po-update-en-piglatin.
11315
11316 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 Add a pig farm.
11319
11320 * po/piglatin.sed: New file.
11321 * po/en@piglatin.header: Likewise.
11322 * po/Rules-piglatin: Likewise.
11323 * po/README: Add en@piglatin to autogenerated languages.
11324
11325 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11328 "Command for ...".
11329 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11330 "Check" since we don't check anything.
11331 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11332 is 64-bit one.
11333 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11334 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11335 (grub_md_sha512_real): Likewise.
11336
11337 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * grub-core/commands/gptsync.c: Fix typographic quoting.
11340 * grub-core/commands/ieee1275/suspend.c: Likewise.
11341 * grub-core/commands/parttool.c: Likewise.
11342 * grub-core/commands/search_wrap.c: Likewise.
11343 * grub-core/commands/videoinfo.c: Likewise.
11344 * grub-core/gfxmenu/gui_label.c: Likewise.
11345 * grub-core/hello/hello.c: Likewise.
11346 * grub-core/kern/emu/main.c: Likewise.
11347 * grub-core/net/net.c: Likewise.
11348 * grub-core/normal/menu.c: Likewise.
11349 * grub-core/normal/menu_text.c: Likewise.
11350 * grub-core/normal/misc.c: Likewise.
11351 * util/grub-editenv.c: Likewise.
11352 * util/grub-install.in: Likewise.
11353 * util/grub-kbdcomp.in: Likewise.
11354 * util/grub-mkconfig.in: Likewise.
11355 * util/grub-mknetdir.in: Likewise.
11356 * util/grub-mkrescue.in: Likewise.
11357 * util/grub-mkstandalone.in: Likewise.
11358 * util/grub-reboot.in: Likewise.
11359 * util/grub-set-default.in: Likewise.
11360 * util/grub-setup.c: Likewise.
11361 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11362
11363 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11366 * grub-core/commands/keystatus.c: Likewise.
11367 * grub-core/commands/loadenv.c: Likewise.
11368 * grub-core/commands/probe.c: Likewise.
11369 * grub-core/commands/regexp.c: Likewise.
11370 * grub-core/commands/true.c: Likewise.
11371 * grub-core/commands/videoinfo.c: Likewise.
11372 * grub-core/disk/cryptodisk.c: Likewise.
11373 * grub-core/disk/ldm.c: Likewise.
11374 * grub-core/disk/loopback.c: Likewise.
11375 * grub-core/disk/luks.c: Likewise.
11376 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11377 * grub-core/kern/disk.c: Likewise.
11378 * grub-core/kern/emu/hostdisk.c: Likewise.
11379
11380 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11383 * util/grub-install.in: Add missing quote in the comment.
11384
11385 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11388 * grub-core/commands/lsmmap.c: Likewise.
11389 * grub-core/commands/minicmd.c: Likewise.
11390 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11391 * grub-core/commands/regexp.c: Likewise.
11392 * grub-core/gdb/gdb.c: Likewise.
11393 * grub-core/term/gfxterm.c: Likewise.
11394 * util/grub-mkconfig.in: Likewise.
11395 * util/grub-mkfont.c: Likewise.
11396 * util/grub-mklayout.c: Likewise.
11397 * util/grub-mknetdir.in: Likewise.
11398 * util/grub-mkrescue.in: Likewise.
11399 * util/grub.d/30_os-prober.in: Likewise.
11400
11401 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11404 with "Direct color" and "Packed" with "Packed pixel".
11405 (grub_cmd_videoinfo): Simplify legend.
11406
11407 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11410 absolutely unclear error message.
11411
11412 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * util/grub-mkstandalone.in: Remove confusing leftover print.
11415
11416 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11419 comments.
11420 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11421 (GRUB_MOD_INIT): Likewise.
11422 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11423 VGA mode.
11424 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11425 comments.
11426 * util/grub-install.in (usage): Likewise.
11427 Spell ID in whole letters.
11428 Add missing ending dot.
11429 Quote variables.
11430 * util/grub-reboot.in: Fix capitalisation.
11431 * util/grub-set-default.in: Likewise.
11432
11433 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11436 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11437 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11438 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11439 Disable -Werror for -Wdeprecated-declarations.
11440 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11441 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11442 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11443 (grub_util_get_grub_dev): Make luks handling dependent on
11444 HAVE_DEVICE_MAPPER and not __linux__.
11445 (get_win32_path): Fix format security.
11446 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11447 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11448 Don't try grub_find_zpool_from_dir.
11449 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11450 #ifdef-out paresdir.
11451
11452 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * util/grub-pe2elf.c (usage): Add missing noreturn.
11455 (write_section_data): Rename name to shname to avoid shadowing.
11456 (write_symbol_table): Rename name to symname to avoid shadowing.
11457 Fix write_reloc_section call.
11458
11459 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11462 to ensure that it's after the last byte of .text.
11463
11464 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * util/ieee1275/ofpath.c (my_isdigit): New function.
11467 (trailing_digits): Use my_isdigit.
11468 (strip_trailing_digits): Likewise.
11469
11470 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11473 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11474
11475 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/kern/i386/pc/startup.S: Define __start.
11478
11479 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11482 strip already transforms he format.
11483
11484 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11487
11488 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 * util/grub-install.in: Add missing gettext init.
11491 * util/grub-kbdcomp.in: Likewise.
11492 * util/grub-mkconfig.in: Likewise.
11493 * util/grub-mknetdir.in: Likewise.
11494 * util/grub-mkrescue.in: Likewise.
11495 * util/grub-mkstandalone.in: Likewise.
11496 * util/grub-reboot.in: Likewise.
11497 * util/grub-set-default.in: Likewise.
11498 * util/grub.d/00_header.in: Likewise.
11499 * util/grub.d/10_hurd.in: Likewise.
11500 * util/grub.d/10_windows.in: Likewise.
11501 * util/grub.d/30_os-prober.in: Likewise.
11502 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11503
11504 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11505
11506 * po/Rules-swiss: Fix header comment.
11507
11508 2012-02-29 Andreas Vogel <anvoit>
11509
11510 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11511 resulted in leak of arguments.
11512
11513 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11516 reed_solomon_size const definition instead of computing it since
11517 Apple assembler doesn't support the later.
11518
11519 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * gentpl.py (kernel): Rewrite Apple part.
11522
11523 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11526
11527 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11530 ELF section gap.
11531 (load_image): Likewise.
11532
11533 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 * configure.ac: Fix a typo in previous commit.
11536
11537 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 Don't add -Wl,-N on Apple platform.
11540
11541 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11542 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11543
11544 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * grub-core/Makefile.core.def (lzma_decompress): Use
11547 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11548
11549 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 * grub-core/genmod.sh.in: Rewrite the Apple part.
11552
11553 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11554
11555 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11556 comparison.
11557
11558 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * acinclude.m4 (grub_CHECK_PIC): New test.
11561 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11562
11563 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11566 to avoid the warning.
11567
11568 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11571 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11572 after. All users updated.
11573
11574 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 Use the common size routine in hostfs so we can read disks as well.
11577
11578 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11579 (grub_util_get_fd_size): ... this. Return size in bytes.
11580 All users updated.
11581 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11582 grub_util_get_fd_size.
11583
11584 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11587 Add blocksize retrieval.
11588
11589 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * configure.ac: Restore CFLAGS after efiemu check.
11592
11593 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11596 Apple bug.
11597
11598 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11599
11600 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11601
11602 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11605 (grub_cmd_halt): Likewise.
11606
11607 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11610 for local arithmetics.
11611 Break %sp init into 2 instructions.
11612 Add 0 byte at the end.
11613
11614 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11617 before loops.
11618
11619 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11622 for context.
11623
11624 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11625
11626 * grub-core/disk/ldm.c (make_vg): Init part.name.
11627 (grub_ldm_detect): Silence spurious warning.
11628 (grub_util_is_ldm): Likewise.
11629
11630 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11633 sane value to avoid a spurious warning.
11634
11635 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11638 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11639
11640 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11643 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11644
11645 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11646
11647 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11648 hardcoding the relevant info.
11649
11650 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11651
11652 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11653 missing const qualifiers.
11654 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11655
11656 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * util/getroot.c [__APPLE__]: Add missing includes.
11659 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11660
11661 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11664
11665 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11668 avoid conflicts.
11669
11670 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11673
11674 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11677 and grub_file_close call.
11678
11679 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11680
11681 Add LZSS Mach-O support (needed for new xnu kernelcache).
11682
11683 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11684 * grub-core/loader/lzss.c: New file.
11685 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11686 on Mach-O open failure.
11687 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11688 Don't free cmdsXX in uncompressedXX is set.
11689 (grub_macho_file): Init new fields.
11690 New argument is_64bit. All users updated.
11691 Handle compressed. Error out if no suitable architecture is found.
11692 Don't close file.
11693 (grub_macho_open): New argument is_64bit. All users updated.
11694 * grub-core/loader/macho32.c: Add defines for new fields.
11695 * grub-core/loader/macho64.c: Likewise.
11696 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11697 (grub_macho_parse): Handle compressed.
11698 Defer actual processing if compressed.
11699 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11700 "filename". All users updated.
11701 (grub_macho_size): New argument "filename". All users updated.
11702 (grub_macho_get_entry_point): Likewise.
11703 (grub_macho_load): Handle compressed.
11704 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11705 (GRUB_MACHO_LZSS_OFFSET): New define.
11706 (grub_decompress_lzss): New proto.
11707 * include/grub/machoload.h (grub_macho_file): New fields to handle
11708 compressed.
11709 (grub_macho_contains_macho64): Remove proto.
11710 (grub_macho_contains_macho32): Likewise.
11711 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11712
11713 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11714
11715 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11716
11717 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11718
11719 Fix make dist.
11720
11721 * Makefile.am (starfield_theme_files): New var.
11722 (starfield_DATA): Use starfield_theme_files.
11723 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11724 Add bootcheck-related files.
11725 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11726 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11727 and font_char_metrics.txt.
11728 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11729 (setjmp): Add lib/ia64/longjmp.S.
11730 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11731 * po/POTFILES.in: Regenerate.
11732 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11733 DISTFILES.common.extra1.
11734 * util/devicemap.c: Removed.
11735 * grub-core/lib/i386/relocator_backward.S: Likewise.
11736 * util/import_gcry.py: Remove unused files. Add extra_dist for
11737 ChangeLog.
11738
11739 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11740
11741 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11742 grub_gettext_delete_list before changing grub_gettext_max to avoid
11743 running out of array bounds.
11744
11745 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11748 grub_vga_text_init/grub_vga_text_fini.
11749
11750 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11751
11752 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11753
11754 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11755
11756 * configure.ac: Bump to 2.00~beta0.
11757
11758 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11761 missing initialisation.
11762
11763 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11766
11767 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 Support v2 xnu boot arguments.
11770
11771 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11772 New argument fsbfreq_out.
11773 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11774 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11775 be used.
11776 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11777 darwin_version.
11778 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11779 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11780 (grub_xnu_boot_params): Rename to ...
11781 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11782 (grub_xnu_boot_params_v2): New struct.
11783
11784 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11787 zeroing of CRC field before computing CRC.
11788
11789 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11790
11791 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
11792 Change order of allocations to decrease fragmentation.
11793
11794 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
11797
11798 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11799
11800 Use write-combining MTRR to speed up video with buggy BIOSes.
11801
11802 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11803 (cpuid): New define.
11804 (rdmsr): Likewise.
11805 (wrmsr): Likewise.
11806 (mtrr_base): Likewise.
11807 (mtrr_mask): Likewise.
11808 (grub_vbe_enable_mtrr_entry): New function.
11809 (grub_vbe_enable_mtrr): Likewise.
11810 (grub_vbe_disable_mtrr): Likewise.
11811 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11812 control off to BIOS.
11813 (grub_video_vbe_init): Fill mtrr.
11814 (grub_video_vbe_fini): Disable mtrr.
11815 (grub_video_vbe_get_info_and_fini): Likewise.
11816 (grub_video_vbe_setup): Enable mtrr.
11817
11818 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11819
11820 * include/grub/partition.h (grub_partition_map): Change prototype of
11821 embed to take a maximum value for nsectors.
11822 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11823 * include/grub/fs.h (grub_fs): Likewise.
11824 * grub-core/partmap/msdos.c (embed_signatures): New array.
11825 (pc_partition_map_embed): Check for and avoid sectors matching any
11826 of the signatures in embed_signatures, up to max_nsectors.
11827 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11828 returned sector map to max_nsectors.
11829 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11830 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11831 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11832 * util/grub-setup.c (setup): Allow for the embedding area being
11833 split into multiple blocklists. Tell dest_partmap->embed the
11834 maximum number of sectors we care about.
11835
11836 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11839 Specify blocklist_install and reserver_first_sector for all fs.
11840 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11841 blocklists.
11842
11843 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11844
11845 * util/grub-install.in: Clarify strings.
11846 Fix source dir check.
11847
11848 2012-02-27 Richard Laager <rlaager@wiktel.com>
11849
11850 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11851 "zfs" and "fuse.zfs" as synonyms.
11852
11853 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * configure.ac: Put platform and target_cpu substitutions back since
11856 they are used for directories.
11857
11858 2012-02-27 Richard Laager <rlaager@wiktel.com>
11859 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11862 * util/grub.d/20_linux_xen.in: Likewise.
11863
11864 2012-02-27 Richard Laager <rlaager@wiktel.com>
11865
11866 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11867 with full paths.
11868
11869 2012-02-27 Richard Laager <rlaager@wiktel.com>
11870
11871 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11872 unescape.
11873
11874 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 Don't use insecure popen in getroot.
11877
11878 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11879 (exec_pipe): ... here.
11880 (find_root_devices_from_poolname): Use exec_pipe.
11881
11882 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 Remove platform and target_cpu replacement.
11885
11886 * configure.ac: Remove platform and target_cpu substitutions.
11887 * tests/util/grub-shell.in: Use modinfo.
11888 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11889 explicitly.
11890
11891 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11892
11893 Autodetect platform in grub-install but allow override.
11894
11895 * util/grub-install.in: Autodetect platform. Support --target and
11896 --directory. Read platform from modinfo.sh.
11897
11898 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 Support btrfs multi-volume probe.
11901
11902 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11903 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11904 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11905 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11906 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11907 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11908 grub_find_root_devices_from_btrfs if on btrfs.
11909
11910 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11911
11912 Remove any awareness of *.c util files about target.
11913
11914 * Makefile.util.def (grub-setup): Split to ...
11915 (grub-bios-setup): ... and this.
11916 (grub-sparc64-setup): ... and this.
11917 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11918 * docs/man/grub-setup.h2m: Split into ...
11919 * docs/man/grub-sparc64-setup.h2m: ... this.
11920 * docs/man/grub-bios-setup.h2m: ... and this.
11921 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11922 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11923 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11924 (grub_target_addr_t): Remove.
11925 (grub_target_size_t): Remove.
11926 (grub_target_ssize_t): Remove.
11927 * util/grub-install.in: Use new grub-*-setup.
11928 * util/grub-mkimagexx.c (Elf_Word): New define.
11929 (Elf_Half): Likewise.
11930 (Elf_Section): Likewise.
11931 (ELF_ST_TYPE): Likewise.
11932 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11933 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11934
11935 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 Replace grub_target_addr with more appropriate types.
11938
11939 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11940 grub_target_addr with grub_addr.
11941 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11942 grub_target_addr with grub_port.
11943 (grub_cmd_write): Likewise.
11944 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11945 grub_target_addr with grub_addr.
11946 (grub_cmd_write): Likewise.
11947 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11948
11949 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11952 const qualifier for vendor_guid.
11953
11954 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11957 const qualifier.
11958 (efiemu_memequal): Likewise.
11959 (find_variable): Likewise.
11960
11961 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11962
11963 Fix missing console prototype on qemu-mips.
11964
11965 * include/grub/mips/qemu_mips/console.h: New file.
11966
11967 2012-02-27 Matthew Garrett <mjg@redhat.com>
11968 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11971 * include/grub/efi/efi.h: Likewise.
11972 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11973 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11974 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11975 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11976 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11977 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11978
11979 2012-02-27 Matthew Garrett <mjg@redhat.com>
11980
11981 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11982
11983 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11986 error.
11987
11988 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * configure.ac: Remove inappropriate use of program_transform_name
11991 on grubdir and bootdir but allow explicit specification of those
11992 variables.
11993
11994 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11995
11996 * util/grub-mknetdir.in (grub_prefix): Removed.
11997 (subdir): Use @bootdirname@ and @grubdirname@.
11998
11999 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12002
12003 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * po/POTFILES.in: Regenerated.
12006
12007 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 Remove improper use of program_transform_name on pkglibrootdir.
12010
12011 * configure.ac (pkglibrootdir): Removed.
12012 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12013 * util/grub-mkimage.c: Likewise.
12014
12015 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12018 warning.
12019
12020 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * util/grub-install.in: Use file identifier if no UUID is available
12023 or user explicitly prompted for it.
12024
12025 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12026
12027 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12028 (freebsd_get_zfs): New function.
12029 (grub_freebsd_boot): Pass zfs UUID.
12030 (grub_cmd_freebsd): Set zfs UUID.
12031
12032 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12035 pkglibrootdir.
12036
12037 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12038
12039 Add configure flag to control libzfs integration.
12040
12041 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12042
12043 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12046 device.
12047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12048 small devices.
12049
12050 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12053 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12054 be used on non-modules.
12055
12056 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12057 Rename to grub_boot_init.
12058 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12059 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12060 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12061 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12062 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12063 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12064 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12065 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12066 includes.
12067 (grub_machine_init): Remove empty inits.
12068 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12069 includes.
12070 (grub_machine_init): Remove empty inits.
12071 * grub-core/term/arc/console.c: Remove explicit proto.
12072 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12073 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12074 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12075 grub_at_keyboard_fini.
12076 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12077 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12078 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12079 grub_gfxterm_fini.
12080 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12081 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12082 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12083 grub_vgatext_fini.
12084 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12085 * grub-core/term/serial.c (GRUB_MOD_INIT)
12086 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12087 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12088 grub_serial_fini.
12089 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12090 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12091 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12092 grub_terminfo_fini.
12093 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12094 (GRUB_MOD_FINI): Likewise.
12095 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12096 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12097 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12098 grub_video_radeon_fuloong2e_fini.
12099 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12100 [LOONGSON]: Rename to grub_video_sis315pro_init.
12101 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12102 grub_video_sis315pro_fini.
12103 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12104 [LOONGSON]: Rename to grub_video_sm712_init.
12105 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12106 grub_video_sm712_fini.
12107 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12108 (grub_at_keyboard_fini): Likewise.
12109 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12110 Don't declare grub_{modname}_init.
12111 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12112 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12113 New proto.
12114 (grub_keylayouts_fini) [!EMU]: Likewise.
12115 * include/grub/serial.h (grub_serial_init) [!EMU]:
12116 New proto.
12117 (grub_serial_fini) [!EMU]: Likewise.
12118 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12119 New proto.
12120 (grub_terminfo_fini) [!EMU]: Likewise.
12121 * include/grub/video.h (grub_font_init) [!EMU]:
12122 New proto.
12123 (grub_font_fini) [!EMU]: Likewise.
12124 (grub_gfxterm_init) [!EMU]: Likewise.
12125 (grub_gfxterm_fini) [!EMU]: Likewise.
12126 (grub_video_sm712_init) [!EMU]: Likewise.
12127 (grub_video_sm712_fini) [!EMU]: Likewise.
12128 (grub_video_sis315pro_init) [!EMU]: Likewise.
12129 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12130 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12131 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12132
12133 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 Make nand a prefix for nand devices.
12136
12137 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12138
12139 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12142 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12143
12144 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * include/grub/env.h (grub_env_find): Remove prototype.
12147 * grub-core/kern/env.c (grub_env_find): Make static.
12148 (grub_env_set): Remove useless set.
12149
12150 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/kern/i386/realmode.S: Remove useless align.
12153
12154 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12155
12156 * include/grub/dl.h (grub_dl_load_file): Don't export.
12157
12158 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12161 grub_dprintf.
12162
12163 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12164
12165 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12166 grub_errors.
12167 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12168 not reloading whole superblock but only the part which is really needed.
12169 Remove useless grub_errors.
12170 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12171 grub_errors.
12172
12173 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 Don't export grub_get_rtc.
12176
12177 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12178 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12179
12180 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12181
12182 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12183
12184 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12187 argument since it can be deduced from diskfilter. All users updated.
12188
12189 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 Remove prio_list.
12192
12193 * include/grub/list.h (grub_prio_list): Removed.
12194 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12195 GRUB_COMMAND_PRIO_MASK.
12196 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12197 GRUB_COMMAND_FLAG_ACTIVE.
12198 (grub_prio_list_insert): Removed.
12199 (grub_prio_list_remove): Likewise.
12200 (GRUB_AS_PRIO_LIST): Likewise.
12201 (GRUB_AS_PRIO_LIST_P): Likewise.
12202 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12203 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12204 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12205 * grub-core/kern/command.c (grub_register_command_prio): Inline
12206 the prio_list code.
12207 (grub_unregister_command): Likewise.
12208
12209 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12210
12211 Fix interrupt mixup from previous commit.
12212
12213 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12214 (grub_realidt): New var.
12215 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12216 Load idt.
12217 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12218 New declaration.
12219 (grub_relocator16_boot): Set grub_relocator16_idt.
12220 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12221 (LOCAL(realidt)): ... this.
12222 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12223 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12224 (grub_realidt): New variable.
12225
12226 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12229 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12230 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12231 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12232 Gettextize.
12233 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12234 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12235 * po/POTFILES.in: Regenerate.
12236
12237 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12240 errors.
12241
12242 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12243
12244 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12245 \0.
12246 (add_length): Likewise.
12247
12248 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12249 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12250
12251 GDB serial and backtrace support.
12252
12253 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12254 (prot_to_real): Likewise.
12255 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12256 * grub-core/Makefile.core.def (backtrace): New module.
12257 (gdb): Likewise.
12258 * grub-core/gdb/cstub.c: New file.
12259 * grub-core/gdb/gdb.c: Likewise.
12260 * grub-core/gdb/i386/idt.c: Likewise.
12261 * grub-core/gdb/i386/machdep.S: Likewise.
12262 * grub-core/gdb/i386/signal.c: Likewise.
12263 * grub-core/lib/i386/backtrace.c: Likewise.
12264 * grub-core/lib/backtrace.c: Likewise.
12265 * include/grub/backtrace.h: Likewise.
12266 * include/grub/gdb.h: Likewise.
12267 * include/grub/i386/gdb.h: Likewise.
12268
12269 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12272 New function.
12273 (add_length): Likewise.
12274 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12275 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12276 proto.
12277 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12278 __argp_get_display_len.
12279
12280 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12281
12282 $"..." support in scripts.
12283
12284 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12285 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12286 * grub-core/script/yylex.l: Likewise.
12287 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12288 value.
12289
12290 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 * gentpl.py: Remove obsolete pkglib_DATA handling.
12293
12294 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12297 mailing list.
12298
12299 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12300 * util/grub-kbdcomp.in: Likewise.
12301 * util/grub-mkconfig.in: Likewise.
12302 * util/grub-mkconfig_lib.in: Likewise.
12303 * util/grub-mknetdir.in: Likewise.
12304 * util/grub-mkrescue.in: Likewise.
12305 * util/grub-mkstandalone.in: Likewise.
12306 * util/grub-reboot.in: Likewise.
12307 * util/grub-set-default.in: Likewise.
12308 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12309
12310 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 Remove GRUB_PREFIX.
12313
12314 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12315 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12316 used for backward compatibility.
12317
12318 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12319
12320 Add new all_video module.
12321
12322 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12323 * grub-core/Makefile.core.def (all_video): New module.
12324 * grub-core/genmoddep.awk: Generate dependency of all_video from
12325 video.lst.
12326 * grub-core/lib/fake_module.c: New file.
12327 * grub-core/normal/main.c (features): Add feature_all_video_module.
12328 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12329 don't do explicit search again.
12330 insmod all_video in load_video if available.
12331
12332 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 Another round of string clarification and adding TRANSLATORS comments.
12335
12336 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12339
12340 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12343 to grub_ssize_t.
12344 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12345 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12346
12347 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12348
12349 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12350 trailing newline implicitly. All users updated.
12351
12352 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 Implement serial on IEEE1275 and EFI.
12355
12356 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12357 on emu. Mention arc and emu as the only platforms without serial
12358 support.
12359 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12360 ieee1275 platforms.
12361 * grub-core/term/efi/serial.c: New file.
12362 * grub-core/term/ieee1275/serial.c: Likewise.
12363 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12364 specification if no ns8250 driver is available.
12365 (grub_cmd_serial): Likewise.
12366 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12367 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12368 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12369 (grub_efi_parity_type_t): New type.
12370 (grub_efi_stop_bits_t): Likewise.
12371 (grub_efi_serial_io_interface): New struct.
12372 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12373 available for all interfaces.
12374 Add EFI and IEEE1275 fields.
12375 (grub_ofserial_init): New proto.
12376 (grub_efiserial_init): Likeiwse.
12377 * util/grub.d/00_header.in: Don't check for the presence of serial
12378 module.
12379
12380 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12383 name as if it was an alias.
12384
12385 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12386
12387 * grub-core/commands/lsacpi.c (options): Fix typo.
12388
12389 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 Convert grub-emu to argp.
12392
12393 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12394 emu.
12395 * util/argp_common.c: Rename to ...
12396 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12397 Add missing includes.
12398 * grub-core/kern/emu/main.c: Convert to argp.
12399 * po/POTFILES.in: Regenerate.
12400 * util/grub-install.in (usage): Make first letter lowcase in messages
12401 for uniformity.
12402 * util/grub-setup.c (options): Likewise.
12403
12404 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12405
12406 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12407 Put back accidently commented-out code.
12408
12409 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12412 loop check using Brent algorithm.
12413 (grub_hfsplus_btree_search): Likewise.
12414
12415 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * util/grub-install.in: Fix usage of wrong device for PreP install.
12418
12419 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12420
12421 * conf/Makefile.common (CFLAGS_GNULIB): Add
12422 -Wno-unsafe-loop-optimizations.
12423 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12424 on tools.
12425 * grub-core/commands/legacycfg.c: Add pragma to skip
12426 -Wunsafe-loop-optimizations.
12427 (check_password_md5_real): Fix loop counter type.
12428 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12429 reading.
12430 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12431 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12432 loop condition.
12433 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12434 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12435 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12436 condition.
12437 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12438 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12439 avoid possible infinite loops.
12440 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12441 and -Wunsafe-loop-optimizations.
12442 * grub-core/script/yylex.l: Likewise.
12443 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12444 (print_glyphs): Avoid infinite loops.
12445 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12446
12447 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12448
12449 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12450 to avoid infinite loop.
12451 (disp_acpi_rsdt_table): Likewise.
12452
12453 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 * grub-core/font/font.c (grub_font_load): Add support for default
12456 path for fonts ($prefix/fonts).
12457 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12458 for checking if string is a path.
12459 * grub-core/normal/main.c (features): Add feature_default_font_path.
12460 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12461 * util/grub.d/00_header.in: Use default directory if possible.
12462 * util/grub-install.in: Install unicode.pf2.
12463
12464 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12465
12466 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12467 * po/Rules-swiss: New file.
12468 * po/swiss.sed: Likewise.
12469
12470 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12471
12472 * grub-core/fs/btrfs.c (find_device): Fix typos.
12473 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12474 * util/grub-mkrelpath.c (argp_parser): Likewise.
12475 Reported by: Yuri Chornoivan.
12476
12477 2012-02-23 Dalet Omega <daletomega@gmail.com>
12478
12479 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12480 for usual informative messages.
12481
12482 2012-02-23 Dalet Omega <daletomega@gmail.com>
12483
12484 Starfield theme.
12485
12486 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12487 * conf/Makefile.common: Define starfielddir.
12488 * configure.ac: Configure starfield.
12489 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12490 * themes/starfield/README: Likewise.
12491 * themes/starfield/blob_w.png: Likewise.
12492 * themes/starfield/boot_menu_c.png: Likewise.
12493 * themes/starfield/boot_menu_e.png: Likewise.
12494 * themes/starfield/boot_menu_n.png: Likewise.
12495 * themes/starfield/boot_menu_ne.png: Likewise.
12496 * themes/starfield/boot_menu_nw.png: Likewise.
12497 * themes/starfield/boot_menu_s.png: Likewise.
12498 * themes/starfield/boot_menu_se.png: Likewise.
12499 * themes/starfield/boot_menu_sw.png: Likewise.
12500 * themes/starfield/boot_menu_w.png: Likewise.
12501 * themes/starfield/slider_c.png: Likewise.
12502 * themes/starfield/slider_n.png: Likewise.
12503 * themes/starfield/slider_s.png: Likewise.
12504 * themes/starfield/src/blob_nw.xcf: Likewise.
12505 * themes/starfield/src/bootmenu/: Likewise.
12506 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12507 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12508 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12509 * themes/starfield/src/slider_c.xcf: Likewise.
12510 * themes/starfield/src/slider_n.xcf: Likewise.
12511 * themes/starfield/src/slider_s.xcf: Likewise.
12512 * themes/starfield/src/terminalbox/: Likewise.
12513 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12514 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12515 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12516 * themes/starfield/starfield.png: Likewise.
12517 * themes/starfield/terminal_box_c.png: Likewise.
12518 * themes/starfield/terminal_box_e.png: Likewise.
12519 * themes/starfield/terminal_box_n.png: Likewise.
12520 * themes/starfield/terminal_box_ne.png: Likewise.
12521 * themes/starfield/terminal_box_nw.png: Likewise.
12522 * themes/starfield/terminal_box_s.png: Likewise.
12523 * themes/starfield/terminal_box_se.png: Likewise.
12524 * themes/starfield/terminal_box_sw.png: Likewise.
12525 * themes/starfield/terminal_box_w.png: Likewise.
12526 * themes/starfield/theme.txt: Likewise.
12527
12528 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12529
12530 * util/grub.d/00_header.in: Add missing export theme.
12531
12532 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12533
12534 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12535 already included.
12536 Reported by: Eren D.
12537
12538 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 * conf/Makefile.common (grubdatadir): Removed.
12541 (Makefile.am): Move eveything grubdata to pkgdata.
12542
12543 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 * grub-core/commands/acpihalt.c (get_sleep_type):
12546 Remove unused variable.
12547
12548 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12549
12550 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12551 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12552 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12553 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12554 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12555 i18n with gettext no-op.
12556 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12557 GRUB_ACPI_OPCODE_STRING_CONST.
12558 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12559 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12560
12561 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 * po/POTFILES.in: Regenerate.
12564
12565 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12566
12567 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12568 -Wno-error=missing-noreturn.
12569
12570 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12573 condition to avoid possibly infinite loops.
12574 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12575 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12576
12577 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12578
12579 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12580 condition to avoid possibly infinite loops.
12581
12582 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12585 on show_error.
12586
12587 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12590
12591 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12594
12595 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * util/bin2h.c (usage): Add missing attribute noreturn.
12598
12599 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12602 if the size isn't divisible by 512.
12603
12604 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 Make list_push and list_remove functions rather than inline functions
12607 to decrease size and avoid aliasing violations.
12608
12609 * include/grub/list.h (grub_list_push): Move to ...
12610 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12611 * include/grub/list.h (grub_list_remove): Move to ...
12612 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12613
12614 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12617 and -Wunused-result.
12618
12619 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12622 Reported by: Seth Goldberg
12623
12624 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12627
12628 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12629
12630 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12631 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12632 command line.
12633 * docs/grub.texi (Simple configuration): Document
12634 GRUB_CMDLINE_GNUMACH.
12635
12636 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * conf/Makefile.common (platform_SCRIPTS): New variable.
12639 (platform_PROGRAMS): Likewise.
12640 * gentpl.py: Mark *,module and *.image for install.
12641 * grub-core/gdb_grub.in: Add a notice of expected environment.
12642 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12643 (gmodule.pl): Likewise.
12644
12645 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 Replace grub_checkkey with grub_getkey_noblock.
12648
12649 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12650 (grub_getkey_noblock): ... this. All users updated.
12651
12652 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * grub-core/kern/emu/console.c: Move to ...
12655 * grub-core/term/emu/console.c: ...here.
12656 (grub_ncurses_getkey): Fix return value if no key is detected.
12657
12658 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12661 (grub_unit_test_fini): Likewise.
12662 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12663
12664 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12665
12666 * include/grub/test.h (GRUB_UNIT_TEST)
12667
12668 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12671 Better error handling.
12672 (grub_script_return): Likewise.
12673 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12674
12675 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12676
12677 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12678 rimplicit redifinition.
12679
12680 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12683 GRUB.
12684
12685 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12688 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12689 prompt here.
12690
12691 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12694 as GRUB_ERR_BUG. Don't malloc if no device is available.
12695
12696 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12699 Mark calling with invalid term as GRUB_ERR_BUG.
12700
12701 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12702
12703 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12704 packets rather than raising an error.
12705
12706 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12707
12708 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12709 in if.
12710
12711 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12712
12713 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12714 diagnostic to dprintf.
12715 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12716
12717 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12720 device name.
12721
12722 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12725 (grub_ntfs_iterate_dir): Likewise.
12726
12727 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 Efiemu stylistic fixes and gettext.
12730
12731 * grub-core/efiemu/i386/loadcore32.c
12732 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12733 * grub-core/efiemu/i386/loadcore64.c
12734 (grub_arch_efiemu_relocate_symbols64): Likewise.
12735 * grub-core/efiemu/i386/pc/cfgtables.c
12736 (grub_machine_efiemu_init_tables): Likewise.
12737 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12738 (grub_efiemu_loadcore_initXX): Add a filename argument.
12739 All users updated.
12740 Improved error message.
12741 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12742 Add a filename argument.
12743 All users updated.
12744 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12745 Reclassify double relocation as GRUB_ERR_BUG.
12746
12747 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12748
12749 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12750 handling.
12751
12752 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12753
12754 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12755 on partition.
12756
12757 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12758
12759 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12760
12761 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 Improve string. Gettextize.
12764
12765 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12766
12767 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12768 utils.
12769 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12770
12771 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12772
12773 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12774 [GRUB_UTIL]: New function.
12775 (insert_array) [GRUB_UTIL]: Store partmaps.
12776 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12777 partmaps.
12778 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12779 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12780 (probe_abstraction): Print diskfilter and not raid.
12781 Reported by: Lennart Sorensen
12782
12783 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12786 * util/grub-mkimagexx.c (MASK3): New define.
12787 (add_value_to_slot_20b): Use MASK3.
12788 (add_value_to_slot_21): Likewise.
12789 (relocate_addresses): Fix format specification.
12790 (load_image): Explicitly init symtab_section.
12791
12792 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12793
12794 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
12795 (grub_util_biosdisk_get_grub_dev): Fix format specification.
12796
12797 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12800 on powerpc.
12801 Reported by: Lennart Sorensen
12802
12803 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12804
12805 * gentpl.py: Add missing license header.
12806 * docs/grub.texi: Update copyright year.
12807
12808 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12809
12810 Source grub-mkconfig_lib from the build directory at build time.
12811 Suggested by: Vladimir Serbinenko.
12812
12813 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12814 * util/grub-install.in: Define pkgdatadir if not already set, and source
12815 grub-mkconfig_lib from there.
12816 * util/grub-kbdcomp.in: Likewise.
12817 * util/grub-mkconfig.in: Likewise.
12818 * util/grub-mknetdir.in: Likewise.
12819 * util/grub-mkrescue.in: Likewise.
12820 * util/grub-mkstandalone.in: Likewise.
12821 * util/grub-reboot.in: Likewise.
12822 * util/grub-set-default.in: Likewise.
12823 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12824
12825 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 Increase warning level.
12828
12829 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12830 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12831 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12832 (TARGET_CFLAGS): Likewise.
12833 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12834 * grub-core/Makefile.core.def (decompressor_xz): Add
12835 -Wno-unreachable-code.
12836 (normal): Add -Wno-redundant-decls.
12837 (xzio): Add -Wno-unreachable-code.
12838 (lzopio): Add -Wno-redundant-decls -Wno-error.
12839 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12840 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12841 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12842 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12843 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12844 * grub-core/kern/i386/coreboot/init.c: Add exception to
12845 -Wsuggest-attribute=noreturn.
12846 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12847 * grub-core/kern/ia64/dl_helper.c: Likewise.
12848 * grub-core/kern/mips/dl.c: Likewise.
12849 * grub-core/kern/sparc64/dl.c: Likewise.
12850 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12851 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12852 (memcmp): Likewise.
12853 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12854 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12855 * grub-core/loader/mips/linux.c: Likewise.
12856 * grub-core/loader/multiboot_elfxx.c: Likewise.
12857 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12858 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12859 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12860 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12861 fixme.
12862 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12863 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12864 Fix prototype.
12865
12866 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12869 address.
12870
12871 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12872
12873 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12874 Avoid improper use of strings.
12875 (grub_cmd_legacy_initrdnounzip): Likewise.
12876
12877 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12878
12879 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12880 attribute.
12881 (grub_util_info): Likewise.
12882 (grub_util_error): Likewise.
12883
12884 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12885
12886 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12887 * util/grub-fstest.c (fstest): Likewise.
12888
12889 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12892 (grub_md_sha512_real): Likewise.
12893 (grub_util_get_geli_uuid): Likewise.
12894 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12895 (grub_util_biosdisk_open): Fix format specification.
12896 Respect format security.
12897 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12898 (xrealloc): Likewise.
12899 (xasprintf): Likewise.
12900
12901 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12902
12903 * util/import_gcry.py: Include grub/crypto.h in init.c.
12904
12905 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12906
12907 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12908 (generate_image): Make prefix a const char *.
12909 Fix format specifications. Respect format security.
12910 Avoid void * arithmetics.
12911 Avoid shadowing.
12912 (argp_parser): Remove unused variable. Respect format security.
12913 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12914 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12915 (count_funcs): Remove unused variable.
12916 (relocate_addresses): Fix format specification.
12917 Disable x86-64 with elf32. Remove unused variables.
12918 (add_fixup_entry): Avoid shadowing.
12919 (make_reloc_section): Fix format specification.
12920 Use assert.
12921 (locate_sections): Fix format specifications.
12922 (load_image): Avoid shadowing.
12923
12924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12927 Fix format specifications. Respect format security.
12928 Don't translate already translated grub_errmsg.
12929 (argp_parser): Remove unused variable
12930
12931 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12934
12935 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12938 (main): Likewise. Use xmalloc. Respect format security.
12939
12940 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12941
12942 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12943 a const char *.
12944 (argp_parser): Remove unused variable.
12945
12946 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12949 (add_pixel): Make static.
12950 (add_font): Likewise.
12951 (write_string_section): Make name and str a const char *.
12952 (write_be16_section): Make name a const char *.
12953 (print_glyphs): Make static.
12954 (write_font_ascii_bitmap): Likewise.
12955 (write_font_width_spec): Likewise.
12956 (write_font_pf2): Likewise.
12957 (argp_parser): Remove unused variable.
12958 Respect format security.
12959 (main): Avoid shadowing. Respect format security.
12960
12961 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * util/grub-editenv.c (argp_parser): Make static.
12964 (create_envblk_file): Use xmalloc.
12965 (open_envblk_file): Likewise.
12966 Resepect format security.
12967 (set_variables): Respect format security.
12968
12969 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * util/getroot.c (grub_find_device): Respect format security.
12972 (get_mdadm_uuid): Remove unused variable.
12973 (grub_util_pull_device): Dont call gettext on already translated
12974 grub_errmsg.
12975 (find_system_device): Remove unused variable.
12976 (grub_util_get_grub_dev): Likewise.
12977 (grub_make_system_path_relative_to_its_root): Respect format security.
12978
12979 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * util/grub-fstest.c (execute_command): Make first argument
12982 a const char *.
12983 (read_file): Avoid shadowing.
12984 Reuse underlying error message if device open fails.
12985 (cmd_cmp): Respect format security.
12986 (root): Make const char *.
12987 (fstest): Remove args argument and use global copy.
12988 Respect format security.
12989 (argp_parser): Make static.
12990 (main): Make default_root const char *.
12991
12992 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12993
12994 * util/grub-mount.c (root): Make const char *.
12995 (execute_command): Make first argument a const char *.
12996 (fuse_init): Respect format security.
12997 (argp_parser): Make static. Remove unused variable.
12998 (main): Make default_root a const char *.
12999 Respect format security.
13000
13001 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * util/grub-probe.c (probe): Don't call gettext on already translated
13004 grub_errmsg.
13005 Remove unused variables.
13006 (argp_parser): Remove unused variable.
13007
13008 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13009
13010 * util/grub-script-check.c (argp_parser): Remove unused variable.
13011 (main): Rename read to curread to avoid shadowing.
13012
13013 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * util/misc.c (grub_util_write_image_at): Fix format specification.
13016 (grub_util_write_image): Likewise.
13017 (grub_script_execute_argument_to_string): Removed (unused).
13018 (grub_script_execute_menuentry): Likewise.
13019 (grub_putchar): Likewise.
13020
13021 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13022
13023 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13024 (FUNCTION) [GRUB_UTIL]: Likewise.
13025 (VARIABLE) [GRUB_UTIL]: Likewise.
13026
13027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13030 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13031
13032 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13035 buffer.
13036
13037 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13038
13039 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13040 (LzmaEnc_SaveState): Removed (unused).
13041 (LzmaEnc_RestoreState): Likewise.
13042 (LzmaEnc_InitPriceTables): Made static.
13043 (LzmaEnc_Construct): Likewise.
13044 (LzmaEnc_FreeLits): Likewise.
13045 (LzmaEnc_Destruct): Likewise.
13046 (LzmaEnc_Init): Likewise.
13047 (LzmaEnc_InitPrices): Likewise.
13048 (LzmaEnc_Finish): Likewise.
13049 (LzmaEnc_PrepareForLzma2): Removed (unused).
13050 (LzmaEnc_MemPrepare): Likewise.
13051 (LzmaEnc_GetNumAvailableBytes): Likewise.
13052 (LzmaEnc_GetCurBuf): Likewise.
13053 (LzmaEnc_CodeOneMemBlock): Likewise.
13054
13055 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13058 (grub_util_ldm_embed): Likewise.
13059
13060 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * util/grub-editenv.c (print_var): Rename name to varname to
13063 avoid shadowing.
13064 (main): Rename index to curindex to avoid shadowing.
13065 Make filename a const char *.
13066
13067 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13068
13069 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13070 to arg_getline to avoid shadowing.
13071
13072 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13073
13074 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13075 disk_ to avoid shadowing.
13076
13077 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13080 curindex to avoid shadowing.
13081 Make static.
13082 (MatchFinder_GetNumAvailableBytes): Make static.
13083
13084 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13087 avoid shadowing.
13088
13089 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13090
13091 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13092 argument from encrypt to do_encrypt to avoid shadowing.
13093
13094 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13097 incorrect nesting of #if's.
13098
13099 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13102 checks which are always false on some platforms.
13103 (grub_cmd_lsacpi): Likewise.
13104 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13105 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13106 Likewise.
13107
13108 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13111 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13112
13113 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13116 re_dfa_t to avoid breaking alignment invariants.
13117 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13118 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13119
13120 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13123 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13124
13125 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13128 Fix declaration.
13129
13130 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13133 conserve alignment invariants.
13134 (grub_ehci_ehcc_read16): Likewise.
13135 (grub_ehci_oper_read32): Likewise.
13136 (grub_ehci_oper_write32): Likewise.
13137 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13138 Conserve alignment invariants.
13139
13140 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13141
13142 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13143 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13144 declarations.
13145
13146 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13149 Remove unused variable.
13150
13151 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13154 Remove set in if.
13155
13156 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * include/grub/net.h: Remove double declarations.
13159
13160 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 Remove "payload" command in ia64 Linux loader since I couldn't
13163 find any evidence of it being used for anything.
13164 Replace "relocate" command with an environment variable
13165
13166 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13167 fields.
13168 (ia64_boot_payload): Removed.
13169 (last_payload): Likewise.
13170 (RELOCATE_OFF): Likewise.
13171 (RELOCATE_ON): Likewise.
13172 (RELOCATE_FORCE): Likewise.
13173 (relocate): Likewise.
13174 (free_pages): Don't free payloads.
13175 (grub_load_elf64): Use common error messages.
13176 Use "linux_relocate" variable.
13177 Increase the space after boot_params.
13178 (grub_cmd_payload): Removed.
13179 (grub_cmd_relocate): Likewise.
13180 (grub_cmd_fpswa): Improve messages.
13181 (cmd_payload): Removed.
13182 (cmd_relocate): Likewise.
13183 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13184 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13185
13186 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13187
13188 Convert UHCI to DMA framework.
13189
13190 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13191 (grub_uhci_pci_iter): Fill new members
13192 (grub_alloc_td): Use P2V and V2P functions.
13193 (grub_free_queue): Likewise.
13194 (grub_alloc_qh): Likewise.
13195 (grub_uhci_setup_transfer): Likewise.
13196 (grub_uhci_check_transfer): Likewise.
13197
13198 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13199
13200 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13201 Remove assignment in if while on it.
13202
13203 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * util/grub-mkstandalone.in: Fix modules directory.
13206
13207 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13210 on i386-pc target.
13211 (argp_parser): Accept "auto" as compression specification.
13212
13213 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13214
13215 Fix `help' with unloaded modules.
13216
13217 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13218 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13219 (grub_dyncmd_dispatcher): Small stylistic fix.
13220 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13221 explicit help is requested.
13222
13223 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13226 Explicitly init restart while on it.
13227
13228 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13231 uninited variable.
13232
13233 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 * util/grub-mknetdir.in: Use . rather than source for POSIX
13236 compatibility.
13237
13238 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13239
13240 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13241
13242 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13245 variable.
13246
13247 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13250 without quotes.
13251
13252 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13255
13256 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13257
13258 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13259 iteration of partitions.
13260
13261 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 Improve gettext support. Stylistic fixes and error handling fixes while
13264 on it.
13265
13266 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13269 part. Instead setup the correct stack in RM.
13270 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13271 for stack.
13272 * include/grub/i386/relocator_private.h: New file.
13273
13274 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13275
13276 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13277 argument.
13278 * util/grub-fstest.c (options): Add missing DEVICE part.
13279
13280 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13281
13282 Clarify and unify messages.
13283
13284 * grub-core/commands/hashsum.c (options): Unify messages.
13285 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13286 literal-only message as translatable.
13287 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13288 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13289 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13290 commands.
13291 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13292 key, not the key used to unlock. Clarify what it's used for.
13293 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13294 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13295 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13296 * util/grub-editenv.c (options): Unify "verbose" message.
13297 * util/grub-fstest.c (read_file): Unify error message.
13298 (fstest): Add quotes around commands.
13299 (options): Unify "verbose" message.
13300 * util/grub-install.in: Add quotes around variable name.
13301 * util/grub-kbdcomp.in: Unify error message.
13302 * util/grub-mkfont.c (main): Likewise.
13303 * util/grub-mkrescue.in: Likewise.
13304 * util/grub-mklayout.c (options): Unify "verbose" message.
13305 * util/grub-mkstandalone.in: Unify help and verbose messages.
13306 * util/grub-mount.c (options): Unify "verbose" message.
13307 * util/grub-probe.c (options): Likewise.
13308 * util/grub-script-check.c (options): Likewise.
13309 * util/grub-setup.c (setup): Unify no-terminator message.
13310 (options): Use DEVICE and not DEV.
13311 Unify "verbose" message.
13312 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13313
13314 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 Improve and unify messages.
13317
13318 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13319 name. All users updated.
13320 Print filename in error.
13321 (read_device_map): Print filename in error.
13322 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13323 (grub_util_get_os_disk): Likewise.
13324 (grub_util_biosdisk_get_grub_dev): Likewise.
13325 (grub_util_check_block_device): Likewise.
13326 (grub_util_check_char_device): Likewise.
13327 (grub_make_system_path_relative_to_its_root): Likewise.
13328 * util/grub-editenv.c (create_envblk_file): Likewise.
13329 (open_envblk_file): Likewise.
13330 (write_envblk): Likewise.
13331 * util/grub-fstest.c (cmd_cp): Likewise.
13332 (cmd_cat): Likewise.
13333 (cmd_cmp): Likewise.
13334 * util/grub-menulst2cfg.c (main): Likewise.
13335 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13336 (write_font_width_spec): Likewise.
13337 (write_font_pf2): Likewise.
13338 * util/grub-mkimage.c (generate_image): New argument outname.
13339 All users updated.
13340 Remove unreacheable message.
13341 (options): Unify messages.
13342 (help_filter): Likewise.
13343 * util/grub-mklayout.c (usage): Removed (unused).
13344 (main): Print filename in error.
13345 * util/grub-mkrescue.in: Fix wrong quoting.
13346 * util/grub-setup.c (setup): Print filename in error.
13347 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13348 (check_sas): Likewise.
13349 * util/misc.c (grub_util_get_fp_size): Removed.
13350 (grub_util_get_image_size): Print filename in error.
13351 (grub_util_read_at): Removed.
13352 (grub_util_read_image): Print filename in error.
13353 (grub_util_load_image): Likewise.
13354 (grub_util_write_image_at): New argument filename. All users updated.
13355 Print filename in error.
13356 (grub_util_write_image): New argument filename. All users updated.
13357 Print filename in error.
13358 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13359 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13360
13361 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 * grub-core/Makefile.core.def (pxechain): New module.
13364 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13365 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13366 function.
13367 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13368 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13369
13370 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13371
13372 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13373 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13374 * include/grub/err.h (grub_error_saved): New struct.
13375 (grub_errmsg): Make array size explicit.
13376 * include/grub/misc.h (grub_error_save): New function.
13377 (grub_error_load): Likewise.
13378 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13379 (grub_error_push): Update `errno' member name.
13380 (grub_error_pop): Likewise
13381 * grub-core/net/tftp.c (tftp_data): New member save_err.
13382 (tftp_receive): Save error.
13383 (tftp_open): Restore error.
13384
13385 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13388 to real mode down to execute A20-related code in protected mode as
13389 intended.
13390
13391 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13392
13393 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13394 NULL when the argument `level' has an unexpected value.
13395
13396 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 Move platform-dependent files from $prefix to $prefix/$platform.
13399
13400 * config.h.in (GRUB_TARGET_CPU): New definition.
13401 (GRUB_PLATFORM): Likewise.
13402 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13403 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13404 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13405 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13406 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13407 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13408 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13409 * grub-core/normal/term.c (read_terminal_list): Likewise.
13410 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13411 $prefix/locale.
13412 (grub_gettext_init_ext): Likewise.
13413 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13414 grub_platform.
13415 * util/grub-install.in: Update directories.
13416 * util/grub-mknetdir.in: Likewise.
13417 * util/grub-mkrescue.in: Likewise.
13418
13419 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13422 grub_error framework. All users updated.
13423
13424 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13427 lists (by always binsearching), improve caching (cache strings
13428 used for binsearch, not only results), improve
13429 maintainability (by using more structured binary search) and correct
13430 error handling.
13431
13432 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/script/execute.c (grub_script_return): Fix warning.
13435
13436 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13437
13438 * grub-core/script/execute.c (grub_script_return): Fix potential
13439 NULL-dereference.
13440 Reported by: Jim Meyering.
13441
13442 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * po/POTFILES.in: Regenerate.
13445 * util/grub-install.in: Gettextize the strings missed in first pass.
13446
13447 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * Makefile.util.def (grub-mkdevicemap): Removed.
13450 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13451 * include/grub/util/deviceiter.h: Removed.
13452 * util/deviceiter.c: Likewise.
13453 * util/getroot.c (grub_util_get_os_disk): New function.
13454 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13455 replacement for EFI.
13456 * util/grub-mkdevicemap.c: Removed.
13457 * util/grub-probe.c (probe): Handle PRINT_DISK.
13458 (argp_parser): Handle -t disk.
13459
13460 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 * util/grub-mkfont.c: Migrate to argp.
13463 * util/grub-mklayout.c: Likewise.
13464 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13465 * util/grub-mkrelpath.c: Likewise.
13466 * util/grub-probe.c: Likewise.
13467 * util/grub-script-check.c: Likewise.
13468
13469 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * util/grub-reboot.in: Add missing datarootdir.
13472 Add missing newline.
13473 * util/grub-set-default.in: Add missing datarootdir.
13474 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13475 * util/grub-mkrescue.in: Likewise.
13476
13477 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13480
13481 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * util/grub-kbdcomp.in: Add decent help and gettextize.
13484 * docs/man/grub-kbdcomp.h2m: New file.
13485
13486 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 Migrate grub-mkimage.c to argp.
13489
13490 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13491 (grub-setup): Likewise.
13492 * util/grub-setup.c (print_version): Move to ...
13493 * util/argp_common.c (print_version): ... here.
13494 * util/grub-setup.c (argp_program_version_hook): Move to ...
13495 * util/argp_common.c (argp_program_version_hook): ... here.
13496 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13497 safety.
13498 * util/grub-mkimage.c (main): Migrate to argp.
13499
13500 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * util/grub-mkrescue.in: Use same message as
13503 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13504 for better translations.
13505
13506 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13509 options with generic grub-mkrescue.in with the goal of future
13510 merge.
13511
13512 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 * grub-core/kern/mm.c: Add missing include of i18n.h
13515 * grub-core/lib/relocator.c: Likewise.
13516
13517 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13520 error.
13521 (allocate_pages): Check return value.
13522 Replace fatal with error.
13523 (grub_linux_boot): Replace printf with dprintf.
13524 Check find_mmap_size return value.
13525 Replace fatal with error.
13526 Don't call grub_machine_fini.
13527 (grub_load_elf64): Replace printf with dprintf.
13528 (grub_cmd_linux): Likewise.
13529 (grub_cmd_initrd): Likewise.
13530 (grub_cmd_payload): Likewise.
13531
13532 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13535 message.
13536 * grub-core/video/radeon_fuloong2e.c
13537 (grub_video_radeon_fuloong2e_setup): Likewise.
13538 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13539 * grub-core/video/video.c (grub_video_set_mode): Don't override
13540 standard out of memory message.
13541
13542 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13543
13544 NetBSD disk wedge support.
13545
13546 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13547 [__NetBSD__]: Handle NetBSD disk wedges.
13548 * util/getroot.c (convert_system_partition_to_system_disk)
13549 [__NetBSD__]: Likewise.
13550
13551 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13552
13553 * util/grub-mkconfig.in: Use umask rather than chmod to create
13554 grub.cfg.new to avoid insecure grub.cfg.
13555
13556 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * grub-core/commands/ls.c: Gettextize.
13559 * grub-core/commands/setpci.c: Likewise.
13560 * grub-core/commands/videotest.c: Likewise.
13561 * grub-core/disk/geli.c: Likewise.
13562 * grub-core/kern/mm.c: Likewise.
13563 * grub-core/lib/relocator.c: Likewise.
13564 * grub-core/loader/efi/appleloader.c: Likewise.
13565 * grub-core/loader/i386/xnu.c: Likewise.
13566 * grub-core/loader/ia64/efi/linux.c: Likewise.
13567 * grub-core/loader/xnu.c: Likewise.
13568 * grub-core/net/dns.c: Likewise.
13569 * grub-core/net/net.c: Likewise.
13570 * grub-core/script/lexer.c: Likewise.
13571 * grub-core/script/parser.y: Likewise.
13572 * grub-core/script/yylex.l: Likewise.
13573 * util/getroot.c: Likewise.
13574 * util/grub-setup.c: Likewise.
13575
13576 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13579 number.
13580
13581 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13582
13583 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13584
13585 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13588 macro.
13589 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13590 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13591
13592 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13595 * util/grub-install.in: Gettextize.
13596 * util/grub-mkconfig.in: Likewise.
13597 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13598 if not available.
13599 (grub_warn): Gettextize.
13600 * util/grub-mknetdir.in: Gettextize.
13601 * util/grub-mkrescue.in: Likewise.
13602 * util/grub-mkstandalone.in: Likewise.
13603 * util/grub-reboot.in: Likewise.
13604 * util/grub-set-default.in: Likewise.
13605 * util/grub.d/00_header.in: Likewise.
13606 * util/grub.d/10_hurd.in: Likewise.
13607 * util/grub.d/10_kfreebsd.in: Likewise.
13608 * util/grub.d/10_linux.in: Likewise.
13609 * util/grub.d/10_netbsd.in: Likewise.
13610 * util/grub.d/10_windows.in: Likewise.
13611 * util/grub.d/20_linux_xen.in: Likewise.
13612 * util/grub.d/30_os-prober.in: Likewise.
13613 * po/POTFILES-shell.in: Regenerate.
13614
13615 2012-02-03 Richard Laager <rlaager@wiktel.com>
13616
13617 * util/grub-mkimage.c (main): Fix format-security warning.
13618 * util/grub-mkrelpath.c (main): Likewise.
13619 * util/grub-probe.c (main): Likewise.
13620
13621 2012-02-03 Richard Laager <rlaager@wiktel.com>
13622
13623 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13624 failure.
13625 Put back lost PRINT_DRIVE.
13626
13627 2012-02-03 Richard Laager <rlaager@wiktel.com>
13628
13629 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13630 (grub_guess_root_devices): Replace strlen with sizeof.
13631 Avoid crash.
13632 (find_root_devices_from_poolname): Remove unused variable.
13633 Handle raidzN.
13634
13635 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 Support install on multi-device filesystems.
13638
13639 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13640 (grub_guess_root_devices): ...this. Return char **. All users updated.
13641 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13642 Removed.
13643 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13644 (find_root_devices_from_poolname): ... here.
13645 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13646 Support zfs-fuse.
13647 (grub_guess_root_device): Rename to ...
13648 (grub_guess_root_devices): ... this. Return char **. All users updated.
13649 * util/grub-install.in: Handle multi-device filesystems.
13650 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13651 argument. All users updated.
13652 Handle multi-device filesystems.
13653 Use 'delim' as separator.
13654 Remove device check to allow filesystems on file.
13655 (main): Support -0 argument. Handle multi-device.
13656 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13657 Fix a cross-device check while on it.
13658 (arguments): Remove root_dev.
13659 (argp_parser): Remove -r.
13660 (main): Remove root_dev.
13661
13662 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13663
13664 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13665
13666 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13669 symbol.
13670 Reported by: NODA, Kai <nodakai>.
13671
13672 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13673
13674 Fix ehci on amd64.
13675
13676 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13677 pointers.
13678 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13679 (grub_ehci_setup_qh): Likewise.
13680 (grub_ehci_find_qh): Likewise.
13681 (grub_ehci_transaction): Likewise.
13682 (grub_ehci_setup_transfer): Likewise.
13683 (grub_ehci_check_transfer): Likewise.
13684 (grub_ehci_portstatus): Likewise.
13685 (grub_ehci_detect_dev): Likewise.
13686 (grub_ehci_transfer_controller_data): New field td_last_phys.
13687 (grub_ehci_setup_transfer): Fill td_last_phys.
13688 (grub_ehci_check_transfer): Use td_last_phys.
13689
13690 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13691
13692 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13693 if no submenu is present.
13694
13695 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13696
13697 CBI support.
13698
13699 * include/grub/usb.h (grub_usbms_protocol_t): New values
13700 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13701 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13702 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13703 (grub_usbms_dev): Add subclass, protocol and intrpt.
13704 Remove in_maxsz and out_maxsz.
13705 (grub_usbms_reset): Rename to ...
13706 (grub_usbms_bo_reset): .. this.
13707 (grub_usbms_cbi_cmd): New function.
13708 (grub_usbms_cbi_reset): Likewise.
13709 (grub_usbms_reset): Likewise.
13710 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13711 (grub_usbms_transfer): Rename to ...
13712 (grub_usbms_transfer_bo): ... this.
13713 (grub_usbms_transfer_cbi): Likewise.
13714 (grub_usbms_transfer): Likewise.
13715
13716 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13717 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13720 the support for the CS5536 modification thereos and few bugfixes.
13721
13722 * grub-core/Makefile.core.def (ehci): New module.
13723 * grub-core/bus/usb/ehci.c: New file.
13724 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13725 port and hubaddr. All users updated.
13726 Save port and hubaddr into dev structure.
13727 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13728 define.
13729 * include/grub/pci.h (grub_dma_phys2virt): New function.
13730 (grub_dma_virt2phys): Likewise.
13731 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13732
13733 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13736 check as some mkfs implementations omit it.
13737
13738 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13739
13740 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13741
13742 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13745 Add new member volname2.
13746 (grub_jfs_label): Use volname2 if available.
13747
13748 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13751 over last_mounted as seen in image generated by mkfs.nilfs2.
13752 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13753
13754 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13757 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13758 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13759
13760 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13763 over the sector.
13764
13765 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13768 subvolume name (by removing a bogus and useless check).
13769
13770 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13771
13772 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13773 sizeof while on it.
13774
13775 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13776
13777 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13778 (grub_scsi_read_capacity10): ... this.
13779 (grub_scsi_read_capacity16): New function.
13780 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13781 0xffffffff.
13782 Fix off-by-one error.
13783 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13784 64-bit unsigned.
13785 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13786 (grub_scsi_read_capacity10): ... this.
13787 (grub_scsi_read_capacity_data): Rename to ...
13788 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
13789 (grub_scsi_read_capacity16): New struct.
13790 (grub_scsi_read_capacity16_data): Likewise.
13791 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
13792 grub_scsi_cmd_read_capacity10.
13793 New command grub_scsi_cmd_read_capacity16.
13794
13795 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 SCSI >2TiB support.
13798
13799 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13800 (grub_scsi_write16): Likewise.
13801 (grub_scsi_read): Use read16 when necessary.
13802 (grub_scsi_write): Likewise.
13803 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13804 (grub_scsi_write16): Likewise.
13805 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13806
13807 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13808
13809 SCSI write support (for usbms mainly).
13810
13811 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13812 a const pointer.
13813 (grub_scsi_write): Implement.
13814 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13815
13816 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13819 variable.
13820
13821 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13822
13823 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13824
13825 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * po/POTFILES.in: Regenerate.
13828
13829 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13830
13831 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13832 with grub_printf to avoid unnecessary fatal failure.
13833
13834 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13835
13836 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13837 (INT_MAX): Likewise.
13838 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13839 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13840 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13841 (strcpy): Likewise.
13842 (strstr): Likewise.
13843 (strchr): Likewise.
13844 (strncpy): Likewise.
13845 (strcat): Likewise.
13846 (strncat): Likewise.
13847 (strcoll): Likewise.
13848 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13849 (GRUB_INT_MAX): Likewise.
13850
13851 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13854 unexpected error.
13855 (optimize_utf8): Likewise.
13856 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13857
13858 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 * grub-core/boot/i386/pc/lnxboot.S: Use
13861 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13862 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13863 location.
13864 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13865 definition.
13866 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13867
13868 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13869
13870 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13871 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13872 now to avoid double free.
13873 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13874 hostdisk.
13875 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13876 * util/grub-probe.c (escape_of_path): Always return a new copy.
13877 (print_full_name): Escape path.
13878 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13879 Fix hints on abstractions.
13880
13881 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13882
13883 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13884 Don't add "root" line if no compatibility hont is available.
13885 Suggested by: Seth Goldberg.
13886
13887 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13890 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13891 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13892 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13893
13894 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13897
13898 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 * util/grub-pe2elf.c (ehdr): Make static.
13901 (shdr): Likewise.
13902 (num_sections): Likewise.
13903 (offset): Likewise.
13904
13905 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13906
13907 Eliminate ofpath limits and possible overflows.
13908
13909 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13910 (OF_PATH_MAX): Removed.
13911 (MAX_DISK_CAT): New const.
13912 (find_obppath): Use allocated rather than preallocated buffer.
13913 Return result. Argument of_path removed. All users updated.
13914 Add missing fdstat.
13915 (xrealpath): New function.
13916 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13917 Allocate rather than use preallocated buffer. All users updated.
13918 (__of_path_common): Use allocated rather than preallocatecd buffer.
13919 Return result. Argument of_path removed. All users updated.
13920 (vendor_is_ATA): Read only needed part form the file.
13921 (check_sas): Allocate depending on contents rather than fixed.
13922 (main) [STANDALONE]: Handle NULL result.
13923
13924 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13927
13928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13929
13930 Cryptodisk write support.
13931
13932 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13933 (grub_cryptodisk_decrypt): Moved logic to ...
13934 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13935 (grub_cryptodisk_write): Implement.
13936 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13937 (grub_util_fd_write): ... this. Make global.
13938 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13939
13940 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * include/grub/list.h (grub_list_remove): Don't crash if element is
13943 removed twice.
13944
13945 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 Rename ofconsole to console.
13948
13949 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13950 as sysnonym to console.
13951 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13952 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13953 Rename grub_ofconsole_ to grub_console_. All users updated
13954 (grub_console_term_output): Rename "ofconsole" to "console".
13955 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13956 as "console".
13957
13958 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13959
13960 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13961 handling.
13962 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13963 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13964 GRUB_DISK_DEVICE_FILE_ID.
13965
13966 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13969 and improve performance.
13970
13971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13974 missing ieee1275/ prefix on whole disk.
13975
13976 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13979 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13980
13981 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13982
13983 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13984
13985 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 Merge common RAID and LVM logic to an abstract diskfilter.
13988 Add LDM support using the same framework.
13989
13990 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13991 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13992 (libgrubmods): Remove grub-core/disk/raid.c and
13993 grub-core/partmap/gpt.c.
13994 * grub-core/Makefile.core.def (ldm): New module.
13995 (raid): Renamed to diskfilter. All users updated.
13996 * grub-core/disk/raid.c: Moved to ...
13997 * grub-core/disk/diskfilter.c: ... here.
13998 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13999 (lv_num): New var.
14000 (find_array): Renamed to ...
14001 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14002 (grub_is_array_readable): Renamed to ...
14003 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14004 (insert_array): New argument id.
14005 (is_node_readable): New function.
14006 (scan_device): Rename to ...
14007 (scan_disk): .. this. Restrict to one disk.
14008 (scan_devices): New function.
14009 (grub_diskfilter_iterate): Support multi-LV.
14010 Skip invisible and nameless LVs.
14011 (grub_diskfilter_memberlist): Support multi-LV.
14012 (grub_diskfilter_read_node): New function.
14013 (grub_raid_read): Most of logic moved to ...
14014 (read_segment): ... here
14015 (read_lv): New function.
14016 (grub_diskfilter_get_vg_by_uuid): New function.
14017 (grub_diskfilter_make_raid): Likewise.
14018 * grub-core/disk/ldm.c: New file.
14019 * grub-core/disk/lvm.c (vg_list): Removed.
14020 (lv_count): Likewise.
14021 (scan_depth): Likewise.
14022 (is_lv_readable): Likewise.
14023 (grub_lvm_getvalue): Advance pointer past the number.
14024 (find_lv): Removed.
14025 (do_lvm_scan): Refactored into ...
14026 (grub_lvm_detect): ... this. Support raid.
14027 (grub_lvm_iterate): Removed.
14028 (grub_lvm_memberlist): Likewise.
14029 (grub_lvm_open): Likewise.
14030 (grub_lvm_close): Likewise.
14031 (read_lv): Likewise.
14032 (read_node): Likewise.
14033 (is_node_readable): Likewise.
14034 (is_lv_readable): Likewise.
14035 (grub_lvm_read): Likewise.
14036 (grub_lvm_write): Likewise.
14037 (grub_lvm_dev): Use diskfilter
14038 (GRUB_MOD_INIT): Likewise.
14039 (GRUB_MOD_FINI): Likewise.
14040 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14041 new interface.
14042 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14043 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14044 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14045 grub_diskfilter_read_node.
14046 Fix a bug with xor.
14047 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14048 grub_diskfilter_read_node.
14049 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14050 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14051 (grub_disk_dev_iterate): Move from here...
14052 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14053 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14054 Make global.
14055 (grub_hostdisk_find_partition_start): Likewise.
14056 (grub_hostdisk_os_dev_to_grub_drive): New function.
14057 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14058 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14059 * util/getroot.c (make_device_name): ... here.
14060 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14061 Move to ...
14062 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14063 * grub-core/kern/emu/hostdisk.c
14064 (convert_system_partition_to_system_disk): Move to ...
14065 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14066 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14067 * util/getroot.c (device_is_wholedisk): ... here.
14068 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14069 * util/getroot.c (find_system_device): ... here.
14070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14071 Move to ...
14072 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14073 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14074 Move to ...
14075 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14076 Handle LDM.
14077 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14078 Move to ...
14079 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14080 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14081 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14082 DISKFILTER.
14083 * include/grub/raid.h: Renamed to ...
14084 * include/grub/diskfilter.h: ... this.
14085 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14086 (GRUB_RAID_LAYOUT_*): Make into array.
14087 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14088 (grub_diskfilter_vg): New struct.
14089 (grub_diskfilter_pv_id): Likewise.
14090 (grub_raid_member): Removed.
14091 (grub_raid_array): Likewise.
14092 (grub_diskfilter_pv): New struct.
14093 (grub_diskfilter_lv): Likewise.
14094 (grub_diskfilter_segment): Likewise.
14095 (grub_diskfilter_node): Likewise.
14096 (grub_diskfilter_get_vg_by_uuid): New proto.
14097 (grub_raid_register): Inline.
14098 (grub_diskfilter_unregister): Likewise.
14099 (grub_diskfilter_make_raid): New proto.
14100 (grub_diskfilter_vg_register): Likewise.
14101 (grub_diskfilter_read_node): Likewise.
14102 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14103 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14104 (grub_util_is_ldm): Likewise.
14105 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14106 (grub_hostdisk_find_partition_start): Likewise.
14107 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14108 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14109 New definition.
14110 (grub_gpt_partition_map_iterate): New proto.
14111 * include/grub/lvm.h (grub_lvm_vg): Removed.
14112 (grub_lvm_pv): Likewise.
14113 (grub_lvm_lv): Likewise.
14114 (grub_lvm_segment): Likewise.
14115 (grub_lvm_node): Likewise.
14116 * util/getroot.c [...]
14117 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14118 (probe_abstraction): Likewise.
14119 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14120 (main): Remove dead logic.
14121
14122 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14123
14124 Simplify root device discover and don't fail when trying to open
14125 incorrect devices.
14126
14127 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14128 function.
14129 (get_diskname_from_path): Likewise.
14130 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14131 of iterating.
14132
14133 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14136
14137 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14138
14139 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14140 pastthe end.
14141
14142 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14143
14144 * util/grub-install.in: Add missing \.
14145 Reported by: gentoofan
14146
14147 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14150 (direct_read): Use correct compressed size.
14151 (grub_squash_read_data): Likewise.
14152
14153 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14154
14155 * docs/grub.texi (Platform limitations): New section.
14156 (Platform-specific operations): Likewise.
14157 * docs/grub-dev.texi (Porting): Likewise.
14158
14159 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14160
14161 IEEE1275 disk write support.
14162
14163 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14164 const void *.
14165 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14166 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14167 and seek loginc to ...
14168 (grub_ofdisk_prepare): ... here.
14169 (grub_ofdisk_write): Implement.
14170
14171 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 ARC disk write support.
14174
14175 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14176 (reopen): New argument writable. All users updated.
14177 Handle required access mode.
14178 (grub_arcdisk_write): Implement.
14179 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14180 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14181
14182 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14183
14184 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14185 (read_sblock): Don't attempt to read superblocks outside the disk size.
14186
14187 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14188
14189 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14190 first superblock to find the second one when possible.
14191
14192 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 * util/grub-install.in: Fix an ARC bug.
14195 Print a warning if no platform-specific setup is available.
14196
14197 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14198
14199 Use static allocation rather than scratch pointer in reed_solomon.
14200 It decreases its size significantly and avoids a variable in .text.
14201
14202 * grub-core/lib/reed_solomon.c (scratch): Removed.
14203 (chosenstat): New const or static array.
14204 (sigma): Likewise.
14205 (errpot): Likewise.
14206 (errpos): Likewise.
14207 (sy): Likewise.
14208 (mstat): Likewise.
14209 (errvals): Likewise.
14210 (eqstat): Likewise.
14211 (pol_evaluate): Replace x with log_x argument. All users updated.
14212 (syndroms): Removed.
14213 (gauss_solve): Use statically allocated arrays.
14214 (rs_recover): Likewise.
14215 Calculate syndroms directly.
14216 (decode_block): Use statically allocated arrays.
14217 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14218 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14219
14220 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 Eliminate fixed limit on reed solomon decoder length.
14223
14224 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14225 rather than hardcoding the address.
14226 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14227 no_reed_solomon_length.
14228 Move gate_a20 to no-reed-solomon part.
14229 Don't force a particular size of no reed-solomon part.
14230 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14231 Removed.
14232 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14233 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14234
14235 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * grub-core/commands/wildcard.c (match_files): Handle filenames
14238 without explicit device.
14239 (wildcard_expand): Don't add explicit device if not already present.
14240 * tests/grub_script_echo1.in: Add a new expansion test.
14241
14242 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 Replace single-linked with double-linked lists. It results in more
14245 compact and more efficient code.
14246
14247 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14248 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14249 (grub_list_remove): Moved from here ...
14250 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14251 (grub_prio_list_insert): Set prev.
14252 * include/grub/list.h (grub_list): Add prev. All users updated.
14253
14254 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 Handle newer autotools. Add some missing quotes while on it.
14257
14258 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14259 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14260 (pkgdata_DATA): ... here.
14261 * Makefile.util.def (update-grub_lib): Removed.
14262 * conf/Makefile.common (pkglib_DATA): Removed.
14263 (pkglib_SCRIPTS): Likewise.
14264 (pkgdata_DATA): New variable.
14265 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14266 needed.
14267 Add missing quotes.
14268 Remove unused variable while on it.
14269 * tests/util/grub-shell.in: Likewise.
14270 * util/grub-install.in: Likewise.
14271 * util/grub-mkconfig.in: Likewise.
14272 * util/grub-mknetdir.in: Likewise.
14273 * util/grub-mkrescue.in: Likewise.
14274 * util/grub-mkstandalone.in: Likewise.
14275 * util/grub.d/00_header.in: Likewise.
14276 * util/grub.d/10_hurd.in: Likewise.
14277 * util/grub.d/10_illumos.in: Likewise.
14278 * util/grub.d/10_kfreebsd.in: Likewise.
14279 * util/grub.d/10_linux.in: Likewise.
14280 * util/grub.d/10_netbsd.in: Likewise.
14281 * util/grub.d/10_windows.in: Likewise.
14282 * util/grub.d/20_linux_xen.in: Likewise.
14283 * util/grub.d/30_os-prober.in: Likewise.
14284 * util/update-grub_lib.in: Removed.
14285
14286 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14287
14288 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14289 a workaround for intel problem.
14290
14291 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14292 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14293 2012-01-23 pfsmorigo
14294
14295 * util/grub-install.in: Support dd'in into PreP partition.
14296 * util/grub-probe.c (probe): Support discovering partition type.
14297 (main): Support -t msdos_parttype.
14298
14299 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14300
14301 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14302 infinite recursion using counter.
14303 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14304 init to skip it if the magic check fails.
14305 (dec_stream_header): Init s->crc32.
14306
14307 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14308 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14309 2012-01-22 Richard Laager <rlaager@wiktel.com>
14310
14311 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14312 All users updated.
14313 (find_bestub): Determine correct size.
14314 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14315 (scan_disk): Align the size down.
14316 Call check pool before find_bestub to have ashift.
14317
14318 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14319
14320 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14321 dprintf in no-malloc zone.
14322
14323 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14324
14325 * configure.ac: Add back in test for limits.h.
14326
14327 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14328
14329 Support 4K-sector NTFS.
14330
14331 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14332 (grub_ntfs_data): Remove blocksize.
14333 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14334 Remove data argument. All users updated.
14335
14336 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14339 being in .text to avoid dprel references.
14340 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14341 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14342 (grub_arch_highmemsize): Likewise.
14343 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14344 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14345 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14346
14347 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14350
14351 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14352 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14353
14354 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14355
14356 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14357 GRUB_UTIL.
14358 (grub_set_datetime_cmos): Likewise.
14359
14360 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 Make XZ compression parameters dependent on target and not host CPU.
14363
14364 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14365 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14366
14367 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14370 set but not used variable.
14371
14372 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14375 created when no uuid support is compiled into mkfs.reiser.
14376
14377 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14380 (utf8_to_macroman): Do the opposite.
14381 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14382
14383 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 * configure.ac: Refise build qemu_mips w/o unifont.
14386
14387 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14388
14389 Eliminate grub_min/grub_max prone to overflow usage.
14390
14391 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14392 (poll_nonroot_hub): Likewise.
14393 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14394 (grub_affs_label): Likewise.
14395 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14396 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14397 (grub_hfs_label): Likewise.
14398 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14399 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14400 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14401 (zap_leaf_array_get): Likewise.
14402 (dnode_get_path): Likewise.
14403 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14404 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14405 * grub-core/script/execute.c (grub_script_break): Likewise.
14406 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14407 grub_max.
14408 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14409 * include/grub/misc.h (grub_min): Removed.
14410 (grub_max): Likewise.
14411
14412 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14413
14414 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14415 direct.inode = 0.
14416
14417 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14418
14419 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14420
14421 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14422
14423 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14424
14425 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14428 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14429
14430 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14431
14432 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14433 rather than a hack for grub_strncasemap.
14434
14435 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 Support multiple initrds
14438 Note: part of this was accidently committed in r3739.
14439
14440 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14441 initrd.
14442 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14443 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14444 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14445 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14446 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14447
14448 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14451 disks with unknown size.
14452 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14453
14454 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14455
14456 Remove defines pertaining to arbitrary limits not affecting GRUB
14457 anymore.
14458
14459 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14460 (EXT2_MAX_SYMLINKCNT): Likewise.
14461 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14462 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14463 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14464 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14465 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14466 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14467 (DN_MAX_OBJECT_SHIFT): Likewise.
14468 (DN_MAX_OFFSET_SHIFT): Likewise.
14469 (DN_MAX_OBJECT): Likewise.
14470 (DNODES_PER_LEVEL_SHIFT): Likewise.
14471 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14472 (SPA_MAXBLOCKSIZE): Likewise.
14473 (SPA_BLOCKSIZES): Likewise.
14474 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14475 (MZAP_MAX_BLKSZ): Likewise.
14476
14477 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14478
14479 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14480 handle NULL appropriately.
14481 Remove MIN.
14482
14483 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14484
14485 Fix efiemu.
14486
14487 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14488 cpu/types.h.
14489 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14490 * configure.ac: Fix efiemu check.
14491
14492 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14495 grub_probe.
14496 Reported by: adamwill
14497
14498 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14499
14500 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14501
14502 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14503
14504 Fix handling of wide characters in gfxterm.
14505
14506 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14507 (clear_char): Likewise.
14508 (paint_char): Skip code == NULL chars.
14509 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14510
14511 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 * grub-core/normal/charset.c: Move comment to right place.
14514
14515 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14518 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14519 (grub_affs_mount): Revert the correct version checking.
14520
14521 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14522
14523 * docs/grub.texi (Unicode): Mention several other unsupported features.
14524
14525 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14528 case statements as compile-time one.
14529 (direct_read): Prevent spurious warnings.
14530 (grub_squash_read_data): Likewise.
14531
14532 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 Various squash4 fixes and LZO and XZ support.
14535
14536 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14537 Add xzembed source files.
14538 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14539 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14540 (grub_squash_inode): New subtype long_dir.
14541 (SQUASH_TYPE_LONG_DIR): New inode type.
14542 (COMPRESSION): New enum.
14543 (XZBUFSIZ): New const.
14544 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14545 (read_chunk): Use data->decompress.
14546 (zlib_decompress): New function.
14547 (lzo_decompress): Likewise.
14548 (xz_decompress): Likewise.
14549 (squash_mount): Set new data fields.
14550 (grub_squash_iterate_dir): Handle long dir.
14551 (squash_unmount): Free xzdec and xzbuf.
14552 (grub_squash_open): Check ino type.
14553 (direct_read): Stylistic fixes. Use data->decompress.
14554 (grub_squash_read_data): Likewise.
14555 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14556 (get_byte): Likewise.
14557 (grub_zlib_disk_read): Removed.
14558 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14559 (GRUB_POSIX_BOOL_DEFINED): New define.
14560 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14561 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14562 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14563 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14564
14565 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 Don't override more informative errors.
14568
14569 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14570 * grub-core/font/font.c (open_section): Likewise.
14571 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14572 filename. Don't override errors.
14573 (grub_cmd_openbsd_ramdisk): Don't override errors.
14574 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14575 (grub_cmd_initrd): Likewise.
14576 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14577 (grub_cmd_initrd): Likewise.
14578 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14579 (grub_cmd_linux): Likewise.
14580 (grub_cmd_initrd): Likewise.
14581 (grub_cmd_payload): Likewise.
14582 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14583 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14584 (grub_cmd_module): Likewise.
14585 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14586 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14587 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14588 (grub_cmd_xnu_mkext): Likewise.
14589 (grub_cmd_xnu_ramdisk): Likewise.
14590 (grub_xnu_check_os_bundle_required): Likewise.
14591 (grub_xnu_load_kext_from_dir): Likewise.
14592 (grub_cmd_xnu_kextdir): Likewise.
14593 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14594
14595 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14598 as 1024 in block size field. Found on one of my test images.
14599 Small optimisation while on it.
14600
14601 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14604 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14605 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14606 performance fixes while on it.
14607 (grub_sfs_close): Fix memory leak while on it.
14608 (grub_sfs_label): Convert Latin1 to UTF-8.
14609
14610 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14613 space to avoid overflows.
14614 (grub_hfs_label): Convert from macroman to UTF-8.
14615
14616 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14619
14620 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14623
14624 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14625
14626 * unicode: Import Unicode 6.0 data.
14627
14628 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14631 outside of range.
14632
14633 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Avoid cutting in the middle of UTF-8 character.
14636
14637 * include/grub/charset.h (grub_getend): New function.
14638 * grub-core/script/function.c (grub_script_function_find): Use
14639 grub_getend.
14640 * grub-core/normal/completion.c (add_completion): Likewise.
14641
14642 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14645 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14646 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14647 (GRUB_UNICODE_TAG_END): Likewise.
14648 (GRUB_UNICODE_LAST_VALID): Likewise.
14649
14650 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14653 len and make it smaller. All users updated.
14654 * util/import_unicode.py: Put length and not end character.
14655 Check length.
14656
14657 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14658
14659 Make better Unicode-compliant and unify some UTF-8 code pathes.
14660
14661 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14662 valid character.
14663 (grub_is_valid_utf8): Use grub_utf8_process.
14664 Check resulting code range.
14665 (grub_utf8_to_ucs4): Use grub_utf8_process.
14666 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14667 valid character.
14668
14669 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14672
14673 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 * docs/grub.texi (Filesystems): Mention AFS.
14676
14677 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 * docs/grub.texi (Filesystems): Clarify restrictions.
14680 (Regexp): Mention non-Unicode regexp behaviour.
14681 (Other): Mention non-Unicode matching behaviour.
14682
14683 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 Make HFS implementation use MacRoman.
14686
14687 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14688 (macroman): New const array.
14689 (macroman_to_utf8): New function.
14690 (utf8_to_macroman): Likewise.
14691 (grub_hfs_find_dir): Use utf8_to_macroman.
14692 (grub_hfs_dir): Use macroman_to_utf8.
14693 Set case_insensitive.
14694
14695 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14698
14699 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 Integrate hints into autogeneration scripts.
14702
14703 * docs/grub.texi (Filesystems): Add a hostdisk example.
14704 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14705 (grub-probe): Add ofpath.
14706 * gentpl.py: Remove group nosparc64.
14707 * grub-core/commands/search.c (cache_entry): New struct.
14708 (cache): New var.
14709 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14710 * grub-core/commands/search_wrap.c (options): Add platform-specific
14711 hint options.
14712 (grub_cmd_search): Handle platform-specific hints.
14713 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14714 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14715 (grub_util_biosdisk_data): Likewise.
14716 (grub_util_biosdisk_open): Set device_map.
14717 (read_device_map): Handle "" as indication of no map.
14718 Set device_map.
14719 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14720 (grub_util_biosdisk_get_compatibility_hint): New function.
14721 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14722 * include/grub/emu/hostdisk.h
14723 (grub_util_biosdisk_get_compatibility_hint): New proto.
14724 * util/grub-install.in: Don't call grub-mkdevicemap.
14725 Add platform-specific hint to load.cfg.
14726 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14727 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14728 hints. Set root preliminary to compatibility hint, not to OS name.
14729 * util/grub-probe.c (PRINT_*): Add hints.
14730 (print): Make static.
14731 (escape_of_path): New function.
14732 (guess_bios_drive): Likewise.
14733 (guess_efi_drive): Likewise.
14734 (guess_baremetal_drive): Likewise.
14735 (print_full_name): Likewise.
14736 (probe): Handle hints.
14737 (main): Likewise.
14738 * util/ieee1275/devicemap.c: Removed.
14739 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14740 updated.
14741 (grub_util_devname_to_ofpath): Return NULL on failure.
14742
14743 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14744 resource leak.
14745 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14746
14747 * po/POTFILES.in: Regenerated.
14748
14749 Allow purely long options
14750
14751 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14752 (SHORT_ARG_USAGE): Likewise.
14753 (grub_arg_show_help): Compare opt with help_options.
14754 (parse_option): Receive opt as argument. If makes big simplificatons.
14755 All users updated
14756
14757 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14758
14759 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14760 Restructure to avoid warning.
14761
14762 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 * util/grub-install.in: Account for possible escaped comma in device
14765 name.
14766
14767 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14770 channel.
14771
14772 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14775 allocation and zero-setting.
14776 (grub_ieee1275_get_devname): Check that alias is complete.
14777
14778 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14781 unaligned segments.
14782
14783 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14786 prefix.
14787 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14788 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14789 Add ieee1275 prefix.
14790
14791 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * docs/grub.texi (Filesystems): Update.
14794
14795 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 Support odc, newc and bigendian cpio formats.
14798
14799 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14800 * grub-core/Makefile.core.def (newc): New module.
14801 (odc): Likewise.
14802 (cpio_be): Likewise.
14803 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14804 (MAGIC): Likewise.
14805 (MAGIC2): Likewise.
14806 (head) [MODE_ODC]: Adapt for the format.
14807 (head) [MODE_NEWC]: Likewise.
14808 (head) [!MODE_*]: Write fields of interest as arrays.
14809 (MAGIC_USTAR): Removed.
14810 (read_number) [MODE_NEWC]: Change to hex.
14811 (read_number) [!MODE_*]: Parse binary arrays.
14812 (grub_cpio_find_file): Factor out the code for better structure and
14813 always use read_number.
14814 (grub_cpio_mount): Use MAGIC and MAGIC2.
14815 (grub_cpio_dir): Exit on first hook non-0 return.
14816 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14817 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14818 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14819 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14820 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14821 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14822 * grub-core/fs/newc.c: New file.
14823 * grub-core/fs/odc.c: Likewise.
14824 * grub-core/fs/cpio_be.c: Likewise.
14825
14826 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 Fix handling of tar numbers occupying the whole field.
14829
14830 * grub-core/fs/cpio.c (read_number): New function.
14831 (grub_cpio_find_file): Use read_number instead of strtoull.
14832
14833 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14834
14835 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14836 occupying the whole field size.
14837
14838 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14839
14840 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14841
14842 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14845
14846 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14847
14848 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14849 TARGET_IMG_LDFLAGS.
14850
14851 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14852
14853 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14854 (mountinfo_entry): Increase the field size to take escaping into
14855 account.
14856 (find_root_device_from_libzfs): Add one byte to size of strings for
14857 security.
14858
14859 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14860
14861 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14862 an assert.
14863 * util/grub-setup.c (setup): Likewise.
14864
14865 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14866
14867 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14868 _LzmaDecodeA.
14869
14870 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14871
14872 * docs/grub.texi (Internationalisation): New section.
14873
14874 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * docs/grub.texi (Loopback booting): New section.
14877
14878 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
14879
14880 * util/grub-mkstandalone.in: Fix minor typo errors.
14881
14882 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14885
14886 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14887 net/icmp.c and net/icmp6.c.
14888 (http): New module.
14889 (priority_queue): Likewise.
14890 * grub-core/io/bufio.c: Rewritten.
14891 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14892 TYPE_WITH_CONFIGFILE_OPTION.
14893 (legacy_commands): Add bootp and dhcp.
14894 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14895 (grub_legacy_parse): Likewise.
14896 * grub-core/lib/priority_queue.c: New file.
14897 * grub-core/net/arp.c: Add missing license header.
14898 (arp_find_entry): Removed.
14899 (arp_find_entry): Likewise.
14900 (grub_net_arp_resolve): Rename to ...
14901 (grub_net_arp_send_request): ...this.
14902 (grub_net_arp_receive): New card argument.
14903 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14904 Set router and DNS server.
14905 (grub_net_configure_by_dhcp_ack): Handle routing information.
14906 (grub_cmd_bootp): Set checksum.
14907 (grub_bootp_init): Remove net_dhcp.
14908 * grub-core/net/dns.c: New file.
14909 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14910 completion.
14911 (get_card_packet): Handle allocation.
14912 (grub_efinet_findcards): Set mtu.
14913 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14914 (get_card_packet): Handle allocation.
14915 (emucard): Set mtu.
14916 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14917 (GRUB_MOD_INIT): Set mtu.
14918 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14919 mtu.
14920 (get_card_packet): Handle allocation.
14921 (grub_ofnet_findcards): Set mtu.
14922 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14923 assert.
14924 (grub_net_recv_ethernet_packet): Handle IPv6.
14925 * grub-core/net/http.c: New file.
14926 * grub-core/net/icmp.c: Likewise.
14927 * grub-core/net/icmp6.c: Likewise.
14928 * grub-core/net/ip.c (ip6addr): New type.
14929 (ip6hdr): Likewise.
14930 (reassemble): Likewise.
14931 (cmp): New function.
14932 (reassembles): New variable.
14933 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14934 (id): New variable.
14935 (send_fragmented): New function.
14936 (grub_net_send_ip_packet): Rename to ...
14937 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14938 Handle non-UDP.
14939 (grub_net_recv_ip_packets): Rename to ...
14940 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14941 (free_rsm): New function.
14942 (free_old_fragments): Likewise.
14943 (grub_net_recv_ip4_packets): New function.
14944 (grub_net_send_ip6_packet): Likewise.
14945 (grub_net_send_ip_packet): Likewise.
14946 (grub_net_recv_ip6_packets): Likewise.
14947 (grub_net_recv_ip_packets): Likewise.
14948 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14949 (LINK_LAYER_CACHE_SIZE): New const.
14950 (link_layer_find_entry): New function.
14951 (grub_net_link_layer_add_address): Likewise.
14952 (grub_net_link_layer_resolve_check): Likewise.
14953 (grub_net_link_layer_resolve): Likewise.
14954 (grub_net_ipv6_get_slaac): Likewise.
14955 (grub_net_ipv6_get_link_local): Likewise.
14956 (grub_cmd_ipv6_autoconf): Likewise.
14957 (parse_ip): Handle one number representation.
14958 (parse_ip6): New functoion.
14959 (match_net): Handle IPv6.
14960 (grub_net_resolve_address): Handle IPv6 and DNS.
14961 (grub_net_resolve_net_address): Handle IPv6.
14962 (route_cmp): New function.
14963 (grub_net_route_address): Find best route.
14964 (grub_net_addr_to_str): Handle IPv6.
14965 (grub_net_addr_cmp): New function.
14966 (grub_net_add_addr): Register local route.
14967 (print_net_address): Handle net address.
14968 (grub_net_poll_cards): Retransmit TCP.
14969 (grub_net_poll_cards_idle_real): Likewise.
14970 (have_ahead): New function.
14971 (grub_net_seek_real): Use underlying seek.
14972 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14973 * grub-core/net/tcp.c: New file.
14974 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14975 (cmp): New function.
14976 (ack): Likewise.
14977 (tftp_receive): Handle unordered input.
14978 (destroy_pq): New function.
14979 (tftp_close): Close pq.
14980 * grub-core/net/udp.c: Put missing license header.
14981 (grub_net_udp_socket): New function.
14982 (udp_socket_register): Likewise.
14983 (grub_net_udp_close): Likewise.
14984 (grub_net_recv_udp_packet): Check checksum.
14985 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14986 * include/grub/misc.h (grub_memchr): New function.
14987 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14988 (grub_net_card_driver): Return buf in recv.
14989 (grub_net_slaac_mac_list): New struct.
14990 (grub_network_level_protocol_id): Add ipv6.
14991 (grub_net_network_level_addr): Likewise.
14992 (grub_net_network_level_net_addr): Likewise.
14993 (grub_net_app_protocol): Add seek.
14994 (grub_net_socket): Removed.
14995 (grub_net_sockets): Likewise.
14996 (grub_net_socket_register): Likewise.
14997 (grub_net_socket_unregister): Likewise.
14998 (FOR_NET_SOCKETS): Likewise.
14999 (grub_net_add_addr): Add const.
15000 (GRUB_NET_BOOTP_*): New enum.
15001 (grub_net_addr_cmp): New proto.
15002 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15003 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15004 (grub_net_hwaddr_to_str): NEw proto.
15005 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15006 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15007 (grub_dns_init): New proto.
15008 (grub_dns_fini): Likewise.
15009 (grub_net_tcp_retransmit): Likewise.
15010 (grub_net_link_layer_add_address): Likewise.
15011 (grub_net_link_layer_resolve_check): Likewise.
15012 (grub_net_link_layer_resolve): Likewise.
15013 (grub_net_dns_lookup): Likewise.
15014 (grub_net_add_dns_server): Likewise.
15015 (grub_net_remove_dns_server): Likewise.
15016 (GRUB_NET_TRIES): New const.
15017 (GRUB_NET_INTERVAL): Likewise.
15018 * include/grub/net/arp.h: Mostly rewritten.
15019 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15020 * include/grub/net/ip.h: Mostly rewritten.
15021 * include/grub/net/netbuff.h: Indent.
15022 * include/grub/net/tcp.h: New file.
15023 * include/grub/net/udp.h: Mostly rewritten.
15024 * include/grub/priority_queue.h: New file.
15025 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15026 (grub_swap_bytes64_compile_time): Likewise.
15027 (grub_cpu_to_be16_compile_time): Likewise.
15028 (grub_cpu_to_be32_compile_time): Likewise.
15029 (grub_cpu_to_be64_compile_time): Likewise.
15030 (grub_be_to_cpu64_compile_time): Likewise.
15031
15032 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15035 UINT_TO_PTR with cast.
15036
15037 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15040 don't use them.
15041
15042 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15045 already there.
15046
15047 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15048
15049 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15050 confusing ipxe.
15051
15052 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15055 Add missing const attribute.
15056 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15057 Likewise.
15058 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15059 Likewise.
15060
15061 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15064 misaligned access.
15065 (serpent_setkey): Likewise.
15066 (serpent_encrypt_internal): Likewise.
15067 (serpent_decrypt_internal): Likewise.
15068 (serpent_encrypt): Don't put an alignment-increasing cast.
15069 (serpent_decrypt): Likewise.
15070 (serpent_test): Likewise.
15071
15072 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15075
15076 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15079
15080 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15081 grub_addr_t casts.
15082 (PTR_TO_UINT64): Likewise.
15083 (PTR_TO_UINT32): Likewise.
15084
15085 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15086
15087 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15088 because of stack.
15089 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15090 limit.
15091
15092 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15093
15094 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15095 text_width > available width a bit more gracefully.
15096
15097 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15098
15099 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15100 current address calculation.
15101
15102 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15103
15104 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15105 stack.
15106 (encode_block): Likewise.
15107
15108 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15109
15110 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15111 certainety.
15112
15113 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15114
15115 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15116 non-RS part to avoid RS messing with GDT.
15117 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15118 Increase to suit in realmode routines.
15119
15120 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15121
15122 * grub-core/kern/i386/realmode.S: Increase alignment.
15123 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15124
15125 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15126
15127 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15128 be deterministic.
15129 (syndroms): Compute 0 syndrom.
15130 (rs_recover): Use 0 syndrom.
15131
15132 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15133
15134 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15135
15136 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15137
15138 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15139 brackets.
15140
15141 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15144 account.
15145 (get_top_pad): Likewise.
15146 (get_right_pad): Likewise.
15147 (get_bottom_pad): Likewise.
15148
15149 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15152
15153 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15156 attribute as the structure isn't guaranteed to be properly aligned.
15157 (grub_efi_pci_device_path): Likewise.
15158 (grub_efi_pccard_device_path): Likewise.
15159 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15160 specify the size of `memory_type'.
15161 (grub_efi_vendor_device_path): Likewise.
15162 (grub_efi_controller_device_path): Likewise.
15163 (grub_efi_acpi_device_path): Likewise.
15164 (grub_efi_expanded_acpi_device_path): Likewise.
15165 (grub_efi_atapi_device_path): Likewise.
15166 (grub_efi_scsi_device_path): Likewise.
15167 (grub_efi_fibre_channel_device_path): Likewise.
15168 (grub_efi_1394_device_path): Likewise.
15169 (grub_efi_usb_device_path): Likewise.
15170 (grub_efi_usb_class_device_path): Likewise.
15171 (grub_efi_i2o_device_path): Likewise.
15172 (grub_efi_mac_address_device_path): Likewise.
15173 (grub_efi_ipv4_device_path): Likewise.
15174 (grub_efi_ipv6_device_path): Likewise.
15175 (grub_efi_infiniband_device_path): Likewise.
15176 (grub_efi_uart_device_path): Likewise.
15177 (grub_efi_vendor_messaging_device_path): Likewise.
15178 (grub_efi_hard_drive_device_path): Likewise.
15179 (grub_efi_cdrom_device_path): Likewise.
15180 (grub_efi_vendor_media_device_path): Likewise.
15181 (grub_efi_file_path_device_path): Likewise.
15182 (grub_efi_protocol_device_path): Likewise.
15183 (grub_efi_piwg_device_path): Likewise.
15184 (grub_efi_bios_device_path): Likewise.
15185
15186 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15187
15188 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15189 (grub_ucs4_to_utf8_alloc): Likewise.
15190 (grub_ucs4_to_utf8): Likewise.
15191 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15192 (grub_ucs4_to_utf8_alloc): Likewise.
15193
15194 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15195
15196 AFFS never uses unicode.
15197
15198 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15199 (grub_latin1_to_utf8): New inline function.
15200 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15201
15202 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15203
15204 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15205 overflow.
15206
15207 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15208
15209 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15210 (grub_squash_dirent_header): Likewise.
15211 (read_chunk): Don't double swap.
15212 (grub_squash_iterate_dir): Fix swap sizes.
15213
15214 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15217
15218 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15219
15220 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15221 (grub_hfs_iterate_dir): Likewise.
15222
15223 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 Fix video on platforms where unaligned access is forbidden.
15226 Make several optimisations while on it.
15227
15228 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15229 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15230 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15231 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15232 Disable.
15233 (grub_video_fbblit_replace_16bit_1bit):
15234 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15235 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15236 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15237 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15238 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15239 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15240 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15241 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15242 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15243 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15244 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15245 (grub_video_fbblit_replace_index_RGB888): Likewise.
15246 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15247 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15248 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15249 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15250 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15251 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15252 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15253 Disable.
15254 (grub_video_fbblit_blend_XXX565_1bit):
15255 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15256 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15257 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15258 void *.
15259 * grub-core/video/fb/video_fb.c (common_blitter)
15260 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15261 (grub_video_fb_create_render_target_from_pointer)
15262 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15263 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15264 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15265 definition.
15266 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15267
15268 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15269
15270 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15271 HH22 and HM10 relocations.
15272
15273 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15274
15275 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15276
15277 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15278
15279 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15280 allocation succeeded.
15281
15282 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15283
15284 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15285 argument a u8 pointer. All users updated.
15286 Handle unaligned buffers.
15287
15288 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15291 add_part to workaround compiler bug.
15292
15293 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15296
15297 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15300 Reserve alignment invariants.
15301 (grub_multiboot_load): Likewise.
15302 (retrieve_video_parameters): Likewise.
15303 (grub_multiboot_make_mbi): Likewise.
15304
15305 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15308 incorrect pointer.
15309
15310 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15313 (grub_pata_pio_write): Likewise.
15314
15315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 Add noreturn attributes and remove unreachable code.
15318
15319 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15320 code.
15321 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15322 code. Mark as noreturn.
15323 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15324 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15325 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15326 unreachable code.
15327 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15328 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15329 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15330 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15331 * include/grub/kernel.h (grub_main): Mark as noreturn.
15332 * include/grub/reader.h (grub_rescue_run): Likewise.
15333
15334 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15337 redundant declaration.
15338
15339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15340
15341 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15342 redundant declaration.
15343 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15344
15345 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15348 to ensure alignment.
15349 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15350 alignment. Ensure tmp alignment.
15351 (grub_cmd_hdparm): Ensure buf alignment.
15352 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15353 to ensure alignment.
15354 (grub_ata_dumpinfo): Ensure text alignment.
15355 (grub_atapi_identify): Preserve alignment invariant.
15356 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15357
15358 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15359
15360 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15361 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15362 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15363 * include/grub/misc.h (grub_reboot)
15364 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15365 (grub_halt) [__mips__]: Likewise.
15366
15367 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15368
15369 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15370 Remove redundant declaration.
15371 (grub_mmap_get_post64): Likewise.
15372 (grub_mmap_get_upper): Likewise.
15373 (grub_mmap_get_lower): Likewise.
15374
15375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15378 uint32_t * to ensure alignment.
15379 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15380
15381 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15384 uint16_t * to ensure alignment.
15385 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15386 alignment.
15387
15388 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15391 to ensure alignment.
15392 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15393
15394 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15395
15396 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15397 Handle unaligned pointers.
15398 (u32at): Likewise.
15399 (u64at): Likewise.
15400 (fixup): Use byte access instead of v16at.
15401 (find_attr): Fix imporper usage of v32at.
15402 (read_data): Likewise.
15403 (list_file): Handle byte-swapping and unaligned strings.
15404 (grub_ntfs_label): Likewise.
15405
15406 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15407
15408 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15409 as it's not necessarily aligned.
15410
15411 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15414 redundant declaration.
15415 (grub_serial_init): Likewise.
15416 (grub_terminfo_init): Likewise.
15417
15418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15421 function.
15422 (ZAP_HASH_IDX): Likewise.
15423 (ZAP_LEAF_HASH_SHIFT): Likewise.
15424 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15425 (LEAF_HASH): Likewise.
15426 (ZAP_LEAF_NUMCHUNKS): Likewise.
15427 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15428 alignment invariants. Return pointer. All users updated.
15429 (ZAP_LEAF_ENTRY): Make into inline function.
15430 (NBBY): Removed.
15431 (xor): LIkewise.
15432 (xor_out): Use grub_crypto_xor.
15433 (dnode_get_path): Use grub_get_unaligned.
15434 (nvlist_find_value): Likewise.
15435 (grub_zfs_nvlist_lookup_uint64): Likewise.
15436 (grub_zfs_nvlist_lookup_string): Likewise.
15437 (get_nvlist_size): Likewise.
15438 (grub_zfs_open): Likewise.
15439 (fill_fs_info): Likewise.
15440 (grub_zfs_dir): Likewise.
15441 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15442 alignment invariants.
15443 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15444 necessarily aligned.
15445
15446 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15447
15448 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15449
15450 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15451
15452 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15453 arithmetic to conserve alignment invariants.
15454
15455 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15456
15457 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15458 redundant declaration.
15459 (grub_efiemu_mm_obtain_request): Likewise.
15460 (grub_efiemu_prepare): Likewise.
15461
15462 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15463
15464 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15465 to match types.
15466
15467 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15470 case of aunaligned recptr.
15471 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15472 alignment.
15473 (grub_hfsplus_btree_search): Handle unaligned index.
15474
15475 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15478 to get freetag and skip.
15479
15480 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15483 array.
15484 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15485 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15486
15487 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15490 name for checksum and fix allocation algorithm.
15491
15492 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 * include/grub/types.h (grub_properly_aligned_t): New type.
15495 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15496 (grub_get_unaligned16): Add explicit casts.
15497 (grub_get_unaligned32): Likewise.
15498 (grub_get_unaligned64): Likewise.
15499 (grub_set_unaligned16): New function.
15500 (grub_set_unaligned32): Likewise.
15501
15502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15505
15506 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15509 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15510 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15511
15512 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15513
15514 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15515 conditionals.
15516
15517 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15520 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15521
15522 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 Unify and improve RAID and crypto xor.
15525
15526 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15527 changed to grub_crypto_xor
15528 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15529 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15530 Use bigger types when possible.
15531
15532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15533
15534 * grub-core/disk/raid.c (scan_devices): Fix condition.
15535
15536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15539 Make name a const ptr.
15540
15541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15544 first argument a const pointer.
15545 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15547 proto.
15548 (grub_children_iterate): Likewise.
15549 (grub_machine_mmap_iterate): Remove redundant declaration.
15550
15551 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15554 (grub_cmd_acpi) [!x86]: Disable EBDA.
15555
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 Enable UTF8 in gnulib regexp.
15559
15560 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15561 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15562 (isupper): Use grub_isupper.
15563 (isascii): New inline function.
15564 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15565 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15566 * grub-core/normal/charset.c (grub_utf8_process): New function.
15567 (grub_utf8_to_utf16): Use grub_utf8_process.
15568 (grub_encode_utf8_character): New function.
15569 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15570 * include/grub/charset.h (grub_utf8_process): New declaration.
15571 (grub_encode_utf8_character): Likewise.
15572 * include/grub/misc.h (grub_islower): New inline function.
15573 (grub_isupper): Likewise.
15574 (grub_strchrsub): Moved down to fix the definitions.
15575
15576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15579 specification.
15580
15581 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * include/grub/loader.h (grub_loader_register_preboot_hook):
15584 Use struct preboot * and not void * for handle. All users updated.
15585 (grub_loader_unregister_preboot_hook): Likewise.
15586
15587 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15590 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15591 UTF-16-BE. All users updated.
15592 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15593 (grub_hfsplus_iterate_dir): Likewise.
15594 (grub_hfsplus_label): Likewise.
15595
15596 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15597
15598 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15599
15600 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 Add missing const qualifiers.
15603
15604 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15605 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15606 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15607 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15608 (grub_lvm_check_flag): Likewise.
15609 * grub-core/efiemu/i386/coredetect.c
15610 (grub_efiemu_get_default_core_name): Likewise
15611 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15612 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15613 * grub-core/fs/ntfs.c (fixup): Likewise.
15614 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15615 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15616 (fzap_lookup): Likewise.
15617 (zap_lookup): Likewise.
15618 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15619 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15620 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15621 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15622 (grub_freebsd_add_meta_module): Likewise.
15623 (grub_cmd_freebsd_module): Likewise.
15624 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15625 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15626 (grub_xnu_writetree_get_size): Likewise.
15627 (grub_xnu_writetree_toheap_real): Likewise.
15628 (grub_xnu_find_key): Likewise.
15629 (grub_xnu_create_key): Likewise.
15630 (grub_xnu_create_value): Likewise.
15631 (grub_xnu_register_memory): Likewise.
15632 (grub_xnu_check_os_bundle_required): Likewise.
15633 (grub_xnu_scan_dir_for_kexts): Likewise.
15634 (grub_xnu_load_kext_from_dir): Likewise.
15635 * grub-core/normal/color.c (color_list): Likewise.
15636 * grub-core/normal/completion.c (current_word): Likewise.
15637 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15638 * grub-core/term/serial.c (grub_serial_find): Likewise.
15639 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15640 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15641 Likewise.
15642 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15643 (grub_freebsd_add_meta_module): Likewise.
15644 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15645 * include/grub/net.h (grub_net_card_driver): Likewise.
15646 (grub_net_card): Likewise.
15647 (grub_net_app_protocol): Likewise.
15648 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15649 * include/grub/serial.h (grub_serial_find): Likewise.
15650 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15651 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15652 (grub_xnu_create_value): Likewise.
15653 (grub_xnu_find_key): Likewise.
15654 (grub_xnu_scan_dir_for_kexts): Likewise.
15655 (grub_xnu_load_kext_from_dir): Likewise.
15656
15657 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15658 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15659 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15660 Moved from here ...
15661 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15662
15663 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15664
15665 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15666
15667 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15670 (read_device): Fix size calculation.
15671
15672 2011-11-25 Robert Millan <rmh@gnu.org>
15673
15674 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15675 (find_root_device_from_libzfs): Add zpool output parser to be used
15676 as fallback when libzfs isn't available.
15677
15678 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15679
15680 * po/Makefile.in.in: Add missing escape-continuation.
15681
15682 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15683
15684 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15685
15686 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15689
15690 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15691
15692 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15693
15694 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15697
15698 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 * grub-core/lib/adler32.c: Add missing license specification.
15701 * grub-core/lib/crc64.c: Likewise.
15702 * grub-core/loader/i386/pc/plan9.c: Likewise.
15703 * grub-core/partmap/plan.c: Likewise.
15704
15705 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15706
15707 Add facility to debug GRUB with gdb under qemu.
15708
15709 * grub-core/gdb_grub.in: New file.
15710 * grub-core/gmodule.pl.in: Likewise.
15711 * grub-core/Makefile.core.def (gmodule.pl): New script.
15712 (gdb_grub): Likewise.
15713
15714 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * util/grub-mount.c (argp_parser): Accept relative pathes.
15717 * util/grub-fstest.c (argp_parser): Likewise.
15718
15719 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 Plan9 support.
15722
15723 * Makefile.util.def (libgrubmods): Add
15724 grub-core/partmap/plan.c.
15725 * docs/grub.texi: Notice Plan9 support.
15726 * grub-core/Makefile.core.def (plan9): New module.
15727 (part_plan): Likewise.
15728 * grub-core/loader/i386/pc/plan9.c: New file.
15729 * grub-core/partmap/plan.c: Likewise.
15730 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15731 define.
15732 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15733 * include/grub/mm.h (grub_extend_alloc): New inline function.
15734
15735 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15736
15737 Make Reed-Solomon faster by using power of generator representation of
15738 GF(256)*.
15739
15740 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15741 (gf_double_t): Likewise.
15742 (gf_invert): Removed.
15743 (gf_powx): New array.
15744 (gf_powx_inv): Likewise.
15745 (scratch): Move higher.
15746 (gf_reduce): Removed.
15747 (gf_mul): Use powx.
15748 (gf_invert): Likewise.
15749 (init_inverts): Replaced with ...
15750 (init_powx): ...this. All users updated.
15751 (pol_evaluate): Replace multiplications with additions.
15752 (rs_encode): Likewise.
15753 (gauss_eliminate): Call gf_invert.
15754 (grub_reed_solomon_add_redundancy): Call init_powx.
15755 (grub_reed_solomon_recover): Call init_powx unconditionally.
15756
15757 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15758
15759 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15760
15761 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15764 disk->partiton for safety.
15765
15766 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15767
15768 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15769 Fix a memory leak.
15770 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15771
15772 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15773
15774 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15775
15776 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15777
15778 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15779
15780 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 Fix spaces handling in proc/self/mountinfo.
15783
15784 * util/getroot.c (unescape): New function.
15785 (grub_find_root_device_from_mountinfo): Use unescape.
15786
15787 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 Support ZFS embedding.
15790
15791 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
15792 (grub_zfs_fs): Register grub_zfs_embed.
15793
15794 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 Fix MIPS compilation.
15797
15798 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
15799 * include/grub/offsets.h: Rename decompressor fields from
15800 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15801 * util/grub-mkimage.c (image_targets): Use new names.
15802
15803 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15804
15805 Defer multiboot device parsing until we're in compressed part.
15806
15807 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15808 bsd_part. setdevice has fallen into disuse.
15809 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15810 (bsd_part): Likewise.
15811 (boot_dev): New variable.
15812 (multiboot_trampoline): Don't parse multiboot device.
15813 Pass multiboot device in %edx.
15814 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15815 grub_boot_device.
15816 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15817 Likewise.
15818 * grub-core/kern/i386/pc/startup.S: Save edx.
15819 (grub_boot_drive): Removed.
15820 (grub_install_dos_part): Likewise.
15821 (grub_install_bsd_part): Likewise.
15822 (grub_boot_device): New variable.
15823 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15824 (grub_install_bsd_part): Likewise.
15825 (grub_boot_drive): Likewise.
15826 (grub_boot_device): New variable.
15827 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15828 Removed.
15829 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15830 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15831 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15832 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15833 * util/grub-install.in: Remove redundant condition.
15834
15835 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15836
15837 Fix bug introduced by previous commit.
15838
15839 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15840
15841 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 Use decompressors framework on i386-pc. It increases core size
15844 by 46 bytes but improves compatibility and maintainability.
15845
15846 * grub-core/Makefile.core.def (lzma_decompress): New image.
15847 (kernel): Add i386_pc_ldflags.
15848 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15849 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15850 to real_to_prot, prot_to_real and device info.
15851 * include/grub/offsets.h: Renamed decompressor offsets.
15852 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15853 (image_target_desc): Remove raw_size and rename decompressor fields.
15854 (compress_kernel): Handle lzma.
15855 (generate_image): Handle decompressors on i386-pc.
15856
15857 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15858
15859 * configure.ac: Add -fno-asynchronous-unwind-tables.
15860
15861 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 Move assembly code to C by using intwrap. It increases core size
15864 by 88 bytes but improves compatibility and maintainability.
15865
15866 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15867 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15868 ... here. Translated to C.
15869 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15870 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15871 ... here. Translated to C.
15872 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15873 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15874 ... here. Translated to C.
15875 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15876 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15877 ... here. Translated to C.
15878 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15879 * grub-core/term/i386/pc/console.c (grub_console_cls):
15880 ... here. Translated to C.
15881 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15882 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15883 ... here. Translated to C.
15884 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15885 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15886 Translated to C.
15887 * grub-core/term/i386/pc/console.c (int10_9): New function.
15888 (grub_console_putchar): Likewise.
15889 * include/grub/i386/pc/console.h: Removed the not anymore shared
15890 functions.
15891
15892 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 Move grub_chainloader_real_boot out of the kernel.
15895
15896 * grub-core/Makefile.am: Remove machine/loader.h.
15897 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15898 Removed.
15899 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15900 variable.
15901 (grub_relocator16_keep_a20_enabled): Likewise.
15902 (grub_relocator16_boot): Fill new variables.
15903 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15904 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15905 relocator.
15906 (grub_chainloader_unload): Likewise.
15907 (grub_chainloader_cmd): Likewise.
15908 * include/grub/i386/pc/loader.h: Removed.
15909 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15910 and esi. All initialisers updated.
15911
15912 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15913 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
15914
15915 * Makefile.util.def (grub-mount): New util.
15916 * .bzrignore: Add grub-mount.
15917 * configure.ac: Check for fuse and enable grub-mount if available.
15918 * docs/man/grub-mount.h2m: New file.
15919 * util/grub-mount.c: Likewise.
15920
15921 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/commands/efi/fixvideo.c: Gettextize.
15924 * grub-core/commands/hashsum.c: Likewise.
15925 * grub-core/commands/i386/cmostest.c: Likewise.
15926 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15927 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15928 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15929 * grub-core/commands/lsmmap.c: Likewise.
15930 * grub-core/commands/menuentry.c: Likewise.
15931 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15932 * grub-core/commands/setpci.c: Likewise.
15933 * grub-core/loader/i386/bsd.c: Likewise.
15934 * grub-core/loader/i386/linux.c: Likewise.
15935 * util/getroot.c: Likewise.
15936 * util/grub-editenv.c: Likewise.
15937 * util/grub-fstest.c: Likewise.
15938 * util/grub-mkfont.c: Likewise.
15939 * util/grub-mkimage.c: Likewise.
15940 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15941 * util/grub-pe2elf.c: Likewise.
15942 * util/grub-probe.c: Likewise.
15943 * util/grub-setup.c: Likewise.
15944 * util/ieee1275/ofpath.c: Likewise.
15945 * util/misc.c: Likewise.
15946 * util/raid.c: Likewise.
15947
15948 2011-11-11 Robert Millan <rmh@gnu.org>
15949
15950 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15951 __attribute__((unused)) from `os_dev', which *is* being used.
15952
15953 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15954
15955 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15956 forgotten define.
15957 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15958 GRUB_IA64_DL_GOT_ALIGN.
15959 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15960 GRUB_IA64_DL_TRAMP_ALIGN.
15961
15962 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 Replace grub_fatal with normal errors in i386 linux loader.
15965
15966 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15967 (allocate_pages): Check find_efi_mmap_size return value.
15968 (grub_e820_add_region): Return error.
15969 (grub_linux_boot): Check mmap return value.
15970
15971 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15972
15973 * grub-core/commands/acpihalt.c: Gettextized.
15974 * grub-core/commands/cacheinfo.c: Likewise.
15975 * grub-core/commands/cmp.c: Likewise.
15976 * grub-core/commands/efi/loadbios.c: Likewise.
15977 * grub-core/commands/gptsync.c: Likewise.
15978 * grub-core/commands/ieee1275/suspend.c: Likewise.
15979 * grub-core/commands/legacycfg.c: Likewise.
15980 * grub-core/commands/memrw.c: Likewise.
15981 * grub-core/commands/minicmd.c: Likewise.
15982 * grub-core/commands/parttool.c: Likewise.
15983 * grub-core/commands/time.c: Likewise.
15984 * grub-core/commands/videoinfo.c: Likewise.
15985 * grub-core/disk/geli.c: Likewise.
15986 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15987 * grub-core/disk/luks.c: Likewise.
15988 * grub-core/disk/lvm.c: Likewise.
15989 * grub-core/font/font_cmd.c: Likewise.
15990 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15991 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15992 * grub-core/gfxmenu/view.c: Likewise.
15993 * grub-core/kern/emu/hostdisk.c: Likewise.
15994 * grub-core/kern/emu/main.c: Likewise.
15995 * grub-core/kern/emu/misc.c: Likewise.
15996 * grub-core/kern/emu/mm.c: Likewise.
15997 * grub-core/kern/mips/arc/init.c: Likewise.
15998 * grub-core/kern/mips/loongson/init.c: Likewise.
15999 * grub-core/kern/partition.c: Likewise.
16000 * grub-core/lib/i386/halt.c: Likewise.
16001 * grub-core/lib/mips/arc/reboot.c: Likewise.
16002 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16003 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16004 * grub-core/loader/i386/xnu.c: Likewise.
16005 * grub-core/loader/multiboot.c: Likewise.
16006 * grub-core/net/bootp.c: Likewise.
16007 * grub-core/net/net.c: Likewise.
16008 * grub-core/normal/term.c: Likewise.
16009 * grub-core/partmap/bsdlabel.c: Likewise.
16010 * grub-core/parttool/msdospart.c: Likewise.
16011 * grub-core/term/gfxterm.c: Likewise.
16012 * grub-core/term/terminfo.c: Likewise.
16013 * grub-core/video/i386/pc/vbe.c: Likewise.
16014 * util/grub-menulst2cfg.c: Likewise.
16015 * util/grub-mkdevicemap.c: Likewise.
16016 * util/grub-mklayout.c: Likewise.
16017 * util/grub-mkrelpath.c: Likewise.
16018 * util/grub-script-check.c: Likewise.
16019 * util/ieee1275/grub-ofpathname.c: Likewise.
16020 * util/resolve.c: Likewise.
16021
16022 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Support %1$d syntax.
16025
16026 * tests/printf_unit_test.c: New file.
16027 * Makefile.util.def (printf_test): New test.
16028 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16029
16030 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16033 fix.
16034
16035 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16038 dprintf.
16039 * grub-core/font/font.c (grub_font_load): Likewise.
16040
16041 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * util/grub-macho2img.c: Add comment concerning gettext.
16044 * grub-core/lib/legacy_parse.c: Likewise.
16045
16046 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16049 (grub_xvasprintf): Likewise.
16050
16051 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 Add const keyword to grub_env_get and gettextize week days.
16054
16055 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16056 (grub_read_hook_datetime): Return const char *.
16057 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16058 updated.
16059 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16060 Mark for gettext.
16061 (grub_get_weekday_name): Return const char *. Call gettext.
16062 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16063 char * and len as the argument. All users updated.
16064 (grub_script_argv_split_append): Receive const char *.
16065 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16066 * include/grub/env.h (grub_env_get): Likewise.
16067 (grub_env_read_hook_t): Return const char *.
16068 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16069 (grub_script_argv_split_append): Likewise.
16070
16071 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16074
16075 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16076
16077 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16078 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16079
16080 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16081
16082 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16083 Fix prototype.
16084
16085 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16086
16087 Fix mips compilation.
16088
16089 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16090 normal decoder.
16091 (hashes): Use in embed decoder as well (for sizes).
16092 (dec_stream_header): Fix embed decompressor logic.
16093 (dec_stream_footer): Likewise.
16094
16095 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16098 an error and not a fatal on unrecognised relocation types.
16099
16100 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16103 Issue error rather than printf on unknown arguments.
16104
16105 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16106
16107 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16108 Make buf a const.
16109
16110 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16111
16112 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16113 Fix module name.
16114
16115 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16116
16117 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16118 leftover debug printf.
16119
16120 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16123
16124 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16125
16126 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16127 A stylistic fix.
16128
16129 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16130
16131 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16132
16133 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16134
16135 Allow all modules to perform serial IO
16136
16137 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16138 * include/grub/serial.h (grub_serial_port_configure): New inline
16139 function.
16140 (grub_serial_port_fetch): Likewise.
16141 (grub_serial_port_put): Likewise.
16142 (grub_serial_port_fini): Likewise.
16143 (grub_serial_find): New proto.
16144
16145 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 Put symlink at the end of the node and fix a potential
16148 memory corruption.
16149
16150 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16151 Make symlink into an array.
16152 (set_rockridge): Set have_symlink and alloc_dirents.
16153 (grub_iso9660_read_symlink): Use new layout.
16154 (grub_iso9660_iterate_dir): Fix memory corruption.
16155 Use new layout.
16156 (grub_iso9660_dir): Set have_symlink.
16157 (grub_iso9660_open): Likewise.
16158
16159 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16160
16161 Remove local keyword.
16162
16163 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16164 (version_test_gt): Likewise.
16165 (version_find_latest): Likewise.
16166 (gettext_printf): Likewise.
16167 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16168
16169 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16172
16173 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 Fix ZFS memory and resource leaks.
16176
16177 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16178 All users updated.
16179 Free type on exit.
16180 (fill_vdev_info): New parameter inserted. All users updated.
16181 (check_pool_label): Likewise.
16182 (scan_disk): Likewise.
16183 (scan_devices): Close non-inserted disks.
16184 (fzap_iterate): Free l.
16185 (unmount_device): Free children descripto memory.
16186
16187 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16188
16189 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16190 argument (access out of bounds).
16191
16192 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16193
16194 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16195 >= 6 drives.
16196
16197 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16200 Fix declaration.
16201
16202 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16203
16204 Fix several memory leaks.
16205
16206 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16207 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16208 (grub_cpio_dir): Likewise.
16209 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16210 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16211 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16212 (grub_romfs_label): Likewise.
16213 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16214 (squash_unmount): New function.
16215 (grub_squash_dir): Fix memory leak.
16216 (grub_squash_open): Likewise.
16217 (grub_squash_read): Likewise.
16218 (grub_squash_mtime): Likewise.
16219 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16220 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16221 * util/grub-fstest.c (fstest): Likewise.
16222
16223 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16226 avoid accessing beyond the array.
16227
16228 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16229
16230 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16231
16232 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 Several AFFS fixes.
16235
16236 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16237 (GRUB_AFFS_FLAG_FFS): Removed.
16238 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16239 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16240 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16241 (grub_fshelp_node): Make block 32-bit.
16242 Add block_cache and last_block_cache.
16243 (grub_affs_read_block): Fill and use block cache.
16244 (grub_affs_read_file): Removed.
16245 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16246 boot block.
16247 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16248 safety.
16249 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16250 space.
16251 (grub_affs_close): Free block cache.
16252 (grub_affs_read): Use grub_fshelp_read_file directly.
16253
16254 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16257 with no error set.
16258
16259 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16260
16261 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16262 used variable.
16263 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16264 Likewise.
16265
16266 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16269
16270 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16271 byteswap when needed.
16272
16273 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Fix FreeBSD compilation.
16276
16277 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16278 to avoid circular dependency.
16279 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16280 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16281 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16282
16283 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 Fix ZFS crypto error types.
16286
16287 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16288 (grub_gcm_decrypt): Likewise.
16289 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16290 from PBKDF2.
16291
16292 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 Illumos support.
16295
16296 * Makefile.util.def (10_illumos): New script.
16297 * configure.ac: Set COND_HOST_ILLUMOS.
16298 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16299 Support Illumos calls.
16300 (find_partition_start) [__sun__]: Likewise.
16301 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16302 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16303 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16304 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16305 device.
16306 * util/grub-probe.c (probe) [__sun__]: Do character check.
16307 * util/grub.d/10_illumos.in: New file.
16308
16309 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 Support escaped commas in hostdisk.
16312
16313 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16314 (find_grub_drive): Use unescape_cmp.
16315 (make_device_name): Escape commas.
16316
16317 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16320
16321 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16322
16323 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16324 variable.
16325
16326 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16327
16328 Support trampoline jumps on powerpc.
16329
16330 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16331 __ia64__ path.
16332 (grub_dl_load_segments): Set mod->sz.
16333 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16334 segments.
16335 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16336 (jump): Likewise.
16337 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16338 function.
16339 (trampoline): New struct.
16340 (trampoline_template): New const.
16341 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16342 * include/grub/dl.h (grub_dl): Add sz element.
16343 [__powerpc__]: Follow __ia64__.
16344 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16345 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16346 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16347 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16348
16349 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 ZFS crypto support.
16352
16353 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16354 * grub-core/Makefile.core.def (zfscrypt): New module.
16355 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16356 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16357 it. All users updated.
16358 (grub_zfs_decrypt): New var.
16359 (grub_zfs_load_key): Likewise.
16360 (zio_checksum_functions): Add SHA256+MAC.
16361 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16362 (zio_read): Handle encrypted blocks.
16363 (zap_verify): Remove incorrect check.
16364 (fzap_iterate): Handle non-standard fzap.
16365 (zap_iterate): Likewise.
16366 (zap_iterate_u64): New function.
16367 (dnode_get_fullpath): Load keys.
16368 * grub-core/fs/zfs/zfscrypt.c: New file.
16369 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16370 (grub_crypto_ecb_encrypt): Make input const.
16371 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16372 (grub_crypto_ecb_encrypt): Make input const.
16373 (GRUB_CIPHER_AES): New macro.
16374 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16375 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16376 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16377 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16378 prefix. All users updated.
16379 (grub_zfs_add_key): New proto.
16380 (grub_zfs_decrypt): Likewise.
16381 (grub_zfs_load_key): Likewise.
16382 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16383 * util/grub-fstest.c (options): Add -K option.
16384 (argp_parser): Likewise.
16385
16386 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16387
16388 Support zle compression on ZFS.
16389
16390 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16391 (decomp_table): Add zle.
16392 * include/grub/zfs/zio.h (zio_compress): Add zle.
16393
16394 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 Support BtrFS embedding.
16397
16398 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16399 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16400 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16401 * util/grub-setup.c (setup): Use fs embedding if available.
16402 Add additional sanity check.
16403
16404 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 * util/grub-install.in: Fix condition for config_opt.
16407
16408 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 Support third redundancy strip on raidz3.
16411
16412 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16413 Return error on singularity. All users updated.
16414 (read_device): Don't stop on 3rd failure on raidz3.
16415
16416 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Support case-insensitive ZFS subvolumes.
16419
16420 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16421 All users updated.
16422 (zap_hash): Likewise.
16423 (name_cmp): New function.
16424 (zap_leaf_array_equal): New parameter case_insensitive.
16425 All users updated.
16426 (zap_leaf_lookup): Likewise.
16427 (fzap_lookup): Likewise.
16428 (zap_lookup): Likewise.
16429 (dnode_get_path): New parameter case_insensitive. Retrieve case
16430 sensitiviness of a volume. All users updated.
16431 (dnode_get_fullpath): New parameter case_insensitive.
16432 All users updated.
16433 (grub_zfs_dir): Set info.case_insensitiveness.
16434
16435 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 Support second redundancy strip on raidz(2,3).
16438
16439 * grub-core/fs/zfs/zfs.c (powx): New array.
16440 (powx_inv): Likewise.
16441 (poly): New const.
16442 (xor_out): New function.
16443 (gf_mul): Likewise.
16444 (recovery): Likewise.
16445 (read_device): Use second redundancy strip.
16446
16447 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16448
16449 Use a power of generator representation of GF(256) multiplication group
16450 to save space time and complexity.
16451
16452 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16453 (raid6_table2): Likewise.
16454 (powx): New array.
16455 (powx_inv): Likewise.
16456 (poly): New const.
16457 (grub_raid_block_mul): Replace with ...
16458 (grub_raid_block_mulx): ...this.
16459 (grub_raid6_init_table): Rewritten.
16460 (grub_raid6_recover): Use power of generator representation.
16461
16462 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16463
16464 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16465 for the right device.
16466
16467 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16470 expected by grub-mkimage and it's more clear since there is no implicit
16471 padding.
16472
16473 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16474
16475 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16476 disk.
16477 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16478
16479 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16480
16481 * util/grub-mkrescue.in: Fix handling xorriso option.
16482
16483 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16486 NULL.
16487
16488 2011-11-03 crocket <crockabiscuit@gmail.com>
16489
16490 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16491
16492 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16493
16494 XZ CRC64 and SHA256 support.
16495
16496 * Makefile.util.def (libgrubmods): Add crc64.c.
16497 * grub-core/Makefile.core.def (crc64): New module.
16498 * grub-core/lib/crc64.c: New file.
16499 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16500 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16501 Fix the type.
16502 (MAX_HASH_SIZE): New define.
16503 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16504 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16505 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16506 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16507 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16508 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16509 Handle non-crc32 hashes.
16510 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16511 (dec_stream_header): Handle non-crc32 hashes.
16512 (dec_stream_footer): Likewise.
16513 (dec_block_header): Likewise.
16514 (dec_main): Likewise.
16515 (xz_dec_init): Likewise.
16516 (xz_dec_reset): Likewise.
16517 (xz_dec_end): Likewise.
16518 * util/import_gcry.py: Add CRC64 line.
16519
16520 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16523 as well.
16524
16525 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16526
16527 Make reiserfs label retrieval similar to other *_label functions.
16528
16529 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16530 (REISERFS_MAX_LABEL_LENGTH): Removed.
16531 (REISERFS_LABEL_OFFSET): Likewise.
16532 (grub_reiserfs_label): Rewritten.
16533
16534 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16537 field.
16538
16539 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16542
16543 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16544
16545 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16546 drive failure on both raidz and raidz2.
16547
16548 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16549
16550 Fix RAIDZ(2) for >= 5 devices.
16551
16552 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16553 asize argument. All users updated.
16554
16555 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 Fix RAIDZ(2).
16558
16559 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16560 (fill_vdev_info_real): Set ashift.
16561 (read_device): Rewrite RAIDZ part based on reverse engineering.
16562
16563 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16564
16565 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16566 don't report potentially unavialiable fields in debug output.
16567 (find_path): Fix double-free and memory leak.
16568
16569 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 Read label on UFS1.
16572
16573 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16574 (grub_ufs_fs): Always set .label.
16575
16576 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16577
16578 Use shifts in UFS.
16579
16580 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16581 (grub_ufs_data): New field log2_blksz.
16582 (grub_ufs_read_file): Use shifts.
16583 (grub_ufs_mount): Check block size and logarithm it.
16584
16585 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16588 long symlinks.
16589
16590 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16591
16592 Handle symlinks and long names on tar and cpio.
16593
16594 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16595 (ATTR_FILE): Likewise.
16596 (ATTR_DIR): Likewise.
16597 (ATTR_LNK): Likewise.
16598 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16599 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16600 L and K entries.
16601 (grub_cpio_mount): Zero-fill data.
16602 (handle_symlink): New function.
16603 (grub_cpio_dir): Handle symlinks.
16604 (grub_cpio_open): Likewise.
16605 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16606
16607 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 Fix iso9660 filename limitations and fix memory leaks.
16610
16611 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16612 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16613
16614 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16615
16616 Fix JFS file name length limitations.
16617
16618 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16619 (grub_jfs_diropen): Fix maximum filename length.
16620 (grub_jfs_getent): Fix filename length.
16621 (grub_jfs_lookup_symlink): Fix size checks.
16622
16623 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16624
16625 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16626 string.
16627
16628 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 Leverage BFS implementation to read AFS.
16631
16632 * Makefile.util.def (libgrubmods): Add afs.c.
16633 * grub-core/Makefile.core.def (afs): New module
16634 * grub-core/fs/afs.c: New file.
16635 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16636
16637 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16638
16639 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16640
16641 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/fs/bfs.c: Run indent.
16644
16645 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16646
16647 BFS implementation based on the specification.
16648
16649 * grub-core/fs/bfs.c: New file.
16650 * Makefile.util.def (libgrubmods): Add bfs.c.
16651 * grub-core/Makefile.core.def (bfs): New module.
16652
16653 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16654
16655 * util/grub-fstest.c (cmd_cp): Clarify error message.
16656 (cmd_cmp): Likewise.
16657
16658 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16659
16660 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16661 and befs_be.
16662
16663 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16664
16665 Remove afs and befs because of copyright problem.
16666
16667 * grub-core/fs/afs.c: Removed.
16668 * grub-core/fs/afs_be.c: Removed.
16669 * grub-core/fs/befs.c: Removed.
16670 * grub-core/fs/befs_be.c: Removed.
16671 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16672 * grub-core/Makefile.core.def (afs): Removed.
16673 (afs_be): Likewise.
16674 (befs): Likewise.
16675 (befs_be): Likewise.
16676
16677 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 Prefer rockridge over Joliet.
16680
16681 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16682 to ...
16683 (set_rockridge): ... here.
16684 (grub_iso9660_mount): Check rockridge on the primary label when
16685 discovering. Ignore Joliet if Rockridge is present.
16686
16687 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 Use shifts in nilfs2.
16690
16691 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16692 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16693 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16694 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16695 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16696 (grub_nilfs2_entries_per_block): Replaced with ...
16697 (grub_nilfs2_log_entries_per_block_log): ... this.
16698 (grub_nilfs2_blocks_per_group): Replaced with ...
16699 (grub_nilfs2_blocks_per_group_log): ... this.
16700 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16701 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16702 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16703 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16704 (grub_nilfs2_palloc_entry_offset): Replaced ...
16705 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16706 (grub_nilfs2_dat_translate): Use shifts.
16707 (grub_nilfs2_read_inode): Likewise.
16708 (GRUB_MOD_INIT): Ensure that logs are correct.
16709
16710 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16711
16712 Use shifts in minix filesystem.
16713
16714 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16715 (GRUB_MINIX_ZONE2SECT): Likewise.
16716 (grub_minix_data): Replace block_size with log_block_size.
16717 (grub_minix_read_file): Use shifts.
16718 (grub_minix_mount): Check block size and take a logarithm.
16719
16720 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16721
16722 Use shifts in squash4.
16723
16724 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16725 (squash_mount): Check block size and take logarithm.
16726 (direct_read): Use shifts.
16727
16728 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16729
16730 Correct befs block counting logic.
16731
16732 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16733 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16734 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16735 (grub_afs_read_inode): Use block_shift.
16736 (RANGE_SHIFT): New definition.
16737 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16738 unexpected conditions, use shifts and appropriate types.
16739 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16740
16741 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 * grub-core/disk/raid.c (scan_devices): Check partition.
16744 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16745
16746 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 Support BFS (befs) UUID.
16749
16750 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16751 (grub_afs_small_data_element_header): New struct.
16752 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16753 (grub_afs_read_attribute) [MODE_BFS]: New function.
16754 (grub_afs_iterate_dir): Allocate for complete inode.
16755 (grub_afs_mount): Likewise.
16756 (grub_afs_uuid) [MODE_BFS]: New function.
16757 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16758
16759 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16762 (zfs_unmount): Fix memory leak.
16763
16764 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16765
16766 Support NTFS reparse points.
16767
16768 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16769 (symlink_descriptor): New struct.
16770 (grub_ntfs_read_symlink): New function.
16771 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16772 (grub_ntfs_open): Likewise.
16773
16774 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16775
16776 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16777
16778 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 fstest xnu_uuid subcommand.
16781
16782 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16783 grub-core/commands/xnu_uuid.c.
16784 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16785 (fstest): Handle xnu_uuid.
16786 (options): Document xnu_uuid.
16787 (argp_parser): Parse xnu_uuid.
16788
16789 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
16792 -l argument. Add newline at the end if printing.
16793 (GRUB_MOD_INIT): Document -l.
16794
16795 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16796
16797 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
16798
16799 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 ZFS multi-device and version 33 support.
16802
16803 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16804 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16805 (grub_zfs_data): Add multidev-ice-related fields.
16806 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16807 (dva_get_offset): Make dva const.
16808 (zfs_fetch_nvlist): New function.
16809 (fill_vdev_info_real): Likewise.
16810 (fill_vdev_info): Likewise.
16811 (check_pool_label): Likewise.
16812 (scan_disk): Likewise.
16813 (scan_devices): Likewise.
16814 (read_device): Likewise.
16815 (read_dva): Likewise.
16816 (zio_read_gang): Use read_dva.
16817 (zio_read_data): Likewise.
16818 (zap_leaf_lookup): Add missing endian conversion.
16819 (zap_verify): Add missing endian conversion. All users updated.
16820 (fzap_lookup): Likewise.
16821 (fzap_iterate): Likewise.
16822 (dnode_get_path): Handle SA bonus.
16823 (nvlist_find_value): Make input const. All users updated.
16824 (unmount_device): New function.
16825 (zfs_unmount): Use unmount_device.
16826 (zfs_mount): Use scan_disk.
16827 (zfs_mtime): New function.
16828 (grub_zfs_open): Handle system attributes.
16829 (fill_fs_info): Likewise.
16830 (grub_zfs_dir): Likewise.
16831 (grub_zfs_fs): Add mtime.
16832 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16833 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16834 (SA_MTIME_OFFSET): Likewise.
16835 (SA_SYMLINK_OFFSET): Likewise.
16836 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16837 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16838 (fstest): Support zfsinfo.
16839 (argp_parser): Likewise.
16840
16841 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16844 error.
16845
16846 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16847
16848 ZFS fixes.
16849
16850 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16851 sharing the same block. Iterate over correct number of indices.
16852 (dnode_get_path): Handle symlinks correctly.
16853
16854 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16855
16856 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16857
16858 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 Read label on HFS+.
16861
16862 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16863 (grub_hfsplus_btree_search): Fix types.
16864 (grub_hfsplus_label): Implement.
16865
16866 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16869
16870 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16871
16872 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16873
16874 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16875
16876 Fix symlink handling on iso9660.
16877
16878 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16879 All users updated.
16880 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16881 (grub_iso9660_read_symlink): Moved most of code ...
16882 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16883
16884 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16885
16886 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16887 Use union to avoid breaking strict-aliasing rules.
16888
16889 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16890
16891 Support multi-extent iso files.
16892
16893 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16894 Add node.
16895 (grub_fshelp_node): Revamp. All users updated.
16896 (FLAG_*): New enum.
16897 (read_node): New function.
16898 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16899 All users updated.
16900 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16901 (get_node_size): New function.
16902 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16903 entries.
16904 Fix memory leak on . and ..
16905 (grub_iso9660_read): Use read_node.
16906 (grub_iso9660_close): Free node.
16907
16908 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 Fix tar 4G limit and handle paths containing dot.
16911
16912 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16913 (canonicalize): New function.
16914 (grub_cpio_find_file): Use canonicalize. Store offs in
16915 grub_disk_addr_t.
16916 (grub_cpio_dir): Use grub_disk_addr_t.
16917 (grub_cpio_open): Likewise.
16918
16919 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16922
16923 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16924 unused flags.
16925 (grub_squash_inode): Add long_file and block_size.
16926 (grub_squash_cache_inode): New struct.
16927 (grub_squash_dirent): Make types into enum.
16928 (SQUASH_TYPE_LONG_REGULAR): New type.
16929 (grub_squash_frag_desc): Add field size.
16930 (SQUASH_BLOCK_FLAGS): New enum.
16931 (grub_squash_data): Use grub_squash_cache_inode.
16932 (grub_fshelp_node): Make ino_chunk 64-bit.
16933 (read_chunk): Minor argument change. All users updated.
16934 (squash_mount): Use correct le_to_cpu.
16935 (grub_squash_open): Handle LONG_REGULAR.
16936 (direct_read): New function.
16937 (grub_squash_read_data): Handle blocks correctly.
16938
16939 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16942
16943 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16946
16947 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 Fix 2G limit on ZFS.
16950
16951 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16952 types.
16953 (uberblock_verify): Likewise.
16954 (dmu_read): Likewise.
16955 (grub_zfs_read): Likewise. Remove invalid cast.
16956
16957 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16960 (grub_jfs_blkno): Fix incorrect shift.
16961 (grub_jfs_read_file): Use more appropriate types.
16962
16963 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16964
16965 Support triple indirect on minix2 and minix3.
16966
16967 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16968 Declare triple_indir_zone.
16969 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16970 indirect.
16971
16972 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 Minix FS fixes.
16975
16976 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16977 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16978 Rename ctime to mtime. All users updated.
16979 (grub_minix_get_file_block): Fix types and double indirect computations.
16980
16981 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16984 if no label is found.
16985 (grub_fat_iterate_dir): Fix file size type.
16986 (grub_fat_iterate_dir): Likewise.
16987
16988 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16991 save some space.
16992 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16993 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16994
16995 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16998
16999 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * util/import_gcry.py: Accept space between # and include.
17002
17003 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17004
17005 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17006
17007 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17008
17009 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17010
17011 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17012 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17013 yylex_strncpy.
17014 * grub-core/script/yylex.l: Add fine-grained #pragma.
17015
17016 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17017
17018 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17019 New inline function.
17020 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17021 Likewise.
17022 (memset) [GRUB_UTIL]: Likewise.
17023 (memcmp) [GRUB_UTIL]: Likewise.
17024
17025 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17026
17027 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17028 inline function rather than a define.
17029
17030 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17031
17032 * util/grub-setup.c: Add missing include.
17033
17034 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 * util/ieee1275/grub-ofpathname.c: Add missing include.
17037
17038 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17041 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17042 Likewise.
17043
17044 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17045
17046 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17047 grub_memcmp usage.
17048
17049 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17050
17051 * util/grub-install.in: Add datarootdir as per automake manual
17052 suggestion.
17053 * util/grub-mknetdir.in: Likewise.
17054
17055 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17058 suggestion.
17059 * util/grub.d/10_kfreebsd.in: Likewise.
17060 * util/grub.d/10_linux.in: Likewise.
17061 * util/grub.d/10_netbsd.in: Likewise.
17062 * util/grub.d/10_windows.in: Likewise.
17063 * util/grub.d/20_linux_xen.in: Likewise.
17064
17065 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17066
17067 Remove redundant grub_kernel_image_size.
17068
17069 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17070 _edata and _start.
17071 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17072 the small code. It moves it only by few bytes but simplifies the code.
17073 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17074 _start.
17075 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17076 (grub_kernel_image_size): Removed.
17077 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17078 (grub_kernel_image_size): Removed.
17079 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17080 compiled with Apple toolchain.
17081 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17082 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17083 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17084 (grub_total_module_size): Likewise.
17085 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17086 Removed.
17087 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17088 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17089 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17090 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17091 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17092 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17093 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17094 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17095 Removed.
17096 (grub_total_module_size): Removed.
17097 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17098 (image_targets): Likewise.
17099 Set .compressed_size to no field on sparc.
17100 (generate_image): Remove kernel_image_size handling.
17101
17102 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17103
17104 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17105 NULL pointer dereference.
17106
17107 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17110 done with a dedicated section.
17111
17112 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17113 Ensure the correct position of boot_path.
17114 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17115 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17116 other fields.
17117 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17118 * include/grub/boot.h: Removed. All references removed.
17119 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17120 Removed.
17121 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17122
17123 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17124
17125 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17126 name.
17127
17128 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17131
17132 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17135 Don't add the bogus brackets.
17136
17137 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 ExFAT support.
17140
17141 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17142 * grub-core/Makefile.core.def (exfat): New module.
17143 * grub-core/fs/exfat.c: New file.
17144 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17145 (GRUB_FAT_ATTR_*): Make into an enum.
17146 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17147 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17148 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17149 (GRUB_FAT_MAXFILE): Removed.
17150 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17151 (grub_current_fat_bpb_t): New type.
17152 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17153 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17154 (grub_fat_dir_node_t): New type.
17155 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17156 (fat_log2) [MODE_EXFAT]: Removed.
17157 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17158 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17159 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17160 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17161 (grub_fat_label) [MODE_EXFAT]: New function.
17162 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17163 reserved_first_sector to 0.
17164
17165 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17166
17167 Move grub_reboot out of the kernel.
17168
17169 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17170 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17171 * grub-core/lib/efi/reboot.c: ... here.
17172 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17173 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17174 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17175 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17176 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17177 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17178 * grub-core/lib/ieee1275/reboot.c: ... here.
17179 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17180 * grub-core/lib/mips/arc/reboot.c: ... here.
17181 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17182 * grub-core/lib/mips/loongson/reboot.c: ...here.
17183 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17184 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17185 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17186 * include/grub/i386/reboot.h: New file.
17187 * include/grub/mips/loongson/ec.h: Fix includes.
17188 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17189 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17190 * grub-core/lib/i386/reboot.c: New file.
17191
17192 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17193
17194 Make grub_prefix into module to fix the arbitrary limit and save
17195 some space.
17196
17197 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17198 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17199 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17200 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17201 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17202 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17203 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17204 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17205 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17206 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17207 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17208 * include/grub/ia64/efi/kernel.h: Removed.
17209 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17210 (grub_prefix): Removed.
17211 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17212 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17213 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17214 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17215 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17216 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17217 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17218 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17219 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17220 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17221 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17222 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17223 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17224 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17225 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17226 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17227 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17228 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17229 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17230 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17231 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17232 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17233 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17234 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17235 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17236 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17237 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17238 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17239 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17240 from module.
17241 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17242 prefix_end.
17243 (image_targets): Likewise.
17244 (generate_image): Put prefix as a module.
17245
17246 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17247
17248 Replace grub_module_iterate with FOR_MODULES.
17249
17250 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17251 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17252 (grub_efi_modules_addr): ...this.
17253 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17254 (grub_efi_init): Set grub_modbase.
17255 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17256 (grub_modbase): New variable.
17257 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17258 (grub_modbase): New variable.
17259 (grub_machine_init): Set grub_modbase.
17260 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17261 (grub_modbase): New variable.
17262 (grub_machine_init): Set grub_modbase.
17263 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17264 (grub_modbase): New variable.
17265 (grub_machine_init): Set grub_modbase.
17266 * grub-core/kern/main.c (grub_module_iterate): Remove.
17267 (grub_modules_get_end): Use grub_modbase.
17268 (grub_load_modules): Use FOR_MODULES.
17269 (grub_load_config): Likewise.
17270 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17271 (grub_modbase): New variable.
17272 (grub_machine_init): Set grub_modbase.
17273 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17274 (grub_modbase): New variable.
17275 (grub_machine_init): Set grub_modbase.
17276 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17277 Removed.
17278 (grub_modbase): New variable.
17279 (grub_machine_init): Set grub_modbase.
17280 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17281 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17282 (grub_module_iterate): Likewise.
17283 (grub_modbase): New variable declaration.
17284 (FOR_MODULES): New macro.
17285
17286 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17287
17288 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17289 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17290
17291 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17292
17293 Fix few obvious type discrepancies.
17294
17295 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17296 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17297 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17298 variable.
17299 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17300 and connected types.
17301 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17302 offset.
17303 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17304 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17305 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17306 and connected types.
17307
17308 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 Fix python 3.x incompatibilities.
17311
17312 * gentpl.py: Put brackets around print strings.
17313 * util/import_gcry.py: Open explicitly as utf-8.
17314 Use in instead of has_key.
17315
17316 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17319 (GRUB_XFS_INO_AGBITS): Make into inline function.
17320 (GRUB_XFS_INO_INOINAG): Likewise.
17321 (GRUB_XFS_INO_AG): Likewise.
17322 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17323 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17324 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17325 (GRUB_XFS_EXTENT_SIZE): Likewise.
17326 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17327 (GRUB_XFS_NEXT_DIRENT): Likewise.
17328 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17329 (grub_xfs_read_file): Fix offset type.
17330
17331 2011-10-15 Robert Millan <rmh@gnu.org>
17332
17333 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17334
17335 2011-10-15 Robert Millan <rmh@gnu.org>
17336
17337 Fix build problem on FreeBSD and GNU/kFreeBSD.
17338
17339 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17340
17341 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17344
17345 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17346 types.
17347 (grub_hfsplus_btree_recoffset): Likewise.
17348 (grub_hfsplus_btree_recptr): Likewise.
17349 (grub_hfsplus_find_block): Likewise.
17350 (grub_hfsplus_btree_search): Likewise.
17351 (grub_hfsplus_read_block): Likewise.
17352 (grub_hfsplus_read_file): Likewise.
17353 (grub_hfsplus_mount): Likewise.
17354 (grub_hfsplus_btree_iterate_node): Likewise.
17355 (grub_hfsplus_btree_search): Likewise.
17356 (grub_hfsplus_iterate_dir): Likewise.
17357 (grub_hfsplus_read): A small code simplification.
17358
17359 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17360
17361 * grub-core/kern/emu/hostdisk.c
17362 (convert_system_partition_to_system_disk): Don't assume that children
17363 of mapper nodes are mapper nodes.
17364
17365 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17368 * include/grub/misc.h (grub_isxdigit): New function.
17369 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17370 switched to grub_isxdigit.
17371 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17372 number starting with a letter.
17373
17374 2011-10-09 Robert Millan <rmh@gnu.org>
17375
17376 LVM support for FreeBSD and GNU/kFreeBSD.
17377
17378 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17379 GNU/kFreeBSD.
17380 (LVM_DEV_MAPPER_STRING): Move from here ...
17381 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17382 * util/getroot.c: Include `<grub/util/lvm.h>'.
17383 (grub_util_get_dev_abstraction): Enable
17384 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17385 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17386 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17387 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17388 support it.
17389 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17390 GNU/kFreeBSD.
17391 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17392 when LVM abstraction is required for ${GRUB_DEVICE}.
17393
17394 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17395
17396 Add support for LZO compression in GRUB:
17397 - import of minilzo library,
17398 - LZO decompression for btrfs,
17399 - lzop files decompression.
17400
17401 * grub-core/io/lzopio.c: New file.
17402 * grub-core/lib/adler32.c: Likewise.
17403 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17404 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17405 * grub-core/lib/minilzo/minilzo.c: Likewise.
17406 * grub-core/lib/minilzo/minilzo.h: Likewise.
17407 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17408 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17409 grub-core/lib/minilzo/minilzo.c to common.
17410 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17411 cflags in cppflags.
17412 * grub-core/Makefile.core.def (btrfs): Likewise.
17413 * grub-core/Makefile.core.def (lzopio): New module.
17414 (adler32): Likewise.
17415 * grub-core/fs/btrfs.c: Include minilzo.h.
17416 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17417 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17418 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17419 (grub_btrfs_lzo_decompress): New function.
17420 (grub_btrfs_extent_read): Add support for LZO compression type.
17421 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17422 (GRUB_USHRT_MAX): Likewise.
17423 (GRUB_UINT_MAX): Likewise.
17424 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17425 (UINT_MAX): Likewise.
17426 (CHAR_BIT): Likewise.
17427 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17428 grub-core/lib/posix_wrap/limits.h
17429 (UCHAR_MAX): Likewise.
17430 * include/grub/file.h (grub_file_filter_id): New compression filter
17431 GRUB_FILE_FILTER_LZOPIO.
17432 * include/grub/file.h (grub_file_filter_id): Set
17433 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17434 * include/grub/types.h (grub_get_unaligned16): New function.
17435 (grub_get_unaligned32): Likewise.
17436 (grub_get_unaligned64): Likewise.
17437 * util/import_gcry.py (cryptolist): Add adler32.
17438
17439 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17440
17441 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17442 in perspective decreases the complexity of build system and fixes
17443 compilation right now.
17444
17445 2011-10-01 Ales Nesrsta <starous@volny.cz>
17446
17447 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17448 (fixed problem related to using UHCI with coreboot).
17449
17450 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17451
17452 * gentpl.py: Use Autogen macros so that the output template file
17453 (Makefile.tpl) size is reduced.
17454
17455 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17456
17457 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17458 extra_dist.
17459
17460 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17461
17462 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17463 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17464
17465 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17466
17467 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17468 _fullpath.
17469
17470 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17471
17472 Remove extra declaration of sleep for mingw32.
17473
17474 * util/misc.c (sleep) [__MINGW32__]: Removed.
17475 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17476
17477 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17478
17479 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17480 type and packname.
17481 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17482 Resurrected.
17483 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17484 (grub_netbsd_btinfo_bootwedge): New struct.
17485 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17486 New function.
17487 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17488
17489 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17490
17491 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17492 loader.
17493
17494 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17495
17496 Fix incorrect identifiers in bash-completion.
17497
17498 * util/bash-completion.d/grub-completion.bash.in
17499 (_grub_mkpasswd-pbkdf2): Rename to ...
17500 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17501 (_grub_script-check): Rename to ...
17502 (_grub_script_check): ... this. All users updated.
17503
17504 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17507 Return 0 if disk isn't biosdisk.
17508
17509 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17510
17511 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17512 on NetBSD.
17513 * Makefile.util.def (grub-fstest): Likewise.
17514
17515 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17516
17517 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17518 Get sector size from disk label.
17519
17520 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17521
17522 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17523 */README* as well as README*.
17524 Reported by: Axel Beckert.
17525
17526 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17527
17528 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17529 case of less than 256 MiB of RAM.
17530
17531 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17532
17533 * grub-core/commands/wildcard.c (make_regex): Handle @.
17534
17535 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17538
17539 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17540
17541 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17542 AC_LANG_CONFTEST macros.
17543
17544 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17545
17546 Add grub-fstest option to uncompress data for commands.
17547
17548 * util/grub-fstest.c (uncompress): New var.
17549 (options): New option -u.
17550
17551 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17552
17553 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17554 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17555
17556 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17557
17558 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17559 file type was not recognized correctly (not gzip or corrupted).
17560
17561 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17562
17563 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17564 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17565
17566 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17567
17568 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17569 loongson.
17570 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17571 video_radeon_fuloong2e.
17572 * grub-core/video/radeon_fuloong2e.c: New file.
17573 * include/grub/video.h (grub_video_id_t): Add new ID
17574 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17575
17576 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17579 define.
17580 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17581 that PRID matches the detected subplatform and reset the subplatform
17582 if it doesn't.
17583
17584 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17587
17588 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17589
17590 Fix PCI iterating on functions >= 4.
17591
17592 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17593 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17594 Removed.
17595 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17596 (grub_pci_read): Fix bitmask.
17597 (grub_pci_read_word): Likewise.
17598 (grub_pci_read_byte): Likewise.
17599 (grub_pci_write): Likewise.
17600 (grub_pci_write_word): Likewise.
17601 (grub_pci_write_byte): Likewise.
17602
17603 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17604
17605 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17606 can still be specified in TARGET_CFLAGS)
17607
17608 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17611
17612 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17613 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17614 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17615 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17616 (FULOONG): Rename to ...
17617 (FULOONG2F): ... this. All users updated.
17618 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17619 (machtype_fuloong2f_str): ... this.
17620 (machtype_fuloong2e_str): New string.
17621 Check for machtype_fuloong2e_str.
17622 * grub-core/loader/mips/linux.c (loongson_machtypes)
17623 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17624 * grub-core/term/serial.c (loongson_defserial)
17625 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17626 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17627 loongson_defserial.
17628 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17629 Rename to ...
17630 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17631 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17632 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17633 to IMAGE_FULOONG2F_FLASH. All users updated.
17634 (image_targets): Rename images.
17635 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17636
17637 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17638
17639 Make enable of disk cache statistics code configurable.
17640
17641 * configure.ac: --enable-cache-stats added.
17642 * config.h.in (DISK_CACHE_STATS): New define.
17643 * grub-core/Makefile.core.def (cacheinfo): New command.
17644 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17645 * grub-core/commands/cacheinfo.c: New file.
17646 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17647 moved to cacheinfo.c.
17648 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17649 debug code.
17650 * include/grub/disk.h: Likewise.
17651
17652 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17653
17654 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17655 * grub-core/Makefile.am: Likewise.
17656
17657 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17658
17659 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17660 non-zero pull.
17661
17662 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17663
17664 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17665 All users updated.
17666 (grub_jfs_lookup_symlink): Use correct starting inode.
17667
17668 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17669
17670 * util/grub-setup.c (main): Add missing gcry initialisation.
17671
17672 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 Don't accept text modes on EFI when booting Linux.
17675
17676 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17677 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17678
17679 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17680 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17681
17682 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17683 use of "/path/.." as in grub-install for EFI as well as handling
17684 symlinks correctly.
17685 Fixes Debian bug #637768.
17686
17687 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17688
17689 * util/grub-probe.c: Remove duplicate #include.
17690
17691 2011-08-10 Robert Millan <rmh@gnu.org>
17692
17693 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17694
17695 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17696 function.
17697 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17698 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17699
17700 2011-08-03 Robert Millan <rmh@gnu.org>
17701
17702 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17703 la_array as packed.
17704 Reported by: Zachary Bedell
17705
17706 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17707
17708 * configure.ac: The Loongson port requires grub-mkfont due to its
17709 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17710 be built.
17711
17712 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17713
17714 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17715 processing arguments (otherwise help2man fails when GRUB has not yet
17716 been installed).
17717
17718 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 New script grub-mkstandalone.
17721
17722 * Makefile.util.def (grub-mkstandalone): New script.
17723 * docs/man/grub-mkstandalone.h2m: New file.
17724 * util/grub-mkstandalone.in: Likewise.
17725
17726 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17727
17728 Support ATA disks with 4K sectors.
17729
17730 * include/grub/ata.h (grub_ata): New member log_sector_size.
17731 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17732 (grub_ata_identify): Read sector size.
17733 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17734
17735 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17736
17737 * util/grub-install.in: Don't use uhci outside of x86.
17738
17739 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 * util/grub-mkrescue.in: Add missing quotes.
17742
17743 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17744
17745 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17746 dereference.
17747
17748 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17749
17750 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17751
17752 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17753
17754 * include/grub/video.h: add missing EXPORT_FUND on
17755 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17756
17757 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17758
17759 * include/grub/mips/kernel.h: Fix define conflict.
17760
17761 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17762
17763 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17764 all four ways.
17765
17766 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17767
17768 Preferred resolution detection for VBE.
17769
17770 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17771 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17772 the Flat Panel extension, in line with the X.org VESA driver.
17773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17774 New function.
17775 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17776 (grub_vbe_bios_read_edid): Likewise.
17777 (grub_vbe_get_preferred_mode): Likewise.
17778 (grub_video_vbe_setup): When the mode is "auto", try to get the
17779 preferred mode from VBE, and use the largest mode that is no larger
17780 than the preferred mode (some BIOSes expose a preferred mode that is
17781 not in their mode list!). If this fails, fall back to 640x480 as a
17782 safe conservative choice.
17783 (grub_video_vbe_get_edid): New function.
17784 (grub_video_vbe_adapter): Add get_edid.
17785 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17786 (struct grub_video_adapter): Add get_edid.
17787 (grub_video_edid_checksum): Add prototype.
17788 (grub_video_edid_preferred_mode): Likewise.
17789 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
17790 structure.
17791
17792 * grub-core/commands/videoinfo.c (print_edid): New function.
17793 (grub_cmd_videoinfo): Print EDID if available.
17794
17795 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
17796 is more appropriate on a wider range of platforms than 640x480.
17797 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
17798 documentation.
17799
17800 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17801
17802 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17803
17804 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * po/POTFILES.in: Regenerate.
17807
17808 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17811 incorrect memory usage.
17812
17813 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * util/grub-install.in: Source grub-mkconfig_lib.
17816
17817 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17818
17819 Remove getroot.c from core on emu platform.
17820
17821 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17822 kern/emu/raid.c.
17823 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17824 useless.
17825 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17826 * util/getroot.c (get_win32_path): ... here.
17827 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17828 * util/getroot.c (fini_libzfs): ... here.
17829 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17830 * util/getroot.c (grub_get_libzfs_handle): ... here.
17831 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17832 Moved from here...
17833 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17834 * grub-core/kern/emu/misc.c
17835 (grub_make_system_path_relative_to_its_root): Moved from here...
17836 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17837 * grub-core/kern/emu/getroot.c: Moved from here ...
17838 * util/getroot.c: ... here. All users updated.
17839 * grub-core/kern/emu/raid.c: Moved from here ...
17840 * util/raid.c: ... here. All users updated.
17841
17842 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 * po/POTFILES.in: Regenerate.
17845
17846 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17847
17848 Fix compilation on GNU/Linux.
17849
17850 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17851 Disable geli.
17852 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17853 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17854 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17855
17856 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17857 2011-07-07 Michael Gorven <michael@gorven.za.net>
17858 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17859
17860 LUKS and GELI support.
17861
17862 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17863 grub-core/disk/luks.c, grub-core/disk/geli.c,
17864 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17865 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17866 grub-core/lib/arg.c.
17867 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17868 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17869 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17870 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17871 (grub-bin2h): Add libgcry.a.
17872 (grub-mkimage): Likewise.
17873 (grub-mkrelpath): Likewise.
17874 (grub-script-check): Likewise.
17875 (grub-editenv): Likewise.
17876 (grub-mkpasswd-pbkdf2): Likewise.
17877 (grub-pe2elf): Likewise.
17878 (grub-fstest): Likewise.
17879 (grub-mkfont): Likewise.
17880 (grub-mkdevicemap): Likewise.
17881 (grub-probe): Likewise.
17882 (grub-ofpath): Likewise.
17883 (grub-mklayout): Likewise.
17884 (example_unit_test): Likewise.
17885 (grub-menulst2cfg): Likewise.
17886 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17887 * grub-core/Makefile.core.def (cryptodisk): New module.
17888 (luks): Likewise.
17889 (geli): Likewise.
17890 * grub-core/disk/AFSplitter.c: New file.
17891 * grub-core/disk/cryptodisk.c: Likewise.
17892 * grub-core/disk/geli.c: Likewise.
17893 * grub-core/disk/luks.c: Likewise.
17894 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17895 grub_util_is_lvm.
17896 (grub_util_get_dm_abstraction): New function.
17897 (grub_util_follow_gpart_up): Likewise.
17898 (grub_util_get_geom_abstraction): Likewise.
17899 (grub_util_get_dev_abstraction): Use new functions.
17900 (grub_util_pull_device): Pull GELI and LUKS.
17901 (grub_util_get_grub_dev): Handle LUKS and GELI.
17902 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17903 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17904 (follow_geom_up): Removed.
17905 (grub_util_fd_seek): New function.
17906 (open_device): Use grub_util_fd_seek.
17907 (nread): Rename to ..
17908 (grub_util_fd_read): ... this. All users updated.
17909 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17910 (grub_crypto_cbc_decrypt): Likewise.
17911 (grub_crypto_hmac_write): Likewise.
17912 (grub_crypto_hmac_buffer): Likewise.
17913 (grub_password_get): Extend to util.
17914 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17915 New member modname.
17916 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17917 * include/grub/cryptodisk.h: New file.
17918 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17919 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17920 LUKS and GELI.
17921 (grub_util_follow_gpart_up): New proto.
17922 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17923 (grub_util_fd_read): Likewise.
17924 (grub_cryptodisk_cheat_mount): Likewise.
17925 (grub_util_cryptodisk_print_uuid): Likewise.
17926 (grub_util_get_fd_sectors): Likewise.
17927 * util/grub-fstest.c (mount_crypt): New var.
17928 (fstest): Mount crypto if requested.
17929 (options): New option -C.
17930 (argp_parser): Parse -C.
17931 (main): Init and fini gcry.
17932 * util/grub-install.in: Support cryptodisk install.
17933 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17934 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17935 cryptodisk.
17936 (prepare_grub_to_access_device): Likewise.
17937 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17938 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17939 (probe_cryptodisk_uuid): New function.
17940 (probe_abstraction): Likewise.
17941 (probe): Use new functions.
17942 * util/import_gcry.py: Create Makefile.utilgcry.def.
17943 Add modname member.
17944
17945 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 Lazy device scanning.
17948
17949 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17950 (grub-setup): Remove util/raid.c.
17951 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17952 * grub-core/disk/lvm.c (scan_depth): New variable.
17953 (grub_lvm_iterate): Rescan if necessary.
17954 (find_lv): New function based on grub_lvm_open.
17955 (grub_lvm_open): Use find_lv. Rescan on error.
17956 (is_node_readable): New function.
17957 (is_lv_readable): Likewise.
17958 (grub_lvm_scan_device): Skip already found disks.
17959 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17960 Stop if searched device is found and readable.
17961 * grub-core/disk/raid.c (inscnt): New variable.
17962 (scan_depth): Likewise.
17963 (scan_devices): New function based on grub_raid_register. Abort if
17964 looked for device is found.
17965 (grub_raid_iterate): Rescan if needed.
17966 (find_array): NEw function based on -grub_raid_open.
17967 (grub_raid_open): Use find_array and rescan.
17968 (insert_array): Set became_readable_at.
17969 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17970 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17971 New function.
17972 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17973 (grub_util_pull_device): New function.
17974 (grub_util_get_grub_dev): Call grub_util_pull_device.
17975 * util/raid.c: Moved to ..
17976 * grub-core/kern/emu/raid.c: ... here.
17977 (grub_util_raid_getmembers): New parameter "bootable".
17978 All users updated. Support 1.x.
17979 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17980 All users updated.
17981 * include/grub/disk.h (grub_disk_pull_t): New enum.
17982 (grub_disk_dev): Change iterate prototype.
17983 All users updated.
17984 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17985 New proto.
17986 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17987 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17988 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17989 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17990 All users updated.
17991 * include/grub/util/raid.h: Removed.
17992
17993 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17994
17995 * po/POTFILES.in: Regenerate.
17996
17997 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17998
17999 Unify sparc init with other ieee1275.
18000
18001 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18002 instead of kern/sparc64/ieee1275/init.c.
18003 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18004 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18005 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18006 grub/machine/kernel.h.
18007 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18008 (grub_claim_heap) [__sparc__]: Use sparc version.
18009 (grub_machine_init): Moved args parsing to
18010 (grub_parse_cmdline): ...this.
18011 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18012 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18013 New definition.
18014 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18015
18016 Move BOOTP to separate file.
18017
18018 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18019 * grub-core/net/net.c: Move all BOOTP functions to
18020 * grub-core/net/bootp.c: ... here.
18021
18022 Use frame interface on PXE.
18023
18024 * grub-core/Makefile.core.def (pxecmd): Removed.
18025 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18026 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18027 * grub-core/i386/pc/pxe.c: Moved from here ...
18028 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18029 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18030 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18031
18032 EFI network support.
18033
18034 * grub-core/Makefile.core.def (efinet): New module.
18035 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18036 here...
18037 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18038 All users updated.
18039 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18040 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18041 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18042 * grub-core/net/drivers/efi/efinet.c: New file.
18043 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18044 (grub_efi_net_config): New extern var.
18045
18046 Various cleanups and bugfixes.
18047
18048 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18049 error.
18050 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18051 disk declared as partition.
18052 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18053 leak on failure.
18054 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18055 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18056 (grub_debug_zalloc): Likewise.
18057 (grub_debug_realloc): Likewise.
18058 (grub_debug_memalign): Likewise.
18059 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18060 Check that target is IPv4.
18061 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18062 local-mac-address as fallback.
18063 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18064 memory leak.
18065 * grub-core/net/ip.c (ipchksum): Rename to ...
18066 (grub_net_ip_chksum): ... this. All users updated.
18067 (grub_net_recv_ip_packets): Special handling for DHCP.
18068 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18069
18070 Unify prefix handling
18071
18072 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18073 (grub_machine_get_bootlocation): ... this.
18074 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18075 (grub_machine_get_bootlocation): ... this.
18076 (grub_prefix): New variable.
18077 (prefix): Removed.
18078 (root_dev): New variable.
18079 (dir): Likewise.
18080 (main): Use new variables.
18081 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18082 Revamped into ...
18083 (grub_machine_get_bootlocation): ... this.
18084 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18085 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18086 (grub_machine_get_bootlocation): ... this.
18087 (grub_machine_set_prefix): Removed.
18088 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18089 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18090 Revamped into ...
18091 (grub_machine_get_bootlocation): ... this.
18092 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18093 (grub_set_prefix_and_root): ... this. All users updated.
18094 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18095 Revamped into ...
18096 (grub_machine_get_bootlocation): ... this.
18097 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18098 (grub_machine_get_bootlocation): New proto.
18099 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18100
18101 Less intrusive and more reliable seek on network implementation.
18102
18103 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18104 (grub_file_seek): Don't call grub_file_net_seek.
18105 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18106 (grub_net_fs_read_real): .. this.
18107 (grub_net_seek_real): Use net->offset.
18108 (grub_net_fs_read): Seek if necessary.
18109
18110 Unify IEEE1275 netwotk config with the other platforms.
18111
18112 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18113 New variable.
18114 (grub_machine_get_bootlocation): Support network.
18115 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18116 Support type and device parsing.
18117 (grub_ieee1275_get_device_type): New function.
18118 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18119 into ...
18120 (grub_ieee1275_net_config_real): ... this.
18121 (grub_ofnet_probecards): Removed.
18122 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18123 * include/grub/ieee1275/ofnet.h: Removed.
18124 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18125 extern var.
18126 (grub_ieee1275_get_device_type): New function.
18127
18128 Unify network device closing across platforms and make more robust.
18129
18130 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18131 grub_grubnet_fini.
18132 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18133 already.
18134 * grub-core/net/net.c (grub_net_network_level_interface_register):
18135 Update num_ifaces.
18136 (grub_net_card_unregister): Close all interfaces.
18137 (receive_packets): Don't poll if no iterfaces are registered.
18138 Open if necessary.
18139 (grub_net_fini_hw): New function.
18140 (grub_net_restore_hw): Likewise.
18141 (fini_hnd): New variable.
18142 (GRUB_MOD_INIT): Register preboot hook.
18143 (GRUB_MOD_FINI): Run and unregister preboot hook.
18144
18145 Poll network cards when idle.
18146
18147 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18148 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18149 * grub-core/net/net.c (receive_packets): Save last poll time.
18150 (grub_net_poll_cards_idle_real): New function.
18151 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18152 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18153 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18154
18155 Rename ofnet interfaces.
18156
18157 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18158 (grub_ofnet_findcards): Use ofnet_%s names.
18159
18160 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18161
18162 Cleanup socket opening.
18163
18164 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18165 (grub_net_fs_close): Likewise.
18166 (grub_net_fs_read_real): Use eof member.
18167 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18168 (+grub_net_udp_close): New inline function.
18169
18170 * include/grub/net/tftp.h: Moved to the top of ...
18171 * grub-core/net/tftp.c: ... here.
18172 * include/grub/net/ip.h: Moved mostly to the top of ...
18173 * grub-core/net/ip.c: ... here.
18174 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18175 * grub-core/net/ethernet.c: ... here.
18176
18177 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18178
18179 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18180 FS name.
18181
18182 * include/grub/net/ip.h (ipv4_ini): Removed.
18183 (ipv4_fini): Likewise.
18184
18185 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18186 (grub_net_send_ip_packets): Likewise.
18187
18188 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18189
18190 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18191 grub_read_cmos prototype.
18192
18193 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 VGA text support in qemu-mips
18196
18197 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18198 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18199 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18200 text.
18201 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18202 * grub-core/kern/vga_init.c: ... this.
18203 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18204 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18205 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18206 Adjust.
18207 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18208 GRUB_MACHINE_PCI_IO_BASE.
18209
18210 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18211
18212 MIPS qemu flash support.
18213
18214 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18215 magic.
18216 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18217 (grub_machine_init): Probe memory if its size isn't known.
18218 * util/grub-mkimage.c (image_targets): Add flash targets.
18219 (generate_image): Handle flash targets.
18220
18221 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18222
18223 MIPS qemu at_keyboard support.
18224
18225 * gentpl.py (videoinkernel): Add qemu-mips.
18226 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18227 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18228 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18229 modules.
18230 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18231 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18232 * grub-core/term/serial.c (grub_serial_register)
18233 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18234
18235 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18236
18237 CMOS support on sparc.
18238
18239 * gentpl.py (cmos): Add powerpc and sparc.
18240 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18241 powerpc and sparc.
18242 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18243 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18244 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18245 grub_set_datetime_cmos.
18246 * grub-core/lib/ieee1275/cmos.c: New file.
18247 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18248 (find_rtc): Set no_ieee1275_rtc on error.
18249 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18250 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18251 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18252 fail. Move value to argument. All users updated
18253 (grub_cmos_write): Likewise.
18254 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18255 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18256 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18257 grub_get_datetime_cmos and grub_set_datetime_cmos.
18258
18259 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18260
18261 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18262 sourcing grub-mkconfig_lib.
18263 * util/update-grub_lib.in: Likewise.
18264 * util/grub.d/00_header.in: Likewise.
18265 * util/grub.d/10_hurd.in: Likewise.
18266 * util/grub.d/10_kfreebsd.in: Likewise.
18267 * util/grub.d/10_linux.in: Likewise.
18268 * util/grub.d/10_netbsd.in: Likewise.
18269 * util/grub.d/10_windows.in: Likewise.
18270 * util/grub.d/20_linux_xen.in: Likewise.
18271 * util/grub.d/30_os-prober.in: Likewise.
18272
18273 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18274
18275 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18276 default_bg_color rather than black.
18277 (grub_gfxterm_fullscreen): Likewise.
18278 (grub_gfxterm_background_color_cmd): Save new background color in
18279 default_bg_color.
18280
18281 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18284
18285 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18286
18287 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18288 mismerge.
18289
18290 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18291
18292 Chainloading on coreboot support.
18293
18294 * grub-core/Makefile.core.def (chain): Add coreboot.
18295 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18296
18297 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18298
18299 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18300 if it happens.
18301
18302 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18303
18304 Implement time command.
18305
18306 * grub-core/Makefile.core.def (time): New module.
18307 * grub-core/commands/time.c: New file.
18308 * grub-core/script/parser.y: Remove "time" keyword.
18309 * grub-core/script/yylex.l: Likewise.
18310
18311 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18312
18313 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18314
18315 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18316
18317 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18318 when handling leftovers.
18319
18320 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18321
18322 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18323 so that help2man doesn't fail.
18324
18325 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18326
18327 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18328 type in pointers on sparc64.
18329 (get_card_packet): Likewise.
18330
18331 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18332
18333 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18334 with `*'.
18335 (grub_cmd_videoinfo): Fetch current video mode.
18336
18337 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18338
18339 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18340 because of underlying system restrictions.
18341
18342 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18343
18344 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18345 necessary.
18346
18347 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18348
18349 Coreboot video support.
18350
18351 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18352 (vbe): Likewise.
18353 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18354 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18355 here ...
18356 * grub-core/kern/i386/int.S: ... here.
18357 * grub-core/video/i386/pc/vbe.c: Updated includes.
18358 * grub-core/video/i386/pc/vga.c: Likewise.
18359 * include/grub/i386/coreboot/memory.h
18360 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18361 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18362 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18363 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18364 Disable interrupts.
18365 * include/grub/i386/pc/vga.h: Removed. All users updated.
18366
18367 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18370 definitions for dprintf.
18371 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18372
18373 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18374
18375 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18376 prototype.
18377 (get_card_packet): Likewise.
18378
18379 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18380
18381 Display the path of the file when file is not found
18382
18383 * grub-core/fs/fat.c: Display the filename when file is not found.
18384 * grub-core/fs/fshelp.c: Likewise.
18385 * grub-core/fs/hfs.c: Likewise.
18386 * grub-core/fs/jfs.c: Likewise.
18387 * grub-core/fs/minix.c: Likewise.
18388 * grub-core/fs/ufs.c: Likewise.
18389 * grub-core/fs/btrfs.c: Likewise.
18390 * grub-core/commands/i386/pc/play.c: Likewise.
18391
18392 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18393
18394 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18395 pointer checks before calling grub_free().
18396 * grub-core/commands/wildcard.c (match_devices): Likewise.
18397 * grub-core/commands/wildcard.c (match_files): Likewise.
18398 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18399 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18400 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18401 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18402 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18403 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18404 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18405 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18406 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18407
18408 2011-06-25 Patrick <p55@mailinator.com>
18409
18410 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18411
18412 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18413
18414 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18415 (grub_pxe_send): Likewise.
18416 (GRUB_MOD_INIT): Fix types.
18417
18418 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18419
18420 * grub-core/io/xzio.c: Fix code style issues
18421
18422 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18423 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18424
18425 Network infrastructure.
18426 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18427
18428 * include/grub/net/arp.h: New file.
18429 * include/grub/net/device.h: Likewise.
18430 * include/grub/net/ethernet.h: Likewise.
18431 * include/grub/net/ip.h: Likewise.
18432 * include/grub/net/netbuff.h: Likewise.
18433 * include/grub/net/tftp.h: Likewise.
18434 * include/grub/net/udp.h: Likewise.
18435 * include/grub/ieee1275/ofnet.h: Likewise.
18436 * include/grub/emu/export.h: Likewise.
18437 * include/grub/net.h: Likewise.
18438 * grub-core/net/arp.c: Likewise.
18439 * grub-core/net/ethernet.c: Likewise.
18440 * grub-core/net/ip.c: Likewise.
18441 * grub-core/net/udp.c: Likewise.
18442 * grub-core/net/tftp.c: Likewise.
18443 * grub-core/net/netbuff.c: Likewise.
18444 * grub-core/net/net.c: Likewise.
18445 * grub-core/net/drivers/emu/emunet.c: Likewise.
18446 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18447 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18448 export.h.
18449 * grub-core/Makefile.core.def (net): New module.
18450 (tftp): Likewise.
18451 (ofnet): Likewise.
18452 (emunet): Likewise.
18453 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18454 network protocols.
18455 * grub-core/kern/device.c (grub_net_open) : New variable.
18456 (grub_device_open): Handle network device.
18457 (grub_device_close): Likewise.
18458 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18459 (grub_grubnet_fini): Likewise.
18460 (grub_file_seek): Seek in network device.
18461 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18462 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18463 network root.
18464 (grub_machine_fini): Call grub_grubnet_fini.
18465 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18466 network.
18467 (grub_ieee1275_get_aliasdevname): New function.
18468 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18469 Add unofficial Solaris network info.
18470 (grub_multiboot_make_mbi): Likewise.
18471 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18472 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18473 * include/grub/device.h (grub_fs): Removed.
18474 * include/grub/err.h (grub_err_t): Add network-related values.
18475 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18476 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18477 (grub_ieee1275_get_aliasdevname): New proto.
18478 * include/grub/net.h: Rewritten.
18479
18480 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18481
18482 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18483 names.
18484
18485 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18486
18487 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18488 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18489 it truncates the output.
18490 Reported by: Ximin Luo.
18491
18492 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18493
18494 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18495
18496 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18497
18498 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18499 partmap before abstraction.
18500
18501 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18502
18503 * util/grub-mkconfig_lib.in: Add missing quotes.
18504
18505 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18506
18507 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18508 old method if mountinfo would return /dev/root and /dev/root doesn't
18509 exist.
18510
18511 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18512
18513 ZFS zlib support
18514
18515 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18516 (decomp_table): Add zlib entries.
18517 (zio_read): USe 8 bits for compression function rather than 3.
18518 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18519
18520 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18521
18522 * grub-core/disk/ahci.c: Add missing license statements.
18523 * grub-core/fs/romfs.c: Likewise.
18524 * grub-core/lib/ia64/setjmp.S: Likewise.
18525 * grub-core/loader/i386/pc/freedos.c: Likewise.
18526 * grub-core/loader/ia64/efi/linux.c: Likewise.
18527 * grub-core/video/colors.c: Likewise.
18528 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18529
18530 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18531
18532 AHCI support.
18533
18534 * grub-core/Makefile.core.def (ata_pthru): Removed.
18535 (ahci): New module.
18536 (pata): Likewise.
18537 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18538 on unload.
18539 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18540 readwrite.
18541 (grub_hdparm_do_check_powermode_cmd): Likewise.
18542 (grub_hdparm_do_smart_cmd): Likewise.
18543 (grub_hdparm_set_val_cmd): Likewise.
18544 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18545 * grub-core/disk/ahci.c: New file.
18546 * grub-core/disk/ata.c: Factor out the low-level part into ...
18547 * grub-core/disk/pata.c: ... here.
18548 * grub-core/disk/ata_pthru.c: Contents moved to ...
18549 * grub-core/disk/pata.c: ... here.
18550 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18551 (grub_scsi_iterate): Use grub_scsi_names.
18552 (grub_scsi_open): Likewise.
18553 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18554 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18555 (grub_ata_regs_t): New struct.
18556 (grub_disk_ata_pass_through_parms): Likewise.
18557 (grub_ata_device): Renamed to ...
18558 (grub_ata): ... this.
18559 (grub_ata_dev): New struct.
18560 Removed all low-level inline functions.
18561 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18562 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18563 iterate hooks and open. All users updated.
18564 * util/grub-install.in: Handle AHCI disk module.
18565
18566 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18567
18568 Add support for DRI and RSTn markers in JPEG files.
18569
18570 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18571 (JPEG_MARKER_RST0): Likewise.
18572 (JPEG_MARKER_RST1): Likewise.
18573 (JPEG_MARKER_RST2): Likewise.
18574 (JPEG_MARKER_RST3): Likewise.
18575 (JPEG_MARKER_RST4): Likewise.
18576 (JPEG_MARKER_RST5): Likewise.
18577 (JPEG_MARKER_RST6): Likewise.
18578 (JPEG_MARKER_RST7): Likewise.
18579 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18580 (grub_jpeg_decode_dri): New function.
18581 (grub_jpeg_decode_sos): Move image data related part into
18582 grub_jpeg_decode_data function.
18583 (grub_jpeg_decode_data): New function.
18584 (grub_jpeg_reset): New function.
18585 (grub_jpeg_decode_jpeg): Handle new markers.
18586
18587 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18588
18589 * util/ieee1275/ofpath.c (check_sas): Close fd.
18590 (main): Free of_path.
18591 Reported by: David Volgyes <dvolgyes>.
18592
18593 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18596 Reported by: David Volgyes <dvolgyes>.
18597
18598 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18599
18600 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18601 file after stat.
18602 Reported by: David Volgyes <dvolgyes>.
18603
18604 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18607
18608 Reported by: David Volgyes <dvolgyes>.
18609
18610 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18613 Prevent memory leak.
18614
18615 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18618 (main): Close file.
18619 Reported by: David Volgyes <dvolgyes>.
18620
18621 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18622
18623 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18624 to continue if allocation is failed.
18625
18626 Reported by: David Volgyes <dvolgyes>.
18627
18628 2011-06-23 David Volgyes <dvolgyes>
18629
18630 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18631 dereference.
18632
18633 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18634
18635 Fix spurious warning.
18636
18637 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18638 (acorn_partition_map_find): Use .bin member.
18639
18640 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18643 /dev/root as a valid device.
18644
18645 2011-06-23 Jim Meyering <meyering@redhat.com>
18646
18647 Avoid NULL deref in grub_device_open.
18648
18649 * grub-core/kern/device.c (grub_device_open): Don't dereference
18650 a NULL pointer upon failed grub_env_get.
18651
18652 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 Support non-512B sectors and agglomerate reads.
18655
18656 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18657 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18658 (disk_io_guid): Removed.
18659 (make_devices): Locate solely by BlockIO.
18660 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18661 (grub_efidisk_read): Use read_blocks.
18662 (grub_efidisk_write): Use write_blocks.
18663 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18664 log_sector_size.
18665 (get_safe_sectors): Handle non-512B sectors.
18666 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18667 sectors.
18668 (grub_biosdisk_write): Handle non-512B sectors.
18669 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18670 (grub_scsi_read): Remove special non-512B block handling (now handled
18671 one level up).
18672 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18673 and do sanity checks.
18674 (grub_disk_adjust_range): Handle non-512B sectors.
18675 (transform_sector): New function.
18676 (grub_disk_read_small): Likewise.
18677 (grub_disk_read): Rewritten.
18678 (grub_disk_write): Handle non-512B sectors.
18679 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18680 log_sector_size.
18681 (open_device): Use log_sector_size.
18682 (grub_util_biosdisk_read): Likewise.
18683 (grub_util_biosdisk_write): Likewise.
18684 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18685 non-512B sectors.
18686 (pc_partition_map_embed): Likewise.
18687 * include/grub/disk.h (grub_disk): New field log_sector_size.
18688 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18689 (GRUB_DISK_CACHE_BITS): Increased to 6.
18690 * util/grub-fstest.c (fstest): New command testload.
18691 (argp_parser): Likewise.
18692
18693 2011-06-16 Robert Millan <rmh@gnu.org>
18694
18695 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18696 `ata' driver on kernel of FreeBSD 9.
18697
18698 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18699 (get_ataraid_disk_name): New functions.
18700 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18701 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18702 get_ataraid_disk_name() and get_ada_disk_name().
18703
18704 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18705
18706 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18707 input format.
18708
18709 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18710
18711 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18712 `ftp.gnu.org' for `alpha.gnu.org'.
18713
18714 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18715
18716 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18717 partitions under /dev/disk/by-id/.
18718
18719 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18720
18721 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18722 after ten consecutive open failures. Scanning all the way up to
18723 10000 is excessive and can cause serious performance problems in
18724 some configurations.
18725 Fixes Ubuntu bug #787461.
18726
18727 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18730 opening new one.
18731
18732 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18733 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18734
18735 Don't stat devices unless we have to.
18736
18737 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18738 dir == /dev/mapper.
18739 (grub_guess_root_device): Use already known os_dev if possible.
18740 * grub-core/kern/emu/hostdisk.c
18741 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18742 if device is known to be a dm one.
18743
18744 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18745
18746 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18747 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18748 Reported by: Pawel Tecza.
18749
18750 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18751
18752 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18753 (lsefisystab): Likewise.
18754 (lssal): Likewise.
18755 (lsefimmap): Likewise.
18756 (hdparm): Enable on qemu-mips.
18757 (setjmp): Add ia64 nodist.
18758 (serial): Simplify tags.
18759
18760 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18761
18762 * Makefile.util.def (grub-ofpathname): Install manual page.
18763
18764 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18765
18766 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18767
18768 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18769
18770 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18771
18772 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18773
18774 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18775 into dprintf.
18776
18777 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18778
18779 Use full 64-bit division.
18780
18781 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18782 (grub_divmod64): ... this.
18783 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18784 version.
18785
18786 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18787
18788 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
18789 `source'.
18790
18791 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18792
18793 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
18794 to avoid accidents when debugging with 'sh -x'.
18795 * grub-core/gensyminfo.sh.in: Likewise.
18796 * tests/example_scripted_test.in: Likewise.
18797 * tests/grub_cmd_regexp.in: Likewise.
18798 * tests/grub_script_blanklines.in: Likewise.
18799 * tests/grub_script_dollar.in: Likewise.
18800 * tests/grub_script_expansion.in: Likewise.
18801 * tests/grub_script_final_semicolon.in: Likewise.
18802 * tests/partmap_test.in: Likewise.
18803 * tests/util/grub-shell-tester.in: Likewise.
18804 * tests/util/grub-shell.in: Likewise.
18805
18806 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18807
18808 Move gfxmenu color handling to video, so that gfxterm can use it
18809 too.
18810
18811 * grub-core/gfxmenu/named_colors.c: Move to ...
18812 * grub-core/video/colors.c: ... here. Rename
18813 grub_gui_get_named_color to grub_video_get_named_color.
18814 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18815 * grub-core/video/colors.c (my_isxdigit): ... here.
18816 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18817 Move to ...
18818 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18819 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18820 to ...
18821 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18822
18823 * include/grub/gui.h (grub_gui_color_t): Move to ...
18824 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18825 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18826 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18827 * include/grub/gui.h (grub_gui_map_color): Move to ...
18828 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18829 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18830 to ...
18831 * include/grub/video.h (grub_video_get_named_color): ... here.
18832 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18833 * include/grub/video.h (grub_video_parse_color): ... here.
18834
18835 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18836 video/colors.c.
18837 (gfxmenu): Remove gfxmenu/named_colors.c.
18838 (video) [videomodules]: Add video/colors.c.
18839
18840 Add a background_color command.
18841
18842 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18843 function.
18844 (GRUB_MOD_INIT): Register background_color command.
18845 (GRUB_MOD_FINI): Unregister background_color command.
18846 (redraw_screen_rect): Allow blend/replace of text layer to be
18847 controlled independently from whether there is a background bitmap.
18848 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18849 changing bitmap.
18850
18851 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18852
18853 Patch BPB in ntldr and chainloader --bpb.
18854
18855 * grub-core/fs/fat.c: Include grub/fat.h.
18856 (grub_fat_bpb): Moved to ...
18857 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18858 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18859 grub/ntfs.h.
18860 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18861 Moved from here...
18862 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18863 here.
18864 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18865 New function.
18866 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18867 (GRUB_MOD_INIT): Show --bpb.
18868 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18869 * grub-core/normal/main.c (features): New variable.
18870 (GRUB_MOD_INIT): Set feature_* variables.
18871 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18872 proto.
18873 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18874
18875 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18876
18877 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18878 for cleanness.
18879
18880 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18881
18882 FreeDOS direct loading support.
18883
18884 * docs/grub.texi (Supported OS): Add FreeDOS.
18885 * grub-core/Makefile.core.def (freedos): New module.
18886 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18887 variable.
18888 (grub_relocator16_boot): Handle %ebx.
18889 * grub-core/lib/i386/relocator16.S: Likewise.
18890 * grub-core/loader/i386/pc/freedos.c: New file.
18891
18892 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 Long Linux command line support.
18895
18896 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18897 (maximal_cmdline_size): New variable.
18898 (allocate_pages): Use maximal_cmdline_size.
18899 (grub_cmd_linux): Set and use maximal_cmdline_size.
18900 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18901 (allocate_pages): Use maximal_cmdline_size.
18902 (grub_cmd_linux): Set and use maximal_cmdline_size.
18903 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18904 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18905 and cmdline_size.
18906
18907 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18908 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18909
18910 Improve devmapper support
18911
18912 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18913 (grub_util_is_lvm): New function.
18914 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18915 than lvm if not dmraid.
18916 Handle mapped md nodes.
18917 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18918 (grub_util_device_is_mapped): ... this. Make always available. All users
18919 updated.
18920 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18921 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18922 dmraid nodes.
18923 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18924
18925 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18926
18927 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18928
18929 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18930 * grub-core/modinfo.sh.in: New file.
18931 * grub-core/Makefile.core.def (modinfo.sh): New script.
18932 * util/grub-mknetdir.in: Use modinfo.sh.
18933 * util/grub-mkrescue.in: Likewise.
18934
18935 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18936
18937 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18938 Fix potential usage of Elf32 instead of Elf64 when compiling on
18939 32-bit architecture. Add endianness macros while on it.
18940
18941 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18942
18943 Use mipsel- rather than mips- in directories involving mipsel ports to
18944 allow both endiannesses coexist.
18945
18946 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18947 mips. All conditions adjusted.
18948 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18949 variable.
18950 * util/grub-install.in: Adjust conditions to take renaming into account.
18951 * util/grub-mkimage.c (image_targets): Likewise. New target
18952 mips-qemu_mips-elf for bigendian mips.
18953
18954 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18955
18956 Avoid unnecessary copying on MIPS.
18957
18958 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18959 early if src == dest.
18960 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18961 compression is none.
18962
18963 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18964
18965 Reduce memory footprint on SGI by putting modules before the kernel
18966 as opposed to after.
18967
18968 * grub-core/Makefile.core.def (kernel): Increase linking address.
18969 (none_decompress): Likewise.
18970 (xz_decompress): Likewise.
18971 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18972 address.
18973 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18974 layout change.
18975 (grub_arch_modules_addr): New function.
18976 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18977 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18978 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18979 here.
18980 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18981 (grub_total_modules_size): ... this. Make global.
18982 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18983 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18984 New definition.
18985 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18986 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18987 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18988 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18989 * util/grub-mkimage.c (image_target_desc): New flag
18990 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18991 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18992 (generate_image): Handle images with modules before kernel.
18993
18994 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18995
18996 Prevent potential loss of memory map by overwrite on qemu-mips.
18997
18998 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18999 Save ram size in $s4.
19000 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19001 All users changed to grub_arch_memsize.
19002 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19003 Loongson.
19004 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19005 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19006 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19007 external variable.
19008
19009 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19010
19011 * .bzrignore: Remove grub-dumpbios.
19012
19013 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19014
19015 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19016 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19017 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19018 existing options which append).
19019 * docs/grub.texi (Simple configuration): Document new options.
19020 Reported by: Ian Jackson. Fixes Debian bug #617538.
19021
19022 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19023
19024 * util/grub-fstest.c (cmd_cat): New function.
19025 (fstest): Handle CMD_CAT.
19026 (options): Add cat.
19027 (argp_parser): Handle cat.
19028
19029 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19030
19031 * Makefile.util.def (grub-bin2h): Don't install.
19032 * docs/man/grub-bin2h.h2m: Remove.
19033
19034 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19035
19036 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19037 place.
19038
19039 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 Reenable qemu-mips port.
19042
19043 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19044 Fix small arc bug while on it.
19045 * gentpl.py: Handle qemu_mips.
19046 * grub-core/Makefile.am: Likewise.
19047 * grub-core/Makefile.core.def: Likewise.
19048 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19049 inappropriate includes.
19050 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19051 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19052 * grub-core/kern/main.c (grub_modules_get_end)
19053 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19054 * grub-core/kern/mips/qemu-mips: Moved to ..
19055 * grub-core/kern/mips/qemu_mips: ... this.
19056 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19057 (grub_machine_init): Call terminfo_init and serial_init.
19058 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19059 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19060 New variable.
19061 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19062 parameter passing.
19063 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19064 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19065 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19066 * include/grub/mips/qemu_mips/cmos.h: New file.
19067 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19068 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19069 Removed.
19070 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19071 Use correct mips-style address.
19072 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19073 (GRUB_TICKS_PER_SECOND): Removed.
19074 (grub_get_rtc): Likewise.
19075 (grub_cpu_idle): Likewise.
19076 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19077 New definition.
19078 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19079 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19080 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19081 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19082 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19083 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19084 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19085 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19086
19087 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 SGI ARCS port.
19090
19091 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19092 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19093 platforms.
19094 * configure.ac: New target mips-arc.
19095 * gentpl.py: Likewise.
19096 * grub-core/Makefile.am: Likewise.
19097 * grub-core/Makefile.core.def: Likewise.
19098 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19099 (none_decompress): Likewise.
19100 (lsdev): New module.
19101 (datetime): Use lib/arc/datetime.c on ARC.
19102 (part_dvh): New module.
19103 * grub-core/commands/arc/lsdev.c: New file.
19104 * grub-core/disk/arc/arcdisk.c: Likewise.
19105 * grub-core/kern/mips/arc/init.c: Likewise.
19106 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19107 aligned addresses.
19108 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19109 support.
19110 (grub_arch_dl_relocate_symbols): Likewise.
19111 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19112 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19113 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19114 platforms.
19115 * grub-core/lib/arc/datetime.c: New file.
19116 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19117 pci.h on non-loongson.
19118 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19119 (grub_linux_boot): Set unused registers to 0.
19120 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19121 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19122 * grub-core/mmap/mips/uppermem.c: ...here.
19123 * grub-core/partmap/dvh.c: New file.
19124 * grub-core/term/arc/console.c: Likewise.
19125 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19126 (grub_terminfo_set_current): Add terminal "arc".
19127 (grub_terminfo_readkey): Support ARC sequences.
19128 * include/grub/arc/arc.h: New file.
19129 * include/grub/arc/console.h: Likewise.
19130 * include/grub/disk.h (grub_disk_dev_id): Add
19131 GRUB_DISK_DEVICE_ARCDISK_ID.
19132 * include/grub/mips/arc/kernel.h: New file.
19133 * include/grub/mips/arc/memory.h: Likewise.
19134 * include/grub/mips/arc/time.h: Likewise.
19135 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19136 * include/grub/mips/kernel.h (grub_halt): ... here.
19137 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19138 here...
19139 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19140 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19141 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19142 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19143 proto.
19144 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19145 from here ...
19146 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19147 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19148 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19149 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19150 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19151 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19152 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19153 (grub_phys_addr_t): Moved from here ...
19154 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19155 (grub_vtop): Moved from here ...
19156 * include/grub/mips/memory.h (grub_vtop): ... here.
19157 (grub_map_memory): Moved from here ...
19158 * include/grub/mips/memory.h (grub_map_memory): ... here.
19159 (grub_unmap_memory): Moved from here ...
19160 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19161 (grub_machine_mmap_iterate): Moved from here ...
19162 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19163 (grub_mmap_get_lower): Moved from here ...
19164 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19165 (grub_mmap_get_upper): Moved from here ...
19166 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19167 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19168 here ...
19169 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19170 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19171 here ...
19172 * include/grub/mips/time.h (grub_get_rtc): ... here.
19173 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19174 here ...
19175 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19176 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19177 here ...
19178 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19179 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19180 definition.
19181 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19182 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19183 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19184 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19185 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19186 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19187 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19188 (GRUB_MACHINE_LINK_ADDR): Likewise.
19189 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19190 to 6.
19191 * util/grub-install.in: Run dvhtool on ARC.
19192 * util/grub-mkimage.c (image_targets): Add mips-arc.
19193 (generate_image): Handle ECOFF output for mips-arc.
19194
19195 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19196
19197 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19198 blocks.
19199
19200 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19201
19202 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19203 after enabling port.
19204
19205 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19206
19207 Skip incorrect USB devices.
19208
19209 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19210 configcnt == 0.
19211 * include/grub/usb.h (grub_usb_err_t): New enum value
19212 GRUB_USB_ERR_BADDEVICE.
19213
19214 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19215
19216 Fuloong video init support.
19217
19218 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19219 well.
19220 (grub_vga_read_arx): New function.
19221 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19222 definition.
19223 (framebuffer): New members io, mmioptr and mmiobase.
19224 (read_sis_cmd): New function.
19225 (write_sis_cmd): Likewise.
19226 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19227 rather than 640x400.
19228 * grub-core/video/sis315_init.c: New file.
19229
19230 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19233 non-loongson.
19234 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19235 to grub_dl_register_symbol.
19236
19237 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19238
19239 Fix compilation errors.
19240
19241 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19242 potentially unused.
19243 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19244 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19245 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19246 to loongson machines.
19247
19248 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19249
19250 Several FS mtime support.
19251
19252 * grub-core/fs/affs.c (grub_affs_time): New struct.
19253 (grub_affs_file): New field mtime.
19254 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19255 type. Removed 'size'. New field 'di'. All users updated.
19256 (grub_affs_mount): Simplify checsum checking.
19257 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19258 (grub_affs_dir): Handle mtime.
19259 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19260 (grub_cpio_dir): Likewise.
19261 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19262 (grub_hfs_filerec): New field mtime.
19263 (grub_hfs_dir): Handle mtime.
19264 (grub_hfs_mtime): New function.
19265 (grub_hfs_fs): Register grub_hfs_mtime.
19266 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19267 (grub_iso9660_dir): New field mtime.
19268 (grub_fshelp_node): New field dirent.
19269 (iso9660_to_unixtime): New function.
19270 (iso9660_to_unixtime2): Likewise.
19271 (grub_iso9660_read_symlink): Use node->dirent.
19272 (grub_iso9660_iterate_dir): Likewise.
19273 (grub_iso9660_dir): Set mtime.
19274 (grub_iso9660_mtime): New function.
19275 (grub_iso9660_fs): Register grub_iso9660_mtime.
19276 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19277 (grub_jfs_inode): New fields atime, ctime and mtime.
19278 (grub_jfs_dir): Set mtime.
19279 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19280 * grub-core/fs/ntfs.c (list_file): Set mtime.
19281 (grub_ntfs_dir): Likewise.
19282 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19283 (grub_reiserfs_iterate_dir): Set mtime.
19284 (grub_reiserfs_dir): Likewise.
19285 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19286 (grub_fshelp_node): Likewise.
19287 (grub_sfs_iterate_dir): Set mtime.
19288 (grub_sfs_dir): Likewise.
19289 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19290 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19291 (grub_xfs_inode): New fields atime, mtime, ctime.
19292 (grub_xfs_dir): Set mtime.
19293 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19294 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19295 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19296
19297 Support UDF symlinks.
19298
19299 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19300 (grub_ufs_read_symlink): New function. All users updated.
19301
19302 Check amiga partmap checksum.
19303
19304 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19305 (grub_amiga_partition): Likewise.
19306 (amiga_partition_map_checksum): New function.
19307 (amiga_partition_map_iterate): Check checksum.
19308
19309 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19310
19311 ROMFS support.
19312
19313 * Makefile.util.def (libgrubmods.a): Add romfs.
19314 * grub-core/Makefile.core.def (romfs): New module.
19315 * grub-core/fs/romfs.c: New file.
19316
19317 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19318
19319 Squashfs v4 support.
19320
19321 * Makefile.util.def (libgrubmods.a): Add squash4.
19322 * grub-core/Makefile.core.def (squash4): New module.
19323 * grub-core/fs/squash4.c: New file.
19324 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19325 disk_input_start, disk_input.
19326 (get_byte): Handle disk_input.
19327 (grub_zlib_disk_read): New function.
19328 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19329
19330 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19331 2011-05-15 Feiran Zheng <famcool@gmail.com>
19332
19333 * Makefile.util.def (libgrubmods.a): Add minix3.
19334 * grub-core/Makefile.core.def (minix3): New module.
19335 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19336 (GRUB_MINIX_BSIZE): Removed.
19337 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19338 (grub_minix_ino_t): New type.
19339 (grub_minix_le_to_cpu_ino): New macro.
19340 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19341 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19342 (grub_minix_data): New field block_size.
19343 (grub_minix_read_file): Handle 64-bit correctly.
19344 * grub-core/fs/minix3.c: New file.
19345
19346 2011-05-15 Tristan Gingold <gingold@free.fr>
19347 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19348 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19349
19350 IA64 support.
19351
19352 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19353 * configure.ac: Add ia64-efi target.
19354 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19355 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19356 * gentpl.py: Add ia64_efi platform.
19357 Rename x86_efi to efi and Add ia64-efi. All users updated.
19358 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19359 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19360 Remove kern/generic/rtc_get_time_ms.c on EFI.
19361 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19362 kern/ia64/dl_helper.c on ia64-efi.
19363 Add kern/emu/cache.c on emu.
19364 (linux): Use on loader/ia64/efi/linux.c on ia64.
19365 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19366 whether symbol is a function.
19367 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19368 (grub_symbol): New field 'isfunc'.
19369 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19370 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19371 (grub_dl_load_segments): Place all sections into the same region.
19372 [__ia64__]: Create trampolines and got.
19373 [GRUB_MACHINE_EMU]: Call mprotect.
19374 (grub_dl_resolve_symbols): Resolve symbol type as well.
19375 [__ia64__]: Create function descriptors.
19376 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19377 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19378 (grub_get_rtc): New function.
19379 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19380 * grub-core/kern/emu/cache.S: Renamed to ...
19381 * grub-core/kern/emu/cache_s.S: ... this.
19382 [__ia64__]: Add a nop.
19383 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19384 [__ia64__]: New function.
19385 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19386 * grub-core/kern/ia64/dl.c: New file.
19387 * grub-core/kern/ia64/dl_helper.c: Likewise.
19388 * grub-core/kern/ia64/efi/init.c: New file.
19389 * grub-core/kern/ia64/efi/startup.S: Likewise.
19390 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19391 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19392 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19393 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19394 * grub-core/loader/ia64/efi/linux.c: New file.
19395 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19396 (GRUB_MOD_DEP): Likewise.
19397 (grub_dl) [__ia64__]: New fields got and tramp.
19398 (grub_dl): New field 'base'.
19399 (grub_dl_register_symbol): New argument isfunc. All users updated.
19400 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19401 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19402 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19403 (grub_ia64_dl_get_tramp_got_size): New proto.
19404 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19405 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19406 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19407 * include/grub/efi/api.h: Skip call wrappers on ia64.
19408 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19409 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19410 * include/grub/elf.h (ELF_ST_INFO): New definition.
19411 * include/grub/ia64/efi/kernel.h: New file.
19412 * include/grub/ia64/efi/memory.h: Likewise.
19413 * include/grub/ia64/efi/time.h: Likewise.
19414 * include/grub/ia64/kernel.h: Likewise.
19415 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19416 * include/grub/ia64/time.h: New file.
19417 * include/grub/ia64/types.h: Likewise.
19418 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19419 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19420 New protos.
19421 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19422 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19423 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19424 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19425 All users updated.
19426 (EFI64_HEADER_SIZE): New definition. All users updated.
19427 (image_targets): Add ia64-efi.
19428 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19429 jumpers_addr. All users updated.
19430 Create function descriptors.
19431 (count_funcs): New function.
19432 (unaligned_uint32): New struct.
19433 (MASK20): New definition.
19434 (MASK19): Likewise.
19435 (MASKF21): Likewise.
19436 (add_value_to_slot_20b): New function.
19437 (add_value_to_slot_21_real): Likewise.
19438 (add_value_to_slot_21): Likewise.
19439 (ia64_kernel_trampoline): New struct.
19440 (nopm): New variable.
19441 (jump): Likewise.
19442 (make_trampoline): New function.
19443 (relocate_addresses): Handle ia64.
19444 (make_reloc_section): Likewise.
19445 (load_image): Likewise.
19446
19447 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19448
19449 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19450 warning. Move variables before code while on it.
19451
19452 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19453
19454 Fuloong support.
19455
19456 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19457 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19458 * grub-core/boot/mips/loongson/fuloong.S: New file.
19459 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19460 Explicitly init CS5536.
19461 [FULOONG]: Don't use serial until CS5536 is available.
19462 Set GPIO based on dumps.
19463 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19464 [FULOONG]: Handle GPIO and memory controller differences.
19465 Parse machine type in $a2.
19466 * grub-core/boot/mips/startup_raw.S: Determine and save the
19467 architecture.
19468 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19469 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19470 init on architecture type.
19471 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19472 SIS315E. Don't init at_keyboard on fuloong.
19473 (grub_halt): Support Fuloong.
19474 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19475 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19476 (loongson_machtypes): New array.
19477 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19478 type.
19479 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19480 config. All users updated. Handle CS5536 serial.
19481 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19482 default port on machine type. Register serial as inactive.
19483 * grub-core/video/sis315pro.c: New file.
19484 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19485 definition.
19486 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19487 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19488 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19489 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19490 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19491 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19492 to ...
19493 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19494 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19495 definition.
19496 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19497 (grub_arch_machine): New extern var.
19498 * include/grub/mips/loongson/serial.h
19499 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19500 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19501 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19502 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19503 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19504 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19505 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19506 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19507 * include/grub/term.h (grub_term_register_input_inactive): New inline
19508 function.
19509 (grub_term_register_output_inactive): Likewise.
19510 * include/grub/video.h (grub_video_driver_id): New value
19511 GRUB_VIDEO_DRIVER_SIS315PRO.
19512 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19513 New field "names". All users updated.
19514 New field value IMAGE_FULOONG_FLASH.
19515 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19516
19517 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19518
19519 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19520 and add some clarification.
19521
19522 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19523
19524 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19525 platforms if kernel is compressed.
19526
19527 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19530 unused modules since currently referrence counter isn't reliable and
19531 there isn't much memory to recover there anyway.
19532
19533 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19534
19535 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19536 rather than resetting it to allow modules to reference themselves
19537 in init.
19538
19539 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19542 counter on dependencies since grub_dl_unref already handles this.
19543
19544 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19545
19546 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19547 on error if not already done.
19548
19549 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19550
19551 Fix few potential memory misusage.
19552
19553 * grub-core/font/font.c (load_font_index): Don't free char_index to
19554 avoid double free.
19555 (grub_font_load): Zero-fill font at alloc for safety.
19556 Close file on error.
19557 (free_font): Free bmp_idx.
19558
19559 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19560
19561 * docs/grub.texi (Installation): Fix several outdated claims.
19562
19563 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19564
19565 Handle module_license on windows.
19566
19567 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19568 sections shifted.
19569 (insert_string): Make argument const char * instead of char *.
19570 (write_section_data): Handle long section names.
19571 Handle module_license.
19572
19573 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19574
19575 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19576 handle class-free menuentries.
19577 (grub_normal_add_menu_entry): Add a check to be sure.
19578
19579 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19580
19581 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19582 PgUp and PgDown.
19583
19584 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19585
19586 * configure.ac: Bump version to 1.99.
19587
19588 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19589
19590 Give ATA device a bit more time on first try in order to allow disks
19591 to spin up.
19592
19593 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19594 if dev->present is 1. Reset dev->present on failure.
19595 (grub_ata_device_initialize): Set dev->present to 1.
19596 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19597 (grub_ata_device): New member 'present'.
19598
19599 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19600
19601 * util/grub-mkimage.c (generate_image): Update hash.
19602
19603 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19604
19605 Flush caches on DMA memory.
19606
19607 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19608 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19609 (grub_dma_free): Likewise.
19610 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19611
19612 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19613
19614 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19615 to avoid asm treating ld and sd as macros.
19616
19617 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19618
19619 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19620 decompressor.
19621
19622 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19623
19624 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19625 grub_decompress_core since later would fail if grub_decompress_core
19626 is too far.
19627
19628 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19629
19630 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19631 R_MIPS_JALR since it's used by newer compiler.
19632
19633 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19636
19637 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19638
19639 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19640 file_path to 0 for surety.
19641 (grub_chainloader_boot): Set exit_data to NULL.
19642 Unset the loader once done.
19643 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19644
19645 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19646
19647 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19648 unknown key into a dprintf.
19649
19650 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19651
19652 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19653 on first non-existant partition.
19654
19655 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19656
19657 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19658 openning fails.
19659 Reported by: Mark Korenberg.
19660
19661 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19662
19663 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19664 overflow.
19665
19666 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19667
19668 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19669 before closing to ensure that it will be readable by grub-setup.
19670
19671 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19674 (devpath_1): Use MAKE_PIWG_PATH.
19675 (devpath_2): Likewise.
19676 (devpath_3): Likewise.
19677 (devpath_4): Likewise.
19678 (devpath_5): Likewise.
19679 (devpath_6): Likewise.
19680
19681 The appleldr.mod was checked that to be binary identical to previous
19682 version.
19683
19684 2011-05-05 Zach <mikezackles>
19685
19686 Support 2010 Macbooks.
19687
19688 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19689 (devs): Add devpath_6.
19690
19691 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19692
19693 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19694 /dev/random. /dev/urandom is good enough for our purposes (salting).
19695
19696 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19697
19698 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19699
19700 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19703 hexadecimal.
19704
19705 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19706
19707 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19708 and not 0 on failure.
19709
19710 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19711
19712 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19713 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19714 disk; otherwise grub_fs_probe will not fall back to the next
19715 filesystem.
19716 (grub_pxefs_open): Likewise, for consistency.
19717 Reported and tested by: Ezekiel Grave.
19718
19719 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19720
19721 * tests/partmap_test.in: Don't hardcode path to parted.
19722 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19723
19724 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19725
19726 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19727 of `ls' to find out which devices are available.
19728
19729 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19730
19731 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19732 than source address for efi mmap buffer.
19733
19734 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19735
19736 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19737 wrong action on non-detecting the magic.
19738
19739 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19740
19741 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19742 already supplied by another part of the module (fixes compilation on
19743 FreeBSD).
19744
19745 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19746
19747 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19748 match the one used by mdadm.
19749
19750 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19751
19752 * po/README: Add instructions for creating po/LINGUAS.
19753
19754 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19755
19756 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19757 #551428.
19758
19759 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19760 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19761 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19762 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19763 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19764 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19765 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19766 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19767 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19768 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19769 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19770 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19771 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19772 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19773 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19774 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19775 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19776 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19777 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19778 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19779 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19780 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19781
19782 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19783
19784 * grub-core/kern/emu/getroot.c
19785 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19786 test that was incorrectly reintroduced in r3214.
19787 Reported by: Ian Dall. Fixes Savannah bug #33133.
19788
19789 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19790
19791 Fix stack pointer handling in 16-bit relocator.
19792
19793 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
19794 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
19795 Fixes Ubuntu bug #683904.
19796
19797 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19798
19799 * configure.ac: Bump version to 1.99~rc2.
19800
19801 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19804 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19805 * grub-core/lib/x86_64/setjmp.S: Likewise.
19806 * grub-core/lib/mips/setjmp.S: Likewise.
19807 * grub-core/lib/powerpc/setjmp.S: Likewise.
19808 * grub-core/lib/sparc64/setjmp.S: Likewise.
19809
19810 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19811
19812 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19813 * grub-core/lib/efi/datetime.c: Likewise.
19814
19815 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19816
19817 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19818 New function.
19819 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19820 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19821 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19822
19823 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19826 bitmap.
19827 (grub_gfxterm_term_init): Likewise.
19828
19829 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19830
19831 Take into account the decorations the computing menu entry width.
19832
19833 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19834 (grub_gfxmenu_create_box): Register get_border_width.
19835 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19836 if available.
19837 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19838 get_border_width.
19839
19840 2011-04-18 Endres Puschner <code@e7p.de>
19841
19842 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19843 Don't skip first class.
19844
19845 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19846
19847 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19848 chunks.
19849 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19850
19851 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19852
19853 Complete 64-bit division support.
19854
19855 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19856 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19857 * include/grub/misc.h (grub_divmod64): Rename to ...
19858 (grub_divmod64_full): ... this.
19859 (grub_divmod64): New inline function.
19860
19861 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19862
19863 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19864
19865 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19866
19867 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19868 performing the necessary test.
19869
19870 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19871
19872 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19873 (kfreebsd.elf): Likewise.
19874 (pc-chainloader.elf): Likewise.
19875 (ntldr.elf): Likewise.
19876
19877 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19878
19879 Identify RAID by its UUID rather than (guessed) name.
19880
19881 * grub-core/disk/raid.c (ascii2hex): New function.
19882 (grub_raid_open): Accept mduuid/%s specification.
19883 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19884 (get_mdadm_uuid): ... this.
19885 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19886
19887 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19890 to negative size.
19891
19892 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19893
19894 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19895 btrfs subvolume.
19896 * util/grub.d/20_linux_xen.in: Likewise.
19897
19898 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19899
19900 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19901 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19902
19903 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19904 Build a list of relevant visible mounts using the mnt_id and
19905 parent_mnt_id fields, and then scan that list at the end.
19906
19907 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19908
19909 * docs/grub.texi (normal): New section.
19910 (normal_exit): New section.
19911 (Embedded configuration): Add reference to normal.
19912 (GRUB only offers a rescue shell): Likewise.
19913 * docs/grub-dev.texi (Error Handling): Fix typo.
19914
19915 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19916
19917 * NEWS: Drop obsolete entry about probe-only btrfs support.
19918
19919 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19920
19921 * util/import_gcry.py: Fix typo.
19922
19923 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19924
19925 * NEWS: Add btrfs support.
19926
19927 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19928 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19929
19930 BtrFS support. Written by me (Vladimir) with important bugfixes and
19931 even more important testing by Colin.
19932
19933 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19934 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19935 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19936 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19937 mem_input_off and mem_input. All users updated to accept in-RAM input.
19938 (gzio_seek): New function.
19939 (test_zlib_header): Likewise.
19940 (grub_gzio_read): Likewise.
19941 (grub_zlib_decompress): Likewise.
19942 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19943 Accept partial and non-virtual mounts.
19944 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19945 avoid receiving /dev/dm-X as device.
19946 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19947 Handle bind and partial mounts.
19948 * grub-core/lib/crc.c: New file.
19949 * include/grub/deflate.h: Likewise.
19950 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19951 proto.
19952 * include/grub/lib/crc.h: New file.
19953
19954 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 Implement automatic module license checking according to new GNU
19957 guidelines.
19958
19959 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19960 (grub_dl_load_core): Use grub_dl_check_license.
19961 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19962 (GRUB_MOD_LICENSE): Likewise.
19963 (GRUB_MOD_DUAL_LICENSE): Likewise.
19964 All modules updated.
19965
19966 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19967
19968 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19969 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19970 loaders.
19971 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19972
19973 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19974
19975 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19976
19977 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19978
19979 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19980 failed.
19981
19982 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19985 parenthesis in the middle of the filename.
19986
19987 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19988
19989 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19990 rather than trying to put initrd way too high.
19991 Reported by: Ryan Lortie <desrt@desrt.ca>
19992
19993 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19996 improperly removed string.
19997
19998 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20001 is_disk.
20002 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20003 (open_device) Likewise.
20004 (grub_util_biosdisk_close): Likewise.
20005 Reported by: Mark Korenberg.
20006
20007 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20008
20009 * util/grub-mkconfig_lib.in: Add missing quotes.
20010
20011 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20012
20013 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20014 is NULL.
20015
20016 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20017
20018 Dynamically count the number of lines for the lower banner.
20019
20020 * grub-core/normal/menu_entry.c (per_term_screen): New member
20021 num_entries.
20022 (print_down): Use num_entries.
20023 (update_screen): Likewise.
20024 (grub_menu_entry_run): Set num_entries.
20025 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20026 num_entries.
20027 (grub_print_message_indented): Move real part to ...
20028 (grub_print_message_indented_real): ... here. Additional argument
20029 dry_run.
20030 (draw_border): Additional argument num_entries.
20031 (print_message): Additional argument dry_run.
20032 (print_entries): Receive menu viewer data.
20033 (grub_menu_init_page): New argment num_entries.
20034 (menu_text_set_chosen_entry): Use num_entries.
20035 (grub_menu_try_text): Likewise.
20036 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20037 All users updated.
20038 (grub_ucs4_count_lines): New function.
20039 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20040 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20041 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20042 (grub_term_border_height): Likewise.
20043 (grub_term_num_entries): Likewise.
20044
20045 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20048 Remove now unused string.
20049
20050 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20051
20052 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20053 build system.
20054 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20055
20056 (Comment): Fix typo.
20057 (Getting started): General copy-editing.
20058 (Typical Development Experience): Likewise.
20059 (Error Handling): Likewise.
20060 (Video API): Likewise.
20061
20062 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20063
20064 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20065 throughout.
20066
20067 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20068
20069 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20070 directory.
20071
20072 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20073
20074 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20075 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20076 "development".
20077
20078 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20081 grub_strcpy since the lines aren't necessarily 0-terminated.
20082
20083 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20084
20085 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20086 root on legacy.
20087
20088 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20091 (GRUB_MOD_INIT): DEVICE isn't optional.
20092
20093 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20094
20095 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20096 word on new line if it's too long anyway. Fixes a hang.
20097
20098 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20099
20100 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20101 const.
20102 * util/grub-setup.c (main): Reuse md device name if available.
20103 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20104 not GRUB name as argument.
20105 Based on patch by: Florian Wagner <fwagner>.
20106
20107 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20110 Place mbi on low memory for better compatibility.
20111
20112 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20115
20116 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20117 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20118
20119 * autogen.sh: Ensure that collate and ctype locale is C.
20120 * conf/Makefile.common: Likewise.
20121
20122 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20123
20124 * grub-core/normal/menu.c: Add missing include.
20125
20126 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20127
20128 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20129
20130 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20131
20132 * util/grub-mkconfig.in: Ignore emacsen backup.
20133
20134 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20137 on open.
20138 (grub_util_biosdisk_close): Likewise.
20139
20140 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20143 const attribute and use grub_isdigit.
20144
20145 2011-04-06 Andrey <dev_null@ukr.net>
20146
20147 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20148 gcc warning.
20149
20150 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20151
20152 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20153 useful grub_dprintf's.
20154
20155 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20158
20159 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20162
20163 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20164
20165 Output errors if theme loading failed.
20166
20167 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20168 grub_gfxterm_fullscreen on error paths to ...
20169 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20170 theme loading error.
20171
20172 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20173
20174 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20175 space for older compilers.
20176 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20177
20178 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20181 and report them as not RAID members since they are useless for GRUB.
20182 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20183
20184 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 Increase LVM implementation robustness in order not to crash on
20187 configurations like pvmove. Previously code assumed that in some places
20188 only lvs or only pvs are used whereas it seems that they are used
20189 interchangeably.
20190
20191 * grub-core/disk/lvm.c (read_node): New function.
20192 (read_lv): Use read_node.
20193 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20194 Match volumes only at the end when all lvs are found. Take both
20195 pvs (first) and lvs (second) into account.
20196 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20197 mirror_* into node_*. All users updated.
20198 (grub_lvm_stripe): Merge this ...
20199 (grub_lvm_mirror): ... and this ...
20200 (grub_lvm_node): ... into this. All users updated.
20201
20202 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20203
20204 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20205 of function to allow further scanning for LVMs.
20206
20207 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20208
20209 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20210 on failed seek as it breaks open fd reusage.
20211
20212 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20213
20214 * util/grub-install.in: Add a recommendation to use --recheck before
20215 reporting bugs.
20216
20217 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20218
20219 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20220 are obtained.
20221
20222 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20223
20224 GRUB developper manual based on existing Internals section and
20225 contributions by the various authors with active copyright assignment.
20226
20227 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20228 * docs/font_char_metrics.png: New file.
20229 * docs/font_char_metrics.txt: Likewise.
20230 * docs/grub-dev.texi: Likewise.
20231 * docs/grub.texi (Internals): Move from here ...
20232 * docs/grub-dev.texi: ... here.
20233
20234 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20235
20236 Store the loopback device as data on loopback grub_disk structures,
20237 rather than the file it points to. This fixes use of freed memory
20238 if an existing loopback device is replaced.
20239
20240 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20241 disk->data, not dev->file.
20242 (grub_loopback_read): Adjust file assignment to match.
20243 Fixes Ubuntu bug #742967.
20244
20245 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20246
20247 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20248 when replacing an existing device.
20249
20250 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20251
20252 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20253 memory corruptions.
20254
20255 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20256 unsigned.
20257 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20258 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20259 (grub_jfs_read_inode): Likewise.
20260 (grub_jfs_opendir): Likewise. Remove now useless casts.
20261 (grub_jfs_getent): Likewise.
20262 Make ino a grub_uint32_t rather than int.
20263 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20264 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20265 division and module with bit operations.
20266 (grub_jfs_find_file): Make ino a grub_uint32_t.
20267 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20268
20269 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20270
20271 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20272 warning. (This was in fact always initialised before use, but GCC
20273 wasn't smart enough to prove that.)
20274 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20275
20276 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20277
20278 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20279 stack alignment.
20280 (efi_wrap_1): Likewise.
20281 (efi_wrap_2): Likewise.
20282 (efi_wrap_3): Likewise.
20283 (efi_wrap_4): Likewise.
20284 (efi_wrap_5): Likewise.
20285 (efi_wrap_6): Likewise.
20286 (efi_wrap_10): Likewise.
20287 Based on information by: Red Hat/Peter Jones.
20288
20289 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20290
20291 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20292 set-but-not-used variable.
20293
20294 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20295
20296 * docs/grub.texi (Simple configuration): Be more explicit about
20297 GRUB_DEFAULT, and add an example.
20298 Reported by: Leslie Rhorer.
20299
20300 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20301
20302 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20303 shell".
20304
20305 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20306
20307 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20308 * util/grub.d/20_linux_xen.in: Likewise.
20309
20310 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20311
20312 * util/grub.d/10_linux.in: Try alternative config filenames where
20313 we parse config file.
20314 * util/grub.d/20_linux_xen.in: Likewise.
20315
20316 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20317
20318 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20319 * util/grub.d/20_linux_xen.in: Likewise.
20320
20321 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20322
20323 * grub-core/disk/raid.c (insert_array): Add few potentially
20324 useful grub_util_info.
20325 (grub_raid_register): Likewise.
20326
20327 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20328
20329 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20330 Preserve partition number in mdadm code path.
20331
20332 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20333
20334 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20335 few potentially useful grub_util_info.
20336
20337 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20338
20339 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20340
20341 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20342
20343 * docs/grub.texi (default): Use @example rather than nested
20344 itemized lists to avoid breaking gendocs.
20345
20346 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20347
20348 * docs/grub.texi (Future): Update.
20349
20350 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20351
20352 * docs/grub.texi (Environment): New chapter.
20353 (Changes from GRUB Legacy): Link to "Environment block" section for
20354 details of limitations.
20355 (Simple configuration): Likewise. Link to documentation of gfxmode
20356 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20357 respectively.
20358 (Shell-like scripting): Note that normal variables are stored in the
20359 environment.
20360 (gettext): Link to documentation of lang and locale_dir.
20361 (list_env): New section.
20362 (load_env): New section.
20363 (save_env): New section.
20364
20365 (Reporting bugs): Fix typo.
20366
20367 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20368
20369 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20370 the example.
20371
20372 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20373
20374 * grub-core/term/at_keyboard.c (set_scancodes)
20375 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20376
20377 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20378
20379 * docs/grub.texi (Menu-specific commands): Remove some semantics
20380 that were true in GRUB Legacy but not in GRUB 2.
20381 (submenu): New section.
20382 (false): New section.
20383 (read): New section.
20384 (true): New section.
20385
20386 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20387
20388 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20389
20390 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20391
20392 * docs/grub.texi (Simple configuration): Explain some of the
20393 current limitations of grub-mkconfig.
20394 Reported by: Leslie Rhorer.
20395
20396 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20397
20398 Old macs search for boot.efi rather than for bootia32.efi.
20399
20400 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20401 * util/grub-mkrescue.in: Likewise.
20402 Suggested by: Peter Jones.
20403
20404 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20405
20406 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20407
20408 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20411 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20412 (grub_lvm_mirror): New struct.
20413 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20414 (grub_lvm_iterate): Iterate only visible volumes.
20415 (grub_lvm_read): Factor out to ..
20416 (read_lv): ... this. Support mirrors.
20417 (grub_lvm_read): New wrapper function.
20418 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20419 stripped or mirrored.
20420
20421 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20422
20423 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20424
20425 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20426
20427 * docs/grub.texi (loopback): New section.
20428
20429 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20430
20431 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20432 removed -p option.
20433
20434 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20435
20436 * docs/grub.texi (BIOS installation): New section, partly based on
20437 previous text in other sections.
20438 (Installing GRUB using grub-install): Replace BIOS discussion with a
20439 cross-reference.
20440 (Images): Likewise.
20441
20442 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20443
20444 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20445 [HAVE_DIOCGDINFO]: Add safety checks.
20446
20447 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20448
20449 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20450 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20451
20452 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20453
20454 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20455 real_sb->size is zero (e.g. RAID-0), get the disk size from
20456 real_sb->data_size instead.
20457 Fixes Ubuntu bug #743136.
20458
20459 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20460
20461 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20462 printf clauses for printing size and start.
20463
20464 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20465
20466 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20467 Reported and tested by: Timothy Nikkel.
20468
20469 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20472 (dirty_region_add_real): ... this.
20473 (dirty_region_add): Don't discard margin refresh when performing
20474 scheduled repaint.
20475
20476 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20477
20478 * grub-core/lib/relocator.c (allocate_regstart)
20479 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20480 terminals are capabple of malloc-free operation.
20481 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20482 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20483
20484 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20485
20486 * util/grub-setup.c: Copy the partition table zone if floppy support
20487 is disabled, even if no partition table is found.
20488
20489 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20490 during POST if an invalid partition table is contained in the PBR
20491 of the active partition when GRUB is installed to a partition.
20492
20493 2011-03-28 Colin Watson <cjwatson@debian.org>
20494
20495 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20496 comment.
20497
20498 2011-03-28 Colin Watson <cjwatson@debian.org>
20499
20500 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20501 to be specific about what kind of RAID device we're scanning for.
20502
20503 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20504
20505 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20506 return freed string.
20507
20508 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20509
20510 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20511
20512 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20513
20514 Use libgeom on FreeBSD to detect partitions.
20515
20516 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20517 (grub-mkrelpath): Likewise.
20518 (grub-script-check): Likewise.
20519 (grub-editenv): Likewise.
20520 (grub-mkpasswd-pbkdf2): Likewise.
20521 (grub-fstest): Likewise.
20522 (grub-mkfont): Likewise.
20523 (grub-mkdevicemap): Likewise.
20524 (grub-probe): Likewise.
20525 (grub-setup): Likewise.
20526 (grub-ofpathname): Likewise.
20527 (grub-mklayout): Likewise.
20528 (example_unit_test): Likewise.
20529 (grub-menulst2cfg): Likewise.
20530 * grub-core/Makefile.core.def (grub-emu): Likewise.
20531 (grub-emu-lite): Likewise.
20532 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20533 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20534 define HAVE_DIOCGDINFO.
20535 (follow_geom_up) [FreeBSD]: New function.
20536 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20537 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20538 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20539 unconditionally of HAVE_DIOCGDINFO.
20540
20541 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 Fix FreeBSD compilation problem.
20544
20545 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20546 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20547
20548 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20549
20550 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20551 Switch back to page zero before loading a kernel, since some kernel
20552 drivers expect that.
20553 Thanks to: Felix Kuehling.
20554
20555 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20558 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20559 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20560
20561 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20562
20563 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20564 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20565
20566 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20567
20568 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20569 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20570 malloc is disabled.
20571
20572 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20575 for modules headers when counting the needed allocation size.
20576
20577 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20580 if no ASCII character is found to prevent crash.
20581
20582 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20583
20584 * grub-core/video/bitmap.c (match_extension): Ignore case.
20585
20586 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20587
20588 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20589
20590 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * grub-core/script/parser.y: Declare "time" as valid argument.
20593
20594 2011-03-23 Peter Jones <pjones@redhat.com>
20595
20596 Fix incorrect assert failure reporting.
20597
20598 * grub-core/tests/example_functional_test.c (example_test): Add
20599 a failure comment.
20600 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20601 (failure_start): ...this. Check that malloc succeeded.
20602 Don't call xvasprintf. Return failure struct.
20603 (failure_append_vtext): New function.
20604 (failure_append_text): Likewise.
20605 (add_failure): Likewise.
20606 (grub_test_assert_helper): Likewise.
20607 * include/grub/test.h (grub_test_assert_helper): New declaration.
20608 (grub_test_assert): Macro rewritten.
20609
20610 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20611
20612 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20613
20614 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20615
20616 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20617
20618 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20619
20620 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20621 into GRUB-style one.
20622
20623 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20624
20625 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20626 error and not grub_errno.
20627 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20628
20629 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20630
20631 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20632 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20633
20634 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * grub-core/efiemu/i386/pc/cfgtables.c
20637 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20638 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20639 (grub_xnu_unlock): Likewise.
20640 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20641
20642 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20643
20644 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20645 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20646 * grub-core/commands/hashsum.c (aliases): Likewise.
20647 * grub-core/commands/setpci.c (pci_registers): Likewise.
20648 * grub-core/disk/usbms.c (attach_hook): Likewise.
20649 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20650 (zio_checksum_table): Likewise.
20651 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20652 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20653 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20654 * grub-core/lib/relocator.c (leftovers): Likewise.
20655 (extra_blocks): Likewise.
20656 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20657 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20658 (modules_last): Likewise.
20659 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20660 (devices): Likewise.
20661 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20662 (modules_last): Likewise.
20663 * grub-core/normal/auth.c (users): Likewise.
20664 * grub-core/normal/context.c (initial_menu): Likewise.
20665 (current_menu): Likewise.
20666 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20667 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20668 (grub_serial_terminfo_input_template): Likewise.
20669 (grub_serial_terminfo_output_template): Likewise.
20670 (grub_serial_terminfo_input): Likewise.
20671 (grub_serial_terminfo_output): Likewise.
20672 (registered): Likewise.
20673 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20674
20675 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20676
20677 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20678 grub_video_mode_type_t.
20679 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20680 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20681 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20682
20683 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20684
20685 * util/grub-install.in: Correct the x86-64 name as x86_64.
20686
20687 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20688
20689 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20690 initial chunk read from the kernel always includes GRUB's multiboot
20691 header, which is now outside the first sector.
20692
20693 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20694
20695 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20696 cached mmap_size, so that this works correctly when called multiple
20697 times.
20698 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20699
20700 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20701
20702 * docs/grub.texi (Simple configuration): Tidy up formatting.
20703
20704 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20705
20706 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20707 Set-but-not-used variable removed.
20708
20709 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20710
20711 Workaround yet another IEEE1275 bug.
20712
20713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20714 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20715 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20716 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20717 is set.
20718 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20719 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20720
20721 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20724 error.
20725
20726 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20727
20728 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20729 empty, since in that case we can only generate either nothing or a
20730 syntactically invalid configuration file.
20731 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20732
20733 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20734
20735 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20736 (Making a GRUB bootable CD-ROM): Likewise.
20737 (Invoking grub-mkrescue): New section.
20738 Reported by: Yann Dirson. Fixes Debian bug #612585.
20739
20740 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20741
20742 * util/grub-install.in: Remove unnecessary brackets from tr
20743 arguments.
20744 * util/grub.d/10_hurd.in: Likewise.
20745 * util/grub.d/10_kfreebsd.in: Likewise.
20746 * util/grub.d/10_linux.in: Likewise.
20747 * util/grub.d/20_linux_xen.in: Likewise.
20748 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20749
20750 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20751
20752 * include/grub/file.h (not_easly_seekable): Rename to ...
20753 (not_easily_seekable): ... this. Update all users.
20754
20755 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20756
20757 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20758 grub-mkrescue.
20759
20760 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20761
20762 * util/grub-mkimage.c (generate_image): Refuse to create the images
20763 bigger than the actual flash (512K) in Loongson machines. 512K is also
20764 the biggest chip supported by them.
20765
20766 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20767
20768 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20769
20770 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20771
20772 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20773 super_offset field.
20774
20775 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20776
20777 * util/grub-install.in: Ignore install device on platforms
20778 where it doesn't make sense. Always use UUIDs except on pc, efi and
20779 sparc64.
20780 Reported by: Daniel Kahn Gillmor.
20781
20782 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20783
20784 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20785
20786 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20787
20788 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
20789 (iterate_real): Don't rely on partition being non-NULL.
20790
20791 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20792
20793 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
20794 supported platforms. Put a compile time assert for this rather than
20795 generate a warning with 32-bit shift.
20796
20797 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20798
20799 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20800 logical expression more readable.
20801
20802 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20803
20804 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20805 even if some elements have a name.
20806 Reported by: Alexander GQ Gerasiov.
20807
20808 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20809
20810 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20811 path unreadable if `grub-probe -t abstraction' fails, for example if
20812 memberlist fails on an LVM volume group.
20813 Reported by: Darius Jahandarie.
20814
20815 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * docs/grub.texi (Simple configuration): Document
20818 GRUB_PRELOAD_MODULES.
20819
20820 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
20821
20822 * .bzrignore: Remove nonexistent grub-pbkdf2.
20823
20824 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20825
20826 * configure.ac: Bump version to 1.99~rc1.
20827
20828 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20831 for safety.
20832
20833 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20834
20835 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20836 module.
20837
20838 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20839
20840 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20841
20842 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20843
20844 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20845 diskdevid.
20846
20847 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 Fix compilation on cygwin.
20850
20851 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20852 -R .drectve on cygwin.
20853 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20854 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20855 (COND_CYGWIN): New condition.
20856 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20857 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20858 not @TARGET_OBJ2ELF@.
20859 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20860 type to determine whether aux is to be used.
20861
20862 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20865 realpath'ed device string.
20866 Handle floppy (somewhat).
20867 Issue error in unknown case rather than garbage.
20868 Reported by: Axel Beckert.
20869
20870 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20871
20872 * util/grub.d/00_header.in (load_video): Handle the case when no video
20873 drivers available.
20874 Thanks to: Axel Beckert.
20875
20876 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20877
20878 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20879 variable. Fixes problem on big endian platforms.
20880
20881 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20882
20883 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20884 It doesn't work well there.
20885
20886 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20887
20888 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20889 warning.
20890 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20891 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20892 counter.
20893
20894 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20895
20896 Use alias->path rather than buggy "canon".
20897
20898 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20899 (ofdisk_hash_add): New argument curcan. All users updated.
20900
20901 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20902
20903 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20904
20905 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20906
20907 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20908 loadmask before doing any calculations. Use correct type for offset.
20909 (grub_linux_load64): Likewise.
20910
20911 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20912
20913 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20914 with NULL.
20915 (console_grub_equivalences_unshift): Likewise.
20916 Reported by: Daniel Dehennin.
20917
20918 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20919
20920 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20921 (set_env_limn_ro): Likewise.
20922 (GRUB_MOD_INIT): Likewise.
20923 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20924 ARRAY_SIZE while on it.
20925 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20926 * grub-core/normal/context.c (grub_env_export): Move from here ...
20927 * grub-core/kern/env.c (grub_env_export): ... here.
20928 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20929 prefix.
20930 * grub-core/kern/main.c (grub_main): Export root and prefix.
20931 * include/grub/env.h (grub_env_export): Export.
20932 Reported by: Seth Goldberg.
20933
20934 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20935
20936 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20937 Take into account space used by ELF sections and multiboot palette.
20938 Reported by: Grégoire Sutre.
20939
20940 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20941
20942 * BUGS: New file.
20943
20944 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 Pass more appropriate video id to Linux.
20947
20948 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20949 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20950 fill have_vga.
20951 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20952 shift params->lfb_size.
20953 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20954
20955 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20956
20957 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20958
20959 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20962 separator and pass bootpath/devid even if only one of them is available.
20963 Reported by: Seth Goldberg.
20964
20965 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20966
20967 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20968 implementations bug on them.
20969
20970 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20971 memory.
20972 (filter_memory_map): Likewise.
20973
20974 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20975
20976 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20977 Reported by: nebuchadnezzar.
20978
20979 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20980
20981 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20982 Reported by: nebuchadnezzar.
20983
20984 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20985
20986 Submenu default support.
20987
20988 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20989 auto_boot. All users updated.
20990 Declared static.
20991 Handle chosen and default with submenus.
20992 (grub_menu_execute_with_fallback): Declared static.
20993 Don't notify failure if autobooted. Upper level does it.
20994 (menuentry_eq): New function.
20995 (get_entry_number): Use menuentry_eq.
20996 (show_menu): New parameter "autobooted". All users updated.
20997 (grub_show_menu): Likewise.
20998 * include/grub/normal.h (grub_show_menu): Likewise.
20999 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21000 (grub_menu_execute_with_fallback): Likewise.
21001
21002 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21003
21004 * util/grub-mklayout.c (usage): Update help text.
21005
21006 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21007
21008 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21009
21010 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * util/grub-menulst2cfg.c (main): Trim the line.
21013
21014 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21015
21016 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21017 (grub_machine_init): Don't check amount of low memory as reportedly
21018 INT 12h can be broken and if low memory is too low we wouldn't have
21019 gotten into grub_machine_init anyway.
21020
21021 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21022
21023 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21024 (grub_machine_mmap_iterate): Take low memory into account
21025
21026 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21027
21028 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21029 badfs.
21030 Reported by: TiCPU.
21031
21032 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21035 members errors.
21036
21037 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21038
21039 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21040 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21041
21042 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21043
21044 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21045 openbsd and netbsd types being in part_bsd module.
21046
21047 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21048
21049 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21050 (_FILE_OFFSET_BITS): Likewise.
21051 Reported by: Seth Goldberg.
21052
21053 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21054
21055 * configure.ac: Check for libdevmapper header.
21056
21057 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21058
21059 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21060 avoid aliasing.
21061 (fzap_lookup): Likewise.
21062 (dnode_get): Likewise.
21063 (make_mdn): Likewise.
21064 (zfs_mount): Likewise.
21065 (fzap_iterate): Use temporary pointer to avoid aliasing.
21066 (grub_zfs_read): Likewise.
21067 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21068 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21069 pointers to avoid aliasing.
21070 (grub_cmd_xnu_kernel64): Likewise.
21071 (grub_xnu_load_driver): Likewise.
21072
21073 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21074
21075 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21076 aliasing warning.
21077 (grub_cmd_terminal_output): Likewise.
21078 Reported and tested by: Grégoire Sutre.
21079
21080 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21083 warning.
21084 Reported and tested by: Grégoire Sutre.
21085
21086 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * configure.ac: Do CPU substitution even if it's specified explicitly.
21089 Reported and tested by: Alain Greppin.
21090
21091 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21094 Reported and tested by: Alain Greppin.
21095
21096 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 Satisfy some bison versions need for inttypes.h.
21099
21100 * grub-core/lib/posix_wrap/inttypes.h: New file.
21101 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21102 (int16_t): Likewise.
21103 (int32_t): Likewise.
21104 (int64_t): Likewise.
21105 Reported and tested by: Alain Greppin.
21106
21107 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21110 Silence spurious warning.
21111 Reported and tested by: Alain Greppin.
21112
21113 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21114
21115 * docs/grub.texi (Support automatic decompression): Update with xz
21116 decompression support.
21117
21118 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21119
21120 Improve loaders' kernel command line handling.
21121
21122 * grub-core/lib/cmdline.c: New file.
21123 * include/grub/lib/cmdline.h: Likewise.
21124 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21125 grub_create_loader_cmdline to create kernel command line.
21126 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21127 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21128 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21129 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21130 (linux): Add lib/cmdline.c on common.
21131
21132 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21133
21134 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21135 inopos might be unaligned.
21136
21137 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21138
21139 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21140 endian transformations.
21141 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21142 Based on report by: Doug Nazar.
21143
21144 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21145
21146 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21147 array->members[i].start_sector.
21148 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21149
21150 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21151
21152 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21153 Reported and tested by: Grégoire Sutre.
21154
21155 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21156
21157 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21158 avoid causing test failures by clearing the screen.
21159
21160 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21161
21162 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21163 Fix prefix check to handle the case where dir ends with a slash
21164 (most significantly, "/" itself).
21165 Reported by: Michael Vogt.
21166
21167 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21168
21169 Run terminfo_cls on initing terminfo output to clear the screen and
21170 move the cursor to (0,0).
21171
21172 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21173 Call grub_terminfo_output_init.
21174 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21175 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21176 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21177
21178 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21181 only when needed.
21182
21183 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21186 CTRL.
21187
21188 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 The E820 type 5 is BADRAM, not EXEC_CODE.
21191
21192 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21193 (GRUB_E820_BADRAM): New define.
21194 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21195 into reserved. Propagate BADRAM.
21196 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21197 (GRUB_E820_BADRAM): New define.
21198
21199 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21200
21201 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21202 Ignore the memory post-4G.
21203 (grub_relocator_firmware_alloc_region): Additional debug statement.
21204
21205 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21208 names.
21209 Reported by: David Pravec.
21210
21211 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21212
21213 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21214 BIOSes.
21215
21216 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21217
21218 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21219 Prevent overflow.
21220 (grub_reed_solomon_recover): Likewise.
21221
21222 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21223
21224 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21225
21226 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21227
21228 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21229 variable.
21230
21231 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21232
21233 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21234 descriptions of extract_legacy_entries_source and
21235 extract_legacy_entries_configfile.
21236 Reported by: Seung Soo, Ha.
21237
21238 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21239
21240 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21241 on devices that do not implement function 0.
21242
21243 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21244
21245 * grub-core/fs/hfsplus.c: Make parent unsigned.
21246 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21247 overflows.
21248 (grub_hfsplus_cmp_extkey): Likewise
21249
21250 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21251
21252 * util/grub-install.in: Correctly use bootloader_id and not
21253 GRUB_DISTRIBUTOR on efibootmgr line.
21254
21255 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21256
21257 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21258
21259 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21260
21261 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21262 Xen and reorder menu item wording to make it clearer that this entry
21263 will launch Xen. Print separate messages when loading Xen and
21264 Linux.
21265
21266 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21269 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21270 loop in case of incorrect amiga partmap.
21271
21272 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21273
21274 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21275 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21276 Reported by:EHeM.
21277
21278 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21279
21280 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21281 spurious warning.
21282 Reported by: crocket
21283
21284 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21287 Preload EFIemu.
21288 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21289
21290 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21291
21292 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21293 is loaded
21294 (grub_cmd_xnu_kextdir): Likewise.
21295 (grub_cmd_xnu_splash): Likewise.
21296
21297 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 Avoid using Reed-Solomon with 0 redundancy.
21300
21301 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21302 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21303 or 0 redundancy.
21304 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21305 (grub_reed_solomon_recover): Likewise.
21306
21307 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21308
21309 Don't use disk subsystem in freebsd_boot.
21310
21311 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21312 (freebsd_biosdev): Likewise.
21313 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21314 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21315
21316 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 Handling of files of unknown size is currently limited. They can't be
21319 used e.g. for initrd or modules. Moreover gzip handling of not
21320 easily seekable files is buggy. Disable unknown file size for now. May
21321 be inefficient but works.
21322
21323 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21324 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21325
21326 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21327
21328 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21329 floppy probe.
21330
21331 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21332
21333 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21334
21335 2010-12-25 Shea Levy <shlevy>
21336
21337 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21338
21339 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21340
21341 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21342 Windows Server 2008.
21343 Reported by: Devin Giddings.
21344
21345 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21346
21347 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21348 writing an error message because of async power management.
21349 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21350 (grub_reboot): Likewise.
21351
21352 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21353
21354 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21355 keep unit tests from failing when they shouldn't.
21356
21357 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21358
21359 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21360 previous patch increased the size of the RS code by 20 bytes (at
21361 least with gcc-4.4), so increase this by 20 bytes to match.
21362 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21363
21364 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21365
21366 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21367 scratch area. Make sure to initialise chosen in standalone mode as
21368 well as non-standalone.
21369 Reported by: Robert Hooker and Andy Whitcroft.
21370 Tested by: Andy Whitcroft.
21371
21372 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21373
21374 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21375 constructing a new unescaped string and passing it to grub_xputs in
21376 one go, rather than passing characters to grub_printf one at a time.
21377
21378 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21379
21380 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21381 initialising utf16.
21382
21383 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21384
21385 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21386 comment. Add an extra layer of quotation, requiring the output of
21387 this function to be used in a printf format string.
21388 (gettext_printf): New function.
21389 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21390 Extract translatable strings from here-documents and use a temporary
21391 variable instead, so that xgettext can find them.
21392 * util/grub.d/10_kfreebsd.in: Likewise.
21393 * util/grub.d/10_linux.in: Likewise.
21394 * util/grub.d/20_linux_xen.in: Likewise.
21395
21396 * po/grub.d.sed: New file.
21397 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21398 arguments. Set c-format flags on all strings extracted from
21399 util/grub.d/ (xgettext refuses to include these itself for strings
21400 it extracted from a shell file, but these really are c-format).
21401
21402 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21403
21404 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21405 Avoid next pointing to nowhere.
21406
21407 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21410 rather than assuming than rootblock is exactly in the middle.
21411 (grub_affs_label): Likewise.
21412
21413 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21416 reserved_first_sector to 0.
21417 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21418 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21419 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21420
21421 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21422
21423 Fix handling of UTF-16 UDF labels.
21424
21425 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21426 (read_string): .. here.
21427 (grub_udf_label): Use read_string.
21428
21429 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21430
21431 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21432 editor under argument scope.
21433 Reported by: Jordan Uggla
21434
21435 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21436
21437 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21438
21439 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21440
21441 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21442 line, and other keys scroll an entire page (previous handling was
21443 for \r and \n to scroll a page and other keys to scroll two lines).
21444
21445 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21448 Set ptrdest to correct get_physical_target_address rather than
21449 incorrect get_virtual_current_address.
21450
21451 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21452
21453 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21454 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21455
21456 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21457
21458 * .bzrignore: Ignore grub-core/rs_decoder.S.
21459
21460 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21461
21462 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21463 .mo/.mo.gz opening sequence to ...
21464 (grub_mofile_open_lang): ... here.
21465 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21466 * util/grub.d/00_header.in (grub_lang): Include country part of
21467 locale.
21468 Reported by: Mario Limonciello.
21469
21470 2010-12-09 Robert Millan <rmh@gnu.org>
21471
21472 * NEWS: Document addition of ZFS support.
21473
21474 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21475
21476 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21477 rather than `/ 2', as the latter requires -Wa,--divide which would
21478 require bumping our minimum binutils version.
21479
21480 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21481
21482 * util/grub-script-check.c (main): Print script line number on
21483 error.
21484
21485 2010-12-01 Robert Millan <rmh@gnu.org>
21486
21487 * grub-core/fs/zfs/zfs.c: New file.
21488 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21489 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21490 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21491 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21492
21493 * include/grub/zfs/dmu.h: Likewise.
21494 * include/grub/zfs/dmu_objset.h: Likewise.
21495 * include/grub/zfs/dnode.h: Likewise.
21496 * include/grub/zfs/dsl_dataset.h: Likewise.
21497 * include/grub/zfs/dsl_dir.h: Likewise.
21498 * include/grub/zfs/sa_impl.h: Likewise.
21499 * include/grub/zfs/spa.h: Likewise.
21500 * include/grub/zfs/uberblock_impl.h: Likewise.
21501 * include/grub/zfs/vdev_impl.h: Likewise.
21502 * include/grub/zfs/zap_impl.h: Likewise.
21503 * include/grub/zfs/zap_leaf.h: Likewise.
21504 * include/grub/zfs/zfs.h: Likewise.
21505 * include/grub/zfs/zfs_acl.h: Likewise.
21506 * include/grub/zfs/zfs_znode.h: Likewise.
21507 * include/grub/zfs/zil.h: Likewise.
21508 * include/grub/zfs/zio.h: Likewise.
21509 * include/grub/zfs/zio_checksum.h: Likewise.
21510
21511 * Makefile.util.def: Build ZFS into libgrubmods.
21512 * grub-core/Makefile.core.def: Build zfs.mod.
21513
21514 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21515
21516 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21517 variable.
21518 * grub-core/commands/wildcard.c (match_files): Likewise.
21519
21520 2010-11-30 Robert Millan <rmh@gnu.org>
21521
21522 * grub-core/loader/i386/bsd.c
21523 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21524 whether kernel is loaded using grub_loader_is_loaded(), rather
21525 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21526 certain error conditions.
21527
21528 2010-11-30 Robert Millan <rmh@gnu.org>
21529
21530 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21531 (grub_cmd_echo): Call grub_refresh() after printing a message.
21532
21533 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 Avoid using tricks for initialising endian variables.
21536
21537 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21538 Make const.
21539 (GRUB_MOD_INIT): Don't byte-swap.
21540 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21541 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21542 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21543 (grub_swap_bytes32_compile_time): Likewise.
21544 (grub_cpu_to_le32_compile_time): Likewise.
21545 (grub_cpu_to_le16_compile_time): Likewise.
21546
21547 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21548
21549 * util/grub-setup.c (setup): Stop recommending --force. People who
21550 understand the dangers of blocklists are able to find this option
21551 anyway and the ones who don't shouldn't use it anyway.
21552
21553 2010-11-26 Robert Millan <rmh@gnu.org>
21554
21555 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21556 Update all users.
21557
21558 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21559
21560 Fix LVM-on-RAID probing.
21561
21562 * util/grub-probe.c (probe): Remember which disk was detected as
21563 RAID (perhaps an LVM physical volume). Use that disk's raidname
21564 rather than that of the top-level disk.
21565
21566 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21567
21568 Fix cmdline argument quotes for setparams command of menuentry
21569 definitions.
21570
21571 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21572 quotes for arguments.
21573 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21574 grub_strchrsub function instead.
21575
21576 * include/grub/misc.h (grub_strchrsub): New function.
21577
21578 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21579
21580 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21581 effort by skipping "." and ".." entries up-front.
21582 Suggested by: Michael Lazarev.
21583
21584 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21585
21586 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21587 ldflags to ldadd, to fix link line ordering.
21588 (none_decompress): Likewise.
21589
21590 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21591
21592 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21593 platforms.
21594 (grub-emu-lite): Remove kern/emu/cache.S.
21595
21596 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21597
21598 * util/deviceiter.c (compare_devices): If the by-id link for a
21599 device couldn't be resolved, fall back to sorting by the by-id link
21600 rather than segfaulting.
21601 Reported and tested by: Daniel Mierswa.
21602
21603 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21604
21605 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21606 ldflags, to fix link line ordering.
21607
21608 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21609
21610 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21611 linkers are picky about this.
21612
21613 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21614
21615 * grub-core/Makefile.am (command.lst): Adjust sed expression
21616 ordering so that extended and priority commands aren't treated as
21617 ordinary commands.
21618
21619 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21620
21621 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21622 Remove byte-swapping function calls, which are not valid in
21623 structure initialisers.
21624 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21625 non-const.
21626 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21627 grub_gpt_partition_type_bios_boot.
21628
21629 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21630
21631 Fix test program build on GNU/kFreeBSD.
21632
21633 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21634 $(LIBNVPAIR)' library dependencies.
21635
21636 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21637
21638 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21639
21640 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21641
21642 * util/grub-install.in: Remove excessive quoting that broke
21643 installations to RAID devices.
21644
21645 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21646
21647 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21648 bootloader version instead of 0.
21649
21650 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21651
21652 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21653 warning.
21654
21655 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21658 retrieve the metadat sector if size isn't known.
21659 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21660
21661 2010-11-18 Robert Millan <rmh@gnu.org>
21662
21663 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21664 with grub_memcmp().
21665
21666 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21669 arrow.
21670 Reported by: Jordan Uggla.
21671
21672 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 Make better UTF compliant.
21675
21676 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21677 sequences as incorrect.
21678 (grub_is_valid_utf8): Likewise.
21679 (grub_utf8_to_ucs4): Likewise.
21680 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21681 (grub_ucs4_to_utf8_alloc): Likewise.
21682 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21683
21684 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 Make legacy_source behave like source.
21687
21688 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21689 grub_show_menu.
21690 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21691
21692 2010-11-16 Colin Watson <cjwatson@debian.org>
21693
21694 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21695 (-Wunused implies -Wunused-parameter, but not vice versa).
21696
21697 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21698
21699 * configure.ac: Make error messages less confusing by testing for
21700 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21701 accepted, but produces a diagnostic if something else is wrong).
21702
21703 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21706 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21707 (now unused).
21708 (grub_keyboard_controller_init)
21709 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21710 read the initial state since controller isn't inited yet.
21711
21712 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21715 allocate_regbeg may need to create new chunk header.
21716
21717 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21718
21719 Fix quoting in legacy parser.
21720
21721 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21722 single quotes.
21723 (grub_legacy_parse): Likewise.
21724 Reported by: Jordan Uggla.
21725 Tested by: Jordan Uggla.
21726
21727 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21728
21729 Don't add -lgcc on i386 and x86_64.
21730
21731 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21732 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21733 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21734
21735 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 * configure.ac: Add -Wno-trampolines when supported.
21738
21739 2010-11-14 Modestas Vainius <modax@debian.org>
21740
21741 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21742 fakeraid.
21743
21744 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21745
21746 Add generic logical block size support for UDF.
21747
21748 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21749 (GRUB_UDF_BLKSZ): Removed.
21750 (struct grub_udf_data): New field "lbshift" to hold the logical block
21751 size of the file system in log2 format. All users updated.
21752 (sblocklist): Change type to unsigned.
21753 (grub_udf_mount): Change type of "sblklist" to unsigned.
21754 Move AVDP search before VRS recognition, because the latter requires
21755 knowledge of the logical block size, which is detected during the
21756 former.
21757 Detect and validate logical block size during AVDP search, adding
21758 support for block sizes 512, 1024 and 4096.
21759 Make VRS recognition independent of block size.
21760
21761 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21762
21763 Properly handle deleted files on UDF.
21764
21765 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21766 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21767 set.
21768
21769 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21770
21771 Support reading files larger than 2 GiB.
21772
21773 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21774 "offset" to grub_off_t.
21775 (grub_udf_read_file): Likewise for parameter "pos".
21776
21777 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21778
21779 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21780 unavailable.
21781 (Simple configuration): Refer to Changes from GRUB Legacy about
21782 save_env availability.
21783
21784 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21785
21786 * util/grub-install.in: Ignore empty partition table detection
21787 instead of trying to include part_ module.
21788
21789 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21790
21791 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
21792 LVM on RAID support.
21793
21794 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21795
21796 Properly define WORDS_BIGENDIAN in wrapped environments.
21797
21798 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
21799 definition.
21800 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21801
21802 Reported by: Manoel Rebelo Abranches.
21803 Tested by: Manoel Rebelo Abranches.
21804
21805 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21806
21807 * util/grub-mkconfig.in: Fix quoting.
21808
21809 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21810
21811 Support big ext2 files.
21812
21813 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21814 (grub_ext2_read_block): Support triple indirect blocks.
21815 (grub_ext2_read_file): Use 64-bit types and read size_high.
21816 (grub_ext2_open): Read size_high.
21817 Reported by: Ximin Luo.
21818 Tested by: Manoel Rebelo Abranches.
21819
21820 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21821
21822 * util/grub-install.in: Handle filenames containing spaces.
21823 Reported by: Jordan Uggla.
21824 Tested by: Jordan Uggla.
21825
21826 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * util/grub-mkconfig.in (grub_script_check): New variable.
21829 Use grub_script_check instead of grub-script-check.
21830 Reported by: Barry Jackson.
21831
21832 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 * docs/grub.texi (menu): Correct the order.
21835 Reported by: D. Hugh Redelmeier.
21836
21837 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21838
21839 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21840 jump.
21841
21842 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21843
21844 * include/grub/elfload.h (grub_elf32_size): New parameter.
21845 All users updated.
21846 Return maximum segments alignment.
21847 (grub_elf64_size): Likewise.
21848 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21849 Return maximum segments alignment.
21850 (grub_elf64_size): Likewise.
21851 * grub-core/loader/powerpc/ieee1275/linux.c:
21852 (grub_linux_claimmap_iterate): New function. Uses the
21853 "available" property in the "memory" node for memory allocation
21854 for kernel in the PowerPC loader.
21855 (grub_linux_load32): Correctly find linux entry point offset.
21856 (grub_linux_load64): Likewise.
21857
21858 2010-11-07 Robert Millan <rmh@gnu.org>
21859
21860 On mips-yeeloong, build with -march=loongson2f when this flag is
21861 available (GCC >= 4.4).
21862 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21863 `-march=mips3'.
21864 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21865 or otherwise add -march=mips3.
21866
21867 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21868
21869 Suppress shell expansion on echo '*' and echo "*" like cases.
21870 Reported by: Jordan Uggla.
21871
21872 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21873 string arguments before shell expansion.
21874 * tests/grub_cmd_echo.in: New testcases.
21875
21876 2010-11-07 Robert Millan <rmh@gnu.org>
21877
21878 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21879 transition.
21880
21881 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21882
21883 * grub-core/kern/emu/hostdisk.c
21884 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21885
21886 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21887
21888 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21889 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21890 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21891
21892 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21893
21894 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21895
21896 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21897
21898 * util/grub-install.in: Replace useless recomendation to pass
21899 --modules with a recomendation to report a bug.
21900
21901 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21902
21903 Properly register serial terminfo.
21904 Reported by: Jordan Uggla
21905
21906 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21907 const.
21908 (grub_serial_terminfo_output_template): Likewise.
21909 (grub_cmd_serial): Register "serial" with terminfo.
21910 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21911 grub_serial_terminfo_output.
21912
21913 2010-11-05 Robert Millan <rmh@gnu.org>
21914
21915 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21916 needed).
21917
21918 2010-11-05 Robert Millan <rmh@gnu.org>
21919
21920 On Yeeloong, pass machine type information to Linux.
21921
21922 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21923 (LOONGSON_MACHTYPE): New macro, set to
21924 "machtype=lemote-yeeloong-2f-8.9inches".
21925 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21926 additional argument to Linux.
21927
21928 2010-11-04 Robert Millan <rmh@gnu.org>
21929
21930 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21931 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21932 (its SATA disks are detected as slaveless IDE master drives on
21933 kFreeBSD).
21934 Reported by Carsten Aulbert.
21935
21936 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
21937
21938 * util/bin2h.c (main): Fix spelling error in generated output.
21939
21940 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21941
21942 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21943
21944 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21945
21946 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21947 vga= option is supplied.
21948
21949 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21950
21951 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21952 * util/grub.d/10_kfreebsd.in: Likewise.
21953 * util/grub.d/10_linux.in: Likewise.
21954 * util/grub.d/20_linux_xen.in: Likewise.
21955
21956 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21957
21958 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21959 argument as an argument to no-argument option.
21960
21961 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21962
21963 * util/grub.d/10_linux.in: Add missing load_video with explicit
21964 GRUB_GFXPAYLOAD_LINUX.
21965
21966 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21969
21970 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21971
21972 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21973 elements with invlid index.
21974 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21975 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21976 members.
21977 * include/grub/raid.h (grub_raid_member): New struct.
21978 (grub_raid_array): Transform devices and start_sector into usage of
21979 grub_raid_member. All users updated
21980 (allocated_devs): New member.
21981
21982 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21985 is modified
21986
21987 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21988
21989 NetBSD build fix for getline function conflict from gnulib.
21990
21991 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21992 components that depend on gnulib headers.
21993 (libgrubmods.a): Renamed from earlier libgrub.a.
21994 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21995
21996 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21999 install rather than creating a broken install.
22000
22001 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22002
22003 * util/grub-setup.c (argp): Remove misleading example of installing to
22004 a partition.
22005
22006 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22007
22008 * util/grub-setup.c (setup): Clarify the error message.
22009
22010 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22013
22014 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22015
22016 * grub-core/kern/emu/misc.c
22017 (grub_make_system_path_relative_to_its_root)
22018 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22019
22020 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * grub-core/kern/emu/misc.c
22023 (grub_make_system_path_relative_to_its_root): Revert r2882.
22024
22025 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22026
22027 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22028 useless field head. All users updated.
22029 (free_subchunk): Correct handling of IN_REGION subchunk.
22030
22031 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22032
22033 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22034 (Supported kernels): Likewise.
22035
22036 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22037
22038 Make mktemp invocations portable.
22039
22040 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22041 exit if mktemp fails.
22042 * tests/grub_script_blockarg.in: Likewise.
22043 * tests/partmap_test.in: Likewise.
22044 * tests/util/grub-shell-tester.in: Likewise.
22045 * tests/util/grub-shell.in: Likewise.
22046 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22047 * Makefile.am: Likewise, and chain shell commands with `&&'
22048 instead of ';'.
22049 * util/grub-mkrescue.in: Use the same explicit template as above, and
22050 exit if mktemp fails.
22051
22052 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22053
22054 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22055 Linux kernel, reported by Dennis Schridde.
22056
22057 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22058
22059 * grub-core/normal/auth.c (grub_auth_check_authentication):
22060 Set-but-not-used variable removed.
22061
22062 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22063
22064 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22065 32-bit linux protocol.
22066
22067 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22070 cursor shape for sanity.
22071
22072 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22073
22074 * docs/grub.texi (Installation): Document buggy BIOS install.
22075
22076 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22077
22078 * docs/grub.texi (Installation): Indent.
22079
22080 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22081
22082 * util/grub-setup.c (setup): New parameter allow_floppy.
22083 (arguments): New member allow_floppy.
22084 (argp_parser): Handle --allow-floppy.
22085 (main): Pass allow_floppy.
22086 * util/grub-install.in: New option --allow-floppy passed though to
22087 grub-setup.
22088
22089 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22090
22091 * util/grub-install.in: Handle partitionless disks.
22092
22093 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22094
22095 * util/grub-setup.c (setup): Don't clean blocklists before readability
22096 verfification.
22097
22098 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22099
22100 * docs/grub.texi (Installation): Document embedding zone. Remove
22101 obsolete grub-install example.
22102
22103 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22104
22105 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22106 Set-but-not-used variable ifdef'ed.
22107 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22108 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22109 variable removed.
22110 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22111 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22112 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22113 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22114 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22115 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22116 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22117 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22118 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22119 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22120 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22121 Likewise.
22122
22123 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22124
22125 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22126 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22127 enum value.
22128
22129 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22130
22131 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22132 synonym to _S5_. Needed for some DSDTs.
22133
22134 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22135
22136 Userspace ACPI parser debugging.
22137
22138 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22139 headers and add relevant defines. Don't include standard headers.
22140 (main) [GRUB_DSDT_TEST]: New function.
22141 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22142 Don't declare functions.
22143
22144 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22145
22146 Remove dead grub_efi_mm_fini.
22147
22148 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22149 (ALLOCATED_PAGES_SIZE): Likewise.
22150 (MAX_ALLOCATED_PAGES): Likewise.
22151 (allocated_pages): Likewise.
22152 (grub_efi_allocate_pages): Don't record allocated pages.
22153 (grub_efi_free_pages): Likewise.
22154 (grub_efi_mm_init): Likewise.
22155 (grub_efi_mm_fini): Removed.
22156
22157 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22158
22159 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22160 (grub_efi_mm_init): Take into account the memory map size increase.
22161
22162 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22163
22164 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22165 (serial_hw_put): Wait based on real time rather than port reads. Don't
22166 roken ports.
22167 * include/grub/serial.h (grub_serial_port): New field broken.
22168
22169 2010-10-16 Robert Millan <rmh@gnu.org>
22170
22171 * grub-core/kern/emu/misc.c
22172 (grub_make_system_path_relative_to_its_root): Fix premature return
22173 when processing non-root ZFS filesystems.
22174 Reported by Sergio Talens-Oliag.
22175
22176 2010-10-15 Robert Millan <rmh@gnu.org>
22177
22178 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22179 guarantee compressed ones are processed first.
22180
22181 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22184 grub_efiemu_autocore.
22185
22186 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22187
22188 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22189 rather than 0x1b.
22190 (grub_console_getkey): Use correct jae opcode rather than ja.
22191
22192 2010-10-12 Robert Millan <rmh@gnu.org>
22193
22194 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22195 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22196 variable. All references updated.
22197
22198 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22199
22200 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22201
22202 Correctly distinguish mdraid flavours.
22203
22204 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22205 (insert_array): New argument raid.
22206 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22207 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22208 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22209
22210 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22211
22212 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22213 handling of special keys.
22214
22215 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22216
22217 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22218 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22219
22220 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22221
22222 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22223 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22224 users updated.
22225 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22226 Use right endpoint when querying descriptor.
22227
22228 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 Clear out 0x80 color bit on EFI.
22231 Tested by: decoder
22232 Reported by: decoder and meta tech.
22233
22234 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22235 (grub_console_setcolorstate): Clear out 0x80 bit.
22236 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22237 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22238 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22239
22240 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22243 Set to "auto".
22244
22245 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22248 mo_file after freeing.
22249
22250 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22251
22252 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22253
22254 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22255
22256 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22257 flags.
22258
22259 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22262 usage.
22263
22264 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22267
22268 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22269 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22270 and terminfo.h when needed.
22271 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22272 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22273 (terminfo): Enable only on terminfokernel.
22274 (extcmd): Likewise.
22275 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22276 * include/grub/lib/arg.h: Likewise.
22277 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22278 incorrect usage of ->.
22279
22280 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22283 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22284
22285 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22286
22287 Fix coreboot compilation.
22288
22289 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22290 Take VBE info into account even if only text is supported.
22291 (fill_vbe_info): Take into account the case when only VGA text
22292 is supported.
22293 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22294 on coreboot, multiboot and qemu.
22295
22296 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22297
22298 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22299 debug messages.
22300 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22301
22302 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22303
22304 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22305 parameters.
22306
22307 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22308
22309 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22310 if they were BSD-style.
22311
22312 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22313
22314 * grub-core/boot/i386/pc/lnxboot.S: Replace
22315 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22316 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22317
22318 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22319
22320 Write embedding zone using Reed-Solomon.
22321
22322 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22323 * grub-core/Makefile.am (rs_decoder.S): New target.
22324 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22325 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22326 (multiboot): Move to RS part.
22327 (post_reed_solomon): New label.
22328 (grub_boot_drive): Move to non-RS part since it's modified in memory
22329 on boot.
22330 Include rs_decoder.S.
22331 * grub-core/lib/reed_solomon.c: New file.
22332 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22333 New definition.
22334 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22335 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22336 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22337 * include/grub/partition.h (grub_partition_map): Change prototype of
22338 embed to allow returning additional sectors.
22339 * include/grub/reed_solomon.h: New file.
22340 * util/grub-setup.c (setup): Handle Reed-Solomon.
22341
22342 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22343
22344 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22345 i386 and x86-64 definedness tests.
22346
22347 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22348
22349 Fix generation of kernel_syms.lst
22350
22351 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22352 ASM_PREFIX
22353
22354 2010-09-26 Robert Millan <rmh@gnu.org>
22355
22356 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22357
22358 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22359 the pool is an array of devices, iterate through it and return the
22360 first device that passes a stat() test (instead of blindly returning
22361 the first one).
22362
22363 2010-09-26 Robert Millan <rmh@gnu.org>
22364
22365 Build fixes for GNU/kFreeBSD.
22366
22367 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22368 to programs that require ZFS conversion.
22369 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22370 kernels that don't have FLOPPY_MAJOR.
22371
22372 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22373
22374 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22375
22376 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22377
22378 Fix grub-emu build.
22379
22380 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22381 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22382 mdraid09 and mdraid1x.
22383
22384 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22385
22386 Re-enable grub-extras.
22387
22388 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22389 avoid confusing Automake. Run autogen only twice, once for the top
22390 level and once for grub-core. Add Makefile.util.def and
22391 Makefile.core.def from extra modules to the appropriate autogen
22392 invocations. If Makefile.common exists in an extra module, include
22393 it in both Makefile.util.am and grub-core/Makefile.core.am;
22394 similarly, include any Makefile.util.common file in Makefile.util.am
22395 and any Makefile.core.common file in grub-core/Makefile.core.am.
22396 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22397 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22398 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22399 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22400
22401 * gentpl.py (gvar_add): Turn GVARS into a set.
22402 (global_variable_initializers): Sort global variables on output.
22403 (vars_init): New function.
22404 (first_time): Likewise.
22405 (library): Ensure that non-global variable initialisations are
22406 emitted before the first time we emit code for a library block.
22407 Append to variables rather than setting them. Only emit
22408 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22409 each conditional path.
22410 (program): installdir() emits an Autogen macro, so must be passed to
22411 var_add rather than gvar_add.
22412 (data): Likewise.
22413 (script): Likewise.
22414 (rules): New function, centralising handling for different target
22415 types. Set up Guile association lists for first_time and vars_init,
22416 and send most output to a diversion so that variable initialisations
22417 can be emitted first.
22418 (module_rules): Use new rules function.
22419 (kernel_rules): Likewise.
22420 (image_rules): Likewise.
22421 (library_rules): Likewise.
22422 (program_rules): Likewise.
22423 (script_rules): Likewise.
22424 (data_rules): Likewise.
22425
22426 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22427
22428 * .bzrignore: Add contrib and grub-core/contrib. Remove
22429 grub-core/Makefile.gcry.am.
22430
22431 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22432
22433 * grub-core/lib/LzFind.c: Add missing include.
22434 * grub-core/lib/LzmaEnc.c: Likewise.
22435 * grub-core/script/lexer.c: Likewise.
22436 * grub-core/script/yylex.l: Likewise.
22437 * util/grub-macho2img.c: Likewise.
22438 * util/grub-menulst2cfg.c: Likewise.
22439 * util/grub-mklayout.c: Likewise.
22440 * util/grub-mkpasswd-pbkdf2.c
22441 * util/grub-mkrelpath.c: Likewise.
22442 * util/resolve.c: Likewise.
22443
22444 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22445
22446 * Makefile.util.def (example_unit_test): Add
22447 grub-core/gnulib/libgnu.a.
22448
22449 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22450
22451 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22452
22453 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 Support xz compression on yeeloong.
22456
22457 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22458 * configure.ac: Check for LZMA.
22459 * grub-core/Makefile.core.def (xz_decompress): New target.
22460 (none_decompress): Likewise.
22461 * grub-core/boot/decompressor/minilib.c: New file.
22462 * grub-core/boot/decompressor/none.c: Likewise.
22463 * grub-core/boot/decompressor/xz.c: Likewise.
22464 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22465 * grub-core/kern/mips/cache_flush.S: Likewise.
22466 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22467 * grub-core/kern/mips/startup.S: Move first stage to ...
22468 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22469 nomacro.
22470 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22471 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22472 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22473 Allocate statically.
22474 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22475 Allocate statically or use scratch. Don't check CRC32.
22476 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22477 Allocate statically. Don't check CRC32.
22478 * include/grub/decompressor.h: New file.
22479 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22480 Removed.
22481 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22482 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22483 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22484 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22485 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22486 * util/grub-mkimage.c (grub_compression_t): New type.
22487 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22488 (image_target_desc): New field default_compression.
22489 (image_targets): Adjust yeeloong targets.
22490 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22491 (compress_kernel): New parameter comp.
22492 (generate_image): Likewise. Handle new compression case.
22493 (options): New option --compression
22494 (help): Likewise.
22495 (main): Handle new option.
22496
22497 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22498
22499 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22500
22501 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22502
22503 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22504 typo in __i386__ conditional.
22505
22506 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22507
22508 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22509 include.
22510
22511 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22512
22513 Implement EFI and ACPI multiboot2 extensions.
22514
22515 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22516 new tags as supported.
22517 (acpiv2_size): New function.
22518 (grub_multiboot_get_mbi_size): Take new tags into account.
22519 (grub_multiboot_make_mbi): Add new tags.
22520 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22521
22522 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22523
22524 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22525 Added missing configuration of USB device.
22526
22527 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22528
22529 * grub-core/normal/menu_entry.c (run): Make sure we always return
22530 a value.
22531
22532 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22533
22534 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22535 NumberOfPages is UINT64 according to the UEFI specification, not
22536 UINTN. Fix printf format.
22537
22538 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22539
22540 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22541 `err' to grub_usb_err_t.
22542 Reported and tested by: KESHAV P.R.
22543
22544 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22545
22546 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22547 tpart non-const, so that we can assign to it. (Since this is a
22548 typedef, the constness refers to the pointer rather than what it
22549 points to.)
22550
22551 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22552
22553 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22554 $(top_srcdir)/grub-core/gnulib as well as
22555 $(top_builddir)/grub-core/gnulib.
22556 Reported by: KESHAV P.R.
22557
22558 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22559
22560 * util/grub-install.in: Fix the bootloader ID option to be
22561 consistently --bootloader-id, not --bootloader_id.
22562 Reported by: KESHAV P.R.
22563
22564 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22565
22566 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22567 check hash checksum." consistently translatable.
22568
22569 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22570
22571 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22572 $(top_builddir).
22573
22574 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22575
22576 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22577 (GRUB_MOD_INIT): Register sha1sum command.
22578 (GRUB_MOD_FINI): Unregister sha1sum command.
22579
22580 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22581
22582 Keep boot and grub directory names in sync with utils scripts
22583
22584 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22585 * config.h.in: Add previous macros.
22586 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22587 * util/grub-install.in: Use $bootdir and $grubdir variables.
22588
22589 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22590
22591 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22592 convert partition names to disk names if the new `convert' parameter
22593 is set.
22594 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22595 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22596 disk in its own right. This can happen with Xen disk images.
22597
22598 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22599
22600 * util/grub-editenv.c: Update strings to avoid warnings when generating
22601 grub.pot file.
22602 * util/grub-setup.c: Likewise.
22603
22604 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22605
22606 * configure.ac: Change version to 1.99~beta0.
22607
22608 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22609
22610 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22611 Add BADRAM.
22612 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22613 Likewise.
22614 * include/multiboot.h: Resynced with specification.
22615 * include/multiboot2.h: Likewise.
22616
22617 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22618
22619 Fix po directory handling.
22620
22621 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22622 * grub-core/gnulib/Makefile.am: Import gettext module.
22623 * m4/gnulib-cache.m4: Likewise.
22624 * m4/gnulib-comp.m4: Likewise.
22625 * m4/gettext.m4: New file, from gnulib.
22626 * m4/glibc2.m4: Likewise.
22627 * m4/iconv.m4: Likewise.
22628 * m4/intdiv0.m4: Likewise.
22629 * m4/intl.m4: Likewise.
22630 * m4/intldir.m4: Likewise.
22631 * m4/intlmacosx.m4: Likewise.
22632 * m4/intmax.m4: Likewise.
22633 * m4/inttypes-pri.m4: Likewise.
22634 * m4/lcmessage.m4: Likewise.
22635 * m4/lib-ld.m4: Likewise.
22636 * m4/lib-link.m4: Likewise.
22637 * m4/lib-prefix.m4: Likewise.
22638 * m4/lock.m4: Likewise.
22639 * m4/nls.m4: Likewise.
22640 * m4/po.m4: Likewise.
22641 * m4/printf-posix.m4: Likewise.
22642 * m4/progtest.m4: Likewise.
22643 * m4/threadlib.m4: Likewise.
22644 * m4/uintmax_t.m4: Likewise.
22645 * m4/visibility.m4: Likewise.
22646 * po/Makefile.am: Remove.
22647 * po/Makefile.in.in: New file, from gettext.
22648 ($(DOMAIN).pot-update): Support POTFILES-shell.
22649 * po/Makevars: New file.
22650 * po/POTFILES-shell: Rename to ...
22651 * po/POTFILES-shell.in: ... this. Update.
22652 * po/POTFILES: Rename to ...
22653 * po/POTFILES.in: ... this. Update.
22654 * po/Rules-quot: New file, from gettext.
22655 * po/boldquot.sed: Likewise.
22656 * po/en@boldquot.header: Likewise.
22657 * po/en@quot.header: Likewise.
22658 * po/insert-header.sin: Likewise.
22659 * po/quot.sed: Likewise.
22660 * po/remove-potcdate.sin: Likewise.
22661
22662 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22663
22664 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22665
22666 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22667
22668 * util/grub.d/20_linux_xen.in: Use submenus.
22669
22670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22671
22672 Support submenus.
22673
22674 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22675 parameter submenu. All users updated.
22676 * grub-core/normal/main.c (free_menu): Rename to ...
22677 (grub_normal_free_menu): ... this. Made global.
22678 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22679 if requested.
22680 * grub-core/normal/menu_entry.c (screen): New field submenu.
22681 (make_screen): Set submenu.
22682 (run): Open new context if requested.
22683 * include/grub/menu.h (grub_menu_entry): New field submenu.
22684 * include/grub/normal.h (grub_normal_free_menu): New proto.
22685
22686 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 Menu entries extractor.
22689
22690 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22691 variants.
22692 (GRUB_MOD_INIT): Register new variants.
22693 (GRUB_MOD_FINI): Unregister new variants.
22694 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22695 into grub_cmd_legacy_source.
22696 (grub_cmd_legacy_source): Implement extractor variants.
22697 (GRUB_MOD_INIT): Register new variants.
22698 (GRUB_MOD_FINI): Unregister new variants.
22699 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22700 as an extractor.
22701 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22702 search as an extractor.
22703 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22704 test as an extractor.
22705 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22706 as an extractor.
22707 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22708 (grub_env_new_context): New function.
22709 (grub_env_context_open): Likewise.
22710 (grub_env_extractor_open): Likewise.
22711 (grub_env_extractor_close): Likewise.
22712 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22713 grub_extractor_level.
22714 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22715 * include/grub/env.h (grub_env_extractor_open): New proto.
22716 (grub_env_extractor_close): Likewise.
22717 * include/grub/normal.h (grub_extractor_level): New external variable.
22718
22719 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 Make cutmem accept a region specification.
22722 Suggested by: Samuel Thibault
22723
22724 * grub-core/mmap/mmap.c (parsemem): New function.
22725 (grub_cmd_cutmem): Handle new arguments.
22726
22727 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 New command cutmem.
22730
22731 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22732 (GRUB_MOD_INIT): Register new command.
22733 (GRUB_MOD_FINI): Unregister new command.
22734
22735 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22736
22737 Support some annoying BSD and Minix subpartitions.
22738
22739 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22740 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22741 Properly handle concatenation.
22742 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22743 * grub-core/normal/completion.c (iterate_partition): Likewise.
22744 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22745 contain partition. All users updated.
22746 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22747 struct.
22748 (grub_openbsdlabel_partition_map): Likewise.
22749 (bsdlabel_partition_map_iterate): Rename to ..
22750 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22751 (bsdlabel_partition_map_iterate): New function.
22752 (netopenbsdlabel_partition_map_iterate): Likewise.
22753 (netbsdlabel_partition_map_iterate): Likewise.
22754 (openbsdlabel_partition_map_iterate): Likewise.
22755 (GRUB_MOD_INIT): Register new partmaps.
22756 (GRUB_MOD_FINI): Unregister new partmaps.
22757 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22758 (grub_partition_msdos_iterate): ... this. All users updated.
22759 Don't support embedding other than in a minix partition.
22760 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22761 proto.
22762 * include/grub/partition.h (grub_partition): New field msdostype.
22763 * util/grub-install.in: Handle openbsd and netbsd types being in
22764 part_bsd module.
22765
22766 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22767
22768 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22769
22770 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22771 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22772 (mdraid09): ... this.
22773 (mdraid1x): New module.
22774 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22775 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22776
22777 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22778
22779 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22780 vsprintf.
22781
22782 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22783
22784 * grub-core/commands/efi/lsefimmap.c: Correct header.
22785 * NEWS: Update.
22786
22787 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22788
22789 * util/grub-editenv.c (argp_parser): Don't pass translated strings
22790 as printf format strings; the translations might contain '%' which
22791 could cause a crash.
22792 (main): Likewise.
22793 * util/grub-fstest.c (argp_parser): Likewise.
22794 * util/grub-setup.c (argp_parser): Likewise.
22795 (main): Likewise.
22796
22797 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22798
22799 Use argp in grub-fstest.
22800
22801 * util/grub-fstest.c: Don't include getopt.h.
22802 Include argp.h.
22803 (root): New variable.
22804 (args_count): Likewise.
22805 (nparm): Likewise.
22806 (num_disks): Likewise.
22807 (images): Likewise.
22808 (cmd): Likewise.
22809 (debug_str): Likewise.
22810 (args): Likewise.
22811 (options): Transformed to argp.
22812 (usage): Removed.
22813 (main): Split argument parsing into ...
22814 (argp_parser): ... this. Changed to argp format.
22815 (argp): New variable.
22816 (main): Use argp_parse.
22817
22818 2010-09-20 Tristan Gingold <gingold@free.fr>
22819 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
22820 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * grub-core/commands/efi/lsefimmap.c: New file.
22823 * grub-core/Makefile.core.def (lsefimmap): New module.
22824 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22825
22826 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22827
22828 Pause the execution (10s max) if any errors are displayed so the user
22829 has a chance to see them.
22830
22831 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22832 (grub_print_error): Increment grub_err_printed_errors.
22833 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22834 execution if any errors were displayed.
22835 (show_menu): Remove old code for pause.
22836 * grub-core/normal/menu_entry.c (run): Likewise.
22837 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22838 users updated.
22839 (grub_normal_get_char_counter): Likewise.
22840 * include/grub/err.h (grub_err_printed_errors): New external variable.
22841 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22842
22843 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22844
22845 Support multiboot VBE info.
22846
22847 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22848 Take VBE info into account.
22849 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22850 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22851 Call fill_vbe_info when appropriate.
22852 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22853 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22854 as supported.
22855 (grub_multiboot_get_mbi_size): Take new tags into account.
22856 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22857 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22858 Call fill_vbe_tag when appropriate.
22859 (grub_multiboot_make_mbi): Properly align tags.
22860 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22861 function.
22862 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22863 proto.
22864 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22865
22866 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22867
22868 Suport manual terminal geometry specification.
22869
22870 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22871 Save state in grub_ofconsole_terminfo_output.
22872 (grub_ofconsole_term): Use grub_terminfo_getwh.
22873 (grub_ofconsole_getwh): Removed.
22874 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22875 (grub_serial_term): Use grub_terminfo_getwh.
22876 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22877 (options): New struct.
22878 (OPTION_*): New enum.
22879 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22880 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22881 width and height.
22882 (grub_terminfo_getwh): New proto.
22883 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22884
22885 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22886
22887 Handle legacy "terminal" command.
22888
22889 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22890 and FLAG_TERMINAL.
22891 (legacy_commands): Add terminal and title.
22892 (grub_legacy_parse): Handle terminal. Simplify title handling.
22893
22894 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22897 parameters overflow.
22898
22899 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22900
22901 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22902 widthspec.h.
22903
22904 * docs/grub.texi (Shell-like scripting): Document `!'.
22905 (Network): Simplify using new i386-pc-pxe format. Mention
22906 grub-mknetdir.
22907
22908 * NEWS: Update.
22909
22910 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22911
22912 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22913 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22914 when needed.
22915
22916 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22917
22918 * grub-core/commands/efi/lsefisystab.c: Correct header.
22919 * grub-core/commands/efi/lssal.c: Likewise.
22920 * grub-core/commands/testload.c: Likewise.
22921
22922 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22923
22924 * util/grub-mkrescue.in: Add explicit root argument to --set to
22925 prevent the UUID being interpreted as an argument to --set (matches
22926 previous change to prepare_grub_to_access_device).
22927
22928 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22929
22930 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22931 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22932 the verbosity of later #ifs.
22933 (find_partition_start): Define this function on FreeBSD too.
22934 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22935 function.
22936 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22937 on FreeBSD.
22938
22939 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22940
22941 * util/grub-editenv.c: Use argp instead of getopt.
22942
22943 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22944
22945 * util/grub-setup.c: Use argp instead of getopt.
22946
22947 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22948
22949 Use gnulib-tool to create gnulib source files.
22950
22951 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22952 grub-core/gnulib directories
22953 * .bzignore: Add **/.deps and autogenerated gnulib files
22954 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22955 of gnulib macros, add grub-core/gnulib/Makefile
22956 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22957 include m4 directory to aclocal.
22958 * Makefile.util.def: Remove direct compilation of gnulib source files
22959 and use the new grub-core/gnulib/libgnu.a.
22960 * build-aux/config.rpath: move config.rpath from top directory to
22961 build-aux
22962 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22963 in gnulib headers
22964 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22965 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22966 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22967 header.
22968 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22969 string.
22970
22971 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22972
22973 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22974 grub-core/genmod.sh and grub-core/gensyminfo.sh
22975
22976 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22977
22978 Add a test for echo command options.
22979
22980 * tests/grub_cmd_echo.in: New test.
22981 * Makefile.util.def: Rules for new test.
22982
22983 2010-09-20 Szymon Janc <szymon@janc.net.pl>
22984
22985 Remove crc.mod and move crc command to hashsum.mod.
22986 Remove lib/crc.c - users updated to use gcrypt implementation.
22987
22988 * grub-core/commands/crc.c: Removed.
22989 * grub-core/Makefile.core.def (crc): Module removed.
22990 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22991 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22992 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22993 * grub-core/lib/crc.c: Removed.
22994 * include/grub/lib/crc.h: Removed.
22995 * Makefile.util.def (crc): Remove lib/crc.c
22996 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22997 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22998 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22999 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23000 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23001 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23002
23003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23004
23005 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23006
23007 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23008
23009 Split config.h for util and core.
23010
23011 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23012 (ADDR32): Likewise.
23013 (DATA32): Likewise.
23014 (BSS_START_SYMBOL): Likewise.
23015 (END_SYMBOL): Likewise.
23016 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23017 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23018 * config.h.in: New file.
23019 * configure.ac: Use config-util.h as config define file.
23020 Rename MACHINE into GRUB_MACHINE. All users updated.
23021 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23022 updated.
23023 (NESTED_FUNC_ATTR): Likewise.
23024 Substitue new variables.
23025 (COND_HAVE_ASM_USCORE): New conditional.
23026 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23027 (kernel_syms.lst): Use ASM_PREFIX.
23028 * grub-core/kern/emu/console.c: Include config-util.h.
23029 * grub-core/kern/emu/misc.c: Likewise.
23030 * grub-core/kern/emu/mm.c: Likewise.
23031 * include/grub/emu/misc.h: Likewise.
23032 * include/grub/libgcc.h: Likewise.
23033
23034 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23037 constants usage.
23038 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23039 Fix GRUB_TERM_KEY_* constants usage.
23040 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23041
23042 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23043
23044 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23045 print pointer.
23046 * grub-core/bus/usb/uhci.c: Remove empty define.
23047 (grub_uhci_check_transfer): Add missing cast.
23048 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23049 print pointer.
23050 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23051 PRIuGRUB_SIZE.
23052 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23053
23054 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23055
23056 * grub-core/Makefile.core.def (legacycfg): Add
23057 lib/i386/pc/vesa_modes_table.c on emu.
23058
23059 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23060
23061 Reduce number of temporary files generated by build system.
23062
23063 * grub-core/gencmdlist.sh: Removed.
23064 * grub-core/genfslist.sh: Removed.
23065 * grub-core/genhandlerlist.sh: Removed.
23066 * grub-core/genmodsrc.sh: Removed.
23067 * grub-core/genpartmaplist.sh: Removed.
23068 * grub-core/genparttoollist.sh: Removed.
23069 * grub-core/gentermiinallist.sh: Removed.
23070 * grub-core/genvideolist.sh: Removed.
23071
23072 * grub-core/genmod.sh.in: New file.
23073 * grub-core/gensyminfo.sh.in: New file.
23074
23075 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23076 * conf/Makefile.extra-dist: Update with new files.
23077 * gentpl.py: Remove rules related to unnecessary temporary files.
23078 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23079 and und-* files.
23080 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23081 genmod.sh scripts.
23082 * grub-core/bus/usb/uhci.c: Remove empty #define.
23083 * grub-core/genmoddep.awk: Updated with new syminfo format.
23084 * util/bash-completion.d/Makefile.am: Add config.log to
23085 CLEANFILES.
23086
23087 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23088
23089 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23090
23091 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23092
23093 * util/grub-mkconfig.in: Check the config script for syntax errors
23094 before saving.
23095
23096 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23097 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23098
23099 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23100 platforms.
23101 * util/grub-install.in: Add EFI and IEEE1275 support.
23102 * util/i386/efi/grub-install.in: Removed.
23103 * util/ieee1275/grub-install.in: Likewise.
23104
23105 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23106
23107 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23108 (grub_cmd_cmosclean): Likewise.
23109 (GRUB_MOD_INIT): Register command cmosclean.
23110 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23111 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23112
23113 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23114 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23115 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23116
23117 Add keyboard layouts support.
23118
23119 * Makefile.util.def (grub-mklayout): New file.
23120 (grub-kbdcomp): New script.
23121 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23122 Add keyboard_layouts.h.
23123 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23124 commands/boot.c on yeeloong.
23125 (keylayouts): New module.
23126 * grub-core/bus/usb/ohci.c
23127 * grub-core/bus/usb/uhci.c
23128 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23129 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23130 (attach_root_port): Likewise.
23131 (poll_nonroot_hub): Likewise.
23132 (grub_usb_poll_devices): Likewise.
23133 (detach_device): Close transfer.
23134 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23135 function.
23136 (grub_usb_bulk_setup_readwrite): Likewise.
23137 (grub_usb_bulk_finish_readwrite): Likewise.
23138 * grub-core/commands/keylayouts.c: New file.
23139 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23140 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23141 aliases.
23142 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23143 support scancode 2.
23144 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23145 * include/grub/keyboard_layouts.h: New file.
23146 * util/grub-mklayout.c: New file.
23147 * util/grub-kbdcomp.in: Likewise.
23148
23149 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 Unify memory types.
23152
23153 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23154 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23155 types.
23156 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23157 (grub_upper_mem): Likewise.
23158 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23159 * include/grub/memory.h (grub_memory_type_t): New enum.
23160 All users updated.
23161
23162 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 * grub-core/Makefile.core.def (lsapm): New module.
23165 * grub-core/commands/i386/pc/lsapm.c: New file.
23166 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23167 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23168 Likewise.
23169 * include/grub/i386/pc/apm.h: New file.
23170 * include/multiboot.h (multiboot_apm_info): New struct.
23171
23172 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23173
23174 GRUB-legacy configuration file support.
23175
23176 * Makefile.util.def (grub-menulst2cfg): New util.
23177 * docs/man/grub-menulst2cfg.h2m: New file.
23178 * grub-core/Makefile.core.def (legacycfg): New module.
23179 * grub-core/commands/legacycfg.c: New file.
23180 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23181 (grub_normal_add_menu_entry): ... this.
23182 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23183 (grub_normal_set_password): ...this.
23184 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23185 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23186 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23187 * grub-core/lib/legacy_parse.c: New file.
23188 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23189 * include/grub/i386/pc/vesa_modes_table.h: New file.
23190 * include/grub/legacy_parse.h: Likewise.
23191 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23192 * util/grub-menulst2cfg.c: New file.
23193
23194 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23195
23196 * grub-core/kern/emu/hostdisk.c
23197 (convert_system_partition_to_system_disk): Initialise node.
23198
23199 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23200
23201 * grub-core/kern/emu/hostdisk.c
23202 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23203 leak.
23204 Reported and based on patch by: Modestas Vainius.
23205
23206 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23207
23208 Fix DM-RAID probing with recent versions of device-mapper udev
23209 rules.
23210
23211 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23212 canonicalise device paths under /dev/mapper/.
23213 (convert_system_partition_to_system_disk): Compare the
23214 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23215 path, since device nodes under /dev/mapper/ are often symlinks.
23216
23217 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23218
23219 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23220
23221 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23222
23223 * configure.ac: Avoid some annoying error messages if freetype-config
23224 program is not found.
23225
23226 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23227
23228 Support RAID on virtio devices, and others.
23229
23230 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23231 Rename to ...
23232 [__MINGW32__] (grub_find_device): ... this.
23233 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23234 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23235 reasonable default if dir is NULL.
23236 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23237 ...
23238 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23239 (grub_guess_root_device): Update callers.
23240 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23241
23242 * util/raid.c (grub_util_getdiskname): Remove.
23243 (grub_util_raid_getmembers): Use grub_find_device rather than
23244 grub_util_getdiskname.
23245
23246 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23247
23248 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23249 needing to be compiled with serial support.
23250 (ls): Indicate that multiple files are accepted.
23251 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23252 indicate that multiple files are accepted.
23253
23254 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23255
23256 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23257 libgrub_a_init.c, and util/bash-completion.d/grub.
23258
23259 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23260
23261 * util/grub-setup.c (setup): Fix incorrect container semantics.
23262
23263 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23266 misusage.
23267 Reported by: J. Nick Terry
23268
23269 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23270
23271 Move embedding routines to partmap sources files.
23272
23273 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23274 [GRUB_UTIL]: New variable.
23275 (gpt_partition_map_iterate): Set part.parent.
23276 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23277 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23278 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23279 New function.
23280 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23281 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23282 (grub_partition_map) [GRUB_UTIL]: New field embed.
23283 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23284 (setup): Use ->embed.
23285
23286 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23287
23288 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23289 function.
23290 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23291 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23292
23293 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23294
23295 Add function to get completions from usage.
23296
23297 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23298 completions from usage. Use LC_ALL=C to get options properly.
23299
23300 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23301
23302 * grub-core/gnulib/basename-lgpl.c: Imported.
23303 * grub-core/gnulib/basename.c: Likewise.
23304 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23305 * grub-core/gnulib/dirname.c: Likewise.
23306 * grub-core/gnulib/dirname.h: Likewise.
23307 * grub-core/gnulib/stripslash.c: Likewise.
23308
23309 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23310
23311 * grub-core/gnulib/error.c: Resynced.
23312 * grub-core/gnulib/getopt.c: Likewise.
23313 * grub-core/gnulib/getopt_int.h: Likewise.
23314 * grub-core/gnulib/regex.h: Likewise.
23315 * grub-core/gnulib/regex_internal.c: Likewise.
23316 * grub-core/gnulib/regex_internal.h: Likewise.
23317
23318 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23319
23320 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23321 CRC calculations and validity checks.
23322 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23323 calculations.
23324
23325 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23326
23327 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23328
23329 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23330
23331 Fix incorrect echo options handling.
23332 Reported by: Yves Blusseau.
23333
23334 * include/grub/command.h (grub_command_flags_t): New flags
23335 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23336 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23337 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23338
23339 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23340
23341 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23342 users updated.
23343 (GRUB_COMMAND_FLAG_MENU): Likewise.
23344 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23345 (GRUB_COMMAND_FLAG_TITLE): Removed.
23346 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23347 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23348 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23349 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23350 (grub_command_flags_t): New enum. All users updated.
23351
23352 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23353
23354 Fix solaris compilation.
23355
23356 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23357 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23358 (grub-emu-list): Likewise.
23359
23360 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23361
23362 Remove deprecated root command.
23363
23364 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23365 updated.
23366
23367 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 * util/i386/pc/grub-setup.c: Merge this ...
23370 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23371 * util/grub-setup.c: ... into this.
23372 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23373 New struct.
23374
23375 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23376
23377 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23378 possible.
23379
23380 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23381
23382 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23383 allocate p.
23384
23385 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23388 explicit root argument to set to prevent UUID to be interpreted as
23389 argument to set.
23390
23391 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23392
23393 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23394
23395 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23396
23397 Don't export grub_gate_a20.
23398
23399 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23400 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23401 to ...
23402 (grub_gate_a20): ... this. All users updated.
23403 * include/grub/i386/pc/init.h: Removed. All users updated.
23404
23405 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 Create euro.pf2 which supports most European languages.
23408
23409 * Makefile.am (grubdata_DATA): Add euro.pf2.
23410 (euro.pf2): New target.
23411 (CLEANFILES): Add euro.pf2.
23412
23413 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23414
23415 * configure.ac: Disable emu-usb by default to prevent inadvertent
23416 device takeover.
23417
23418 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23419
23420 Disable usbserial on grub-emu since our libusb code isn't good enough
23421 yet.
23422
23423 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23424 (usbserial_pl2303): Likewise.
23425 (usbserial_ftdi): Likewise.
23426
23427 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23428
23429 * include/grub/disk.h (grub_disk): Remove has_partitions.
23430 All users updated.
23431 * disk/loopback.c (grub_loopback): Remove has_partitions.
23432 All users updated.
23433 (options): Remove partitions. All users updated.
23434 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23435 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23436 actual partition table is found.
23437
23438 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23439
23440 Remove readability checks (too many false negatives).
23441
23442 * util/grub-install.in: Remove readability checks.
23443 * util/grub-mkconfig.in: Likewise.
23444 * util/grub.d/10_hurd.in: Likewise.
23445 * util/grub.d/10_kfreebsd.in: Likewise.
23446 * util/grub.d/10_linux.in: Likewise.
23447 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23448 way.
23449
23450 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23451
23452 Enable acpi shutdown on all ACPI platforms.
23453
23454 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23455 on coreboo, multiboot and EFI.
23456 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23457 (grub_acpi_halt): Likewise.
23458 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23459 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23460 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23461 * grub-core/lib/i386/halt.c (grub_halt)
23462 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23463
23464 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23465
23466 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23467 context.
23468
23469 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23470
23471 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23472 * grub-core/video/efi_uga.c: Likewise.
23473
23474 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 Filter devaliases and never open same device twice.
23477
23478 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23479 (last_ihandle): Likewise.
23480 (ofdisk_hash_ent): New member shortest.
23481 (ofdisk_hash_add): Add canonical path too.
23482 (scan): New function.
23483 (grub_ofdisk_iterate): Iterate over hashed entries.
23484 (compute_dev_path): Don't add :0.
23485 (grub_ofdisk_open): Don't really open the disk.
23486 (grub_ofdisk_close): Avoid closing unrelated disk.
23487 (grub_ofdisk_read): Implement reopen logic.
23488 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23489 New function.
23490 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23491 New proto.
23492
23493 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23494
23495 Fix sparc64.
23496
23497 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23498 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23499 right address. Add sparc64_ieee1275_ldflags.
23500 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23501 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23502 to grub_host_to_target_addr
23503 (load_image): Likewise.
23504
23505 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23506
23507 * grub-core/normal/completion.c (complete_file): Handle device
23508 containing slash.
23509 Fix based on patch by Doug Nazar.
23510
23511 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23512
23513 grub-mknetdir script.
23514
23515 * Makefile.util.def (grub-mknetdir): New module.
23516 * tests/util/grub-shell.in: Support boot=net
23517 * util/grub-mknetdir.in: New file.
23518
23519 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23520
23521 videoinfo on non-vbe.
23522
23523 * grub-core/Makefile.core.def (vbeinfo): Removed.
23524 (vbetest): Removed.
23525 (videoinfo): New module.
23526 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23527 * grub-core/commands/i386/pc/vbetest.c: Removed.
23528 * grub-core/commands/videoinfo.c: New file.
23529 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23530 specification.
23531 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23532 as vbetest.
23533 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23534 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23535 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23536 mode_number. New parameter mode. All users updated.
23537 (grub_video_gop_iterate): New function.
23538 (grub_video_efi_gop): New member iterate.
23539 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23540 (grub_vbe_set_video_mode): Remove setting useless fields.
23541 (vbe2videoinfo): New function.
23542 (grub_video_vbe_iterate): Likewise.
23543 (grub_video_vbe_setup): Use vbe2videoinfo.
23544 (grub_video_vbe_print_adapter_specific_info): New function.
23545 (grub_video_vbe_adapter): New fields iterate and
23546 print_adapter_specific_info.
23547 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23548 All users updated.
23549 (grub_video_mode_info): New field mode_number.
23550 (grub_video_adapter): New fields iterate and
23551 print_adapter_specific_info.
23552
23553 2010-09-13 Tristan Gingold <gingold@free.fr>
23554 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23555 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23556
23557 * grub-core/commands/efi/lsefisystab.c: New file.
23558 * grub-core/commands/efi/lssal.c: Likewise.
23559 * grub-core/Makefile.core.def (lsacpi): New module.
23560 (lsefisystab): Likewise.
23561 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23562 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23563 (grub_efi_sal_system_table): New struct.
23564 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23565 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23566 (grub_efi_sal_system_table_platform_features): Likewise.
23567 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23568 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23569 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23570 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23571
23572 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23573
23574 Support explicit user claim that a device is BIOS-visible.
23575
23576 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23577 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23578 * grub-core/kern/emu/hostdisk.c
23579 (convert_system_partition_to_system_disk): Support mdX.
23580 (find_system_device): New parameter add. All users updated.
23581 (grub_util_biosdisk_is_present): New function.
23582 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23583 proto.
23584
23585 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23586
23587 Search hints support.
23588
23589 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23590 All users updated.
23591
23592 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23593
23594 Bash completion script for util commands
23595
23596 * Makefile.am: Add util/bash-completion.d directory
23597 * configure.ac: Likewise.
23598 * util/bash-completion.d/Makefile.am: New file.
23599 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23600
23601 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23602
23603 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23604 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23605 Reported by: Yves Blusseau.
23606
23607 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23608
23609 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23610 partition size and offset.
23611
23612 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23613
23614 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23615
23616 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23617
23618 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23619
23620 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23621
23622 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23623 (grub_xvasprintf): Likewise.
23624
23625 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23626
23627 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23628
23629 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23632 args ending with NULL.
23633
23634 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23635
23636 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23637 pointer.
23638
23639 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23640
23641 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23642
23643 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23644
23645 Shutdown using ACPI.
23646
23647 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23648 * grub-core/commands/acpihalt.c: New file.
23649 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23650 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23651 (grub_acpi_halt): New proto.
23652 (GRUB_ACPI_SLP_EN): New const.
23653 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23654 (GRUB_ACPI_OPCODE_*): New enum.
23655 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23656
23657 2010-09-11 Tristan Gingold <gingold@free.fr>
23658 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23659 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * commands/lsacpi.c: New file.
23662 * grub-core/Makefile.core.def (lsacpi): New module.
23663 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23664 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23665 (grub_acpi_madt_entry_header): New struct.
23666 (grub_acpi_madt): Likewise.
23667 (grub_acpi_madt_entry_interrupt_override): Likewise.
23668 (grub_acpi_madt_entry_sapic): Likewise.
23669 (grub_acpi_madt_entry_lsapic): Likewise.
23670 (grub_acpi_madt_entry_platform_int_source): Likewise.
23671 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23672 (PRIuGRUB_UINT32_T): Likewise.
23673 (PRIxGRUB_UINT64_T): Likewise.
23674
23675 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 Implement loading palette on ieee1275_fb.
23678
23679 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23680 (have_setcolors): Likewise.
23681 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23682 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23683 (grub_video_ieee1275_set_palette): Implement.
23684
23685 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23686 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23687
23688 * util/grub-install.in (grub_partition): New variable.
23689 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23690 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23691 Fixes a bug reported by Yves Blusseau.
23692
23693 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23694
23695 Fix emu on mipsel.
23696
23697 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23698 =grub_cpu_flush_cache on all mips and not only yeeloong.
23699 * configure.ac (COND_mips): New conditional.
23700 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23701 platforms.
23702 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23703 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23704 [GRUB_LINKER_HAVE_INIT]: New function.
23705 (grub_emu_post_init): Likewise.
23706 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23707 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23708 * include/grub/cache.h (_mips): Include mips/cache.h.
23709 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23710 LVM and RAID prototypes.
23711 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23712 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23713 function.
23714
23715 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23716
23717 * util/grub-install.in: Don't try to verify core.img until after
23718 running grub-mkimage to create it.
23719
23720 2010-09-10 Robert Millan <rmh@gnu.org>
23721
23722 * util/grub.d/10_hurd.in: Add misc readability checks.
23723 * util/grub.d/10_kfreebsd.in: Likewise.
23724 * util/grub.d/10_linux.in: Likewise.
23725
23726 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23727
23728 * util/grub-install.in: ${imgext} won't be defined here until the
23729 install branch is merged. For the meantime, only verify core.img on
23730 i386-pc and sparc64-ieee1275 platforms.
23731
23732 2010-09-10 Robert Millan <rmh@gnu.org>
23733
23734 Solaris support in grub_find_zpool_from_dir(). Thanks
23735 Seth Goldberg for referring to getextmntent() facility.
23736
23737 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23738 `sys/mkdev.h'.
23739 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23740 `<sys/mnttab.h>'.
23741 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23742 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23743 method for finding zpool name.
23744
23745 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23746
23747 grub-fstest needs the host and hostfs modules while other utilities
23748 actively require those modules to be absent, so grub-fstest needs
23749 its own initialisation and finalisation code.
23750
23751 * Makefile.am (grub_fstest.pp): New target.
23752 (grub_fstest_init.lst): Likewise.
23753 (grub_fstest_init.c): Likewise.
23754 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23755
23756 2010-09-10 Robert Millan <rmh@gnu.org>
23757
23758 * configure.ac: Check for `struct statfs.f_fstypename' and
23759 `struct statfs.f_mntfromname'.
23760
23761 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23762 kFreeBSD-specific code.
23763
23764 2010-09-10 Robert Millan <rmh@gnu.org>
23765
23766 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23767 on ZFS. Now non-main filesystems are supported as / too.
23768
23769 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23770
23771 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23772 and grub-core/disk/host.c to ...
23773 (grub-fstest): ... here. Having the host disk implementation
23774 present confuses grub-probe and other utility programs.
23775
23776 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23777 when writing to a file, not when writing to stdout.
23778
23779 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23780
23781 * tests/partmap_test.in: New test for partitions.
23782 * Makefile.util.def: Rules for new test.
23783
23784 2010-09-09 Robert Millan <rmh@gnu.org>
23785
23786 * util/grub-probe.c (probe): Fix a pair of unhandled error
23787 conditions.
23788
23789 2010-09-09 Robert Millan <rmh@gnu.org>
23790
23791 Basic Btrfs support (detection and UUID).
23792
23793 * grub-core/fs/btrfs.c: New file.
23794 * Makefile.util.def (library): Register btrfs.c.
23795 * grub-core/Makefile.core.def: Likewise.
23796
23797 2010-09-08 Robert Millan <rmh@gnu.org>
23798
23799 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23800 with (optional) parameters to specify device and relative path.
23801 * util/grub-install.in: Use is_path_readable_by_grub() to
23802 verify readability of a few critical files.
23803 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23804 verify readability of grub.cfg.new.
23805
23806 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23807
23808 Split minix.mod into minix.mod and minix2.mod.
23809
23810 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23811 * grub-core/Makefile.core.def (minix2): New module.
23812 * grub-core/fs/minix.c: Use definitions instead of runtime version
23813 checking.
23814 * grub-core/fs/minix2.c: New file.
23815
23816 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23817
23818 Add new --boot-directory option to replace --root-directory
23819
23820 * util/grub-install.in: Add new --boot-directory option
23821 * util/grub-reboot.in: Likewise.
23822 * util/grub-set-default.in: Likewise.
23823
23824 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23825
23826 * util/grub-mkconfig.in: Use new variable.
23827
23828 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23829
23830 * configure.ac: Define some useful variables.
23831
23832 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23833
23834 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23835 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23836 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23837 Use terminfo and don't use cursor-on/cursor-off unless it's known
23838 to work.
23839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23840 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23841
23842 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
23843
23844 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23845 starts with "(,", fill the drive containing the loaded image in
23846 between those two characters, but expect that a full partition
23847 specification including partition map names will follow.
23848
23849 2010-09-08 Robert Millan <rmh@gnu.org>
23850
23851 * configure.ac: Remove `--enable-grub-fstest' option.
23852 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23853
23854 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23855 `grub-fstest' instead of `grub-probe' for readability verification.
23856 * util/grub-probe.c (probe): Remove readability verification kludge.
23857
23858 2010-09-08 Robert Millan <rmh@gnu.org>
23859
23860 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23861 initializing `GRUB_FS'.
23862
23863 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23864
23865 Not command (!) support to GRUB script.
23866
23867 * tests/grub_script_not.in: New test.
23868 * Makefile.util.def: Rules for new test.
23869
23870 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23871 ! command as a special case.
23872 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23873
23874 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23875
23876 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23877 grub_free.
23878
23879 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23880
23881 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23882
23883 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23884
23885 * docs/grub.texi (Shell-like scripting): Documentation for break,
23886 continue, shift and return commands.
23887
23888 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 Rename CD-ROM to cd on BIOS.
23891
23892 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23893 "cd".
23894 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23895
23896 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23897
23898 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23899 * util/grub-probe.c (main): Likewise.
23900 * util/i386/pc/grub-setup.c (main): Likewise.
23901 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23902 Reported and debugged by: alexxy
23903
23904 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23905
23906 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23907 diagnostic info.
23908
23909 2010-09-05 Jo Shields <directhex@apebox.org>
23910
23911 * util/grub.d/30_os-prober.in: Add missing classes.
23912
23913 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * docs/grub.texi (Theme file format): Document new position format.
23916
23917 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23918
23919 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23920 a table. Use @code instead of @verbatim.
23921
23922 2010-09-05 Colin D Bennett <colin@gibibit.com>
23923
23924 Gfxmenu documentation.
23925
23926 * docs/grub.texi (Theme file format): New chapter.
23927
23928 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23929
23930 * grub-core/Makefile.core.def (xzio): New module.
23931 * grub-core/io/xzio.c: New file.
23932 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23933 * grub-core/lib/xzembed/xz_config.h: Likewise.
23934 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23935 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23936 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23937 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23938 * grub-core/lib/xzembed/xz_private.h: Likewise.
23939 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23940 * include/grub/file.h (grub_file_filter_id): New compression filter
23941 GRUB_FILE_FILTER_XZIO.
23942
23943 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23944
23945 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23946 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23947 size.
23948
23949 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23950
23951 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23952 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23953
23954 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23955
23956 Uncompressed checksum support.
23957
23958 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23959 (check_list): New parameter uncompress.
23960 (grub_cmd_hashsum): Handle --uncompress.
23961
23962 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23963
23964 Reintroduce testload.
23965
23966 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23967 from here ...
23968 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23969 (GRUB_MOD_INIT): New function.
23970 (GRUB_MOD_FINI): Likewise.
23971 * grub-core/Makefile.core.def (testload): New module.
23972
23973 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23974
23975 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23976 (uint8_t): New type.
23977 (uint16_t): Likewise.
23978 (uint32_t): Likewise.
23979 (uint64_t): Likewise.
23980
23981 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23982
23983 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23984
23985 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23986
23987 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23988 Made static.
23989 (grub_gzfile_open): Removed. All users updated.
23990 (GRUB_MOD_INIT): New function.
23991 (GRUB_MOD_FINI): Likewise.
23992 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23993 (grub_file_filters_enabled): Likewise.
23994 (grub_file_open): Handle filters.
23995 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23996 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23997 * include/grub/file.h (grub_file_filter_id_t): New type.
23998 (grub_file_filter_t): Likewise.
23999 (grub_file_filters_all): New extern variable.
24000 (grub_file_filters_enabled): Likewise.
24001 (grub_file_filter_register): New inline function.
24002 (grub_file_filter_unregister): Likewise.
24003 (grub_file_filter_disable): Likewise.
24004 (grub_file_filter_disable_compression): Likewise.
24005 * include/grub/gzio.h: Removed.
24006
24007 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24008
24009 Filename expansion support for wildcards in GRUB script.
24010
24011 * tests/grub_script_expansion.in: New test.
24012 * Makefile.util.def: Rule for new test.
24013
24014 * grub-core/commands/wildcard.c: New file, implements filename
24015 expansion support for GRUB script.
24016 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24017 * grub-core/script/argv.c: Cosmetic changes.
24018 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24019 Refactored to perform wildcard expansion on arguments.
24020 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24021 struct.
24022
24023 * tests/util/grub-shell.in: Fix quoting for read input.
24024
24025 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24026
24027 Support for updating environment variables with matched substrings
24028 of regexp.
24029
24030 * tests/grub_cmd_regexp.in: New test.
24031 * Makefile.util.def: Rule for new test.
24032
24033 * grub-core/commands/regexp.c: New option -s to update environment
24034 variables with regexp matches.
24035
24036 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24037
24038 * include/grub/file.h (grub_file): New member not_easly_seekable.
24039 (grub_file_seekable): New inline function.
24040 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24041 easily seekable.
24042 (grub_gzio_open): Set not_easly_seekable.
24043 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24044 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24045
24046 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24047
24048 Support for options to appear multiple times on cmdline.
24049
24050 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24051 * grub-core/commands/extcmd.c: Support for repeatable option.
24052 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24053 repeatable option support.
24054
24055 Refactor menuentry into a regular command.
24056
24057 * grub-core/commands/menuentry.c: New file, menuentry command
24058 implementation.
24059 * grub-core/Makefile.core.def: Rule update for normal.mod.
24060 * grub-core/normal/main.c: Moved menuentry creation to
24061 grub-core/commands/menuentry.c.
24062 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24063 (grub_menu_execute_entry_real): Removed.
24064 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24065 function.
24066 (grub_script_execute_menuentry): Removed.
24067 * grub-core/script/parser.y (menuentry): Removed.
24068 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24069 * grub-core/script/yylex.l (menuentry): Removed.
24070 * include/grub/menu.h (grub_menu_init): New prototype.
24071 (grub_menu_fini): New prototype.
24072 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24073 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24074 (grub_script_execute_sourcecode): New prototype.
24075
24076 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24077
24078 "return" command for GRUB script functions.
24079
24080 * tests/grub_script_return.in: New test.
24081 * Makefile.util.def: Rules for new test.
24082
24083 * grub-core/script/execute.c (grub_script_return): New function.
24084 * grub-core/script/main.c: Register/unregister return commaond.
24085 * include/grub/script_sh.h (grub_script_return): New prototype.
24086
24087 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24088
24089 "setparams" command to update positional parameters.
24090
24091 * tests/grub_script_setparams.in: New test.
24092 * Makefile.util.def: Rules for new test.
24093
24094 * grub-core/script/argv.c (grub_script_argv_make): New function.
24095 * grub-core/script/execute.c (replace_scope): New function.
24096 (grub_script_setparams): New function.
24097 * grub-core/script/lexer.c: Remove unused variables.
24098 * grub-core/script/main.c: Register/unregister setparams command.
24099 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24100 (grub_script_setparams): New prototype.
24101
24102 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24103
24104 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24105 grub_free order.
24106
24107 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24108
24109 Support for passing block of commands as an argument to extcmds.
24110
24111 * Makefile.util.def: Rules for new test.
24112 * tests/grub_script_blockarg.in: New test.
24113 * grub-core/tests/test_blockarg.c: New file, block argument
24114 command used in the test.
24115
24116 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24117 (grub_register_extcmd_prio): New function prototype.
24118 (grub_extcmd_dispatcher): New function prototype.
24119 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24120 type.
24121 * include/grub/script_sh.h (struct grub_script): New members
24122 `children', `next_siblings' and `refcnt' for block arguments and
24123 reference counting.
24124 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24125 (grub_script_arg): New member `script' for block argument.
24126 (grub_script_argv): New member `script' for block argument.
24127 (grub_parser_param): New member `scripts' for block argument.
24128 (grub_script_mem_free): New extern function prototype.
24129 (grub_script_ref): New function prototype.
24130 (grub_script_unref): New function prototype.
24131
24132 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24133 extcmd form to support block arguments.
24134 * grub-core/script/argv.c: Block arguments support.
24135 * grub-core/script/execute.c: Likewise.
24136 * grub-core/script/lexer.c: Likewise.
24137 * grub-core/script/main.c: Likewise.
24138 * grub-core/script/script.c: Likewise.
24139 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24140 non-terminals.
24141
24142 * grub-core/commands/acpi.c: Update extcmd implementations with
24143 grub_extcmd_context_t.
24144 * grub-core/commands/cat.c: Likewise.
24145 * grub-core/commands/echo.c: Likewise.
24146 * grub-core/commands/extcmd.c: Likewise.
24147 * grub-core/commands/hashsum.c: Likewise.
24148 * grub-core/commands/hdparm.c: Likewise.
24149 * grub-core/commands/help.c: Likewise.
24150 * grub-core/commands/hexdump.c: Likewise.
24151 * grub-core/commands/i386/cpuid.c: Likewise.
24152 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24153 * grub-core/commands/i386/pc/halt.c: Likewise.
24154 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24155 * grub-core/commands/iorw.c: Likewise.
24156 * grub-core/commands/keystatus.c: Likewise.
24157 * grub-core/commands/loadenv.c: Likewise.
24158 * grub-core/commands/ls.c: Likewise.
24159 * grub-core/commands/lspci.c: Likewise.
24160 * grub-core/commands/memrw.c: Likewise.
24161 * grub-core/commands/probe.c: Likewise.
24162 * grub-core/commands/search_wrap.c: Likewise.
24163 * grub-core/commands/setpci.c: Likewise.
24164 * grub-core/commands/sleep.c: Likewise.
24165 * grub-core/disk/loopback.c: Likewise.
24166 * grub-core/hello/hello.c: Likewise.
24167 * grub-core/loader/i386/bsd.c: Likewise.
24168 * grub-core/loader/xnu.c: Likewise.
24169 * grub-core/term/gfxterm.c: Likewise.
24170 * grub-core/term/serial.c: Likewise.
24171 * grub-core/tests/lib/functional_test.c: Likewise.
24172
24173 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24174
24175 Multi-line quoted strings support.
24176
24177 * grub-core/script/lexer.c (append_newline): Removed.
24178 (grub_script_lexer_yywrap): Refactored.
24179 (grub_script_lexer_init): Refactored.
24180 * grub-core/script/yylex.l (yywrap): New function.
24181 (grub_lexer_resplit): New function.
24182 (grub_lexer_unput): New function.
24183 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24184 and resplit.
24185 * tests/grub_script_echo1.in: Added few more testcases.
24186
24187 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 * grub-core/kern/misc.c: Don't add abort alias in utils.
24190 Reported by: echoline.
24191
24192 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24193
24194 Add missing files into "make dist" tarball for other platforms.
24195
24196 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24197 * conf/Makefile.common (dist_noinst_DATA): New variable.
24198 * conf/Makefile.extra-dist: Added missing make dist files.
24199 * grub-core/Makefile.core.def: Likewise.
24200
24201 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24202
24203 Compress grub_prefix.
24204
24205 * grub-core/boot/i386/pc/lnxboot.S: Use
24206 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24207 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24208 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24209 GRUB_MACHINE_PREFIX_END. All users updated.
24210 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24211 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24212 + 0x40.
24213 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24214 * util/grub-mkimage.c (image_target_desc): Change data_end to
24215 prefix_end. All users updated.
24216
24217 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24218
24219 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24220 value.
24221 (grub_openbsd_boot): Likewise.
24222 (grub_netbsd_boot): Likewise.
24223 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24224 (grub_xnu_boot): Likewise.
24225
24226 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24227
24228 * configure.ac: Clean LIBS variable after tests.
24229
24230 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24231
24232 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24233
24234 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24235
24236 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24237 echo if libdevmapper will be used.
24238
24239 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24240
24241 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24242 constant for the same file.
24243
24244 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24245
24246 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24247
24248 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24249
24250 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24251 grub-core/*.pp.
24252
24253 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24254
24255 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24256 required by the boot protocol.
24257
24258 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24259 ebp and edi members.
24260 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24261 state.ebp and state.edi.
24262 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24263 %ebp and %edi according to grub_relocator32_ebp and
24264 grub_relocator32_edi respectively.
24265 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24266 and state.edi.
24267
24268 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24269
24270 Add i386-pc-pxe image target.
24271
24272 * util/grub-mkimage.c (image_target_desc): New enum value
24273 IMAGE_I386_PC_PXE.
24274 (image_targets): New target i386-pc-pxe.
24275 (generate_image): Handle i386-pc-pxe image.
24276
24277 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24278
24279 Fix grub_pxe_scan.
24280
24281 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24282 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24283 All users updated.
24284 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24285 (grub_pxe_pxenv): Correct type.
24286
24287 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24288
24289 * NEWS: Document most of the important changes since 1.98.
24290
24291 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24292
24293 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24294 generated manual page) a little.
24295
24296 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24297
24298 * docs/grub.texi: Add myself as an author.
24299
24300 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24301
24302 * Makefile.util.def (libgrub.a): Add missing sunpc.
24303 Reported by: Seth Goldberg.
24304
24305 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24306
24307 Interrupt wrapping and code simplifications.
24308
24309 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24310 x86_noieee1275 which are functionaly equivalent in this case.
24311 (grub-install): Make source on each platform explicit. Enable on
24312 all noemu.
24313 * gentpl.py (x86_efi_pc): Removed group.
24314 (x86_noefi): Likewise.
24315 (i386_noefi): Likewise.
24316 (x86_noieee1275): Likewise.
24317 (i386_noieee1275): Likewise.
24318 (i386_noefi_noieee1275): Likewise.
24319 (i386_pc_qemu_coreboot): Likewise.
24320 (i386_coreboot_multiboot): Likewise.
24321 (i386_pc_coreboot_multiboot_qemu): Likewise.
24322 (x86_noefi_mips): Likewise.
24323 (noieee1275): Likewise.
24324 (ieee1275_mips): Likewise.
24325 (noemu_noieee1275): Likewise.
24326 (cmos): New group.
24327 (usb): Likewise.
24328 (videoinkernel): Likewise.
24329 (videomodules): Likewise.
24330 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24331 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24332 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24333 include/grub/loader.h, include/grub/msdos_partition.h,
24334 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24335 include/grub/machine/console.h, include/grub/machine/vga.h,
24336 include/grub/machine/vbe.h, include/grub/machine/init.h,
24337 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24338 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24339 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24340 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24341 * grub-core/Makefile.core.def (kernel): Explicit the source for
24342 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24343 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24344 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24345 Use videoinkernel tag.
24346 (usb): Enable on all usb.
24347 (usbserial_common): Likewise.
24348 (usbserial_pl2303): Likewise.
24349 (usbserial_ftdi): Likewise.
24350 (uhci): Enable on all x86.
24351 (ohci): Enable on all pci.
24352 (cmostest): Enable on all CMOS.
24353 (acpi): Include commands/acpi.c on all platforms.
24354 (halt): Add relevant lib/*/halt.c.
24355 (hdparm): Enable on all pci.
24356 (lspci): Likewise.
24357 (usbtest): Enable on all usb.
24358 (ata): Enable on all pci.
24359 (ata_pthru): Likewise.
24360 (usbms): Enable on all usb.
24361 (usb_keyboard): Likewise.
24362 (font): Use tag videomodules.
24363 (bufio): Likewise.
24364 (datetime): Use tag cmos. Enable on all noemu.
24365 (mmap): Use tags common and x86.
24366 (gfxterm): Use tag videomodules.
24367 (bitmap): Likewise.
24368 (bitmap_scale): Likewise.
24369 (video_fb): Likewise.
24370 (video): Likewise.
24371 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24372 adjust padding accordingly. All users updated.
24373 (grub_ohci_transaction): Fix bad format specification.
24374 (GRUB_MOD_INIT): Add asserts for struct size.
24375 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24376 (grub_alloc_td): Likewise.
24377 (grub_free_queue): Likewise.
24378 (grub_uhci_transfer): Likewise.
24379 (grub_uhci_transaction): Fix bad format specification.
24380 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24381 (grub_usb_bulk_readwrite): Likewise.
24382 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24383 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24384 Made static.
24385 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24386 Made static.
24387 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24388 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24389 Transformed into C.
24390 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24391 Moved from here ...
24392 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24393 ... here. Transformed into C. Made static.
24394 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24395 Moved from here ...
24396 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24397 ... here. Transformed into C. Made static.
24398 * grub-core/kern/i386/pc/startup.S
24399 (grub_biosdisk_check_int13_extensions): Moved from here ...
24400 * grub-core/disk/i386/pc/biosdisk.c
24401 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24402 Made static.
24403 * grub-core/kern/i386/pc/startup.S
24404 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24405 * grub-core/disk/i386/pc/biosdisk.c
24406 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24407 Transformed into C. Made static.
24408 * grub-core/kern/i386/pc/startup.S
24409 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24410 * grub-core/disk/i386/pc/biosdisk.c
24411 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24412 Transformed into C. Made static.
24413 * grub-core/kern/i386/pc/startup.S
24414 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24415 * grub-core/disk/i386/pc/biosdisk.c
24416 (grub_biosdisk_get_diskinfo_standard): ... here.
24417 Transformed into C. Made static.
24418 * grub-core/kern/i386/pc/startup.S
24419 (grub_biosdisk_get_num_floppies): Moved from here ...
24420 * grub-core/disk/i386/pc/biosdisk.c
24421 (grub_biosdisk_get_num_floppies): ... here.
24422 Transformed into C. Made static.
24423 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24424 New function.
24425 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24426 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24427 Transformed into C. Made static.
24428 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24429 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24430 Transformed into C. Made static.
24431 * grub-core/kern/i386/ieee1275/init.c: Removed.
24432 * grub-core/kern/i386/misc.S: Likewise.
24433 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24434 Splitted from here ...
24435 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24436 Transformed into C. Made static. All users updated.
24437 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24438 Transformed into C. Made static. All users updated.
24439 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24440 Moved from here...
24441 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24442 Transformed into C. Made static. All users updated.
24443 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24444 Moved from here...
24445 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24446 Transformed into C. Made static. All users updated.
24447 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24448 Removed (replaced by C version).
24449 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24450 Moved from here...
24451 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24452 Transformed into C. Made static.
24453 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24454 Moved from here...
24455 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24456 ... here. Transformed into C.
24457 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24458 Moved from here...
24459 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24460 ... here. Transformed into C.
24461 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24462 Moved from here...
24463 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24464 ... here. Transformed into C. Made static.
24465 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24466 Moved from here...
24467 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24468 ... here. Transformed into C.
24469 * grub-core/kern/i386/pc/startup.S
24470 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24471 * grub-core/video/i386/pc/vbe.c
24472 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24473 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24474 Moved from here...
24475 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24476 ... here. Transformed into C.
24477 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24478 Moved from here...
24479 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24480 ... here. Transformed into C.
24481 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24482 Moved from here...
24483 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24484 ... here. Transformed into C.
24485 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24486 Moved from here...
24487 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24488 ... here. Transformed into C.
24489 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24490 Moved from here...
24491 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24492 ... here. Transformed into C. Made static.
24493 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24494 Moved from here...
24495 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24496 ... here. Transformed into C. Made static.
24497 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24498 Moved from here...
24499 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24500 ... here. Transformed into C. Made static.
24501 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24502 pxe_rm_entry as third argument.
24503 (grub_bios_interrupt): New function.
24504 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24505 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24506 of calling grub_stop.
24507 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24508 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24509 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24510 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24511 * grub-core/lib/i386/halt.c: Moved from here ...
24512 * grub-core/lib/i386/halt.c: ... here.
24513 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24514 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24515 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24516 grub_stop_floppy.
24517 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24518 * include/grub/i386/coreboot/init.h: Removed.
24519 * include/grub/i386/multiboot/init.h: Likewise.
24520 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24521 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24522 * include/grub/i386/pc/int.h: New file.
24523 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24524 (grub_pxe_scan): Removed.
24525 (grub_pxe_call): Update prototype.
24526 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24527 prototypes.
24528 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24529 * include/grub/i386/qemu/init.h: Removed.
24530 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24531 noreturn.
24532 (grub_halt): Likewise.
24533 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24534 (grub_reboot): Likewise.
24535 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24536 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24537 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24538
24539 2010-08-30 Robert Millan <rmh@gnu.org>
24540
24541 * NEWS: Document addition of ZFS support in `grub-install' and
24542 `grub-mkconfig'.
24543
24544 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24545
24546 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24547 dprintf output.
24548
24549 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24550
24551 Remove leftover embedding of font objects.
24552
24553 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24554 * util/grub-install.in (font): Removed.
24555 * util/grub-mkimage.c (generate_image): Remove font support. All users
24556 updated.
24557
24558 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24559
24560 Remove leftover embedding of font objects.
24561
24562 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24563 * util/grub-install.in (font): Removed.
24564 * util/grub-mkimage.c (generate_image): Remove font support. All users
24565 updated.
24566
24567 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24568
24569 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24570 Reported by: Ian Turner
24571
24572 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24573
24574 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24575 timeout to avoid indefinite boot stalling.
24576
24577 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24578
24579 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24580 (grub_env_write_color_highlight): Likewise.
24581
24582 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24583
24584 * grub-core/normal/term.c (print_more): Return to normal and not
24585 to standard state after printing "---MORE---".
24586
24587 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24588
24589 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24590 Mask out the bit 0x80 since it has other meaning that specifiing color.
24591
24592 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24593
24594 New relocator. Allows for more kernel support and more straightforward
24595 loader writing.
24596
24597 * Makefile.am (BOOTTARGET): New variable.
24598 (QEMU32): Likewise.
24599 (linux.init.x86_64): New target.
24600 (linux.init.i386): Likewise.
24601 (multiboot.elf): Likewise.
24602 (kfreebsd.elf): Likewise.
24603 (kfreebsd.aout): Likewise.
24604 (pc-chainloader.elf): Likewise.
24605 (pc-chainloader.bin): Likewise.
24606 (ntldr.elf): Likewise.
24607 (ntldr.bin): Likewise.
24608 (multiboot2.elf): Likewise.
24609 (kfreebsd.init.x86_64): Likewise.
24610 (kfreebsd.init.i386): Likewise.
24611 (knetbsd.init.i386): Likewise.
24612 (kopenbsd.init.i386): Likewise.
24613 (knetbsd.init.x86_64): Likewise.
24614 (kopenbsd.init.x86_64): Likewise.
24615 (linux-initramfs.i386): Likewise.
24616 (linux-initramfs.x86_64): Likewise.
24617 (kfreebsd-mfsroot.i386.img): Likewise.
24618 (knetbsd.image.i386): Likewise.
24619 (kopenbsd.image.i386): Likewise.
24620 (kopenbsd.image.x86_64): Likewise.
24621 (knetbsd.miniroot-image.i386.img): Likewise.
24622 (kfreebsd-mfsroot.x86_64.img): Likewise.
24623 (knetbsd.image.x86_64): Likewise.
24624 (knetbsd.miniroot-image.x86_64.img): Likewise.
24625 (kfreebsd-mfsroot.i386.gz): Likewise.
24626 (bootcheck-kfreebsd-i386): Likewise.
24627 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24628 (bootcheck-kfreebsd-x86_64): Likewise.
24629 (knetbsd.miniroot-image.i386.gz): Likewise.
24630 (bootcheck-knetbsd-i386): Likewise.
24631 (bootcheck-kopenbsd-i386): Likewise.
24632 (bootcheck-kopenbsd-x86_64): Likewise.
24633 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24634 (bootcheck-knetbsd-x86_64): Likewise.
24635 (bootcheck-linux-i386): Likewise.
24636 (bootcheck-linux-x86_64): Likewise.
24637 (bootcheck-linux16-i386): Likewise.
24638 (bootcheck-linux16-x86_64): Likewise.
24639 (bootcheck-multiboot): Likewise.
24640 (bootcheck-multiboot2): Likewise.
24641 (bootcheck-kfreebsd-aout): Likewise.
24642 (bootcheck-pc-chainloader): Likewise.
24643 (bootcheck-ntldr): Likewise.
24644 (CLEANFILES): Add new targets.
24645 (BOOTCHECKS): New variable.
24646 (.PHONY): Add bootchecks.
24647 (SUCCESSFUL_BOOT_STRING): New variable.
24648 (BOOTCHECK_TIMEOUT): Likewise.
24649 (bootcheck): New target
24650 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24651 * configure.ac: Correct efiemu excuse.
24652 * docs/grub.texi (Supported kernels): New chapter.
24653 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24654 include/grub/mm_private.h. Simplify inclusion of
24655 include/grub/boot.h, include/grub/loader.h
24656 and include/grub/msdos_partition.h
24657 (KERNEL_HEADER_FILES) [i386_coreboot]:
24658 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24659 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24660 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24661 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24662 include/grub/machine/loader.h.
24663 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24664 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24665 extra_dist.
24666 (pci.mod): Enable on i386-multiboot.
24667 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24668 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24669 i386-qemu.
24670 (relocator.mod): Rewritten.
24671 (aout.mod): Enable on all x86.
24672 (bsd.mod): Likewise.
24673 (ntldr.mod): New module.
24674 (linux.mod): Use loader/i386/linux.c on all x86.
24675 (xnu.mod): Enable on all x86.
24676 (vga_text.mod): disable on EFI and QEMU.
24677 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24678 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24679 * grub-core/efiemu/loadcore.c: Likewise.
24680 * grub-core/efiemu/main.c: Likewise.
24681 (grub_efiemu_exit_boot_services): Removed.
24682 (grub_efiemu_finish_boot_services): Likewise.
24683 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24684 function.
24685 * grub-core/efiemu/i386/nocfgtables.c: New file.
24686 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24687 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24688 (grub_efi_finish_boot_services): Moved from here ...
24689 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24690 Fille finish memory map and related data.
24691 (finish_mmap_buf): New variable.
24692 (grub_efi_uintn_t finish_mmap_size): Likewise.
24693 (grub_efi_uintn_t finish_key): Likewise.
24694 (grub_efi_uintn_t finish_desc_size): Likewise.
24695 (grub_efi_uint32_t finish_desc_version): Likewise.
24696 (grub_efi_is_finished): Likewise.
24697 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24698 finished.
24699 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24700 (grub_elf64_phdr_iterate): Likewise.
24701 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24702 (grub_os_area_size): Likewise.
24703 (grub_machine_init): Don't reserve os area.
24704 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24705 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24706 * grub-core/kern/i386/loader.S: Removed.
24707 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24708 (grub_os_area_size): Likewise.
24709 (grub_machine_init): Don't reserve os area.
24710 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24711 Don't call grub_dl_unload_all.
24712 Don't include loader.S.
24713 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24714 Declare the memory after _end as available.
24715 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24716 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24717 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24718 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24719 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24720 * include/grub/mm_private.h (grub_mm_header): ... here.
24721 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24722 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24723 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24724 (grub_mm_region): ..here. Removed addr. Added pre_size.
24725 All users updated.
24726 * grub-core/kern/mm.c (base): Renamed to ...
24727 (grub_mm_base): ... this. Made global.
24728 (grub_real_malloc): Alloc from end of region.
24729 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24730 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24731 * grub-core/kern/powerpc/cache_flush.S: ... here.
24732 * grub-core/lib/efi/relocator.c: New file.
24733 * grub-core/lib/i386/relocator.c: Rewritten.
24734 * grub-core/lib/i386/relocator16.S: New file.
24735 * grub-core/lib/i386/relocator32.S: Likewise.
24736 * grub-core/lib/i386/relocator64.S: Likewise.
24737 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24738 * grub-core/lib/i386/relocator_common.S: New file.
24739 * grub-core/lib/ieee1275/relocator.c: Likewise.
24740 * grub-core/lib/mips/relocator.c: Rewritten.
24741 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24742 stylistic adjustments.
24743 * grub-core/lib/powerpc/relocator.c: New file.
24744 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24745 * grub-core/lib/relocator.c: Rewritten.
24746 * grub-core/lib/x86_64/relocator_asm.S: New file.
24747 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24748 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24749 (bsd_tag): New struct.
24750 (tags): New variable.
24751 (tags_last): Likewise.
24752 (netbsd_module): New struct.
24753 (netbsd_mods): New variable.
24754 (netbsd_mods_last): Likewise.
24755 (openbsd_opts): New parameter "serial".
24756 (OPENBSD_SERIAL_ARG): New definition.
24757 (netbsd_opts): New parameter "serial".
24758 (NETBSD_SERIAL_ARG): New definition.
24759 (grub_freebsd_add_meta): Reorganised into ...
24760 (grub_bsd_add_meta): ...this. All users updated.
24761 (grub_freebsd_add_mmap): Reorganised into ...
24762 (generate_e820_mmap): ...this...
24763 (grub_bsd_add_mmap): ...and this. All users updated.
24764 (grub_freebsd_list_modules): Use tags.
24765 (grub_netbsd_add_meta_module): New function.
24766 (grub_netbsd_list_modules): Likewise.
24767 (grub_freebsd_boot): Use relocator and finish EFI.
24768 (grub_openbsd_boot): Likewise.
24769 (grub_netbsd_setup_video): New function.
24770 (grub_netbsd_add_modules): Likewise.
24771 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24772 and finish EFI.
24773 (grub_bsd_unload): Unload tags.
24774 (grub_bsd_load_aout): Use relocator.
24775 (grub_bsd_elf32_size_hook): New function.
24776 (grub_bsd_elf32_hook): Use relocator.
24777 (grub_bsd_elf64_size_hook): New function.
24778 (grub_bsd_elf64_hook): Use relocator.
24779 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24780 (grub_bsd_load): Zero-out openbsd_ramdisk.
24781 (grub_bsd_load): Use relocator.
24782 (grub_cmd_openbsd): Support serial.
24783 (grub_cmd_netbsd): Support modules.
24784 (grub_cmd_freebsd_module): Use relocator.
24785 (grub_netbsd_module_load): New function.
24786 (grub_cmd_netbsd_module): Likewise.
24787 (grub_cmd_openbsd_ramdisk): Likewise.
24788 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
24789 kopenbsd_ramdisk.
24790 (GRUB_MOD_FINI): Unregister new commands.
24791 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
24792 (grub_freebsd_load_elfmodule_obj): Use relocator.
24793 (grub_freebsd_load_elfmodule): Likewise.
24794 (grub_freebsd_load_elf_meta): Likewise.
24795 (grub_netbsd_load_elf_meta): New function.
24796 (grub_openbsd_find_ramdisk): Likewise.
24797 * grub-core/loader/i386/bsd_helper.S: Removed.
24798 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
24799 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24800 * grub-core/loader/i386/efi/linux.c: Likewise.
24801 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24802 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24803 (DEFAULT_VIDEO_MODE): Likewise.
24804 (real_mode_target): New variable.
24805 (prot_mode_target): Likewise.
24806 (initrd_mem_target): Likewise.
24807 (relocator): Likewise.
24808 (efi_mmap_buf): Likewise.
24809 (efi_mmap_size): Likewise.
24810 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24811 (free_pages): Use relocator.
24812 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24813 (grub_linux_setup_video): Return error.
24814 (grub_linux_trampoline_start): Removed.
24815 (grub_linux_trampoline_end): Likewise.
24816 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24817 andd video parameters depending on firmware.
24818 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24819 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24820 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24821 (grub_cmd_initrd): Use relocator.
24822 * grub-core/loader/i386/linux_trampoline.S: Removed.
24823 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24824 (elf_sec_entsize): Likewise.
24825 (elf_sec_shstrndx): Likewise.
24826 (elf_sections): Likewise.
24827 (grub_multiboot_load): Use relocator.
24828 (grub_multiboot_get_mbi_size): Account for sections.
24829 (grub_multiboot_make_mbi): Use relocator and support sections.
24830 (grub_multiboot_add_elfsyms): New function.
24831 (grub_multiboot_free_mbi): Free sections.
24832 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24833 (grub_linux_real_target): Likewise.
24834 (grub_linux_real_chunk): Likewise.
24835 (grub_linux16_prot_size): Likewise.
24836 (grub_linux16_boot): Use relocator.
24837 (grub_linux_unload): Unload relocator.
24838 (grub_cmd_linux): Use relocator.
24839 (grub_cmd_initrd): Likewise.
24840 * grub-core/loader/i386/pc/ntldr.c: New file.
24841 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24842 Don't try to guess CPU frequency.
24843 (grub_xnu_set_video): Stretch bitmap.
24844 (grub_xnu_boot): Use relocator.
24845 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24846 (grub_linux_unload): Free relocator.
24847 (grub_linux_load32): Use relocator.
24848 (grub_linux_load64): Likewise.
24849 (grub_cmd_initrd): Likewise.
24850 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24851 (grub_multiboot_unload): Unload relocator.
24852 (grub_cmd_multiboot): Use relocator.
24853 (grub_cmd_module): Likewise.
24854 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24855 Use relocator and support sections.
24856 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24857 (elf_sec_entsize): Likewise.
24858 (elf_sec_shstrndx): Likewise.
24859 (elf_sections): Likewise.
24860 (grub_multiboot_load): Use relocator.
24861 (grub_multiboot_get_mbi_size): Account for sections.
24862 (grub_multiboot_make_mbi): Use relocator and support sections.
24863 (grub_multiboot_add_elfsyms): New function.
24864 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24865 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24866 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24867 Prototype changed. All users updated.
24868 (grub_xnu_align_heap): Simplified.
24869 (grub_xnu_writetree_toheap): Likewise.
24870 (grub_xnu_unload): Unload relocator.
24871 (grub_cmd_xnu_kernel): Use relocator.
24872 (grub_cmd_xnu_kernel64): Likewise.
24873 (grub_xnu_register_memory): Simplified.
24874 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
24875 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24876 EFI is finished.
24877 (grub_console_checkkey): Likewise.
24878 (grub_console_getkey): Likewise.
24879 (grub_console_getwh): Likewise.
24880 (grub_console_getxy): Likewise.
24881 (grub_console_gotoxy): Likewise.
24882 (grub_console_cls): Likewise.
24883 (grub_console_setcolorstate): Likewise.
24884 (grub_console_setcursor): Likewise.
24885 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24886 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24887 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24888 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24889 * grub-core/tests/boot/kernel-8086.S: Likewise.
24890 * grub-core/tests/boot/kernel-i386.S: Likewise.
24891 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24892 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24893 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24894 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24895 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24896 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24897 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24898 * grub-core/tests/boot/linux.cfg: Likewise.
24899 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24900 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24901 * grub-core/tests/boot/linux16.cfg: Likewise.
24902 * grub-core/tests/boot/multiboot.cfg: Likewise.
24903 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24904 * grub-core/tests/boot/ntldr.cfg: Likewise.
24905 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24906 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24907 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24908 New definition.
24909 * include/grub/dl.h (grub_dl_unload_all): Removed.
24910 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24911 (grub_efi_finish_boot_services): Change prototype.
24912 (grub_efi_is_finished): New variable.
24913 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24914 Changed prototype.
24915 (grub_efiemu_finish_boot_services): Removed.
24916 (grub_machine_efiemu_init_tables): New prototype.
24917 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24918 (grub_elf64_phdr_iterate): Likewise.
24919 * include/grub/i386/bsd.h: Include relocator.h.
24920 (freebsd_tag_header): New struct.
24921 (grub_openbsd_bios_mmap): Removed.
24922 (grub_unix_real_boot): Removed.
24923 (grub_freebsd_load_elfmodule32): Changed prototype.
24924 (grub_freebsd_load_elfmodule_obj64): Likewise.
24925 (grub_freebsd_load_elf_meta32): Likewise.
24926 (grub_freebsd_load_elf_meta64): Likewise.
24927 (grub_freebsd_add_meta): Removed.
24928 (grub_netbsd_load_elf_meta32): New prototype.
24929 (grub_netbsd_load_elf_meta64): Likewise.
24930 (grub_bsd_add_meta): Likewise.
24931 (grub_openbsd_ramdisk_descriptor): New struct.
24932 (grub_openbsd_find_ramdisk32): New prototype.
24933 (grub_openbsd_find_ramdisk64): Likewise.
24934 * include/grub/i386/coreboot/loader.h: Removed.
24935 * include/grub/i386/efi/loader.h: Likewise.
24936 * include/grub/i386/ieee1275/loader.h: Likewise.
24937 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24938 to grub_uint32_t.
24939 * include/grub/i386/loader.h: Removed.
24940 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24941 value.
24942 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24943 (grub_phys_addr_t): New type.
24944 (grub_vtop): New inline function.
24945 (grub_map_memory): Likewise.
24946 (grub_unmap_memory): Likewise.
24947 * include/grub/i386/multiboot/loader.h: Removed.
24948 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24949 (NETBSD_BTINFO_CONSOLE): New definition.
24950 (NETBSD_BTINFO_SYMTAB): Likewise.
24951 (NETBSD_BTINFO_MODULES): Likewise.
24952 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24953 (grub_netbsd_bootinfo): New struct.
24954 (grub_netbsd_btinfo_common): Use explicit bitsize.
24955 (grub_netbsd_btinfo_mmap_entry): Removed.
24956 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24957 (grub_netbsd_btinfo_bootdisk): New struct.
24958 (grub_netbsd_btinfo_symtab): Likewise.
24959 (grub_netbsd_btinfo_serial): Likewise.
24960 (grub_netbsd_btinfo_modules): Likewise.
24961 (grub_netbsd_btinfo_framebuf): Likewise.
24962 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24963 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24964 Likewise.
24965 (grub_openbsd_bootargs): Use explicit bitsize.
24966 (grub_openbsd_bootarg_console): New struct.
24967 (GRUB_OPENBSD_COM_MAJOR): New definition.
24968 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24969 * include/grub/i386/pc/efiemu.h: Removed.
24970 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24971 * include/grub/i386/qemu/loader.h: Removed.
24972 * include/grub/i386/relocator.h: Rewritten.
24973 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24974 * include/grub/mips/memory.h: New file.
24975 * include/grub/mips/multiboot.h: Rewritten.
24976 * include/grub/mips/relocator.h: Rewritten.
24977 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24978 (grub_vtop): New function.
24979 (grub_map_memory): Likewise.
24980 (grub_unmap_memory): Likewise.
24981 * include/grub/misc.h (ALIGN_DOWN): New definition.
24982 * include/grub/mm.h (grub_mm_check_real): New proto.
24983 (GRUB_MM_CHECK): New definition.
24984 * include/grub/mm_private.h: New file.
24985 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24986 (grub_multiboot_get_mbi_size): Removed.
24987 (grub_multiboot_make_mbi): Change prottype.
24988 (grub_multiboot_set_accepts_video): New proto.
24989 (grub_multiboot_add_elfsyms): Likewise.
24990 (grub_multiboot_payload_eip): New variable.
24991 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24992 New prototype.
24993 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24994 New definition.
24995 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24996 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24997 * include/grub/powerpc/ieee1275/loader.h: Removed.
24998 * include/grub/powerpc/memory.h: New file.
24999 * include/grub/powerpc/relocator.h: Likewise.
25000 * include/grub/relocator.h: Likewise.
25001 * include/grub/relocator_private.h: Likewise.
25002 * include/grub/sparc64/ieee1275/loader.h: Removed.
25003 * include/grub/x86_64/memory.h: New file.
25004 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25005 (grub_xnu_heap_malloc): Likewise.
25006 (grub_xnu_heap_real_start): Removed.
25007 (grub_xnu_heap_start): Likewise.
25008 (grub_xnu_relocator): New variable.
25009 (grub_xnu_heap_target_start): Likewise.
25010 * tests/util/grub-shell.in: Support non-pc.
25011 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25012
25013 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25014
25015 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25016 on malloc error.
25017 (grub_bidi_logical_to_visual): Check that malloc succeded.
25018 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25019 puts.
25020 (grub_xputs_normal): Likewise.
25021
25022 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25023
25024 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25025 extra_dist.
25026
25027 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25028
25029 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25030
25031 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25032
25033 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25034
25035 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25036
25037 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25038 dprintf.
25039
25040 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25041
25042 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25043
25044 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25045
25046 * grub-core/normal/term.c (print_more): Fix a memory leak.
25047 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25048 (grub_xputs_normal): Likewise.
25049
25050 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25051
25052 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25053 the begining of the string
25054
25055 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25056
25057 * grub-core/script/script.c (grub_script_parse): Free parsed on
25058 failure.
25059
25060 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25061
25062 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25063 on failure.
25064
25065 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25066
25067 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25068 return.
25069
25070 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25071
25072 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25073 (scroll_up): Fix a memory leak.
25074
25075 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25076
25077 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25078 errors.
25079
25080 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25081
25082 Handle USB pendrives exposed as floppies.
25083
25084 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25085 floppy.
25086 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25087 Check for partitions on all devices.
25088
25089 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25090
25091 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25092 (readkey): Likewise.
25093
25094 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25095
25096 Multiple variable names support to "export" command.
25097
25098 * normal/context.c (grub_cmd_export): "export" command supports
25099 multiple variable names.
25100
25101 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25102
25103 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25104 --target=drive output to Mach device name.
25105
25106 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25107
25108 New Automake based build system for GRUB.
25109
25110 * ABOUT-NLS: New file.
25111 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25112 in Makefile.util.def file.
25113 * Makefile.util.def: New file. Autogen build definitions file for
25114 GRUB host utils.
25115 * conf/Makefile.common: New file. Common variables for GRUB host
25116 utils and target modules.
25117 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25118 * docs/Makefile.am: New file. Automake file for docs.
25119 * gentpl.py: New file. Python script to generate Autogen
25120 template.
25121 * grub-core/Makefile.am: New file. GRUB target modules' rules
25122 that doesn't fit in Makefile.core.def file.
25123 * grub-core/Makefile.core.def: New file. Autogen build
25124 definitions file for GRUB target modules.
25125 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25126 specific setjmp.S file.
25127 * po/Makefile.am: New file.
25128
25129 * .bzrignore: New ignores.
25130 * INSTALL: New requirements, without Ruby.
25131 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25132 * autogen.sh: Updated to invoke autogen as necessary.
25133 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25134 and defines for Automake conditionals.
25135 * geninit.sh: Refactoring.
25136
25137 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25138 necessary.
25139 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25140 New prototype.
25141
25142 * include/grub/test.h: Fix functional test modules' naming.
25143 * grub-core/tests/example_functional_test.c: Fix test module name.
25144
25145 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25146 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25147 * util/grub-editenv.c: Likewise.
25148 * util/grub-fstest.c: Likewise.
25149 * util/grub-mkdevicemap.c: Likewise.
25150 * util/grub-mkfont.c: Likewise.
25151 * util/grub-mkimage.c: Likewise.
25152 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25153 * util/grub-probe.c: Likewise.
25154 * util/grub-script-check.c: Likewise.
25155 * util/i386/pc/grub-setup.c: Likewise.
25156 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25157
25158 * tests/util/grub-shell.in: Fix override directory path.
25159 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25160 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25161
25162 * util/lvm.c: Update #includes.
25163 * util/raid.c: Likewise.
25164 * util/resolve.c: Likewise.
25165 * grub-core/bus/emu/pci.c: Likewise.
25166 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25167 * grub-core/lib/posix_wrap/string.h: Likewise.
25168 * grub-core/kern/emu/main.c: Likewise.
25169
25170 * grub-core/gensymlist.sh: New file. Script for generating kernel
25171 symbols file.
25172 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25173
25174 * grub-core/gentrigtables.c: Fix unused variable warnings.
25175
25176 * Makefile.in: Removed.
25177 * conf/any-emu.rmk: Removed.
25178 * conf/common.rmk: Removed.
25179 * conf/i386-coreboot.rmk: Removed.
25180 * conf/i386-efi.rmk: Removed.
25181 * conf/i386-ieee1275.rmk: Removed.
25182 * conf/i386-multiboot.rmk: Removed.
25183 * conf/i386-pc.rmk: Removed.
25184 * conf/i386-qemu.rmk: Removed.
25185 * conf/i386.rmk: Removed.
25186 * conf/mips-yeeloong.rmk: Removed.
25187 * conf/mips.rmk: Removed.
25188 * conf/powerpc-ieee1275.rmk: Removed.
25189 * conf/sparc64-ieee1275.rmk: Removed.
25190 * conf/tests.rmk: Removed.
25191 * conf/x86-efi.rmk: Removed.
25192 * conf/x86_64-efi.rmk: Removed.
25193 * gendistlist.sh: Removed.
25194 * geninitheader.sh: Removed.
25195 * genkernsyms.sh.in: Removed.
25196 * genmk.rb: Removed.
25197 * gensymlist.sh.in: Removed.
25198 * mkinstalldirs: Removed.
25199 * boot: Moved ...
25200 * grub-core/boot: ... to here.
25201 * bus: Moved ...
25202 * grub-core/bus: ... to here.
25203 * commands: Moved ...
25204 * grub-core/commands: ... to here.
25205 * disk: Moved ...
25206 * grub-core/disk: ... to here.
25207 * efiemu: Moved ...
25208 * grub-core/efiemu: ... to here.
25209 * font: Moved ...
25210 * grub-core/font: ... to here.
25211 * fs: Moved ...
25212 * grub-core/fs: ... to here.
25213 * gencmdlist.sh: Moved ...
25214 * grub-core/gencmdlist.sh: ... to here.
25215 * genemuinit.sh: Moved ...
25216 * grub-core/genemuinit.sh: ... to here.
25217 * genemuinitheader.sh: Moved ...
25218 * grub-core/genemuinitheader.sh: ... to here.
25219 * genfslist.sh: Moved ...
25220 * grub-core/genfslist.sh: ... to here.
25221 * genhandlerlist.sh: Moved ...
25222 * grub-core/genhandlerlist.sh: ... to here.
25223 * genmoddep.awk: Moved ...
25224 * grub-core/genmoddep.awk: ... to here.
25225 * genmodsrc.sh: Moved ...
25226 * grub-core/genmodsrc.sh: ... to here.
25227 * genpartmaplist.sh: Moved ...
25228 * grub-core/genpartmaplist.sh: ... to here.
25229 * genparttoollist.sh: Moved ...
25230 * grub-core/genparttoollist.sh: ... to here.
25231 * genterminallist.sh: Moved ...
25232 * grub-core/genterminallist.sh: ... to here.
25233 * gentrigtables.c: Moved ...
25234 * grub-core/gentrigtables.c: ... to here.
25235 * genvideolist.sh: Moved ...
25236 * grub-core/genvideolist.sh: ... to here.
25237 * gettext: Moved ...
25238 * grub-core/gettext: ... to here.
25239 * gfxmenu: Moved ...
25240 * grub-core/gfxmenu: ... to here.
25241 * gnulib: Moved ...
25242 * grub-core/gnulib: ... to here.
25243 * hello: Moved ...
25244 * grub-core/hello: ... to here.
25245 * hook: Moved ...
25246 * grub-core/hook: ... to here.
25247 * io: Moved ...
25248 * grub-core/io: ... to here.
25249 * kern: Moved ...
25250 * grub-core/kern: ... to here.
25251 * lib: Moved ...
25252 * grub-core/lib: ... to here.
25253 * loader: Moved ...
25254 * grub-core/loader: ... to here.
25255 * mmap: Moved ...
25256 * grub-core/mmap: ... to here.
25257 * normal: Moved ...
25258 * grub-core/normal: ... to here.
25259 * partmap: Moved ...
25260 * grub-core/partmap: ... to here.
25261 * parttool: Moved ...
25262 * grub-core/parttool: ... to here.
25263 * script: Moved ...
25264 * grub-core/script: ... to here.
25265 * term: Moved ...
25266 * grub-core/term: ... to here
25267 * tests/example_functional_test.c: Moved ...
25268 * grub-core/tests/example_functional_test.c: ... to here.
25269 * tests/lib/functional_test.c: Moved ...
25270 * grub-core/tests/lib/functional_test.c: ... to here.
25271 * tests/lib/test.c: Moved ...
25272 * grub-core/tests/lib/test.c: ... to here.
25273 * video: Moved ...
25274 * grub-core/video: ... to here.
25275
25276 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25277
25278 Replace --enable-grub-emu-modules with grub-emu-lite.
25279
25280 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25281 cache.S.
25282
25283 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25284 * kern/emu/full.c: New file. For grub-emu specific initialization.
25285 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25286 * kern/emu/main.c: Call initialization function grub_emu_init.
25287
25288 * Makefile.in: Include grub-emu-lite in install.
25289 * commands/parttool.c: Use grub_no_autoload to differentiate
25290 between grub-emu and grub-emu-lite.
25291 * include/grub/misc.h: New variable grub_no_autoload.
25292
25293 * conf/any-emu.rmk: New rules for grub-emu-lite.
25294 * configure.ac: Remove --enable-grub-emu-modules.
25295 * genmk.rb: Cleanup unnecessary rules.
25296 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25297
25298 * normal/main.c: Don't load list files on grub-emu-lite.
25299 * util/misc.c (grub_arch_sync_caches): Removed.
25300
25301 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25302
25303 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25304 grub-mkimage rather than grub-mkelfimage.
25305 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25306
25307 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25308
25309 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25310 a key after CapsLock or NumLock. It's just a qemu bug.
25311
25312 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25313
25314 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25315 needed by libusb wrapper.
25316
25317 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25318
25319 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25320
25321 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25322
25323 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25324 --nounzip is passed.
25325
25326 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25327
25328 USB hotunplugging and USB serial support.
25329
25330 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25331 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25332 (grub_uhci_transfer): Respect timeout and set *actual.
25333 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25334 non-standard length.
25335 (grub_usb_device_attach): Autoload modules.
25336 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25337 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25338 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25339 users updated.
25340 (grub_usb_add_hub): Fill nports and children.
25341 (attach_root_port): Receive hub instead of controller.
25342 All users updated. Fill hub->devices.
25343 (grub_usb_root_hub): Allocate hub->devices.
25344 (detach_device): New function.
25345 (poll_nonroot_hub): Fill children and detach devices.
25346 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25347 actual arguments. All users updated.
25348 (grub_usb_bulk_read_extended): New function.
25349 * bus/usb/serial/common.c: New file.
25350 * bus/usb/serial/ftdi.c: Likewise.
25351 * bus/usb/serial/pl2303.c: Likewise.
25352 * commands/terminal.c (handle_command): Support wildcard.
25353 * commands/usbtest.c: Output "Unknown" instead of empty string.
25354 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25355 (usbserial_common_mod_SOURCES): New variable.
25356 (usbserial_common_mod_CFLAGS): Likewise.
25357 (usbserial_common_mod_LDFLAGS): Likewise.
25358 (pkglib_MODULES): Add usbserial_pl2303.mod.
25359 (usbserial_pl2303_mod_SOURCES): New variable.
25360 (usbserial_pl2303_mod_CFLAGS): Likewise.
25361 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25362 (pkglib_MODULES): Add usbserial_ftdi.mod.
25363 (usbserial_ftdi_mod_SOURCES): New variable.
25364 (usbserial_ftdi_mod_CFLAGS): Likewise.
25365 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25366 (pkglib_MODULES): Add serial.mod.
25367 (serial_mod_SOURCES): New variable.
25368 (serial_mod_CFLAGS): Likewise.
25369 (serial_mod_LDFLAGS): Likewise.
25370 * conf/i386-pc.rmk: Likewise.
25371 * conf/mips-yeeloong.rmk: Likewise.
25372 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25373 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25374 * disk/usbms.c (first_available_slot): New variable.
25375 (grub_usbms_attach): Don't reuse free slots due to potential cache
25376 problems.
25377 * include/grub/serial.h: Moved to ..
25378 * include/grub/ns8250.h: ...this.
25379 * include/grub/serial.h: New file.
25380 * include/grub/term.h (grub_term_poll_usb): New variable.
25381 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25382 readkey. All users updated.
25383 (grub_terminfo_output_state): Pass term to put.
25384 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25385 (grub_usb_controller_dev): Add timeout and actual arguments to
25386 transfer. All users updated.
25387 (grub_usb_interface): New field detach_data.
25388 (grub_usb_device): New fields children and nports.
25389 (grub_usb_ep_type_t): New type.
25390 (grub_usb_get_ep_type): New function.
25391 (grub_usb_bulk_read_extended): Likewise.
25392 * include/grub/usbdesc.h (grub_usb_desc): New type.
25393 * include/grub/usbserial.h: New file.
25394 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25395 * kern/term.c (grub_term_poll_usb): New variable.
25396 (grub_getkey): Call grub_term_poll_usb if set.
25397 (grub_checkkey): Likewise.
25398 (grub_getkeystatus): Likewise.
25399 * term/serial.c: Moved controller-specific parts to ...
25400 * term/ns8250.c: ... here.
25401 * term/serial.c: Mostly rewritten.
25402 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25403 according to spec.
25404
25405 2010-08-20 Robert Millan <rmh@gnu.org>
25406
25407 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25408 a separate module and maybe other interesting combinations.
25409
25410 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25411 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25412 (kfreebsd_entry): Add generic filesystem module load routine.
25413 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25414
25415 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25416
25417 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25418 "numcenter" (I misunderstood the purpose of this entry).
25419 * docs/grub.texi (sendkey): Likewise.
25420
25421 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25422
25423 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25424 status flag options; simply omitting the option is equivalent and
25425 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25426 (keysym_table): Rename "num5numlock" to "numlock".
25427 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25428 can uniformly say that only the last of multiple `sendkey'
25429 invocations has any effect.
25430 * docs/grub.texi (sendkey): New section.
25431
25432 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25433
25434 * commands/i386/pc/sendkey.c (options): Fix three typos.
25435
25436 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25437
25438 Implement sendkey support.
25439
25440 * commands/i386/pc/sendkey.c: New file.
25441 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25442 (sendkey_mod_SOURCES): New variable.
25443 (sendkey_mod_CFLAGS): Likewise.
25444 (sendkey_mod_LDFLAGS): Likewise.
25445
25446 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25447
25448 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25449 fix warnings from Autoconf.
25450
25451 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25452
25453 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25454 to avoid false positives with some assemblers that output things
25455 like "someprefix_func" as part of their output.
25456
25457 2010-08-15 Robert Millan <rmh@gnu.org>
25458
25459 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25460 errors.
25461 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25462 grub_get_libzfs_handle() errors.
25463
25464 2010-08-14 Robert Millan <rmh@gnu.org>
25465
25466 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25467 filesystem is not ZFS.
25468
25469 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25470
25471 Fix for misspelled color names defaulting to black/black (bug
25472 reported by Doug Nazar)
25473
25474 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25475 status to prototype.
25476 * normal/color.c (grub_parse_color_name_pair): Return failure
25477 status.
25478 (grub_env_write_color_normal): Ignore bad color names.
25479 (grub_env_write_color_highlight): Likewise.
25480 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25481
25482 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25483
25484 "shift" command support to GRUB script.
25485
25486 * include/grub/script_sh.h (grub_script_shift): New prototype.
25487 * script/execute.c (grub_script_shift): New function.
25488 * script/main.c (grub_script_init): Register shift command.
25489 (grub_script_fini): Unregister shift command.
25490 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25491
25492 * tests/grub_script_shift.in: New testcase.
25493 * conf/tests.rmk: Rules for new testcase.
25494
25495 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25496
25497 "continue" command support to GRUB script.
25498
25499 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25500 (grub_script_break): Continue support.
25501 * script/main.c (grub_script_init): Register continue command.
25502 (grub_script_fini): Unregister continue command.
25503
25504 * tests/grub_script_continue.in: New testcase.
25505 * conf/tests.rmk: Rules for new testcase.
25506
25507 2010-08-12 BVK Chaitanya <bvk@dbook>
25508
25509 "break" command support to GRUB script.
25510
25511 * conf/common.rmk: Rule updates to grub-script-check.
25512 * include/grub/misc.h (grub_min): New function.
25513 * include/grub/script_sh.h (grub_script_init): New prototype.
25514 (grub_script_fini): New prototype.
25515 (grub_script_break): New prototype.
25516 * script/main.c (grub_script_init): New function.
25517 (grub_script_fini): New function.
25518 * script/execute.c (grub_script_break): New function.
25519 * normal/main.c: Calls to grub_script_{init,fini}.
25520 * util/grub-script-check.c (grub_script_break): New function.
25521
25522 * tests/grub_script_break.in: New testcase.
25523 * conf/tests.rmk: Rules for new test case.
25524
25525 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25526
25527 Function parameters support to GRUB script.
25528
25529 * script/yylex.l (VARIABLE): Regular expression update.
25530 * script/function.c (grub_script_function_call): Moved ...
25531 * script/execute.c (grub_script_function_call): ... to here.
25532 (grub_script_execute_arglist_to_argv): Removed.
25533 (grub_script_arglist_to_argv): New function.
25534 * script/argv.c: New file.
25535 (grub_script_argv_free): New function.
25536 (grub_script_argv_next): Likewise.
25537 (grub_script_argv_append): Likewise.
25538 (grub_script_argv_split_append): Likewise.
25539 * include/grub/script_sh.h (grub_script_argv): New struct.
25540 (grub_script_argv_free): New function.
25541 (grub_script_argv_next): Likewise.
25542 (grub_script_argv_append): Likewise.
25543 (grub_script_argv_split_append): Likewise.
25544
25545 * conf/common.rmk (normal.mod): New source script/argv.c.
25546
25547 * tests/grub_script_echo1.in: More tests.
25548 * tests/grub_script_vars1.in: Likewise.
25549 * tests/grub_script_functions.in: New test case.
25550 * conf/tests.rmk: Rules for new testcase.
25551
25552 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25553
25554 Remove grub_script_cmdblock struct.
25555
25556 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25557 * script/parser.y: Likewise.
25558 * script/execute.c: Rename cmdblock suffix to cmdlist.
25559 * script/script.c: Likewise.
25560 * util/grub-script-check.c: Likewise.
25561
25562 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25563
25564 * .bzrignore: add grub-macho2img
25565
25566 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25567
25568 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25569
25570 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25571
25572 Remove the dump of sm712 initialisation sequence.
25573
25574 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25575 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25576 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25577 (GRUB_VGA_CR_*): Added many registers.
25578 (GRUB_VGA_SR_*): Likewise.
25579 (GRUB_VGA_GR_*): Likewise.
25580 (grub_vga_write_arx): New function.
25581 (grub_video_hw_config): New struct.
25582 (grub_vga_set_geometry): New function.
25583 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25584 GRUB_PCI_CLASS_SUBCLASS_VGA.
25585 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25586 * video/sm712.c (grub_sm712_write_reg): New function
25587 (grub_sm712_read_reg): Likewise.
25588 (grub_sm712_sr_write): Likewise.
25589 (grub_sm712_gr_write): Likewise.
25590 (grub_sm712_cr_write): Likewise.
25591 (grub_sm712_write_arx): Likewise.
25592 (grub_sm712_cr_shadow_write): Likewise.
25593 (grub_sm712_write_dda_lookup): Likewise.
25594 (grub_video_sm712_setup): Initialise the video rather then
25595 blindly replay the dump.
25596 (main) [TEST]: Add a routine to be able to compile as standalone for
25597 tests.
25598 * video/sm712_init.c (sm712_init): Removed.
25599 (sm712_sr_seq1): New array.
25600 (sm712_sr_seq2): Likewise.
25601
25602 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25603
25604 * include/grub/vga.h: Add missing grub/pci.h include.
25605
25606 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25607
25608 * util/grub-macho2img.c (main): fix typo
25609
25610 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25611
25612 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25613 (grub_vga_gr_read): Likewise.
25614 (grub_vga_cr_write): Likewise.
25615 (grub_vga_cr_read): Likewise.
25616 (grub_vga_sr_write): Likewise.
25617 (grub_vga_sr_read): Likewise.
25618 (grub_vga_palette_read): Likewise.
25619 (grub_vga_palette_write): Likewise.
25620 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25621 (grub_sm712_sr_read): New function.
25622 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25623 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25624
25625 2010-08-09 Robert Millan <rmh@gnu.org>
25626
25627 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25628 out unused variables on non-ZFS build.
25629
25630 2010-08-08 Robert Millan <rmh@gnu.org>
25631
25632 Fix path generation for sub-filesystems in ZFS.
25633
25634 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25635 missing slash.
25636
25637 2010-08-08 Robert Millan <rmh@gnu.org>
25638
25639 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25640
25641 2010-08-08 Robert Millan <rmh@gnu.org>
25642
25643 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25644 exist, issue a proper error message (rely on `ls' for translated
25645 strings).
25646
25647 2010-08-08 Robert Millan <rmh@gnu.org>
25648
25649 Fix grub-probe invocation.
25650
25651 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25652
25653 2010-08-04 Robert Millan <rmh@gnu.org>
25654
25655 * configure.ac: Remove checks for getfsstat() and getmntany().
25656 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25657 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25658 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25659 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25660 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25661 function.
25662 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25663 via find_mount_point_from_dir() and getfsstat() / getmntany().
25664
25665 2010-08-04 Robert Millan <rmh@gnu.org>
25666
25667 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25668 (grub_find_zpool_from_mount_point): Merge into ...
25669 (grub_find_zpool_from_dir): ... this.
25670 * kern/emu/misc.c: Likewise.
25671
25672 * kern/emu/misc.c
25673 (grub_make_system_path_relative_to_its_root): Replace
25674 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25675 with grub_find_zpool_from_dir().
25676 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25677
25678 2010-08-04 Robert Millan <rmh@gnu.org>
25679
25680 Support OpenSolaris in ZFS device resolution.
25681
25682 * configure.ac: Check for getmntany().
25683 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25684 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25685 support.
25686
25687 2010-08-03 Robert Millan <rmh@gnu.org>
25688
25689 Fix grub-emu build.
25690
25691 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25692 * include/grub/emu/misc.h: ... here.
25693
25694 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25695 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25696
25697 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25698 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25699 (grub_get_libzfs_handle): Move to ...
25700 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25701 (grub_get_libzfs_handle): ... here.
25702
25703 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25704
25705 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25706 as command name case.
25707
25708 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25709
25710 * disk/raid.c (insert_array): Select unique numbers for named arrays
25711 as well, for use as keys in the disk cache.
25712
25713 2010-08-01 Robert Millan <rmh@gnu.org>
25714
25715 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25716 kFreeBSD device name, except on ZFS where the filesystem label is
25717 used.
25718 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25719 `/boot/zfs/zpool.cache'.
25720 Set mountfrom kernel variable using ${kfreebsd_device}.
25721
25722 2010-08-01 Robert Millan <rmh@gnu.org>
25723
25724 Make it even harder to use uninitialized `libzfs_handle' (and
25725 make the interface a bit simpler).
25726
25727 * include/grub/util/misc.h (grub_util_init_libzfs)
25728 (libzfs_handle): Remove.
25729 (grub_get_libzfs_handle): New prototype.
25730
25731 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25732 attribute.
25733 (grub_util_init_libzfs): Remove.
25734 (grub_get_libzfs_handle): New function.
25735
25736 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25737 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25738 accessing `libzfs_handle' directly.
25739
25740 2010-08-01 Robert Millan <rmh@gnu.org>
25741
25742 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25743 (grub_find_zpool_from_mount_point): New function prototypes.
25744
25745 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25746 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25747
25748 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25749 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25750 `static' attribute.
25751
25752 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25753 finding zpool from mount point into ...
25754 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25755
25756 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25757 requested path is part of a ZFS pool, use
25758 grub_find_zpool_from_mount_point() to detect its filesystem name,
25759 and generate a path with `/fsname@path' syntax.
25760
25761 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25762
25763 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25764 (void) rather than () so that this is a proper prototype.
25765
25766 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25769
25770 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25771
25772 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25773 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25774
25775 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25776
25777 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25778
25779 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25780
25781 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25782
25783 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25784
25785 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25786 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25787 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25788 disable gfxpayload.
25789 (Shell-like scripting): Add real content.
25790 (Serial terminal): Suggest `terminal_input serial; terminal_output
25791 serial' rather than putting the two commands on separate lines,
25792 since console input will be inoperative after the first command.
25793 (menuentry): Document --class, --users, and --hotkey options.
25794 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
25795 Vladimir Serbinenko).
25796
25797 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25798 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25799
25800 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25801
25802 2010-08-01 Robert Millan <rmh@gnu.org>
25803
25804 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25805 (grub_find_zpool_from_mount_point): New function prototypes.
25806
25807 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25808 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25809
25810 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25811 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25812 `static' attribute.
25813
25814 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25815 finding zpool from mount point into ...
25816 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25817
25818 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25819 requested path is part of a ZFS pool, use
25820 grub_find_zpool_from_mount_point() to detect its filesystem name,
25821 and generate a path with `/fsname@path' syntax.
25822
25823 2010-08-01 Robert Millan <rmh@gnu.org>
25824
25825 Prevent accidental use of uninitialized libzfs_handle.
25826
25827 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25828 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25829 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25830
25831 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25832
25833 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25834 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25835
25836 2010-08-01 Robert Millan <rmh@gnu.org>
25837
25838 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
25839
25840 2010-07-31 Robert Millan <rmh@gnu.org>
25841
25842 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25843
25844 2010-07-31 Robert Millan <rmh@gnu.org>
25845
25846 * kern/emu/misc.c: Add missing license header.
25847
25848 2010-07-31 Robert Millan <rmh@gnu.org>
25849
25850 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25851
25852 * include/grub/util/libnvpair.h: Include `<config.h>'.
25853 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25854 declaring libnvpair prototypes ourselves.
25855 * include/grub/util/libzfs.h: Include `<config.h>'.
25856 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25857 declaring libzfs prototypes ourselves.
25858
25859 (libzfs_handle): Moved to ...
25860 * include/grub/util/misc.h (libzfs_handle): ... here.
25861 Include `<grub/util/libzfs.h>'.
25862
25863 2010-07-30 Robert Millan <rmh@gnu.org>
25864
25865 * include/grub/emu/misc.h: Add missing license header.
25866
25867 2010-07-30 Robert Millan <rmh@gnu.org>
25868
25869 Enable `grub-probe -t device' resolution on ZFS.
25870
25871 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25872 * include/grub/util/libnvpair.h: New file.
25873 * include/grub/util/libzfs.h: New file.
25874
25875 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25876 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25877 `<grub/util/libnvpair.h>'.
25878 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25879
25880 (find_mount_point_from_dir): New static function.
25881 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25882 function.
25883 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25884 find_root_device_from_libzfs() before ressorting to find_root_device().
25885
25886 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25887 prototype.
25888 * util/misc.c: Include `<grub/util/libzfs.h>'.
25889 (grub_util_init_libzfs): New function.
25890 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25891 [HAVE_LIBZFS] (fini_libzfs): New static function.
25892 (grub_util_init_libzfs): New function.
25893 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25894
25895 2010-07-30 Robert Millan <rmh@gnu.org>
25896
25897 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25898 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25899 `warn_unused_result' attribute.
25900 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25901 (grub_xasprintf, grub_xvasprintf): Likewise.
25902 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25903
25904 2010-07-29 Robert Millan <rmh@gnu.org>
25905
25906 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25907 (probe): Handle `PRINT_FS_LABEL'.
25908 (main): Handle `-t fs_label'.
25909
25910 2010-07-29 Robert Millan <rmh@gnu.org>
25911
25912 * configure.ac: Remove grub-mkisofs checks.
25913
25914 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25915
25916 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25917 Reported by: Lennart Sorensen.
25918
25919 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25920
25921 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25922 prior to terminal_input/terminal_output separation. It's been over 1.5
25923 years and those versions weren't widely deployed.
25924
25925 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
25926
25927 * disk/raid.c (insert_array): Don't count named arrays when looking
25928 for unused array numbers.
25929 Reported and tested by: Michael Guntsche.
25930
25931 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25932
25933 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25934 implementation of this so that grub-emu links again, with a note
25935 that this should support hotplugging in the future.
25936
25937 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25938
25939 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25940
25941 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25942
25943 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25944 handle on failure.
25945 (grub_loopback_close): Remove empty function.
25946 (grub_loopback_dev): Remove close method.
25947
25948 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25949
25950 Disable EFI cursor when the EFI console becomes inactive.
25951
25952 * term/efi/console.c (grub_efi_console_init): New function.
25953 (grub_efi_console_fini): New function.
25954 (grub_console_term_output): Register init and fini methods.
25955
25956 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25957
25958 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25959 sh script.
25960
25961 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25962
25963 * disk/loopback.c (grub_loopback): Replace filename with file.
25964 (delete_loopback): Handle new semantics.
25965 (grub_cmd_loopback): Likewise.
25966 (grub_loopback_iterate): Likewise.
25967 (grub_loopback_close): Likewise.
25968
25969 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25970
25971 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25972 with -p "".
25973 Reported by: Tito Keitel.
25974
25975 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25976
25977 * docs/grub.texi (Naming convention): Document new naming convention.
25978
25979 2010-07-20 Vadim Solomin <vadic052@gmail.com>
25980 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25981
25982 Generate device.map in something closer to the old ordering.
25983
25984 * util/deviceiter.c (struct device): New declaration.
25985 (compare_file_names): Rename to ...
25986 (compare_devices): ... this. Sort by kernel name in preference to
25987 the stable by-id name, but keep the latter as a fallback comparison.
25988 Update header comment.
25989 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25990 of `struct device' rather than of plain file names.
25991
25992 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25993
25994 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25995 on i386.
25996
25997 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25998
25999 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26000 hardcoding size.
26001 (setv1table): Likewise.
26002
26003 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26004
26005 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26006 removing the homehost if present.
26007 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26008 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26009 removing the homehost if present.
26010 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26011 if possible.
26012 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26013
26014 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26015 parameter. Set its pointer target to 0.
26016 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26017 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26018 `data_offset' value from the superblock for 1.x metadata.
26019 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26020 data on the device.
26021 (insert_array): Record the start sector of data on the device.
26022 (grub_raid_register): Pass start_sector parameters to
26023 grub_raid_list->detect and insert_array.
26024 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26025 member.
26026 (struct grub_raid): Add start_sector parameter to `detect'.
26027
26028 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26029 __attribute__ ((packed)), leaving a comment.
26030 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26031 (grub_mdraid_detect_09): ... here and ...
26032 (grub_mdraid_detect_1x): ... here.
26033
26034 2010-07-20 Peter Henn <peter.henn@web.de>
26035
26036 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26037 chunk size and disk size, which are already given as sector counts
26038 as distinct from the 0.90 units. Fetch the correct device number
26039 from the role table instead of using the table index.
26040
26041 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26042
26043 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26044 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26045 (WriteMostly1): New macro.
26046 Set array->name to NULL for metadata format 0.90. Add support for
26047 metadata 1.x. Fix some comments.
26048 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26049 few comments.
26050 * util/getroot.c (grub_util_get_grub_dev): Add support for
26051 /dev/md/name style devices.
26052
26053 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26054
26055 * .bzrignore: Ignore 20_linux_xen.
26056
26057 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26058
26059 * util/import_unicode.py: Remove unnecessary imports.
26060
26061 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26062
26063 Hotplugging and USB hub support.
26064
26065 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26066 (grub_ohci): Likewise.
26067 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26068 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26069 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26070 (GRUB_OHCI_CTRL_EDS): Likewise.
26071 (GRUB_OHCI_BULK_EDS): Likewise.
26072 (GRUB_OHCI_TDS): Likewise.
26073 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26074 (grub_ohci_ed_phys2virt): New function.
26075 (grub_ohci_virt_to_phys): Likewise.
26076 (grub_ohci_td_phys2virt): Likewise.
26077 (grub_ohci_td_virt2phys): Likewise.
26078 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26079 attachment.
26080 (grub_ohci_find_ed): New function.
26081 (grub_ohci_alloc_td): Likewise.
26082 (grub_ohci_free_td): Likewise.
26083 (grub_ohci_free_tds): Likewise.
26084 (grub_ohci_transfer): Use previously allocated memory.
26085 (grub_ohci_portstatus): Reset status changed bit.
26086 (grub_ohci_detect_dev): Supply status changed.
26087 (grub_ohci_fini_hw): Free memory.
26088 (grub_ohci_restore_hw): Reallocate memory.
26089 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26090 Reset status change.
26091 (grub_uhci_detect_dev): Supply status_change.
26092 * bus/usb/usb.c (attach_hooks): New var.
26093 (grub_usb_device_attach): New function.
26094 (grub_usb_register_attach_hook_class): Likewise.
26095 (grub_usb_unregister_attach_hook_class): Likewise.
26096 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26097 (grub_usb_add_hub): Reset connection changed bit.
26098 (attach_root_port): New function.
26099 (grub_usb_root_hub): Likewise.
26100 (poll_nonroot_hub): Likewise.
26101 (grub_usb_poll_devices): Likewise.
26102 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26103 * disk/usbms.c (grub_usbms_open): Use device hooks.
26104 (grub_usbms_iterate) :Poll devices.
26105 (grub_usbms_finddevs): Split into ...
26106 (grub_usbms_attach): ... this ...
26107 (grub_usbms_attach): ... and this.
26108 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26109 in detect_dev.
26110 (grub_usb_interface): New fields attached and detach_hook.
26111 (grub_usb_attach_hook_class): New type.
26112 (grub_usb_attach_desc): New struct.
26113 (grub_usb_register_attach_hook_class): New function.
26114 (grub_usb_unregister_attach_hook_class): Likewise.
26115 (grub_usb_poll_devices): Likewise.
26116 (grub_usb_device_attach): Likewise.
26117 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26118 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26119
26120 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26121
26122 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26123 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26124 delta determination style. Works with most NetBSD partitions too.
26125
26126 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26127
26128 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26129 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26130
26131 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26132
26133 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26134
26135 2010-07-14 Anton Blanchard <anton@samba.org>
26136
26137 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26138 ET_DYN files.
26139
26140 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26141
26142 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26143
26144 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26145
26146 * kern/partition.c (grub_partition_check_containment): New function to
26147 check that a partition is physically contained in a parent. Since
26148 offsets are relative (and non-negative), this reduces to checking that
26149 the partition ends before its parent.
26150 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26151 (grub_partition_iterate): Likewise.
26152 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26153 comments.
26154 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26155 partitions that start before their parent, and add debug printfs.
26156
26157 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26158
26159 * Makefile.in (.SUFFIX): Spell correctly, as ...
26160 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26161 bare module name without `.mod', e.g. `test') tried to invoke a
26162 Modula-2 compiler.
26163
26164 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26165
26166 * README: Point to the Info manual.
26167
26168 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26169
26170 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26171 2nd superblock position from partition size.
26172
26173 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26174
26175 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26176 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26177 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26178 outputs.
26179
26180 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26181
26182 Restructure SCSI .id handling.
26183 Reported and tested by: Aleš Nesrsta.
26184
26185 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26186 (grub_atapi_dev): Changed .name to "ata". New field .id.
26187 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26188 (grub_usbms_dev): New field .id.
26189 * disk/scsi.c (grub_scsi_iterate): Generate name.
26190 (grub_scsi_open): Parse name.
26191 * include/grub/scsi.h (grub_make_scsi_id): New function.
26192 (grub_scsi_dev): Change iterate and open to number instead of naming
26193 busses. All users updated.
26194 (grub_scsi): Remove name. Add .bus.
26195
26196 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26197
26198 * commands/help.c (grub_cmd_help): Fix a typo.
26199
26200 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26201
26202 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26203 Reported and tested by: Colin Watson.
26204
26205 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26206
26207 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26208 in this context.
26209
26210 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26211
26212 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26213
26214 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26215
26216 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26217 indentation.
26218
26219 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26220
26221 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26222 and disk/raid6_recover.c.
26223 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26224 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26225
26226 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26227
26228 * term/gfxterm.c (repaint_schedulded): Rename to ...
26229 (repaint_scheduled): ... this. Update all callers.
26230 (repaint_was_schedulded): Rename to ...
26231 (repaint_was_scheduled): ... this. Update all callers.
26232
26233 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26234
26235 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26236 which we expect to be handled by upper layers.
26237
26238 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26239
26240 * bus/usb/usbhub.c: #include time.h header.
26241
26242 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26243
26244 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26245 entry_name also for entries without stat blocks (e.g. ".."); fixes
26246 corruption of the first entry in a directory.
26247
26248 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26249
26250 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26251 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26252 doesn't work otherwise.
26253
26254 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26255
26256 * docs/grub.texi (Features): Update list of supported file systems.
26257 (GNU/Linux): Update for GRUB 2.
26258 (Serial terminal): Remove mention of --disable-serial, which was a
26259 GRUB Legacy configure option. Update instructions to use
26260 `terminal_input' and `terminal_output' rather than `terminal'.
26261 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26262 configuration' and `Installing GRUB using grub-install'.
26263 (Menu entry editor): Update for GRUB 2.
26264 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26265 Document new -a, -u, and -v options.
26266 (initrd): New section.
26267 (initrd16): New section.
26268 (linux): New section.
26269 (linux16): New section.
26270 (search): The `var' argument to `--set' is optional.
26271 (GRUB only offers a rescue shell): Go into a little more detail on
26272 drive ordering.
26273
26274 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26275
26276 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26277
26278 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26279
26280 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26281 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26282
26283 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26284
26285 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26286 install_prefix, in line with install_dos_part and install_bsd_part.
26287 Add new prefix variable, which is copied to install_prefix after
26288 comparing core.img in memory with the one read from disk in the
26289 no-embedding case, and use that rather than overwriting
26290 install_prefix immediately when installing to a partition.
26291 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26292 Bicakci.
26293
26294 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26295
26296 * configure.ac: Avoid == in test command, it's not portable.
26297 * util/grub.d/30_os-prober.in: Likewise.
26298
26299 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26300
26301 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26302
26303 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26304
26305 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26306 multiple (top-level) partmaps.
26307
26308 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26309
26310 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26311 Reported by: Tino Keitel.
26312
26313 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26314
26315 Bidi and diacritics support.
26316
26317 * Makefile.in (widthspec.bin): New target.
26318 (widthspec.h): Likewise.
26319 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26320 * autogen.sh: Generate unidata.c.
26321 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26322 * commands/ls.c (grub_ls_list_devices): Likewise.
26323 (grub_ls_list_files): Likewise.
26324 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26325 (grub_mini_cmd_lsmod): Likewise.
26326 * commands/read.c: Likewise.
26327 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26328 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26329 * lib/arg.c (grub_arg_show_help): Likewise.
26330 * lib/crypto.c (grub_password_get): Likewise.
26331 * normal/auth.c (grub_username_get): Likewise.
26332 * normal/misc.c (grub_normal_print_device_info): Likewise.
26333 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26334 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26335 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26336 (normal/charset.c_DEPENDENCIES): New variable.
26337 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26338 (pkglib_MODULES): Remove charset.mod.
26339 (charset_mod_SOURCES): Removed.
26340 (charset_mod_CFLAGS): Likewise.
26341 (charset_mod_LDFLAGS): Likewise.
26342 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26343 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26344 and term/tparm.c.
26345 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26346 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26347 (kernel_img_HEADERS): Add terminfo.h.
26348 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26349 Fill ->font. Reverse ascii bitmaps.
26350 (grub_font_get_xheight): New function.
26351 * font/font.c (grub_font_get_string_width): Moved from here ...
26352 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26353 * font/font.c (grub_font_draw_string): Moved from here ...
26354 * gfxmenu/font.c (grub_font_draw_string): ... here.
26355 * font/font.c (grub_font_dup_glyph): New function.
26356 (grub_font_blit_glyph): Likewise.
26357 (grub_font_blit_glyph_mirror): Likewise.
26358 (blit_comb): Likewise.
26359 (grub_font_construct_dry_run): Likewise.
26360 (grub_font_get_constructed_device_width): Likewise.
26361 (grub_font_construct_glyph): Likewise.
26362 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26363 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26364 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26365 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26366 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26367 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26368 (grub_font_get_xheight): New proto.
26369 (grub_font_get_constructed_device_width): Likewise.
26370 (grub_font_construct_glyph): Likewise.
26371 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26372 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26373 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26374 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26375 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26376 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26377 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26378 (grub_console_getcharwidth): Likewise.
26379 * include/grub/misc.h (grub_xputs): New proto.
26380 (grub_puts): Inlined.
26381 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26382 (grub_normal_get_line_counter): Removed.
26383 (grub_install_newline_hook): Likewise.
26384 (grub_normal_get_char_counter): New proto.
26385 (grub_normal_reset_more): Likewise.
26386 (grub_xputs_normal): Likewise.
26387 * include/grub/powerpc/ieee1275/console.h: Removed.
26388 * include/grub/sparc64/ieee1275/console.h: Likewise.
26389 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26390 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26391 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26392 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26393 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26394 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26395 (grub_term_input): Pass reference to self. All users updated.
26396 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26397 Pass reference to self. New fields normal_color, highlight_color and
26398 data. All users updated.
26399 (grub_putchar): Removed.
26400 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26401 (grub_unicode_estimate_width): New function.
26402 (grub_term_getcharwidth): Add defaults.
26403 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26404 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26405 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26406 (grub_cls): Remove EXPORT_FUNC.
26407 (grub_setcolorstate): Inline.
26408 (grub_newline_hook): Removed.
26409 * include/grub/terminfo.h: Rewritten. All users updated.
26410 * include/grub/unicode.h: New file.
26411 * include/grub/video.h (grub_video_signed_rect): New type.
26412 * kern/emu/console.c (grub_console_highlight_color): Removed.
26413 (grub_console_normal_color): Likewise.
26414 (grub_console_standard_color): Made static.
26415 (grub_ncurses_putchar): Remove mapping.
26416 (grub_ncurses_getcharwidth): Removed.
26417 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26418 (grub_ncurses_setcolor): Removed.
26419 (grub_ncurses_getcolor): Likewise.
26420 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26421 (grub_console_putchar): ... this.
26422 (grub_console_putchar): Handle argument difference.
26423 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26424 console_init_early and console_init_lately.
26425 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26426 * kern/misc.c (grub_puts): Removed.
26427 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26428 (grub_vsnprintf_real): Remove str = NULL support.
26429 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26430 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26431 * kern/term.c (grub_putcode): Renamed to ...
26432 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26433 (grub_putchar): Removed.
26434 (grub_xputs_dumb): New function.
26435 (grub_xputs): New variable.
26436 * lib/charset.c: Move from here ...
26437 * normal/charset.c: ... to here.
26438 (grub_ucs4_to_utf8): New function.
26439 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26440 (join_types): New variable.
26441 (unpack_join): New function.
26442 (bidi_types): New variable.
26443 (unpack_bidi): New function.
26444 (get_bidi_type): Likewise.
26445 (get_join_type): Likewise.
26446 (is_mirrored): Likewise.
26447 (grub_unicode_get_comb_type): Likewise.
26448 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26449 (is_type_after): Likewise.
26450 (grub_unicode_aglomerate_comb): Likewise.
26451 (bidi_line_wrap): Likewise.
26452 (grub_bidi_line_logical_to_visual): Likewise.
26453 (grub_bidi_logical_to_visual): Likewise.
26454 (grub_unicode_mirror_code): Likewise.
26455 (grub_unicode_shape_code): Likewise.
26456 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26457 Don't use grub_putchar.
26458 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26459 (grub_normal_reader_init): Likewise.
26460 (grub_xputs_saved): New variable.
26461 (GRUB_MOD_INIT): Set grub_xputs.
26462 (GRUB_MOD_FINI): Restore grub_xputs.
26463 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26464 (menu_init): Avoid printing gfxmenu error.
26465 (show_menu): Use grub_normal_get_char_counter.
26466 * normal/menu_entry.c (update_screen): Fix out-of-array.
26467 (complete): Avoid NULL dereferencing.
26468 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26469 * normal/menu_text.c (print_spaces): Removed.
26470 (grub_print_ucs4): Likewise.
26471 (grub_print_message_indented): Use grub_print_ucs4.
26472 (print_message): Use grub_putcode.
26473 (print_entry): Hanlde diacritics.
26474 * normal/term.c (term_state): New type.
26475 (grub_more_lines): Removed.
26476 (term_states): New variable.
26477 (grub_normal_line_counter): Renamed to ..
26478 (grub_normal_char_counter): ...this. All users updated.
26479 (grub_normal_get_line_counter): Renamed to ...
26480 (grub_normal_get_char_counter): ... this.
26481 (grub_normal_reset_more): New function.
26482 (process_newline): Removed.
26483 (print_more): New function.
26484 (grub_install_newline_hook): Removed.
26485 (map_code): New function.
26486 (grub_puts_terminal): Use grub_print_ucs4.
26487 (putglyph): New function.
26488 (putcode_real): Likewise.
26489 (grub_putcode): Use putcode_real.
26490 (get_maxwidth): New function.
26491 (get_startwidth): Likewise.
26492 (print_ucs4_terminal): Likewise.
26493 (find_term_state): Likewise.
26494 (put_glyphs_terminal): Likewise.
26495 (print_backlog): Likewise.
26496 (print_ucs4_real): Likewise.
26497 (grub_print_ucs4): Likewise.
26498 (grub_xputs_normal): Likewise.
26499 * term/efi/console.c (grub_console_putchar): Output diacritics.
26500 (grub_console_getcharwidth): Removed.
26501 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26502 * term/gfxterm.c (clear_char): Free chars.
26503 (scroll_up): Avoid leaking memory.
26504 (grub_gfxterm_putchar): Support diacritics.
26505 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26506 * term/i386/pc/console.c (grub_console_term_output): Declare as
26507 GRUB_TERM_CODE_TYPE_VGA.
26508 * term/i386/pc/vga.c (grub_vga_term): Declare as
26509 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26510 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26511 GRUB_TERM_CODE_TYPE_VGA.
26512 * term/i386/vga_common.c (map_char): Removed.
26513 (grub_console_putchar): Likewise.
26514 (grub_console_getcharwidth): Likewise.
26515 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26516 (colors): Reordered to match terminfo.
26517 (grub_ofconsole_normal_color): Removed.
26518 (grub_ofconsole_writeesc): Likewise.
26519 (grub_ofconsole_highlight_color): Likewise.
26520 (grub_ofconsole_getcharwidth): Likewise.
26521 (grub_ofconsole_setcolorstate): Likewise.
26522 (grub_ofconsole_setcolor): Likewise.
26523 (grub_ofconsole_getcolor): Likewise.
26524 (grub_ofconsole_readkey): Renamed to ...
26525 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26526 key.
26527 (grub_ofconsole_checkkey): Removed.
26528 (grub_ofconsole_getkey): Likewise.
26529 (grub_ofconsole_getxy): Likewise.
26530 (grub_ofconsole_gotoxy): Likewise.
26531 (grub_ofconsole_cls): Likewise.
26532 (grub_ofconsole_refresh): Likewise.
26533 (grub_ofconsole_terminfo_input): New struct.
26534 (grub_ofconsole_terminfo_output): Likewise.
26535 (grub_ofconsole_term_input): Use terminfo.
26536 (grub_ofconsole_term_output): Likewise.
26537 (grub_console_init): Split into ...
26538 (grub_console_init_early): ...this and ...
26539 (grub_console_init_lately): ...this. Use terminfo.
26540 (grub_ofconsole_putchar): Renamed to ...
26541 (put): ... this. Remove mapping.
26542 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26543 * term/serial.c: Simplify using terminfo.
26544 (xpos): Removed.
26545 (ypos): Likewise.
26546 (keep_track): Likewise.
26547 (registered): Likewise.
26548 (input_buf): Likewise.
26549 (npending): Likewise.
26550 (serial_translate_key_sequence): Likewise.
26551 (fill_input_buf): Likewise.
26552 (grub_serial_checkkey): Likewise.
26553 (grub_serial_getkey): Likewise.
26554 (grub_serial_getxy): Likewise.
26555 (grub_serial_gotoxy): Likewise.
26556 (grub_serial_putchar): Likewise.
26557 (grub_serial_cls): Likewise.
26558 (grub_serial_setcolorstate): Likewise.
26559 (grub_serial_setcursor): Likewise.
26560 (serial_hw_init): Use serial_hw_fetch.
26561 (grub_serial_terminfo_input): New variable.
26562 (grub_serial_terminfo_output): Likewise.
26563 (grub_serial_term_input): Use terminfo.
26564 (grub_serial_term_output): Likewise.
26565 * term/terminfo.c (putstr): Use put.
26566 (grub_terminfo_all_free): New function
26567 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26568 (grub_terminfo_output_register): New function.
26569 (grub_terminfo_output_unregister): Likewise.
26570 (grub_terminfo_getxy): Likewise.
26571 (grub_terminfo_readkey): Likewise.
26572 (grub_terminfo_checkkey): Likewise.
26573 (grub_terminfo_getkey): Likewise.
26574 (grub_terminfo_input_init): Likewise.
26575 (print_terminfo): Likewise.
26576 (grub_cmd_terminfo): Handle encoding.
26577 (grub_terminfo_gotoxy): Track position.
26578 (grub_terminfo_cls): Likewise.
26579 (grub_terminfo_putchar): Likewise.
26580 (grub_terminfo_setcolorstate): Handle colors
26581 (grub_terminfo_cursor_on): This ...
26582 (grub_terminfo_cursor_off): ... and this merged into ...
26583 (grub_terminfo_setcursor): ... this.
26584 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26585 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26586 * unicode/BidiMirroring.txt: Likewise.
26587 * unicode/UnicodeData.txt: Likewise.
26588 * unicode/COPYING: Likewise.
26589 * util/grub-editenv.c (grub_putchar): Removed.
26590 (grub_xputs_real): New function.
26591 (grub_xputs): New variable.
26592 * util/grub-fstest.c (grub_putchar): Removed.
26593 (grub_xputs_real): New function.
26594 (grub_xputs): New variable.
26595 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26596 (grub_xputs_real): New function.
26597 (grub_xputs): New variable.
26598 * util/grub-probe.c (grub_putchar): Removed.
26599 (grub_xputs_real): New function.
26600 (grub_xputs): New variable.
26601 * util/grub-script-check.c (grub_putchar): Removed.
26602 (grub_xputs_real): New function.
26603 (grub_xputs): New variable.
26604 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26605 (grub_xputs_real): New function.
26606 (grub_xputs): New variable.
26607 * util/import_unicode.py: New file.
26608 * util/grub-mkfont.c (ft_errmsgs): New array.
26609 (grub_glyph_info): Make bitmap a pointer.
26610 (file_formats): New type WIDTH_SPEC.
26611 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26612 (options): Add width-spec.
26613 (help): Likewise.
26614 (add_char): Renamed to ...
26615 (add_glyph): ... this.
26616 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26617 (glyph_replace): New type.
26618 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26619 (add_char): New function.
26620 (add_subst): Likewise.
26621 (process_cursive): Likewise.
26622 (add_font): Handle GSUB.
26623 (write_font_width_spec): New function.
26624 (main): Sort glyphs.
26625 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26626 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26627 * kern/term.c (grub_cls): Moved from here...
26628 * normal/term.c (grub_cls): ... here.
26629
26630 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26631
26632 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26633 suitable for using within the format argument of printf when
26634 converting grub_size_t.
26635 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26636 "x" to convert grub_size_t arguments.
26637
26638 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26639
26640 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26641 too long captions.
26642 (list_get_minimal_size): Take selection box into account.
26643
26644 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26645
26646 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26647 NULL font.
26648
26649 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26650
26651 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26652 devices when iterating over /dev/disk/by-id; they will be handled
26653 later if appropriate, which they aren't always (e.g. LVM).
26654
26655 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26656
26657 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26658 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26659 fails.
26660 (grub_halt): Likewise.
26661 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26662 reset-all fails.
26663 (grub_halt): Don't return, even if all of shut-down, power-off, and
26664 poweroff fail.
26665
26666 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26667
26668 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26669 arguments, not three.
26670
26671 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26672
26673 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26674 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26675 LVM-on-RAID is handled correctly.
26676
26677 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26678
26679 * docs/grub.texi (Changes from GRUB Legacy): New section.
26680 (Future): Fix typo.
26681
26682 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26683
26684 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26685 grub.d/README accidentally ends up executable for one reason or
26686 another. Ignore it.
26687
26688 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26689
26690 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26691 (gpt_partition_map_iterate): Support non-512B sectors.
26692
26693 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26694
26695 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26696 Tested by: Seth Goldberg.
26697
26698 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26699
26700 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26701 Properly align mbi.
26702 Reported by: Seth Goldberg.
26703
26704 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26705
26706 * util/grub-mkrescue.in: Avoid module duplication.
26707
26708 2010-07-01 Sean Finney <seanius@seanius.net>
26709
26710 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26711
26712 2010-07-01 Sean Finney <seanius@seanius.net>
26713
26714 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26715
26716 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26717
26718 * disk/lvm.c (grub_lvm_checkvalue): New function.
26719 (grub_lvm_check_flag): Likewise.
26720
26721 2010-07-01 Robert Millan <rmh@gnu.org>
26722
26723 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26724 Support 'p' as partition separator on kernel of FreeBSD (used
26725 with GPT labels).
26726 (grub_util_biosdisk_get_grub_dev): Likewise.
26727
26728 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26729
26730 Yeeloong firmware port.
26731
26732 * boot/mips/yeeloong/fwstart.S: New file.
26733 * bus/cs5536.c (gpiodump): New const.
26734 (set_io_space): New function.
26735 (set_iod): Likewise.
26736 (set_p2d): Likewise.
26737 (grub_cs5536_init_geode): Likewise.
26738 * commands/mips/yeeloong/lsspd.c: New file.
26739 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26740 (serial_mod_SOURCES): New variable.
26741 (serial_mod_CFLAGS): Likewise.
26742 (serial_mod_LDFLAGS): Likewise.
26743 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26744 term/terminfo.c and term/tparm.c.
26745 (pkglib_IMAGES): Add fwstart.img.
26746 (fwstart_img_SOURCES): New variable.
26747 (fwstart_img_CFLAGS): Likewise.
26748 (fwstart_img_ASFLAGS): Likewise.
26749 (fwstart_img_LDFLAGS): Likewise.
26750 (fwstart_img_FORMAT): Likewise.
26751 (pkglib_MODULES): Add lsspd.mod.
26752 (lsspd_mod_SOURCES): New variable.
26753 (lsspd_mod_CFLAGS): Likewise.
26754 (lsspd_mod_LDFLAGS): Likewise.
26755 (pkglib_MODULES): Add halt.mod.
26756 (halt_mod_SOURCES): New variable.
26757 (halt_mod_CFLAGS): Likewise.
26758 (halt_mod_LDFLAGS): Likewise.
26759 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26760 (serial_mod_SOURCES): Removed.
26761 (serial_mod_CFLAGS): Likewise.
26762 (serial_mod_LDFLAGS): Likewise.
26763 * disk/ata.c (check_device): New function.
26764 (grub_ata_device_initialize): Use check_device.
26765 (grub_ata_iterate): Recheck devices.
26766 (grub_ata_open): Likewise.
26767 (grub_atapi_iterate): Likewise.
26768 (grub_atapi_open): Likewise.
26769 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26770 (GRUB_ATA_CH1_PORT1): Likewise.
26771 (GRUB_ATA_CH0_PORT2): Likewise.
26772 (GRUB_ATA_CH1_PORT2): Likewise.
26773 * include/grub/mips/loongson.h: New file.
26774 * include/grub/mips/yeeloong/ec.h: Likewise.
26775 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26776 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26777 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26778 * include/grub/misc.h (grub_halt): Declare as noreturn.
26779 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26780 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26781 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26782 (UART_ENABLE_DTRRTS): Likewise.
26783 (UART_ENABLE_MODEM): Removed.
26784 (UART_ENABLE_OUT2): New const.
26785 * include/grub/term.h (grub_term_register_input_active): New function.
26786 (grub_term_register_output_active): Likewise.
26787 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
26788 argument.
26789 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
26790 (init_pci): New function.
26791 (grub_machine_init): Execute platform init when firmware. Init serial.
26792 (grub_halt): Implement.
26793 (grub_exit): Likewise.
26794 (grub_reboot): Likewise.
26795 * term/serial.c (serial_hw_init): Update macros.
26796 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
26797 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
26798 (image_targets): New target mipsel-yeeloong-flash.
26799 (generate_image): Support IMAGE_YEELOONG_FLASH.
26800 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26801 (grub_video_sm712_setup): Init card.
26802 (grub_video_sm712_set_palette): Removed.
26803 * video/sm712_init.c: New file.
26804
26805 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
26806
26807 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26808 PATH when running help2man and then run it on the unadorned
26809 executable names, rather than passing $(builddir)/* paths to
26810 help2man. This avoids the build directory ending up in generated
26811 manual pages.
26812
26813 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26814
26815 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26816 to avoid accidents when debugging with 'sh -x'.
26817 * util/grub-mkrescue.in: Likewise.
26818 * util/grub.d/00_header.in: Likewise.
26819 * util/grub.d/10_hurd.in: Likewise.
26820 * util/grub.d/10_kfreebsd.in: Likewise.
26821 * util/grub.d/10_linux.in: Likewise.
26822 * util/grub.d/10_netbsd.in: Likewise.
26823 * util/grub.d/10_windows.in: Likewise.
26824 * util/grub.d/20_linux_xen.in: Likewise.
26825 * util/grub.d/30_os-prober.in: Likewise.
26826 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26827
26828 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26829
26830 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26831 last character in the buffer.
26832 Reported by: Vladimir Serbinenko.
26833
26834 2010-06-29 Robert Millan <rmh@gnu.org>
26835
26836 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26837 (Command-line and menu entry commands): Document `badram' command.
26838
26839 2010-06-28 Robert Millan <rmh@gnu.org>
26840
26841 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26842 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26843 command using ${GRUB_BADRAM} as parameter.
26844
26845 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26846
26847 * docs/grub.texi (Device map): New section.
26848 (Themes): New section (stub).
26849 * Makefile.in (docs/grub.info): The info documentation now builds
26850 without errors. Make sure it stays that way.
26851
26852 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26853
26854 Use normal parser for menu entries.
26855 Reported by: Thomas Frauendorfer
26856
26857 * include/grub/parser.h (grub_parser_execute): Don't export.
26858 * normal/menu.c (grub_menu_execute_entry_real): New function.
26859 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26860
26861 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26862
26863 * docs/grub.texi (Embedded configuration): New section (replacing
26864 old "Preset Menu" stub).
26865 (Images): New section.
26866 (configfile): Note that any menu entries defined in `file' are shown
26867 immediately.
26868
26869 2010-06-28 Josh Triplett <josh@joshtriplett.org>
26870
26871 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26872
26873 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26874
26875 * util/grub-install.in: Add --debug-image= option.
26876
26877 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26878
26879 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26880 possible on Linux.
26881
26882 * util/deviceiter.c (check_device): Rename to ...
26883 (check_device_readable_unique): ... this. Update all callers.
26884 Maintain and check a list of which devices (by canonicalized name)
26885 have already been seen.
26886 (clear_seen_devices): New function.
26887 (compare_file_names) [__linux__]: New function.
26888 (grub_util_iterate_devices): Clear the list of seen devices on exit
26889 and (just in case) on entry.
26890 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26891 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26892 seen-devices list, superseded by general code in check_device.
26893
26894 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26895
26896 * commands/cat.c (options): New variable.
26897 (grub_cmd_cat): Parse options. If the --dos option is given, print
26898 DOS-style "\r\n" line endings as simple newlines (Debian bug
26899 #586358).
26900 (GRUB_MOD_INIT): Use extcmd.
26901 (GRUB_MOD_FINI): Likewise.
26902 * docs/grub.texi (cat): Document --dos.
26903
26904 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26905
26906 XEN with Linux grub-mkconfig support.
26907
26908 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26909 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26910 GRUB_CMDLINE_XEN_DEFAULT.
26911 * util/grub.d/20_linux_xen.in: New file.
26912
26913 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26914
26915 Initialise VGA video on qemu ourselves.
26916
26917 * boot/i386/qemu/boot.S: Don't call 0xc000.
26918 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26919 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26920 (kernel_img_HEADERS): Add pci.h.
26921 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26922 * configure.ac: Force unifont on qemu and yeeloong.
26923 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26924 (grub_vga_palette_write): Use correct register.
26925 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26926 Call grub_qemu_init_cirrus.
26927 * kern/i386/qemu/init.c: New file.
26928 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26929
26930 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26931
26932 2010-06-26 Pavel Roskin <proski@gnu.org>
26933
26934 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26935 13.
26936
26937 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26938
26939 * docs/grub.texi (Simple configuration): Explain that
26940 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26941 set to `true' to disable their respective recovery entries, not
26942 merely set.
26943
26944 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26945
26946 Make the `source' command slightly faster.
26947
26948 * normal/main.c (grub_normal_execute): Don't re-read list files when
26949 nested.
26950
26951 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26952
26953 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26954 field position and mask size to red fields from mode_info, not
26955 green.
26956 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26957 Remove redundant tag->common.framebuffer_type assignment.
26958 Reported by: Seth Goldberg.
26959
26960 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26961
26962 Sync up other versions of the Linux loader with Robert Millan's
26963 change of 2010-01-09, "Make loader output a bit more user-friendly".
26964
26965 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26966 grub_dprintf().
26967 (grub_cmd_linux): Likewise.
26968 (grub_cmd_initrd): Likewise.
26969 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26970 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26971
26972 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
26973
26974 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26975 larger than MEMORY_MAP_SIZE.
26976
26977 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26978
26979 Fix parallel build.
26980
26981 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26982 dependency.
26983 * script/parser.y: #include grub_script.tab.h header.
26984
26985 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26986
26987 Support >3GiB and <16MiB RAM in i386-qemu.
26988
26989 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26990 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26991 (grub_lower_mem): Removed.
26992 (grub_upper_mem): Likewise.
26993 (mem_size): Made static.
26994 (above_4g): New variable.
26995 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26996 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26997 support.
26998
26999 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27000
27001 Cirrus 5446 and Bochs video cards support.
27002
27003 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27004 video_bochs.mod
27005 (video_cirrus_mod_SOURCES): New variable.
27006 (video_cirrus_mod_CFLAGS): Likewise.
27007 (video_cirrus_mod_LDFLAGS): Likewise.
27008 (video_bochs_mod_SOURCES): Likewise.
27009 (video_bochs_mod_CFLAGS): Likewise.
27010 (video_bochs_mod_LDFLAGS): Likewise.
27011 * include/grub/vga.h: New file.
27012 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27013 (grub_video_fb_set_page_t): New type.
27014 (grub_video_fb_setup): New prototype.
27015 (grub_video_fb_swap_buffers): Likewise.
27016 (grub_video_fb_get_info_and_fini): Likewise.
27017 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27018 (CRTC_DATA_PORT): Likewise.
27019 (CRTC_CURSOR): Likewise.
27020 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27021 (CRTC_CURSOR_ADDR_LOW): Likewise.
27022 (CRTC_CURSOR_DISABLE): Likewise.
27023 (update_cursor): Use grub_vga_cr_write.
27024 (grub_vga_text_setcursor): Likewise.
27025 * video/bochs.c: New file.
27026 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27027 (palette): Likewise.
27028 (palette_size): Likewise.
27029 (framebuffer): New variable.
27030 (grub_video_fb_init): Use 'framebuffer'.
27031 (grub_video_fb_fini): Likewise.
27032 (grub_video_fb_get_info): Likewise.
27033 (grub_video_fb_get_palette): Likewise.
27034 (grub_video_fb_set_palette): Likewise.
27035 (grub_video_fb_set_viewport): Likewise.
27036 (grub_video_fb_get_viewport): Likewise.
27037 (grub_video_fb_map_color): Likewise.
27038 (grub_video_fb_map_rgb): Likewise.
27039 (grub_video_fb_map_rgba): Likewise.
27040 (grub_video_fb_unmap_color): Likewise.
27041 (grub_video_fb_unmap_color_int): Likewise.
27042 (grub_video_fb_fill_rect): Likewise.
27043 (grub_video_fb_blit_bitmap): Likewise.
27044 (grub_video_fb_blit_render_target): Likewise.
27045 (grub_video_fb_scroll): Likewise.
27046 (grub_video_fb_create_render_target): Likewise.
27047 (grub_video_fb_doublebuf_blit_init): Likewise.
27048 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27049 (doublebuf_pageflipping_update_screen): New function.
27050 (doublebuf_pageflipping_init): Likewise.
27051 (grub_video_fb_setup): Likewise.
27052 (grub_video_fb_swap_buffers): Likewise.
27053 (grub_video_fb_get_info_and_fini): Likewise.
27054 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27055 All users updated.
27056 (doublebuf_pageflipping_commit): Restructured into ...
27057 (doublebuf_pageflipping_set_page): ... this.
27058 (doublebuf_pageflipping_update_screen): Removed.
27059 (doublebuf_pageflipping_init): Likewise.
27060 (double_buffering_init): Likewise.
27061 (grub_video_vbe_setup): Use grub_video_fb_setup.
27062 (grub_video_vbe_swap_buffers): Removed.
27063 (grub_video_vbe_set_active_render_target): Likewise.
27064 (grub_video_vbe_get_active_render_target): Likewise.
27065 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27066 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27067 grub_video_fb_set_active_render_target and
27068 grub_video_fb_get_active_render_target.
27069 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27070 (SEQUENCER_DATA_PORT): Likewise.
27071 (MAP_MASK_REGISTER): Likewise.
27072 (CRTC_ADDR_PORT): Likewise.
27073 (CRTC_DATA_PORT): Likewise.
27074 (START_ADDR_HIGH_REGISTER): Likewise.
27075 (START_ADDR_LOW_REGISTER): Likewise.
27076 (GRAPHICS_ADDR_PORT): Likewise.
27077 (GRAPHICS_DATA_PORT): Likewise.
27078 (READ_MAP_REGISTER): Likewise.
27079 (INPUT_STATUS1_REGISTER): Likewise.
27080 (INPUT_STATUS1_VERTR_BIT): Likewise.
27081 (get_map_mask): Use grub_vga_sr_read.
27082 (set_map_mask): Use grub_vga_sr_write.
27083 (set_read_map): Use grub_vga_gr_write.
27084 (set_start_address): Use grub_vga_cr_write.
27085 * video/sm712.c (framebuffer): Remove leftover fields.
27086
27087 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27088
27089 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27090 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27091 instead. Replace the gfxterm backend check with a check that
27092 ${GRUB_PREFIX}/video.lst is non-empty.
27093 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27094 again.
27095 (load_video): New generated function. Call it before loading
27096 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27097 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27098 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27099 * docs/grub.texi (Simple configuration): Document
27100 GRUB_VIDEO_BACKEND.
27101
27102 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27103
27104 Use video functions in linux and xnu loaders.
27105
27106 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27107 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27108 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27109 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27110 loader/i386/pc/linux.c.
27111 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27112 (find_line_len): Removed.
27113 (find_framebuf): Likewise.
27114 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27115 * loader/i386/efi/xnu.c: Removed.
27116 * loader/i386/pc/xnu.c: Moved from here...
27117 * loader/i386/xnu.c: ...here.
27118
27119 Enable priorities in video drivers.
27120
27121 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27122 (grub_video_adapter): New field prio.
27123 (grub_video_register): Respect prio when inserting.
27124 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27125 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27126 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27127 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27128 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27129 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27130 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27131
27132 Fix SDL driver ID.
27133
27134 * include/grub/video.h (grub_video_driver_id_t): New value
27135 GRUB_VIDEO_DRIVER_SDL.
27136 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27137
27138 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27139
27140 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27141 argument to printf.
27142 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27143
27144 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27145
27146 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27147 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27148
27149 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27150
27151 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27152 directly, and recommend grub-install instead.
27153 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27154
27155 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27156
27157 Fix i386-pc prefix handling with nested partitions (Debian bug
27158 #585068). Note that the case where the core image is booted using
27159 multiboot and relocated from its original location still requires
27160 more work.
27161
27162 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27163 with "(,", fill the boot drive in between those two characters, but
27164 expect that a full partition specification including partition map
27165 names will follow.
27166 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27167 specified, write a prefix without the drive name but including a
27168 full partition specification.
27169
27170 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27171
27172 * util/grub-mkconfig.in: Ignore non-option arguments, for
27173 compatibility with older versions (before 2010-06-12) which did the
27174 same. In particular, this makes it easier to ship an update-grub
27175 wrapper which is compatible with that used with GRUB Legacy (Debian
27176 bug #586056).
27177
27178 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27179
27180 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27181 for manual page generation.
27182
27183 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27184
27185 * po/POTFILES: Remove leftover commands/handler.c.
27186
27187 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27188
27189 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27190 left this script non-functional.
27191
27192 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27193
27194 * docs/man/grub-emu.h2m: New file.
27195
27196 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27197
27198 * docs/grub.texi (Commands): Document reduced command set in rescue
27199 mode.
27200 (cpuid): New section.
27201
27202 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27203
27204 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27205 new partition naming style.
27206 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27207
27208 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27209
27210 Add "-o grub.iso" like cmdline options support.
27211
27212 * util/grub-install.in: Improve cmdline option parsing.
27213 * util/grub-mkconfig.in: Likewise.
27214 * util/grub-mkrescue.in: Likewise.
27215 * util/grub-reboot.in: Likewise.
27216 * util/grub-set-default.in: Likewise.
27217 * util/i386/efi/grub-install.in: Likewise.
27218 * util/ieee1275/grub-install.in: Likewise.
27219 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27220
27221 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27222
27223 * .bzrignore: Ignore 41_custom.
27224
27225 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27226
27227 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27228
27229 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27230
27231 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27232 prototype declarations.
27233
27234 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27235 generating fs, partmap, and video lists.
27236 * include/grub/fs.h (grub_fs_register): Omit prototype if
27237 GRUB_LST_GENERATOR is defined.
27238 * include/grub/partition.h (grub_partition_map_register): Likewise.
27239 * include/grub/video.h (grub_video_register): Likewise.
27240
27241 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27242
27243 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27244
27245 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27246
27247 * util/grub-mkrescue.in: Support --xorriso argument.
27248
27249 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27250
27251 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27252 Suggested by: Thomas Schmitt.
27253
27254 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27255
27256 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27257 Suggested by: Thomas Schmitt.
27258
27259 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27260
27261 custom.cfg support.
27262
27263 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27264 * util/grub.d/41_custom.in: New file.
27265
27266 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27267
27268 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27269 been merged back into normal.
27270
27271 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27272
27273 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27274 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27275
27276 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27277
27278 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27279 when generating manual pages.
27280 * docs/man/grub-bin2h.h2m: New file.
27281 * docs/man/grub-editenv.h2m: New file.
27282 * docs/man/grub-fstest.h2m: New file.
27283 * docs/man/grub-install.h2m: New file.
27284 * docs/man/grub-macho2img.h2m: New file.
27285 * docs/man/grub-mkconfig.h2m: New file.
27286 * docs/man/grub-mkdevicemap.h2m: New file.
27287 * docs/man/grub-mkfont.h2m: New file.
27288 * docs/man/grub-mkimage.h2m: New file.
27289 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27290 * docs/man/grub-mkrelpath.h2m: New file.
27291 * docs/man/grub-mkrescue.h2m: New file.
27292 * docs/man/grub-ofpathname.h2m: New file.
27293 * docs/man/grub-pe2elf.h2m: New file.
27294 * docs/man/grub-probe.h2m: New file.
27295 * docs/man/grub-reboot.h2m: New file.
27296 * docs/man/grub-script-check.h2m: New file.
27297 * docs/man/grub-set-default.h2m: New file.
27298 * docs/man/grub-setup.h2m: New file.
27299
27300 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27301
27302 Use FOR_* macros instead of *_iterate whenever possible.
27303
27304 * commands/handler.c: Removed.
27305 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27306 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27307 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27308 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27309 (grub_probe_SOURCES): Remove kern/parser.c.
27310 (util/grub-script-check.c_DEPENDENCIES): Removed.
27311 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27312 and grub_script_check_init.c.
27313 (grub_script_check_init.lst): Removed.
27314 (grub_script_check_init.h): Likewise.
27315 (grub_script_check_init.c): Likewise.
27316 (pkglib_MODULES): Remove handler.mod and sh.mod.
27317 (handler_mod_SOURCES): Removed.
27318 (handler_mod_CFLAGS): Likewise.
27319 (handler_mod_LDFLAGS): Likewise.
27320 (normal_mod_SOURCES): Remove normal/handler.c.
27321 Add script/main.c, script/script.c, script/execute.c,
27322 script/function.c, script/lexer.c, grub_script.tab.c
27323 and grub_script.yy.c.
27324 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27325 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27326 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27327 (grub_setup_SOURCES): Remove kern/parser.c.
27328 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27329 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27330 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27331 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27332 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27333 (grub_setup_SOURCES): Remove kern/parser.c.
27334 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27335 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27336 * include/grub/command.h (grub_command_iterate): Removed.
27337 (FOR_COMMANDS): New macro.
27338 * include/grub/dl.h (grub_dl): New member next.
27339 (grub_dl_iterate): Removed.
27340 (grub_dl_head): New variable declaration.
27341 (FOR_DL_MODULES): New macro.
27342 * include/grub/fs.h: Include list.h.
27343 (grub_fs): Make next first element.
27344 (grub_fs_list): New variable declaration.
27345 (grub_fs_register): Make inline.
27346 (grub_fs_unregister): Likewise.
27347 (grub_fs_iterate): Removed.
27348 (FOR_FILESYSTEMS): New macro.
27349 * include/grub/handler.h: Removed.
27350 * include/grub/list.h (grub_list_hook_t): Removed.
27351 (grub_list_test_t): Likewise.
27352 (grub_list_pop): Likewise.
27353 (grub_list_iterate): Likewise.
27354 (grub_list_insert): Likewise.
27355 (FOR_LIST_ELEMENTS): New macro.
27356 * include/grub/parser.h (grub_parser_class): Removed.
27357 (grub_parser_register): Likewise.
27358 (grub_parser_unregister): Likewise.
27359 (grub_parser_get_current): Likewise.
27360 (grub_parser_set_current): Likewise.
27361 (grub_register_rescue_parser): Likewise.
27362 (grub_rescue_parse_line): New function.
27363 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27364 * include/grub/script_sh.h (grub_script_function_list): New variable
27365 declaration.
27366 (FOR_SCRIPT_FUNCTIONS): New macro.
27367 (grub_script_function_iterate): Removed.
27368 (grub_normal_parse_line): New prototype.
27369 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27370 (FOR_DISABLED_TERM_INPUTS): Likewise.
27371 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27372 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27373 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27374 element.
27375 (grub_video_register): Inline.
27376 (grub_video_unregister): Likewise.
27377 (grub_video_adapter_list): New variable declaration.
27378 (grub_video_iterate): Removed.
27379 (FOR_VIDEO_ADAPTERS): New macro.
27380 * kern/dl.c (grub_dl_list): Removed. All users updated.
27381 (grub_dl_iterate): Removed.
27382 * kern/fs.c (grub_fs_list): Make global.
27383 (grub_fs_register): Removed.
27384 (grub_fs_unregister): Likewise.
27385 (grub_fs_iterate): Likewise.
27386 * kern/handler.c: Removed.
27387 * kern/list.c (grub_list_pop): Removed.
27388 (grub_list_iterate): Likewise.
27389 (grub_list_insert): Likewise.
27390 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27391 (grub_prio_list_insert): Don't use grub_list_insert.
27392 * kern/main.c (grub_register_rescue_parser): Don't call
27393 grub_register_rescue_parser.
27394 * kern/parser.c (grub_parser_class): Removed.
27395 (grub_parser_execute): Use grub_rescue_parse_line.
27396 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27397 (grub_rescue_parser): Removed.
27398 (grub_register_rescue_parser): Likewise.
27399 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27400 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27401 (grub_auth_check_authentication): Likewise.
27402 * normal/completion.c (iterate_command): Removed.
27403 (grub_normal_do_completion): Use FOR_COMMANDS.
27404 * normal/handler.c: Removed.
27405 * normal/main.c (read_config_file): Remove parser changing.
27406 (grub_normal_execute): Don't call read_handler_list.
27407 (grub_normal_read_line_real): Statically allocate prompt.
27408 (grub_cmdline_run): Use grub_normal_parse_line.
27409 (GRUB_MOD_FINI): Don't call free_handler_list.
27410 * normal/menu_entry.c (run): Likewise.
27411 * script/function.c (grub_script_function_list): Make global.
27412 (grub_script_function_iterate): Removed.
27413 * script/main.c (grub_normal_parse_line): Make global.
27414 (grub_sh_parser): Removed.
27415 (GRUB_MOD_INIT): Likewise.
27416 (GRUB_MOD_FINI): Likewise.
27417 * tests/lib/functional_test.c (grub_functional_test): Use
27418 FOR_LIST_ELEMENTS.
27419 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27420 (grub_test_run): Use FOR_LIST_ELEMENTS.
27421 * tests/lib/unit_test.c (main): Likewise.
27422 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27423 grub_list_pop.
27424 * util/grub-fstest.c (grub_term_input_class): Removed.
27425 (grub_term_output_class): Likewise.
27426 * util/grub-probe.c: Likewise.
27427 * util/i386/pc/grub-setup.c: Likewise.
27428 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27429 * util/grub-script-check.c (main): Don't call grub_init_all and
27430 grub_fini_all.
27431 * video/video.c (grub_video_adapter_list): Make global.
27432 (grub_video_register): Removed.
27433 (grub_video_unregister): Likewise.
27434 (grub_video_iterate): Likewise.
27435
27436 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27437
27438 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27439 reported by Henrique Ferreiro.
27440
27441 2010-06-09 Robert Millan <rmh@gnu.org>
27442
27443 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27444 ones, when both are available.
27445
27446 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27447
27448 Make --version uniform and avoid hard-coded program name.
27449
27450 * util/grub-mkimage.c (main): Use `program_name' instead of
27451 hard-coded string.
27452 * util/i386/pc/grub-setup.c (main): Likewise.
27453 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27454 * util/grub-install.in: Save the basename of $0 in $self, and use the
27455 latter in informational messages. Use the same format for --version
27456 as the binary programs.
27457 * util/grub-mkconfig.in: Likewise.
27458 * util/grub-mkrescue.in: Likewise.
27459 * util/grub-reboot.in: Likewise.
27460 * util/grub-set-default.in: Likewise.
27461 * util/i386/efi/grub-install.in: Likewise.
27462 * util/ieee1275/grub-install.in: Likewise.
27463 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27464
27465 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27466
27467 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27468 embedding area. Use <= instead of == when checking for non-emptiness.
27469
27470 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27471
27472 * configure.ac: Add `.' to the directories searched for unifont.
27473
27474 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27475
27476 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27477 grub_script.yy.h.
27478
27479 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27480
27481 * docs/grub.texi (History): Expand to cover GRUB 2.
27482 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27483 commands, not `terminal'.
27484 (serial): Likewise.
27485 (terminal_input): New section.
27486 (terminal_output): New section.
27487 (uppermem): New section (stub).
27488 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27489
27490 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27491
27492 * docs/grub.texi (Security): Menu entries are unrestricted by
27493 default, not restricted to superusers as I had previously thought.
27494 Reword to account for this.
27495
27496 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27497
27498 * kern/emu/misc.c (device_mapper_null_log): New function.
27499 (grub_device_mapper_supported): New function.
27500 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27501 prototype.
27502 * kern/emu/hostdisk.c (find_partition_start): Check whether
27503 device-mapper is supported before trying to use it.
27504 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27505
27506 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27507
27508 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27509 (File name syntax): Likewise.
27510 (help): --all is no longer supported in GRUB 2. Be more precise
27511 about pattern matching.
27512
27513 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27514
27515 * normal/completion.c (grub_normal_do_completion): When completing
27516 arguments to "set" and the current word contains an equals sign,
27517 skip to after the equals sign before starting completion.
27518
27519 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27520
27521 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27522
27523 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27524
27525 * docs/grub.texi (Network): New section.
27526 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27527 `(nd)' as in GRUB Legacy.
27528 (pxe_unload): New section.
27529
27530 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27531
27532 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27533 in the rescue shell, so recommend using `set' instead. Thanks,
27534 Jordan Uggla.
27535
27536 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27537
27538 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27539 (password): New section.
27540 (password_pbkdf2): New section.
27541 (search): New section.
27542 (Security): New section.
27543 (Troubleshooting): New section, currently very incomplete.
27544 (Invoking grub-mkpasswd-pbkdf2): New section.
27545 (Internals): New section, currently very incomplete.
27546
27547 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27548
27549 * util/grub.d/00_header.in: Add some more quoting (of
27550 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27551 work again.
27552 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27553
27554 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27555
27556 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27557 to `count', fixing variable shadowing that broke the -c option.
27558
27559 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27560
27561 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27562 in case they contain spaces.
27563
27564 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27565
27566 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27567 "part_" to partmap module names, in line with grub-install.
27568 Reported by: Jindřich Makovička (Debian bug #584426).
27569
27570 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27571
27572 * util/grub-mkimage.c: Make target-related error messages slightly
27573 more helpful; -O talks about "format". Explicitly point to the use
27574 of -O if no target is specified.
27575 Reported by: Didier Raboud (Debian bug #584415).
27576
27577 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27578
27579 * INSTALL: Document several build requirements for optional features
27580 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27581
27582 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27583
27584 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27585 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27586 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27587
27588 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27589
27590 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27591 Thanks to Jordan Uggla for spotting this.
27592
27593 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27594
27595 Finally make USB usable.
27596
27597 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27598 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27599 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27600 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27601 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27602 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27603 (GRUB_OHCI_FSMPS): Likewise.
27604 (GRUB_OHCI_PERIODIC_START): Likewise.
27605 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27606 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27607 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27608 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27609 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27610 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27611 (grub_ohci_transaction): Likewise.
27612 (grub_ohci_transfer): Improve condition detection algorithms.
27613 Handle toggle property. Program the transactions correctly.
27614 Improve error handling. Various important fixups.
27615 (grub_ohci_portstatus): Put register writes in right order.
27616 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27617 (grub_uhci_transfer): Don't show "failed" message on success.
27618 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27619 array.
27620 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27621 determine its size.
27622 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27623 before initialization is completed. Use IN direction for empty
27624 transfers. Use last_trans and compute toggle.
27625 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27626 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27627 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27628 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27629 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27630 (grub_usb_device): Increase toggle to 256.
27631 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27632 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27633 GRUB_USBMS_SUBCLASS_SFF8070.
27634 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27635 (grub_scsi_inquiry): New member page and alloc_length.
27636 (grub_scsi_request_sense): New structure.
27637 (grub_scsi_request_sense_data): Likewise.
27638 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27639 control.
27640 * disk/scsi.c (grub_scsi_request_sense): New function.
27641 (grub_scsi_test_unit_ready): Likewise.
27642 (grub_scsi_inquiry): Fill new fields.
27643 (grub_scsi_read_capacity): Likewise.
27644 (grub_scsi_read10): Add request sense at the end.
27645 (grub_scsi_read12): Likewise.
27646 (grub_scsi_write10): Likewise.
27647 (grub_scsi_write12): Likewise.
27648 (grub_scsi_open): Add Test Unit Ready.
27649 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27650 Support additional subclasses. Con't clear halt yet. Activate the
27651 proper config. Calculate LUNs correctly.
27652 (grub_usbms_transfer): Various important fixups.
27653
27654 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27655
27656 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27657 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27658 (grub_ohci_fini_hw): New function.
27659 (grub_ohci_restore_hw): Likewise.
27660 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27661 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27662 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27663
27664 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27665
27666 Dedicated DMA allocations.
27667
27668 * bus/pci.c (grub_memalign_dma32): New function
27669 (grub_dma_free): Likewise.
27670 (grub_dma_get_virt): Likewise.
27671 (grub_dma_get_phys): Likewise.
27672 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27673 (grub_ohci_pci_iter): Use dma32_alloc.
27674 (grub_ohci_transfer): Likewise.
27675 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27676 (grub_usb_bulk_readwrite): Likewise.
27677 * include/grub/pci.h: Add declarations.
27678
27679 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27680
27681 CS5536 support.
27682
27683 * bus/cs5536.c: New file.
27684 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27685 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27686 (cs5536_mod_SOURCES): New variable.
27687 (cs5536_mod_CFLAGS): Likewise.
27688 (cs5536_mod_LDFLAGS): Likewise.
27689 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27690 machine/pci.h.
27691 (kernel_img_SOURCES): Add bus/cs5536.c.
27692 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27693 usb_keyboard.mod.
27694 (usb_mod_SOURCES): New variable.
27695 (usb_mod_CFLAGS): New variable.
27696 (usb_mod_LDFLAGS): New variable.
27697 (usbtest_mod_SOURCES): New variable.
27698 (usbtest_mod_CFLAGS): New variable.
27699 (usbtest_mod_LDFLAGS): New variable.
27700 (ohci_mod_SOURCES): New variable.
27701 (ohci_mod_CFLAGS): New variable.
27702 (ohci_mod_LDFLAGS): New variable.
27703 (usbms_mod_SOURCES): New variable.
27704 (usbms_mod_CFLAGS): New variable.
27705 (usbms_mod_LDFLAGS): New variable.
27706 (usb_keyboard_mod_SOURCES): New variable.
27707 (usb_keyboard_mod_CFLAGS): New variable.
27708 (usb_keyboard_mod_LDFLAGS): New variable.
27709 * include/grub/smbus.h: New file.
27710 * include/grub/cs5536.h: New file.
27711
27712 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27713
27714 * util/grub.d/00_header.in: Add safety check to make sure that
27715 ${locale_dir} exists before trying to probe it.
27716
27717 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27718
27719 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27720 per the GNU Coding Standards; this is now too obscure to be worth
27721 documenting.
27722 (QNX): Likewise.
27723 (chainloader): Remove cross-reference to `SCO UnixWare'.
27724
27725 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27726
27727 * docs/grub.texi (Chain-loading): New section.
27728 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27729 adjusted for GRUB 2.
27730 (SCO UnixWare): Likewise.
27731 (QNX): Likewise.
27732 (chainloader): Add reference to `Block list syntax'.
27733 (drivemap): New section.
27734 (parttool): New section.
27735
27736 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27737
27738 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27739 the grub shell'.
27740 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27741 (Installing GRUB using grub-install): Remove reference to the grub
27742 shell; mention `grub-mkimage' and `grub-setup' instead.
27743 (Invoking grub-install): Likewise.
27744 (Interface): Add reference to `Menu entry editor'.
27745 (serial): Remove `--device' option.
27746
27747 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27748
27749 * docs/grub.texi (Configuration): New section, documenting
27750 configuration file generation using grub-mkconfig. I've left a slot
27751 for documenting the full shell scripting format but have not yet
27752 started on writing that up.
27753 (Invoking grub-mkconfig): New section.
27754
27755 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27756
27757 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27758 (GNU GRUB manual): Likewise.
27759 (General commands): Update description of `terminfo' for GRUB 2.
27760
27761 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27762
27763 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27764 (GRUB_MOD_INIT): Fix capitalisation.
27765 * docs/grub.texi (Command-line and menu entry commands): Document
27766 gettext and gptsync commands.
27767
27768 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27769
27770 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27771 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27772
27773 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27774
27775 Add btrfs probing support, currently only in the single-device case.
27776
27777 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27778 function.
27779 (grub_guess_root_device): Call find_root_device_from_mountinfo
27780 before looking in /dev.
27781
27782 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27783
27784 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27785 GRUB_DISK_SIZE_UNKNOWN.
27786 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27787
27788 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
27789
27790 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
27791 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
27792 corrupted or not synced properly.
27793
27794 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27795
27796 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
27797 Reported by: Seth Goldberg.
27798
27799 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27800
27801 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27802 addition of dest.
27803 Reported by: Seth Goldberg.
27804
27805 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27806
27807 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27808 Reported by: Seth Goldberg.
27809
27810 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27811
27812 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27813 64-bit address as signed on MIPS.
27814
27815 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27816
27817 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27818 to the empty string.
27819
27820 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27821
27822 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27823
27824 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27825 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27826 * kern/misc.c (__enable_execute_stack): Disable on
27827 GRUB_MACHINE_EMU.
27828
27829 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27830
27831 Make grub-probe work with symbolic links under /dev/mapper as well
27832 as with real block devices. The Linux world seems to be (at best)
27833 in transition here, and GRUB shouldn't get caught in the middle.
27834
27835 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27836 /dev/mapper.
27837
27838 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27839
27840 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27841 input files (in which case exit zero).
27842
27843 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27844
27845 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27846 return NULL for various reasons even if it has a maximum-length
27847 buffer: for example, there might be a symlink loop, or the path
27848 might exceed PATH_MAX. If this happens, return NULL.
27849
27850 2010-05-27 Robert Millan <rmh@gnu.org>
27851
27852 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27853 partmap module to handle cross-partmap setups.
27854 Reported by Orestes Mas. Gràcies!
27855
27856 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27857
27858 * util/grub-mkrescue.in: Initialise override_dir rather than
27859 assuming that it's unset or empty in the environment.
27860
27861 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27862
27863 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27864 variable index into p_index to suppress a warning with -Wshadow.
27865
27866 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27867
27868 * INSTALL: Added flex >= 2.5.35 requirement.
27869
27870 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27871
27872 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27873
27874 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27875
27876 cmostest support.
27877
27878 * commands/i386/cmostest.c: New file.
27879 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27880 (cmostest_mod_SOURCES): New variable.
27881 (cmostest_mod_CFLAGS): Likewise.
27882 (cmostest_mod_LDFLAGS): Likewise.
27883 * conf/i386-pc.rmk: Likewise.
27884 * docs/grub.texi (Vendor power-on keys): New section.
27885 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27886 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27887 and GRUB_BUTTON_CMOS_ADDRESS.
27888 * util/grub.d/00_header.in: Handle powering-on by separate button.
27889
27890 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27891
27892 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27893 Removed drawing_scrollbar argument. All users updated
27894 Fixes #29792.
27895 Reported by Jo Shields
27896
27897 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27898
27899 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27900 buffer since gfxterm handles double repaint.
27901
27902 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27903
27904 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27905 * term/gfxterm.c (real_scroll): Likewise.
27906
27907 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27908
27909 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27910 before calling BIOS.
27911
27912 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27913
27914 * include/grub/i18n.h: Always enable grub_gettext.
27915
27916 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27917
27918 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27919 partition naming style.
27920
27921 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
27922
27923 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27924 not the first option.
27925
27926 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27927
27928 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27929
27930 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27931
27932 * util/misc.c: Move inclusion of <limits.h> to ...
27933 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27934
27935 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27936
27937 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27938 Fix merge error in NetBSD code.
27939 (find_partition_start) [__NetBSD__]: Likewise.
27940
27941 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27942
27943 Fix grub-mkrescue usage unit testing.
27944
27945 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27946
27947 2010-05-18 Christian Franke <franke@computer.org>
27948
27949 * util/grub.d/10_windows.in: Use path names instead of
27950 drive letters to prevent warning from Cygwin 1.7.
27951 Add drivemap command to menuentry if needed.
27952
27953 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27954
27955 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27956 gnumach and gnumach.gz.
27957
27958 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27959
27960 * include/grub/i18n.h (gettext): Inline instead of using #define.
27961 (grub_gettext): Likewise.
27962 (_): Likewise.
27963
27964 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27965
27966 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27967 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27968 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27969 (main): Add a slash after pkglibdirroot.
27970
27971 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27972
27973 * util/grub-install.in: Add missing "in" keyword.
27974
27975 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27976
27977 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27978 Reported by: Seth Goldberg.
27979
27980 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27981
27982 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27983
27984 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27985
27986 * configure.ac: Check for Linux device-mapper support.
27987
27988 * util/hostdisk.c (device_is_mapped): New function.
27989 (find_partition_start): New function, partly broken out from
27990 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27991 device-mapper support added.
27992 (linux_find_partition): Use find_partition_start.
27993 (convert_system_partition_to_system_disk): Add `st' argument.
27994 Support Linux /dev/mapper/* devices if device-mapper support is
27995 available; only DM-RAID devices are understood at present.
27996 (find_system_device): Add `st' argument. Pass it to
27997 convert_system_partition_to_system_disk.
27998 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27999 find_system_device and convert_system_partition_to_system_disk. Use
28000 find_partition_start.
28001
28002 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28003 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28004 * util/deviceiter.c [__linux__]: Define MINOR.
28005 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28006 * util/mkdevicemap.c (grub_putchar): New function.
28007 (grub_getkey): New function.
28008 (grub_refresh): New function.
28009 (main): Set debug=all if -v -v is used.
28010
28011 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28012
28013 Fix build with non-GNU libcs.
28014
28015 * util/misc.c (canonicalize_file_name): Move to ...
28016 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28017 grub_make_system_path_relative_to_its_root.
28018
28019 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28020
28021 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28022 we handle finding grub-mkimage. Default to finding grub-mkimage in
28023 ${bindir} with program_transform_name applied, and provide a
28024 --grub-mkimage option to override this.
28025
28026 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28027
28028 Remove grub-mkisofs.
28029
28030 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28031 (grub_mkisofs_SOURCES): Removed.
28032 (grub_mkisofs_CFLAGS): Removed.
28033 * util/mkisofs/defaults.h: Removed.
28034 * util/mkisofs/eltorito.c: Likewise.
28035 * util/mkisofs/exclude.h: Likewise.
28036 * util/mkisofs/hash.c: Likewise.
28037 * util/mkisofs/include/: Likewise.
28038 * util/mkisofs/include/fctldefs.h: Likewise.
28039 * util/mkisofs/include/mconfig.h: Likewise.
28040 * util/mkisofs/include/prototyp.h: Likewise.
28041 * util/mkisofs/include/statdefs.h: Likewise.
28042 * util/mkisofs/iso9660.h: Likewise.
28043 * util/mkisofs/joliet.c: Likewise.
28044 * util/mkisofs/match.c: Likewise.
28045 * util/mkisofs/match.h: Likewise.
28046 * util/mkisofs/mkisofs.c: Likewise.
28047 * util/mkisofs/mkisofs.h: Likewise.
28048 * util/mkisofs/msdos_partition.h: Likewise.
28049 * util/mkisofs/multi.c: Likewise.
28050 * util/mkisofs/name.c: Likewise.
28051 * util/mkisofs/rock.c: Likewise.
28052 * util/mkisofs/tree.c: Likewise.
28053 * util/mkisofs/write.c: Likewise.
28054
28055 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28056
28057 Unify grub-mkimage accross platforms.
28058
28059 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28060 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28061 (grub_mkelfimage_SOURCES): Removed.
28062 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28063 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28064 (bin_UTILITIES): Add grub-mkimage.
28065 (grub_mkimage_SOURCES): New variable.
28066 (kernel_img_HEADERS): Remove machine/kernel.h.
28067 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28068 (pkglib_PROGRAMS): Add kernel.img.
28069 (kernel_img_HEADERS): Add machine/kernel.h.
28070 (kernel_img_FORMAT): Removed.
28071 (bin_UTILITIES): Remove grub-mkimage.
28072 (grub_mkimage_SOURCES): Removed.
28073 (grub_mkimage_CFLAGS): Likewise.
28074 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28075 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28076 (pkglib_PROGRAMS): Add kernel.img.
28077 (bin_UTILITIES): Remove grub-mkimage.
28078 (grub_mkimage_SOURCES): Removed.
28079 (grub_mkimage_CFLAGS): Likewise.
28080 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28081 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28082 (pkglib_PROGRAMS): Add kernel.img.
28083 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28084 (pkglib_PROGRAMS): Add kernel.img.
28085 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28086 (grub_mkimage_SOURCES): Removed.
28087 (grub_mkimage_CFLAGS): Likewise.
28088 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28089 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28090 (pkglib_PROGRAMS): Add kernel.img.
28091 (bin_UTILITIES): Remove grub-mkimage.
28092 (grub_mkimage_SOURCES): Removed.
28093 (grub_mkimage_CFLAGS): Likewise.
28094 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28095 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28096 (grub_mkimage_SOURCES): Removed.
28097 (grub_mkimage_CFLAGS): Likewise.
28098 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28099 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28100 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28101 (grub_pe32_optional_header): ... this.
28102 (grub_pe64_optional_header): ... and this. All users updated.
28103 (GRUB_PE32_PE32_MAGIC): Split into ..
28104 (GRUB_PE32_PE32_MAGIC): .. this.
28105 (GRUB_PE32_PE64_MAGIC): .. and this.
28106 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28107 * include/grub/elf.h (PT_GNU_STACK): New definition.
28108 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28109 * include/grub/i386/efi/kernel.h: Likewise.
28110 * include/grub/i386/kernel.h: Likewise.
28111 * include/grub/i386/pc/kernel.h: Likewise.
28112 * include/grub/i386/qemu/boot.h: Likewise.
28113 * include/grub/mips/kernel.h: Likewise.
28114 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28115 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28116 * include/grub/powerpc/kernel.h: Likewise.
28117 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28118 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28119 * include/grub/sparc64/kernel.h: Likewise.
28120 * include/grub/x86_64/efi/kernel.h: Likewise.
28121 * include/grub/x86_64/kernel.h: Likewise.
28122 * include/grub/offsets.h: New file.
28123 * include/grub/kernel.h (grub_module_info): Split into ...
28124 (grub_module_info32): ... this.
28125 (grub_module_info64): ... and this.
28126 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28127 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28128 (grub_boot_blocklist): Moved from here ...
28129 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28130 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28131 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28132 * include/grub/types.h (grub_target_to_host16): Removed.
28133 (grub_target_to_host32): Likewise.
28134 (grub_target_to_host64): Likewise.
28135 (grub_host_to_target16): Likewise.
28136 (grub_host_to_target32): Likewise.
28137 (grub_host_to_target64): Likewise.
28138 (grub_host_to_target_addr): Likewise.
28139
28140 Support grub-mkrescue for efi, coreboot and qemu.
28141
28142 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28143 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28144 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28145 * util/grub-mkrawimage.c: Moved from here ...
28146 * util/grub-mkimage.c: ... here. All users updated.
28147 (ALIGN_ADDR): Use image_target.
28148 (TARGET_NO_FIELD): New const.
28149 (image_target_desc): New type.
28150 (image_targets): New array.
28151 (grub_target_to_host64): Use image_target.
28152 (grub_target_to_host32): Likewise.
28153 (grub_target_to_host16): Likewise.
28154 (grub_host_to_target64): Likewise.
28155 (grub_host_to_target32): Likewise.
28156 (grub_host_to_target16): Likewise.
28157 (grub_host_to_target_addr): Likewise.
28158 (generate_image): Handle multiimage.
28159 (main): Require -O parameter. All users updated.
28160 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28161 util/efi/grub-mkimage.c
28162 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28163 New option --rom-directory.
28164 Use xorriso.
28165 * util/i386/efi/grub-mkimage.c: Removed.
28166 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28167 (grub_target_to_host32): Likewise.
28168 (grub_target_to_host64): Likewise.
28169 (grub_host_to_target16): Likewise.
28170 (grub_host_to_target32): Likewise.
28171 (grub_host_to_target64): Likewise.
28172 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28173 (grub_target_to_host32): Likewise.
28174 (grub_target_to_host64): Likewise.
28175 (grub_host_to_target16): Likewise.
28176 (grub_host_to_target32): Likewise.
28177 (grub_host_to_target64): Likewise.
28178
28179 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28180
28181 Source tree is reorganized for emu build.
28182
28183 * include/grub/util/console.h: Move from here...
28184 * include/grub/emu/console.h: ...to here.
28185 * include/grub/util/getroot.h: Move from here...
28186 * include/grub/emu/getroot.h: ...to here.
28187 * include/grub/util/hostdisk.h: Move from here...
28188 * include/grub/emu/hostdisk.h: ...to here.
28189 * util/console.c: Move from here...
28190 * kern/emu/console.c: ...to here.
28191 * util/getroot.c: Move from here...
28192 * kern/emu/getroot.c: ...to here.
28193 * util/grub-emu.c: Move from here...
28194 * kern/emu/main.c: ...to here.
28195 * util/hostdisk.c: Move from here...
28196 * kern/emu/hostdisk.c: ...to here.
28197 * util/hostfs.c: Move from here...
28198 * kern/emu/hostfs.c: ...to here.
28199 * util/mm.c: Move from here...
28200 * kern/emu/mm.c: ...to here.
28201 * util/pci.c: Move from here...
28202 * bus/emu/pci.c: ...to here.
28203 * util/sdl.c: Move from here...
28204 * video/emu/sdl.c: ...to here.
28205 * util/time.c: Move from here...
28206 * kern/emu/time.c: ...to here.
28207 * util/usb.c: Move from here...
28208 * bus/usb/emu/usb.c: ...to here.
28209
28210 * include/grub/emu/misc.h: New header for grub-emu functions.
28211 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28212
28213 * conf/any-emu.rmk: Rule updates for above renames.
28214 * conf/common.rmk: Likewise.
28215 * conf/i386-pc.rmk: Likewise.
28216 * conf/i386-qemu.rmk: Likewise.
28217 * conf/mips.rmk: Likewise.
28218 * conf/sparc64-ieee1275.rmk: Likewise.
28219 * conf/x86-efi.rmk: Likewise.
28220
28221 * disk/lvm.h: #include updates for above renames.
28222 * util/grub-mkrelpath.c: Likewise.
28223 * util/grub-probe.c: Likewise.
28224 * util/i386/pc/grub-setup.c: Likewise.
28225 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28226 * kern/emu/console.c: Likewise.
28227 * kern/emu/getroot.c: Likewise.
28228 * kern/emu/hostdisk.c: Likewise.
28229 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28230
28231 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28232 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28233 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28234 * util/misc.c: Remove grub-emu functions.
28235
28236 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28237
28238 Fix gfxmenu crash.
28239 Reported by: Thorsten Grützmacher.
28240
28241 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28242 timeout hook.
28243 (circprog_set_property): Register and unregister timeout hook.
28244 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28245 (label_destroy): Free template. and unregister hook.
28246 (label_set_state): New function.
28247 (label_set_property): Handle templates and hooks.
28248 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28249 timeout hook.
28250 (progress_bar_set_property): Register and unregister timeout hook.
28251 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28252 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28253 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28254 (update_timeout_visit): Removed.
28255 (update_timeouts): New function.
28256 (redraw_timeouts): Likewise.
28257 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28258 (grub_gfxmenu_clear_timeout): Likewise.
28259 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28260 (grub_gfxmenu_timeout_notify): Likewise.
28261 (grub_gfxmenu_timeout_notifications): New external variable.
28262 (grub_gfxmenu_timeout_register): New function.
28263 (grub_gfxmenu_timeout_unregister): Likewise.
28264
28265 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28266
28267 Transform (broken) vga terminal into (working) vga video driver.
28268
28269 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28270 video/i386/pc/vga.c.
28271 * include/grub/video.h (grub_video_driver_id):
28272 Add GRUB_VIDEO_DRIVER_VGA.
28273 * term/i386/pc/vga.c: Renamed to ...
28274 * video/i386/pc/vga.c: ...this
28275 (DEBUG_VGA): Removed.
28276 (CHAR_WIDTH): Likewise.
28277 (CHAR_HEIGHT): Likewise.
28278 (TEXT_WIDTH): Likewise.
28279 (TEXT_HEIGHT): Likewise.
28280 (DEFAULT_FG_COLOR): Likewise.
28281 (DEFAULT_BG_COLOR): Likewise.
28282 (colored_char): Likewise.
28283 (xpos): Likewise.
28284 (ypos): Likewise.
28285 (cursor_state): Likewise.
28286 (fg_color): Likewise.
28287 (bg_color): Likewise.
28288 (text_buf): Likewise.
28289 (page): Likewise.
28290 (font): Likewise.
28291 (framebuffer): New variable.
28292 (set_read_map): Disabled.
28293 (setup): New variable.
28294 (is_target): Likewise.
28295 (grub_vga_mod_init): Likewise.
28296 (grub_vga_mod_fini): Likewise.
28297 (check_vga_mem): Likewise.
28298 (write_char): Likewise.
28299 (write_cursor): Likewise.
28300 (scroll_up): Likewise.
28301 (grub_vga_putchar): Likewise.
28302 (grub_vga_getcharwidth): Likewise.
28303 (grub_vga_getwh): Likewise.
28304 (grub_vga_getxy): Likewise.
28305 (grub_vga_gotoxy): Likewise.
28306 (grub_vga_cls): Likewise.
28307 (grub_vga_setcolorstate): Likewise.
28308 (grub_vga_setcursor): Likewise.
28309 (grub_video_vga_init): New function.
28310 (grub_video_vga_setup): Likewise.
28311 (grub_video_vga_fini): Likewise.
28312 (update_target): Likewise.
28313 (grub_video_vga_blit_bitmap): Likewise.
28314 (grub_video_vga_blit_render_target): Likewise.
28315 (grub_video_vga_set_active_render_target): Likewise.
28316 (grub_video_vga_get_active_render_target): Likewise.
28317 (grub_video_vga_swap_buffers): Likewise.
28318 (grub_video_vga_set_palette): Likewise.
28319 (grub_video_vga_get_info_and_fini): Likewise.
28320 (grub_vga_term): Removed.
28321 (grub_video_vga_adapter): New variable.
28322 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28323 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28324
28325 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28326
28327 * video/readers/jpeg.c: Indented.
28328
28329 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28330
28331 Various jpeg cleanups.
28332
28333 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28334 (grub_jpeg_decode_quan_table): Use sizeof.
28335 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28336
28337 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28338
28339 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28340 tables. Ignore non-last ac bit.
28341 (grub_jpeg_decode_quan_table): Likewise.
28342
28343 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28344
28345 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28346 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28347 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28348 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28349 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28350 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28351
28352 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28353
28354 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28355 error.
28356
28357 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28358
28359 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28360
28361 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28362
28363 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28364 condition.
28365
28366 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28367
28368 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28369 part.
28370
28371 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28372
28373 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28374 pointers.
28375
28376 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28377
28378 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28379
28380 2010-05-01 Christian Franke <franke@computer.org>
28381
28382 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28383 Remove broken Cygwin path conversion.
28384 * util/misc.c: [__CYGWIN__] Add include and define.
28385 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28386 for Cygwin 1.7.
28387 (make_system_path_relative_to_its_root): Simplify loop, replace early
28388 return by break.
28389 [__CYGWIN__] Add conversion to win32 path.
28390 Include "/" case in trailing slash removal.
28391
28392 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28393
28394 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28395 Reported by: Seth Goldberg
28396
28397 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28398
28399 * commands/help.c (grub_cmd_help): Fix a typo.
28400 Reported by: Seth Goldberg
28401
28402 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28403
28404 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28405 name and add N_.
28406 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28407 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28408 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28409 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28410 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28411 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28412 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28413 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28414 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28415 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28416 * normal/context.c (GRUB_MOD_INIT): Likewise.
28417 * normal/main.c (GRUB_MOD_INIT): Likewise.
28418 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28419 * term/serial.c (GRUB_MOD_INIT): Likewise.
28420 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28421
28422 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28423
28424 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28425 extra == 0.
28426
28427 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28428
28429 * commands/iorw.c: New file.
28430 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28431 (iorw_mod_SOURCES): New variable.
28432 (iorw_mod_CFLAGS): Likewise.
28433 (iorw_mod_LDFLAGS): Likewise.
28434
28435 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28436
28437 Hotkey support
28438
28439 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28440 * normal/main.c (hotkey_aliases): New variable.
28441 (grub_normal_add_menu_entry): Parse "--hotkey".
28442 * normal/menu_text.c (run_menu): Handle hotkeys.
28443
28444 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28445
28446 * kern/i386/coreboot/init.c (grub_machine_init): Call
28447 grub_machine_mmap_init on qemu.
28448
28449 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28450
28451 * boot/i386/qemu/boot.S: Add a missing .code16.
28452
28453 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28454
28455 Use LBIO on coreboot.
28456
28457 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28458 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28459 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28460 New declaration.
28461 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28462 grub_machine_mmap_init on coreboot.
28463 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28464 GRUB_LINUXBIOS_MEMBER_LINK.
28465 (grub_machine_mmap_iterate): Fix declaration.
28466 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28467
28468 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28469
28470 Split coreboot and multiboot ports.
28471
28472 * conf/i386-multiboot.rmk: New file.
28473 * configure.ac: Add multiboot port.
28474 * include/grub/i386/multiboot/boot.h: New file.
28475 * include/grub/i386/multiboot/console.h: Likewise.
28476 * include/grub/i386/multiboot/init.h: Likewise.
28477 * include/grub/i386/multiboot/kernel.h: Likewise.
28478 * include/grub/i386/multiboot/loader.h: Likewise.
28479 * include/grub/i386/multiboot/memory.h: Likewise.
28480 * include/grub/i386/multiboot/serial.h: Likewise.
28481 * include/grub/i386/multiboot/time.h: Likewise.
28482 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28483 * loader/multiboot.c: Likewise.
28484 * loader/multiboot_mbi2.c: Likewise.
28485 * util/grub-mkrescue.in: Generate multiboot rescue.
28486
28487 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28488
28489 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28490
28491 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28492
28493 Merge handling of input and output terminals. Fix a hang.
28494
28495 * commands/terminal.c (abstract_terminal): New struct.
28496 (handle_command): New function. Based on grub_cmd_terminal_input.
28497 (grub_cmd_terminal_input): Use handle_command.
28498 (grub_cmd_terminal_output): Use handle_command.
28499
28500 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28501
28502 Fix comment handling.
28503
28504 * tests/grub_script_comments.in: New testcase.
28505 * conf/tests.rmk: Rules for new testcase.
28506 * script/yylex.l: Updated flex rules.
28507
28508 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28509
28510 * docs/grub.texi (play): Document that zero pitches produce rests.
28511 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28512 if argc is 1.
28513
28514 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28515
28516 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28517 autogen issues.
28518
28519 2010-04-26 Christian Franke <franke@computer.org>
28520
28521 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28522 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28523 (grub_get_prefix): Remove function.
28524 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28525 make_system_path_relative_to_its_root ().
28526 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28527
28528 2010-04-24 Christian Franke <franke@computer.org>
28529
28530 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28531 (kernel_img_LDFLAGS): Remove -static-libgcc.
28532
28533 2010-04-24 Christian Franke <franke@computer.org>
28534
28535 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28536 and CHECK_END_SYMBOL if grub-emu is built.
28537 Unset TARGET_OBJ2ELF if grub-emu is built
28538 without module support.
28539
28540 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28541
28542 Nilfs2 support.
28543
28544 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28545 (grub_fstest_SOURCES): Likewise.
28546 (pkglib_MODULES): Add nilfs2.mod.
28547 (nilfs2_mod_SOURCES): New variable.
28548 (nilfs2_mod_CFLAGS): Likewise.
28549 (nilfs2_mod_LDFLAGS): Likewise.
28550 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28551 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28552 * fs/nilfs2.c: New file.
28553
28554 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28555
28556 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28557 is not supported.
28558
28559 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28560
28561 Add grub-mkconfig support for NetBSD.
28562
28563 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28564 * util/grub-mkconfig.in: export new NetBSD specific variables.
28565 * po/POTFILES-shell: added 10_netbsd.in.
28566 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28567
28568 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28569
28570 Fix emu build with grub-emu-pci and grub-emu-modules.
28571
28572 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28573 functions.
28574 * include/grub/libpciaccess.h: New file.
28575 * conf/any-emu.rmk: Update kernel headers for emu build.
28576
28577 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28578
28579 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28580
28581 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28582
28583 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28584
28585 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28586
28587 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28588 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28589 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28590 util/ieee1275/ofpath.c.
28591 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28592 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28593 * include/grub/sparc64/ieee1275/boot.h
28594 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28595 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28596 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28597 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28598 const char *.
28599 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28600 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28601 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28602 install.
28603
28604 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28605
28606 * util/grub-mkconfig.in: Corrected two == equality tests.
28607 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28608 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28609 expect a number appended to it.
28610 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28611 expects a number appended to it.
28612
28613 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28614
28615 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28616
28617 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28618
28619 * util/hostdisk.c (make_device_name): Change to new partition naming.
28620
28621 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28622
28623 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28624
28625 2010-04-17 Christian Franke <franke@computer.org>
28626
28627 * Makefile.in: Add missing localedir setting.
28628
28629 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28630
28631 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28632 mistake in r2156. Noticed by Anthony Fok.
28633
28634 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28635 @localedir@.
28636 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28637
28638 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28639
28640 Fix a spurious, uninitialized variable warning.
28641
28642 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28643 Initialize variable, shdr.
28644 (grub_freebsd_load_elfmodule): Likewise.
28645 (grub_freebsd_load_elf_meta): Likewise.
28646
28647 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28648
28649 Fix for escaped dollar in double quoted strings.
28650
28651 * script/yylex.l: Updated flex rules.
28652 * conf/tests.rmk: Rule for new testcase.
28653 * tests/grub_script_dollar.in: New testcase.
28654
28655 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28656 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28657
28658 Enclose all translated strings in grub.cfg in single quotes, and
28659 escape them appropriately (Ubuntu bug #552921).
28660
28661 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28662 * util/grub.d/10_hurd.in: Use it.
28663 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28664 * util/grub.d/10_linux.in (linux_entry): Likewise.
28665
28666 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28667
28668 Fix cygwin compilation.
28669
28670 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28671 * include/grub/misc.h (__register_frame_info)
28672 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28673 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28674 * kern/misc.c (__register_frame_info)
28675 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28676 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28677
28678 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28679
28680 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28681
28682 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28683
28684 Unify libgcc processing.
28685
28686 * Makefile.in (kernel_img_LDFLAGS): New variable.
28687 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28688 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28689 overwriting.
28690 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28691 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28692 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28693 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28694 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28695 overwriting. Remove -lgcc and -static-libgcc
28696 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28697 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28698 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28699 (kernel_img_LDFLAGS): Append instead of overwriting.
28700 Remove -lgcc and -static-libgcc
28701 * conf/sparc64-ieee1275.rmk: Likewise.
28702 * include/grub/powerpc/libgcc.h: Move to ...
28703 * include/grub/libgcc.h: .. this.
28704 * include/grub/libgcc.h: Don't export most of the function on x86.
28705 (__bswapsi2): New export.
28706 (__bswapdi2): Likewise.
28707 * include/grub/mips/libgcc.h: Removed.
28708 * include/grub/sparc64/libgcc.h: Likewise.
28709
28710 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28711
28712 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28713 disk_info_msg (conflicts with gettexting into languages with cases).
28714
28715 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28716
28717 Add grub-probe support for NetBSD.
28718
28719 * util/getroot.c (find_root_device): Convert block device to
28720 character device on NetBSD.
28721 * util/probe.c (probe): Require character device on NetBSD.
28722 * util/hostdisk.c: NetBSD specific headers.
28723 (configure_device_driver): new function to tune device driver
28724 parameters (currently only for NetBSD floppy driver).
28725 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28726 via disklabel ioctl).
28727 (open_device): call configure_device_driver on NetBSD.
28728 (convert_system_partition_to_system_disk): NetBSD specific code.
28729 (device_is_wholedisk): Likewise.
28730 (grub_util_biosdisk_get_grub_dev): Likewise.
28731 (make_device_name): Fixed a typo in bsd_part_str.
28732 * configure.ac: check for opendisk() and getrawpartition() on
28733 NetBSD and set LIBUTIL.
28734 * Makefile.in: add LIBUTIL to LIBS.
28735
28736 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28737
28738 Documentation fix.
28739
28740 * util/grub-script-check.c: Better help message.
28741
28742 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28743
28744 Fix FreeBSD build.
28745
28746 * configure.ac: Flex version check.
28747 * conf/common.rmk: Add -Wno-error to sh.mod.
28748 * script/yylex.l: Remove all #pragma.
28749
28750 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28751
28752 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28753 prototype.
28754 Reported by: Seth Goldberg.
28755
28756 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28757
28758 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28759 Rename "module" to "module2".
28760 Reported by: Seth Goldberg.
28761
28762 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28763
28764 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28765 EXPORT_FUNC.
28766 Reported by: Seth Goldberg.
28767
28768 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28769
28770 * lib/posix_wrap/locale.h: Add missing file.
28771 Reported by: Seth Goldberg.
28772
28773 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28774
28775 grub-emu module load support.
28776
28777 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28778 NO_DYNAMIC_MODULES switched to this.
28779 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28780 (CFLAGS): Likewise.
28781 * conf/any-emu.rmk: Generate symlist.
28782 (kernel_img_HEADERS): Add util/datetime.h.
28783 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28784 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28785 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28786 kern/$(target_cpu)/cache.S.
28787 * configure.ac (grub-emu-modules): New option.
28788 * genmk.rb: Handle multiple source lists.
28789 * include/grub/sdl.h: New file.
28790 * include/grub/libusb.h: Likewise.
28791 * util/grub-emu.c (main): Hanle (host) root.
28792 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
28793 GRUB_ERR_UNKNOWN_DEVICE.
28794 * util/misc.c: Move mm functions to ...
28795 * util/mm.c: ... here. All users updated.
28796
28797 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28798
28799 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28800 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28801 missing files.
28802 (maintainer-clean): Remove libgcrypt-grub.
28803
28804 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28805
28806 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28807
28808 2010-04-09 EFI Coder <eficoder@hotmail.com>
28809
28810 * normal/menu_text.c (print_message): Clean up the message and show
28811 the Fn information when on EFI
28812 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28813
28814 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28815
28816 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28817 All users updated.
28818 * normal/crypto.c (read_crypto_list): Likewise.
28819 * normal/dyncmd.c (read_command_list): Likewise.
28820 * normal/term.c (read_terminal_list): Likewise.
28821 * normal/main.c (read_lists): Use explicit prefix.
28822 (read_lists_hook): Use read_lists.
28823 (grub_normal_execute): Likewise.
28824
28825 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28828 Reported by: Thomas Schmitt.
28829 Add -no-emul-boot to grub-mkisofs parameters.
28830
28831 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28832
28833 * font/font.c: Indented.
28834
28835 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28836
28837 Elif support to GRUB script (by Deepak Vankadaru).
28838
28839 * tests/grub_script_if.in: New testcase.
28840 * conf/tests.rmk: Rule for new testcase.
28841 * script/parser.y: Grammar rules for elif.
28842
28843 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28844
28845 While and until loops support to GRUB script.
28846
28847 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28848 (grub_script_create_cmdwhile): New function prototype.
28849 (grub_script_execute_cmdwhile): New function prototype.
28850 * script/execute.c (grub_script_execute_cmdwhile): New function.
28851 * script/parser.y (command): New commands.
28852 (whilecmd): New grammar rule.
28853 (untilcmd): New grammar rule.
28854 * script/script.c (grub_script_create_cmdwhile): New function.
28855 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28856 function.
28857
28858 * tests/grub_script_while1.in: New testcase.
28859 * conf/tests.rmk: Rule for new testcase.
28860
28861 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28862
28863 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28864 as *.jpg.
28865
28866 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
28867
28868 GRUB_BACKGROUND support.
28869
28870 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28871 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28872
28873 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28874
28875 Load fonts and modules for gfxmenu in grub-mkconfig.
28876 Idea by: Mario Vazquez
28877
28878 * util/grub.d/00_header.in: Load pf2 and image modules.
28879
28880 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28881
28882 grub-mkconfig multiple terminal support.
28883
28884 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28885 * util/grub.d/00_header.in: Likewise.
28886
28887 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28888
28889 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28890 we use cd $(srcdir).
28891
28892 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
28893
28894 * util/grub.d/10_linux.in: Only use the first word of
28895 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28896 spaces in GRUB_DISTRIBUTOR.
28897 * util/grub.d/10_kfreebsd.in: Likewise.
28898 * util/grub.d/10_hurd.in: Likewise.
28899
28900 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28901
28902 Fix unit testing framework for Qemu 0.12.
28903
28904 * tests/util/grub-shell.in: Remove -serial stdio option.
28905
28906 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28907
28908 POSIX header file wrappers.
28909
28910 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28911 equivalents.
28912 * lib/posix_wrap/ctype.h: Likewise.
28913 * lib/posix_wrap/errno.h: Likewise.
28914 * lib/posix_wrap/langinfo.h: Likewise.
28915 * lib/posix_wrap/limits.h: Likewise.
28916 * lib/posix_wrap/localcharset.h: Likewise.
28917 * lib/posix_wrap/stdint.h: Likewise.
28918 * lib/posix_wrap/stdio.h: Likewise.
28919 * lib/posix_wrap/stdlib.h: Likewise.
28920 * lib/posix_wrap/string.h: Likewise.
28921 * lib/posix_wrap/sys/types.h: Likewise.
28922 * lib/posix_wrap/unistd.h: Likewise.
28923 * lib/posix_wrap/wchar.h: Likewise.
28924 * lib/posix_wrap/wctype.h: Likewise.
28925 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28926 (grub_script.yy.h): Likewise.
28927 * script/yylex.l: Remove POSIX emulation #defines.
28928 * Makefile.in (POSIX_CFLAGS): New variable.
28929 (GNULIB_UTIL_CFLAGS): Likewise.
28930
28931 Regexp support.
28932
28933 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28934 (regexp_mod_SOURCES): New variable.
28935 (regexp_mod_CFLAGS): Likewise.
28936 (regexp_mod_LDFLAGS): Likewise.
28937 * commands/regexp.c: New file.
28938 * gnulib/regcomp.c: New file. Imported from gnulib.
28939 * gnulib/regex.c: Likewise.
28940 * gnulib/regex_internal.c: Likewise.
28941 * gnulib/regex_internal.h: Likewise.
28942 * gnulib/regexec.c: Likewise.
28943 * gnulib/regex.h: Likewise.
28944
28945 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28946
28947 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28948 unsupported video mode types.
28949
28950 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28951
28952 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28953
28954 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28955
28956 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28957 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28958
28959 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28960
28961 Remove unused grub_vga_get_font.
28962
28963 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28964 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28965
28966 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28967
28968 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28969 * include/grub/misc.h: Likewise.
28970
28971 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28972
28973 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28974 for which failure is fatal.
28975
28976 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28977
28978 * util/grub-install.in: Use mkdir -p to create grub directory.
28979 * util/i386/efi/grub-install.in: Likewise.
28980 * util/ieee1275/grub-install.in: Likewise.
28981
28982 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28983
28984 * Makefile.in (LEX): new variable.
28985
28986 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28987
28988 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28989 `=' and added double quotes on operands of this equality test.
28990
28991 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28992
28993 * Makefile.in (uninstall): Remove a leftover debug echo.
28994 Reported by: Grégoire Sutre
28995
28996 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 MIPS multiboot2 support.
28999
29000 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29001 (multiboot2_mod_SOURCES): New variable.
29002 (multiboot2_mod_CFLAGS): Likewise.
29003 (multiboot2_mod_LDFLAGS): Likewise.
29004 (multiboot2_mod_ASFLAGS): Likewise.
29005 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29006 definition.
29007 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29008 (MULTIBOOT_MBI_REGISTER): Likewise.
29009 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29010 (MULTIBOOT_ELF32_MACHINE): Likewise.
29011 (MULTIBOOT_ELF64_MACHINE): Likewise.
29012 * include/grub/mips/multiboot.h: New file.
29013 * include/grub/video.h (grub_video_driver_id): New type
29014 GRUB_VIDEO_DRIVER_SM712.
29015 (grub_video_get_info_and_fini): Export.
29016 (grub_video_get_palette): Likewise.
29017 (grub_video_get_driver_id): Likewise.
29018 * include/multiboot2.h: Resynced with spec.
29019 * loader/i386/multiboot.c: Moved from here ...
29020 * loader/multiboot.c: ... here. All users updated.
29021 (grub_multiboot_boot): Use platform-specific macros.
29022 * loader/i386/multiboot_elfxx.c: Moved from here ...
29023 * loader/multiboot_elfxx.c: ... here. All users updated.
29024 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29025 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29026 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29027
29028 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29029
29030 Import gnulib argp module.
29031
29032 * gnulib/argp-ba.c: New file.
29033 * gnulib/argp-eexst.c: Likewise.
29034 * gnulib/argp-fmtstream.c: Likewise.
29035 * gnulib/argp-fmtstream.h: Likewise.
29036 * gnulib/argp-fs-xinl.c: Likewise.
29037 * gnulib/argp-help.c: Likewise.
29038 * gnulib/argp-namefrob.h: Likewise.
29039 * gnulib/argp-parse.c: Likewise.
29040 * gnulib/argp-pin.c: Likewise.
29041 * gnulib/argp-pv.c: Likewise.
29042 * gnulib/argp-pvh.c: Likewise.
29043 * gnulib/argp-version-etc.c: Likewise.
29044 * gnulib/argp-version-etc.h: Likewise.
29045 * gnulib/argp-xinl.c: Likewise.
29046 * gnulib/argp.h: Likewise.
29047
29048 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29049
29050 * kern/device.c (grub_device_iterate): Clear errors after failed
29051 opening device.
29052
29053 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29054
29055 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29056 returned by firmware.
29057
29058 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29059
29060 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29061 compilation on coreboot and qemu
29062
29063 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29064
29065 * include/multiboot2.h: Resync with spec.
29066
29067 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29068
29069 Multiboot2 tag support
29070
29071 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29072 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29073 Remove loader/multiboot_loader.c.
29074 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29075 (grub_multiboot2_real_boot): Likewise.
29076 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29077 (grub_get_multiboot_mmap_count): New proto.
29078 (grub_fill_multiboot_mmap): Likewise.
29079 (grub_multiboot_set_video_mode): Likewise.
29080 (grub_multiboot_set_console): Likewise.
29081 (grub_multiboot_load): Likewise.
29082 (grub_multiboot_load_elf): Likewise.
29083 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29084 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29085 * include/multiboot.h: Resynced with specification.
29086 * include/multiboot2.h: Resynced with specification.
29087 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29088 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29089 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29090 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29091 users updated.
29092 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29093 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29094 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29095 Removed.
29096 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29097 Moved from here...
29098 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29099 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29100 Moved from here...
29101 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29102 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29103 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29104 All users updated.
29105 * loader/i386/multiboot_mbi2.c: New file.
29106
29107 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29108
29109 Resync with gnulib.
29110
29111 * Makefile.in (GNULIB_CFLAGS): New variable.
29112 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29113 (grub_script_check_CFLAGS): New variable.
29114 * gnulib/alloca.h: Resync with gnulib.
29115 * gnulib/error.c: Likewise.
29116 * gnulib/error.h: Likewise.
29117 * gnulib/fnmatch.c: Likewise.
29118 * gnulib/fnmatch_loop.c: Likewise.
29119 * gnulib/getdelim.c: Likewise.
29120 * gnulib/getline.c: Likewise.
29121 * gnulib/getopt.c: Likewise.
29122 * gnulib/getopt1.c: Likewise.
29123 * gnulib/getopt_int.h: Likewise.
29124 * gnulib/gettext.h: Likewise.
29125 * gnulib/progname.c: Likewise.
29126 * gnulib/progname.h: Likewise.
29127
29128 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29129
29130 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29131 which is the case with --disabled-nls.
29132
29133 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29134 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29135 * util/misc.c: Likewise.
29136 * util/mkisofs/mkisofs.c: Likewise.
29137 * util/mkisofs/mkisofs.h: Likewise.
29138
29139 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29140
29141 Simplify Apple CC support.
29142
29143 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29144 Add 0 byte at the end not to have a symbol with empty target.
29145 * mmap/i386/pc/mmap_helper.S: Likewise.
29146 * genmk.rb: Ignore errors 2030 and 2050.
29147 * kern/i386/pc/startup.S: Use LOCAL when possible.
29148
29149 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29150
29151 Testcase and the fix for final semicolon on cmdline.
29152
29153 * tests/grub_script_final_semicolon.in: New testcase.
29154 * conf/tests.rmk: Rules for the new testcase.
29155 * script/parser.y: Grammar fix.
29156
29157 2010-03-26 BVK Chaitanya <bvk@localhost>
29158
29159 Blank lines testcase for GRUB script.
29160
29161 * tests/grub_script_blanklines.in: New testcase.
29162 * conf/tests.rmk: Rules for the new testcase.
29163
29164 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29165
29166 Don't use __FILE__.
29167
29168 * genmk.rb: Add -DGRUB_FILE to all C targets.
29169 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29170 * include/grub/list.h: Likewise.
29171 * include/grub/misc.h: Likewise.
29172 * include/grub/mm.h: Likewise.
29173 * include/grub/test.h: Likewise.
29174 * kern/mm.c: Likewise.
29175 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29176
29177 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29178
29179 Sunpc partitions support.
29180
29181 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29182 (grub_fstest_SOURCES): Likewise.
29183 (pkglib_MODULES): Add part_sunpc.mod.
29184 (part_sunpc_mod_SOURCES): New variable.
29185 (part_sunpc_mod_CFLAGS): Likewise.
29186 (part_sunpc_mod_LDFLAGS): Likewise.
29187 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29188 * partmap/sunpc.c: New file.
29189
29190 2010-03-26 BVK Chaitanya <bvk@localhost>
29191
29192 For loop support to GRUB script.
29193
29194 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29195 (grub_script_create_cmdfor): New function prototype.
29196 (grub_script_execute_cmdfor): New function prototype.
29197 * script/execute.c (grub_script_execute_cmdfor): New function.
29198 * script/parser.y (command): New for command.
29199 (forcmd): New grammar rule.
29200 * script/script.c (grub_script_create_cmdfor): New function.
29201 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29202 function.
29203 * tests/grub_script_for1.in: New testcase.
29204 * conf/tests.rmk: Rules for new testcase.
29205
29206 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29207
29208 Nested partitions
29209
29210 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29211 'partition' is NULL, grub_partition_get_start already does that.
29212 * commands/loadenv.c (check_blocklists): Likewise.
29213 (write_blocklists): Likewise.
29214 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29215 (grub_fstest_SOURCES): Likewise.
29216 (pkglib_MODULES): Add part_bsd.mod.
29217 (part_bsd_mod_SOURCES): New variable.
29218 (part_bsd_mod_CFLAGS): Likewise.
29219 (part_bsd_mod_LDFLAGS): Likewise.
29220 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29221 (grub_emu_SOURCES): Likewise.
29222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29223 * include/grub/bsdlabel.h: New file.
29224 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29225 'get_name'.
29226 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29227 (grub_partition_map_list): New variable.
29228 (grub_partition_map_register): Inline.
29229 (grub_partition_map_unregister): Likewise.
29230 (FOR_PARTITION_MAPS): New macro.
29231 (grub_partition_map_iterate): Removed.
29232 (grub_partition_get_start): Handle nested partitions.
29233 * include/grub/msdos_partition.h: Remove bsd-related entries.
29234 (grub_pc_partition): Remove.
29235 * kern/disk.c (grub_disk_close): Free partition data.
29236 (grub_disk_adjust_range): Handle nested partitions.
29237 * kern/partition.c (grub_partition_map_probe): New function.
29238 (grub_partition_probe): Parse name to number, handle subpartitions.
29239 (get_partmap): New function.
29240 (grub_partition_iterate): Handle subpartitions.
29241 (grub_partition_get_name): Likewise.
29242 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29243 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29244 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29245 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29246 Set 'number'.
29247 (acorn_partition_map_probe): Remove.
29248 (acorn_partition_map_get_name): Likewise.
29249 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29250 Set 'number'.
29251 Set 'index' to 0 since there can be only one partition entry per sector.
29252 (amiga_partition_map_probe): Remove.
29253 (amiga_partition_map_get_name): Likewise.
29254 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29255 Set 'number'.
29256 Set 'offset' and 'index' to real positions of partitions.
29257 (apple_partition_map_probe): Remove.
29258 (apple_partition_map_get_name): Likewise.
29259 * partmap/bsdlabel.c: New file.
29260 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29261 Set 'number'.
29262 Allocate 'data' so it can be correctly freed.
29263 Set 'index' to offset inside sector.
29264 (gpt_partition_map_probe): Remove.
29265 (gpt_partition_map_get_name): Likewise.
29266 * partmap/msdos.c (grub_partition_parse): Remove.
29267 (pc_partition_map_iterate): Don't force raw access.
29268 Set 'number'.
29269 Make 'ext_offset' a local variable.
29270 (pc_partition_map_probe): Remove.
29271 (pc_partition_map_get_name): Remove.
29272 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29273 Set 'number'.
29274 (sun_partition_map_probe): Remove.
29275 (sun_partition_map_get_name): Likewise.
29276 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29277 (grub_pcpart_type): Likewise.
29278 * util/hostdisk.c (open_device): Handle new numbering scheme.
29279 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29280 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29281 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29282 * util/grub-install.in: Insert all subpartition modules.
29283 * util/ieee1275/grub-install.in: Likewise.
29284
29285 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29286
29287 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29288 grammar.
29289
29290 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29291
29292 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29293
29294 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29295
29296 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29297 match where 'make install' puts them.
29298 * util/i386/efi/grub-install.in: Likewise.
29299
29300 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29301
29302 * .bzrignore: Add gentrigtables, grub-script-check,
29303 grub_script_check_init.c, grub_script_check_init.h, and
29304 trigtables.c.
29305
29306 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 * kern/parser.c: Indented.
29309
29310 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29311
29312 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29313
29314 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29315
29316 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29317 alpha_mask_size == 0 case.
29318
29319 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29320
29321 GRUB shell lexer and parser improvements.
29322
29323 * conf/any-emu.rmk: Build rule updates.
29324 * conf/common.rmk: Likewise.
29325 * conf/i386-coreboot.rmk: Likewise.
29326 * conf/i386-efi.rmk: Likewise.
29327 * conf/i386-ieee1275.rmk: Likewise.
29328 * conf/i386-pc.rmk: Likewise.
29329 * conf/powerpc-ieee1275.rmk: Likewise.
29330 * conf/x86_64-efi.rmk: Likewise.
29331
29332 * configure.ac: Configure check for flex.
29333
29334 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29335 types.
29336 (grub_lexer_param): Struct member updates.
29337 (grub_parser_param): Likewise.
29338 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29339 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29340 (grub_script_lexer_init): Prototype update.
29341 (grub_script_lexer_record_start): Likewise.
29342 (grub_script_lexer_record_stop): Likewise.
29343 (grub_script_lexer_yywrap): New function prototype.
29344 (grub_script_lexer_fini): Likewise.
29345 (grub_script_execute_argument_to_string): Removed by...
29346 (grub_script_execute_argument_to_argv): ...better version.
29347
29348 * script/execute.c (ROUND_UPTO): New macro.
29349 (grub_script_execute_cmdline): Out of memory fixes.
29350 (grub_script_execute_menuentry): Likewise.
29351 (grub_script_execute_argument_to_string): Removed. Update all
29352 users by...
29353 (grub_script_execute_argument_to_argv): ...better version.
29354 * script/function.c (grub_script_function_create): Use
29355 grub_script_execute_argument_to_argv instead of
29356 grub_script_execute_argument_to_string.
29357
29358 * script/lexer.c (check_varstate): Removed.
29359 (check_textstate): Removed.
29360 (grub_script_lexer_record_start): Likewise.
29361 (grub_script_lexer_record_stop): Likewise.
29362 (recordchar): Replaced with...
29363 (grub_script_lexer_record): ...new function.
29364 (nextchar): Removed.
29365 (grub_script_lexer_init): Rewritten.
29366 (grub_script_yylex): Rewritten.
29367 (append_newline): New function.
29368 (grub_script_lexer_yywrap): New function.
29369 (grub_script_lexer_fini): New function.
29370 (grub_script_yyerror): Sets error flag.
29371
29372 * script/yylex.l: New file.
29373 (grub_lexer_yyfree): Wrapper for flex yyffre.
29374 (grub_lexer_yyalloc): Likewise.
29375 (grub_lexer_yyrealloc): Likewise.
29376 * script/parser.y: Refactored.
29377
29378 * script/script.c (grub_script_arg_add): Out of memory fixes.
29379 (grub_script_add_arglist): Likewise.
29380 (grub_script_create_cmdline): Likewise.
29381 (grub_script_create_cmdmenu): Likewise.
29382 (grub_script_add_cmd): Likewise.
29383 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29384 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29385 unnecessary code.
29386
29387 * tests/grub_script_echo1.in: New testcase.
29388 * tests/grub_script_vars1.in: New testcase.
29389 * tests/grub_script_echo_keywords.in: New testcase.
29390
29391 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29392
29393 Remove some redundancy in build system.
29394
29395 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29396 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29397 (TARGET_LDFLAGS): Add -nostdlib.
29398 (TARGET_IMG_LDFLAGS): Likewise.
29399 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29400 anything since mmap isn't available.
29401 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29402 Add util/time.c.
29403 (pkglib_MODULES): Remove reboot.mod.
29404 (reboot_mod_SOURCES): Removed.
29405 (reboot_mod_CFLAGS): Likewise.
29406 (reboot_mod_LDFLAGS): Likewise.
29407 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29408 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29409 (DEFSYMFILES): Add kernel_syms.lst.
29410 (kernel_img_HEADERS): Add common headers.
29411 (symlist.c): New target.
29412 (kernel_syms.lst): Likewise.
29413 (pkglib_MODULES): Add memdisk.mod.
29414 (memdisk_mod_SOURCES): New variable.
29415 (memdisk_mod_CFLAGS): Likewise.
29416 (memdisk_mod_LDFLAGS): Likewise.
29417 (pkglib_MODULES): Add reboot.mod.
29418 (reboot_mod_SOURCES): New variable.
29419 (reboot_mod_CFLAGS): Likewise.
29420 (reboot_mod_LDFLAGS): Likewise.
29421 (pkglib_MODULES): Add date.mod.
29422 (date_mod_SOURCES): New variable.
29423 (date_mod_CFLAGS): Likewise.
29424 (date_mod_LDFLAGS): Likewise.
29425 (pkglib_MODULES): Add datehook.mod.
29426 (datehook_mod_SOURCES): New variable.
29427 (datehook_mod_CFLAGS): Likewise.
29428 (datehook_mod_LDFLAGS): Likewise.
29429 (pkglib_MODULES): Add lsmmap.mod.
29430 (lsmmap_mod_SOURCES): New variable.
29431 (lsmmap_mod_CFLAGS): Likewise.
29432 (lsmmap_mod_LDFLAGS): Likewise.
29433 (pkglib_MODULES): Add boot.mod.
29434 (boot_mod_SOURCES): New variable.
29435 (boot_mod_CFLAGS): Likewise.
29436 (boot_mod_LDFLAGS): Likewise.
29437 * conf/i386-coreboot.rmk: Removed redundant parts.
29438 * conf/i386-ieee1275.rmk: Likewise.
29439 * conf/i386-pc.rmk: Likewise.
29440 * conf/mips-yeeloong.rmk: Likewise.
29441 * conf/mips.rmk: Likewise.
29442 * conf/powerpc-ieee1275.rmk: Likewise.
29443 * conf/sparc64-ieee1275.rmk: Likewise.
29444 * conf/x86_64-efi.rmk: Likewise.
29445 * conf/i386-coreboot.rmk: Moved qemu parts ..
29446 * conf/i386-qemu.rmk: ... here
29447 * conf/i386-efi.rmk: Moved common parts to...
29448 * conf/x86-efi.rmk: ... here.
29449 * conf/i386.rmk: Added modules common to all x86 variants.
29450 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29451 * disk/memdisk.c: Remove grub/machine/kernel.h.
29452 * gensymlist.sh.in: Include symbol.h.
29453 * hook/datehook.c: Correct module name.
29454 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29455 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29456 * include/grub/i386/efi/serial.h: New file.
29457 * include/grub/x86_64/efi/serial.h: Likewise.
29458 * util/time.c: Likewise.
29459 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29460
29461 2010-03-14 Colin King <colin.king@ubuntu.com>
29462 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29463
29464 Shrink the pre-partition-table part of boot.img by eight bytes.
29465
29466 * boot/i386/pc/boot.S (ERR): New macro.
29467 (chs_mode): Use ERR.
29468 (geometry_error): Likewise.
29469 (hd_probe_error): Remove. This is only used once, so we wrwite
29470 it inline instead.
29471 (read_error): Instead of printing read_error_string, just set up
29472 %si and fall through to ...
29473 (error_message): ... this new function, also used by ERR.
29474
29475 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29476
29477 Speed up consecutive hostdisk operations on the same device.
29478
29479 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29480 (grub_util_biosdisk_open): Initialise disk->data.
29481 (struct linux_partition_cache): New structure.
29482 (linux_find_partition): Cache partition start positions; these are
29483 expensive to compute on every read and write.
29484 (open_device): Cache open file descriptor in disk->data, so that we
29485 don't have to reopen it and flush the buffer cache for consecutive
29486 operations on the same device.
29487 (grub_util_biosdisk_close): New function.
29488 (grub_util_biosdisk_dev): Set `close' member.
29489
29490 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29491 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29492 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29493 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29494 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29495
29496 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29497
29498 Compile parts of grub-emu as modules.
29499
29500 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29501 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29502 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29503 (all-local): Add $(GRUB_EMU).
29504 (install-local): Install $(GRUB_EMU).
29505 (uninstall): Uninstall $(GRUB_EMU).
29506 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29507 * kern/dl.c: Likewise.
29508 * commands/sleep.c: Not include machine/time.h.
29509 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29510 (COMMON_CFLAGS): Likewise.
29511 (sbin_UTILITIES): Remove grub-emu.
29512 (grub_emu_SOURCES): Removed.
29513 (kernel_img_RELOCATABLE): New variable.
29514 (pkglib_PROGRAMS): Add kernel.img.
29515 (kernel_img_SOURCES): New variable
29516 (kernel_img_CFLAGS): Likewise.
29517 (kernel_img_LDFLAGS): Likewise.
29518 (TARGET_NO_STRIP): Likewise.
29519 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29520 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29521 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29522 (grub-emu): New target.
29523 (GRUB_EMU): New variable.
29524 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29525 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29526 * loader/xnu.c: Likewise.
29527 * include/grub/pci.h: Likewise.
29528 * genemuinit.sh: New file.
29529 * genemuinitheader.sh: Likewise.
29530 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29531 Support TARGET_NO_DYNAMIC_MODULES.
29532 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29533 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29534 * disk/loopback.c: Likewise.
29535 * font/font_cmd.c: Likewise.
29536 * partmap/acorn.c: Likewise.
29537 * partmap/amiga.c: Likewise.
29538 * partmap/apple.c: Likewise.
29539 * partmap/gpt.c: Likewise.
29540 * partmap/msdos.c: Likewise.
29541 * partmap/sun.c: Likewise.
29542 * parttool/msdospart.c: Likewise.
29543 * term/gfxterm.c: Likewise.
29544 * video/bitmap.c: Likewise.
29545 * video/readers/jpeg.c: Likewise.
29546 * video/readers/png.c: Likewise.
29547 * video/readers/tga.c: Likewise.
29548 * video/video.c: Likewise.
29549 * util/grub-emu.c (read_command_list): Removed.
29550 (main): Don't call util_init_nls.
29551 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29552 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29553
29554 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29555
29556 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29557 date.mod, datehook.mod.
29558 (datetime_mod_SOURCES): New variable.
29559 (datetime_mod_CFLAGS): Likewise.
29560 (datetime_mod_LDFLAGS): Likewise.
29561 (date_mod_SOURCES): Likewise.
29562 (date_mod_CFLAGS): Likewise.
29563 (date_mod_LDFLAGS): Likewise.
29564 (datehook_mod_SOURCES): Likewise.
29565 (datehook_mod_CFLAGS): Likewise.
29566 (datehook_mod_LDFLAGS): Likewise.
29567 * conf/sparc64-ieee1275.rmk: Likewise.
29568 * lib/ieee1275/datetime.c: New file.
29569
29570 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29571
29572 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29573 (ieee1275_fb_mod_SOURCES): New variable.
29574 (ieee1275_fb_mod_CFLAGS): Likewise.
29575 (ieee1275_fb_mod_LDFLAGS): Likewise.
29576 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29577 New proto.
29578 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29579 (HEAP_MAX_ADDR): Likewise.
29580 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29581 type.
29582 Correct stop condition.
29583 (grub_ieee1275_devices_iterate): New function.
29584 * video/ieee1275.c: New file.
29585
29586 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29587
29588 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29589
29590 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29591 as scratch.
29592 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29593 SCRATCH_PAD_DISKBOOT as scratch.
29594 (bootit): Pass Openfirmware pointer in %o4.
29595 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29596 of 0x200000.
29597 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29598 with util/grub-mkrawimage.c.
29599 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29600 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29601 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29602 (grub_aout_load) [GRUB_UTIL]: Likewise.
29603 * include/grub/kernel.h (grub_modules_get_end): New proto.
29604 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29605 (SCRATCH_PAD_BOOT): New definition.
29606 (SCRATCH_PAD_DISKBOOT): Likewise.
29607 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29608 * include/grub/sparc64/ieee1275/ieee1275.h
29609 (grub_ieee1275_original_stack): New variable
29610 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29611 New definition
29612 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29613 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29614 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29615 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29616 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29617 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29618 (grub_platform_image_format_t): New type.
29619 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29620 * kern/main.c (grub_modules_get_end)
29621 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29622 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29623 (codestart): Switch stacks.
29624 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29625 variable.
29626 (grub_heap_init): Use grub_modules_get_end.
29627 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29628 stack.
29629 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29630 (main): Likewise.
29631 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29632
29633 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29634
29635 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29636
29637 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29638
29639 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29640 bug #559005).
29641
29642 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29643
29644 * genmoddep.awk: Output all missing symbols and not only first.
29645
29646 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29647
29648 * NEWS: Put the date of 1.98 release.
29649
29650 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29651
29652 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29653 ft2build.h.
29654
29655 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29656
29657 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29658 completition in the middle of string.
29659
29660 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29661
29662 * util/grub-mkrescue.in: Use mktemp with explicit template.
29663
29664 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29665
29666 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29667
29668 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29669
29670 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29671 right pointer.
29672
29673 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29674
29675 Fix FreeBSD compilation.
29676
29677 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29678 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29679
29680 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29681
29682 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29683
29684 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29685
29686 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29687
29688 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29689
29690 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29691
29692 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29693
29694 Support relative image path in theme file.
29695
29696 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29697 (image_set_property): Handle theme_dir and relative path.
29698
29699 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29700
29701 * configure.ac: Alias amd64 to x86_64.
29702
29703 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29704
29705 * NEWS: mention multiboot on EFI.
29706
29707 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29708
29709 * kern/main.c (grub_load_modules): Handle errors from init functions of
29710 embeded modules.
29711
29712 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29713
29714 * normal/autofs.c (autoload_fs_module): Handle errors.
29715
29716 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29717
29718 Disable linux.mod on qemu-mips since it's not functional and leads
29719 to compilation failure.
29720
29721 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29722 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29723 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29724 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29725 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29726 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29727 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29728 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29729 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29730 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29731 Reported by: BVK Chaitanya
29732
29733 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29734
29735 * INSTALL: Add gettext as a dependency and add qemu to a new section
29736 "Prerequisites for make-check".
29737
29738 2010-03-04 Christian Franke <franke@computer.org>
29739
29740 * util/grub-pe2elf.c: Add missing include "progname.h".
29741
29742 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29743
29744 * normal/crypto.c (read_crypto_list): Fix a typo.
29745 Reported by: Seth Goldberg.
29746
29747 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29748
29749 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29750 Reported by: Seth Goldberg.
29751
29752 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29753
29754 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29755 ascii.bitmaps.
29756
29757 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29758
29759 * genmk.rb: Remove terminal*.lst in make clean.
29760 Reported by: Seth Goldberg.
29761
29762 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29763
29764 * util/i386/efi/grub-install.in: Copy gettext files.
29765
29766 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29767
29768 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29769
29770 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29771
29772 Wait for user entry basing on presence of output rather than on errors.
29773
29774 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29775 (grub_install_newline_hook): Likewise.
29776 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29777 * normal/menu.c (show_menu): Check line_counter to determine presence
29778 of output.
29779 * normal/term.c (grub_normal_line_counter): New variable.
29780 (grub_normal_get_line_counter): New function.
29781 (grub_install_newline_hook): Likewise.
29782
29783 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29784
29785 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29786
29787 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29788
29789 * configure.ac: Update version to 1.98.
29790
29791 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
29792
29793 * util/grub.d/10_linux.in (linux_entry): Don't default to
29794 gfxpayload=keep if Linux doesn't support video handover.
29795
29796 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
29797
29798 Don't compile video modules on yeeloong since video subsystem is part
29799 of kernel.
29800
29801 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29802 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29803 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29804 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29805 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29806 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29807 * include/grub/bitmap_scale.h: Likewise.
29808 * include/grub/bufio.h: Likewise.
29809 * include/grub/font.h: Likewise.
29810 * include/grub/gfxterm.h: Likewise.
29811 * include/grub/video.h: Likewise.
29812 * include/grub/vbe.h: Don't include video_fb.h.
29813 * video/i386/pc/vbe.c: Include video_fb.h.
29814 * commands/i386/pc/vbetest.c: Include video.h.
29815
29816 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29817
29818 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29819 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29820 default entry if GRUB_SAVEDEFAULT=true. This allows using
29821 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29822 saving a new default on every boot.
29823
29824 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29825
29826 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29827 * normal/term.c (read_terminal_list): Likewise.
29828 * normal/main.c (grub_normal_init_page): Likewise.
29829 (grub_normal_read_line_real): Likewise.
29830
29831 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29832
29833 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29834 memory leak.
29835 Reported by: Seth Goldberg.
29836
29837 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29838
29839 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29840 duplicate declaration of `start'.
29841
29842 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29843
29844 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29845 filename.
29846 Reported by: Georgy Buranov
29847
29848 2010-02-20 Carles Pina i Estany <carles@pina.cat>
29849
29850 * util/grub-mkrawimage.c (usage): Change string formatting to
29851 improve gettext.
29852
29853 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29854
29855 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29856 backspace keys.
29857
29858 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29859
29860 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29861 Reported by: Michael Suchanek.
29862
29863 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
29864
29865 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29866 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29867
29868 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29869
29870 Remove any reference to non-free fonts.
29871
29872 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29873 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29874 uses non-free components.
29875 * font/font.c (grub_font_get_name): Remove example name.
29876 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29877 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29878 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29879 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29880
29881 2010-02-16 Georgy Buranov <gburanov@gmail.com>
29882
29883 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29884
29885 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29888 Double divisor.
29889 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29890 features.
29891 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29892
29893 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29894
29895 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29896
29897 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29898
29899 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29900 * docs/grub.texi (Command-line and menu entry commands): Document play
29901 command.
29902
29903 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29904
29905 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29906 parse arguments as inline tempo and notes. Move code for playing notes
29907 to...
29908 (play): ... new function.
29909
29910 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29911
29912 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29913 grub_uint16_t instead of short.
29914 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29915 disk from little endian to cpu endianness.
29916
29917 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29918
29919 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29920 GRUB_TICKS_PER_SECOND instead of 120.
29921
29922 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29923
29924 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29925 escape sequence after \e.
29926
29927 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29928
29929 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29930 non-ASCII characters.
29931
29932 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29933
29934 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29935 set root in single quotes to prevent \, from being unescaped.
29936
29937 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29938
29939 Prevent unknown commands from stopping menuentry execution.
29940
29941 * script/execute.c (grub_script_execute_cmdline): Print error after
29942 unknown command.
29943
29944 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29945
29946 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29947 Reported by: Pavel Pisa.
29948
29949 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29950
29951 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29952
29953 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29954
29955 Merge grub_ieee1275_map_physical into grub_map and rename to
29956 grub_ieee1275_map
29957
29958 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29959 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29960 Remove.
29961 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29962 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29963 necessary.
29964 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29965
29966 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29967
29968 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29969 opening and not after.
29970
29971 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29972
29973 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29974 constants.
29975
29976 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29977
29978 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29979 (alloc_phys): Use ALIGN_UP instead of align_addr.
29980
29981 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29982
29983 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29984
29985 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29986
29987 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29988
29989 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29990
29991 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29992 verbose dprintf.
29993
29994 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29995
29996 Fix over-4GiB seek on sparc64.
29997
29998 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29999 Replace pos_i and pos_lo with pos. All users updated.
30000 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30001 New constant.
30002 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30003 Likewise.
30004 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30005 and pos_lo.
30006
30007 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30008
30009 * util/grub-mkrawimage.c (main): Call set_program_name.
30010
30011 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30012
30013 Properly align 64-bit targets.
30014
30015 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30016 (generate_image): Use ALIGN_ADDR.
30017
30018 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30019
30020 Properly create cross-endian images.
30021
30022 * include/grub/types.h (grub_host_to_target_addr): New macro
30023 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30024
30025 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30026
30027 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30028
30029 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30030
30031 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30032
30033 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30034 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30035 (grub_linux_boot): Divide by 64K when on VESA.
30036
30037 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30038
30039 Support GRUB_GFXPAYLOAD_LINUX.
30040
30041 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30042 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30043
30044 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30045
30046 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30047 to show messages instead of discarding them.
30048 Process errors after executing command and not before. Keep old method
30049 too as precaution.
30050
30051 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30052
30053 * configure.ac: Check for ft2build.h.
30054
30055 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30056
30057 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30058
30059 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30060
30061 * genkernsyms.sh.in: Use TARGET_CC.
30062
30063 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30064
30065 * NEWS: Update.
30066
30067 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30068
30069 * include/grub/multiboot2.h: Remove leftover file.
30070 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30071 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30072
30073 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30074
30075 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30076
30077 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30078
30079 Fix warnings in grub-emu when compiling with maximum warning options.
30080
30081 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30082 (grub_arch_modules_addr): Return 0 and not NULL.
30083 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30084 (xstrdup): Use newstr instead of dup.
30085 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30086 of disk to dsk to avoid shadowing.
30087 (find_free_slot): Fix prototype.
30088 * util/getroot.c (grub_util_is_dmraid): Make static.
30089 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30090 Add missing prototype.
30091 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30092
30093 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30094
30095 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30096 appropriately.
30097
30098 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30099
30100 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30101 code out.
30102
30103 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30104
30105 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30106 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30107 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30108 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30109 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30110 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30111
30112 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 * include/grub/err.h (grub_err_printf): Don't export.
30115
30116 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30117
30118 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30119
30120 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30121
30122 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30123 * kern/misc.c (grub_gettext_dummy): Make static.
30124
30125 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30128 by non-valid ones.
30129 * kern/term.c (grub_putchar): Likewise.
30130
30131 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30132
30133 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30134 buggy hook call and memory leak.
30135
30136 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30137
30138 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30139
30140 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30141
30142 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30143
30144 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30145
30146 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30147 modevar.
30148 Return grub_errno on allocation error.
30149
30150 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30151
30152 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30153
30154 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30155
30156 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30157 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30158
30159 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30160
30161 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30162 non-pxe disk.
30163 (grub_pxefs_open): Likewise.
30164
30165 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30166
30167 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30168 * util/grub.d/10_kfreebsd.in: Likewise.
30169 * util/grub.d/10_linux.in: Likewise.
30170
30171 2010-02-06 Colin D Bennett <colin@gibibit.com>
30172
30173 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30174 (gfxmenu_mod_SOURCES): New variable.
30175 (gfxmenu_mod_CFLAGS): Likewise.
30176 (gfxmenu_mod_LDFLAGS): Likewise.
30177 * include/grub/term.h (grub_term_set_current_output): Declare
30178 argument as const.
30179 * docs/gfxmenu-theme-example.txt: New file.
30180 * gfxmenu/gfxmenu.c: Likewise.
30181 * gfxmenu/gui_box.c: Likewise.
30182 * gfxmenu/gui_canvas.c: Likewise.
30183 * gfxmenu/gui_circular_progress.c: Likewise.
30184 * gfxmenu/gui_image.c: Likewise.
30185 * gfxmenu/gui_label.c: Likewise.
30186 * gfxmenu/gui_list.c: Likewise.
30187 * gfxmenu/gui_progress_bar.c: Likewise.
30188 * gfxmenu/gui_string_util.c: Likewise.
30189 * gfxmenu/gui_util.c: Likewise.
30190 * gfxmenu/icon_manager.c: Likewise.
30191 * gfxmenu/model.c: Likewise.
30192 * gfxmenu/named_colors.c: Likewise.
30193 * gfxmenu/theme_loader.c: Likewise.
30194 * gfxmenu/view.c: Likewise.
30195 * gfxmenu/widget-box.c: Likewise.
30196 * include/grub/gfxmenu_model.h: Likewise.
30197 * include/grub/gfxmenu_view.h: Likewise.
30198 * include/grub/gfxwidgets.h: Likewise.
30199 * include/grub/gui.h: Likewise.
30200 * include/grub/gui_string_util.h: Likewise.
30201 * include/grub/icon_manager.h: Likewise.
30202
30203 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30204
30205 Agglomerate scrolling in gfxterm.
30206
30207 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30208 (grub_virtual_screen_setup): Initialise 'total_screen'.
30209 (write_char): Split to ...
30210 (paint_char): ... this ...
30211 (write_char): ... and this.
30212 (paint_char): Handle delayed scrolling.
30213 (draw_cursor): Likewise.
30214 (scroll_up): Split to ...
30215 (real_scroll): ... this ...
30216 (scroll_up): ... and this.
30217 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30218 characters.
30219 (grub_gfxterm_refresh): Call real_scroll.
30220
30221 2010-02-06 Colin D Bennett <colin@gibibit.com>
30222
30223 * include/grub/misc.h (grub_iscntrl): New inline function.
30224 (grub_isalnum): Likewise.
30225 (grub_strtol): Likewise.
30226
30227 2010-02-06 Colin D Bennett <colin@gibibit.com>
30228
30229 * normal/menu_text.c (get_entry_number): Move from here ...
30230 * normal/menu.c (get_entry_number): ... moved here.
30231 * include/grub/menu.h (grub_menu_get_default_entry_index):
30232 New prototype.
30233 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30234 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30235 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30236 (grub_menu_viewer_should_return): Likewise.
30237 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30238 * normal/menu_text.c (run_menu): Enable menu switching.
30239 * normal/menu_viewer.c (should_return): New variable.
30240 (menu_viewer_changed): Likewise.
30241 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30242 (grub_menu_viewer_should_return): New function.
30243 (menuviewer_write_hook): Likewise.
30244 (grub_menu_viewer_init): Likewise.
30245
30246 2010-02-06 Colin D Bennet <colin@gibibit.com>
30247 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30248
30249 Support for gfxterm in a window.
30250
30251 * include/grub/gfxterm.h: New file.
30252 * include/grub/video.h (struct grub_video_rect): New declaration.
30253 (grub_video_rect_t): Likewise.
30254 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30255 (refcount): New variable.
30256 (render_target): Likewise.
30257 (window): Likewise.
30258 (repaint_callback): Likewise.
30259 (grub_virtual_screen_setup): Use 'render_target'.
30260 (init_window): New function.
30261 (grub_gfxterm_init_window): Likewise.
30262 (grub_gfxterm_init): Check reference counter.
30263 Use init_window.
30264 (destroy_window): New function.
30265 (grub_gfxterm_destroy_window): Likewise.
30266 (grub_gfxterm_fini): Check reference counter.
30267 Use destroy_window.
30268 (redraw_screen_rect): Restore viewport.
30269 Use 'render_target' and 'window'.
30270 Call 'repaint_callback'.
30271 (write_char): Use 'render_target'.
30272 (draw_cursor): Likewise.
30273 (scroll_up): Restore viewport.
30274 Use 'render_target' and 'window'.
30275 Call 'repaint_callback'.
30276 (grub_gfxterm_cls): Likewise.
30277 (grub_gfxterm_refresh): Use 'window'.
30278 (grub_gfxterm_set_repaint_callback): New function.
30279 (grub_gfxterm_background_image_cmd): Use 'window'.
30280 (grub_gfxterm_get_term): New function.
30281 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30282
30283 2010-02-06 Colin D Bennett <colin@gibibit.com>
30284
30285 Bitmap scaling support.
30286
30287 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30288 (bitmap_scale_mod_SOURCES): New variable.
30289 (bitmap_scale_mod_CFLAGS): Likewise.
30290 (bitmap_scale_mod_LDFLAGS): Likewise.
30291 * include/grub/bitmap_scale.h: New file.
30292 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30293 (background_image_cmd_options): New variable.
30294 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30295 (cmd): Rename and change type to ...
30296 (background_image_cmd_handle): ... this. All users updated.
30297 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30298 * video/bitmap_scale.c: New file.
30299
30300 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30301
30302 SDL support.
30303
30304 * Makefile.in (LIBSDL): New variable.
30305 (enable_grub_emu_sdl): Likewise.
30306 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30307 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30308 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30309 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30310 * util/sdl.c: New file.
30311
30312 2010-02-06 Colin D Bennett <colin@gibibit.com>
30313 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30314
30315 Double buffering support.
30316
30317 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30318 * include/grub/video.h: Update comment.
30319 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30320 New type.
30321 (grub_video_fb_doublebuf_blit_init): New prototype.
30322 * term/gfxterm.c (scroll_up): Support double buffering.
30323 (grub_gfxterm_refresh): Likewise.
30324 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30325 (grub_video_fb_doublebuf_blit_init): Likewise.
30326 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30327 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30328 'displayed_page', 'render_page' and 'update_screen'.
30329 (grub_video_vbe_fini): Free offscreen buffer.
30330 (doublebuf_pageflipping_commit): New function.
30331 (doublebuf_pageflipping_update_screen): Likewise.
30332 (doublebuf_pageflipping_init): Likewise.
30333 (double_buffering_init): Likewise.
30334 (grub_video_vbe_setup): Enable doublebuffering.
30335 (grub_video_vbe_swap_buffers): Implement.
30336 (grub_video_vbe_set_active_render_target): Handle double buffering.
30337 (grub_video_vbe_get_active_render_target): Likewise.
30338 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30339 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30340 (grub_video_vbe_enable_double_buffering): Likewise.
30341 (grub_video_vbe_swap_buffers): Use update_screen.
30342 (grub_video_set_mode): Use double buffering.
30343
30344 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30345
30346 * maintainance/gentrigtables.py: Remove.
30347 * lib/trig.c: Likewise.
30348
30349 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30350
30351 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30352 `trigtables.c'.
30353 (trigtables.c): New rule.
30354 (gentrigtables): Likewise.
30355 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30356
30357 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30358
30359 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30360 integer constants.
30361
30362 2010-02-06 Colin D Bennet <colin@gibibit.com>
30363
30364 Trigonometry support.
30365
30366 * include/grub/trig.h: New file.
30367 * lib/trig.c: Likewise.
30368 * maintainance/gentrigtables.py: Likewise.
30369 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30370 (trig_mod_SOURCES): New variable.
30371 (trig_mod_CFLAGS): Likewise.
30372 (trig_mod_LDFLAGS): Likewise.
30373
30374 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30375
30376 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30377 disk devices.
30378
30379 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30380
30381 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30382 error.
30383
30384 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30385
30386 * util/hostdisk.c (open_device): Don't use partition device when reading
30387 before the partition.
30388 (grub_util_biosdisk_read): Don't read from partition and before the
30389 partition in single operation.
30390 (grub_util_biosdisk_write): Don't write to partition and before the
30391 partition in single operation.
30392
30393 2010-02-03 Torsten Landschoff <torsten@debian.org>
30394
30395 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30396 last sectors.
30397
30398 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30399
30400 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30401 CDROM reads.
30402 (grub_biosdisk_write): Refuse to write to CDROM.
30403
30404 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30407
30408 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30409
30410 * font/font.c (find_glyph): Check that bmp_idx is available before
30411 using it.
30412 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30413 with (font == NULL).
30414
30415 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30416
30417 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30418
30419 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30420
30421 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30422 * util/grub-script-check.c (getline): Fix empty lines case.
30423
30424 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30425
30426 * Makefile.in (check): Exit with fail status when one of the tests
30427 fails.
30428 * tests/example_functional_test.c (example_test): Fix reversed assert.
30429 * tests/example_unit_test.c (example_test): Likewise.
30430
30431 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30432
30433 * util/grub.d/10_linux.in: This script does not use any of the
30434 contents of gettext.sh, only the external command `gettext', so stop
30435 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30436 the same prefix as GRUB.)
30437 * util/grub.d/10_kfreebsd.in: Likewise.
30438
30439 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30440
30441 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30442 of the line.
30443
30444 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30447 last sectors.
30448
30449 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30450
30451 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30452 having a 4KiB and not 32KiB buffer size.
30453
30454 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30455
30456 * util/hostfs.c: Include `<errno.h>'.
30457 (grub_hostfs_read): Handle errors from fseeko() and fread().
30458
30459 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30460
30461 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30462 loop when using read hooks on files whose size isn't sector-aligned.
30463
30464 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30465
30466 Remove unused parameter.
30467
30468 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30469 (grub_iso9660_open): Remove initialization of `data->length'.
30470
30471 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30472
30473 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30474 memleak conditions.
30475
30476 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30477
30478 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30479 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30480
30481 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30482
30483 * util/bin2h.c (usage): Fix warning (space after backslash).
30484
30485 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30486
30487 * font/font.c: Include `grub/fontformat.h.
30488 Remove font file format constants.
30489 (grub_font_load): Use the new macros.
30490 * include/grub/fontformat.h: New file.
30491 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30492 (write_font_pf2): Use the new macros.
30493
30494 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30495
30496 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30497 does.
30498
30499 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30500
30501 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30502
30503 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30504 (_start): Macroify `0x7F'.
30505
30506 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30507 (make_install_device): Use "(pxe)" as fallback prefix when booting
30508 via PXE.
30509
30510 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30511
30512 * configure.ac: Reset LIBS after check for libgcc symbols.
30513
30514 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30515
30516 * util/hostdisk.c (open_device): Add trailing newline to debug
30517 message.
30518
30519 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30520
30521 * configure.ac: Check for `limits.h'.
30522 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30523
30524 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30525
30526 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30527 capitalize error strings.
30528
30529 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30530
30531 * util/grub.d/10_hurd.in: Add a recovery mode.
30532
30533 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30534
30535 * configure.ac: Check for libgcc symbols with -nostdlib.
30536
30537 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30538
30539 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30540
30541 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30542
30543 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30544 stack since heap may be unavailable at that point.
30545 (grub_ofconsole_gotoxy): Likewise.
30546
30547 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30548
30549 * configure.ac: Check for _restgpr_14_x.
30550 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30551 and _savegpr_* prototypes.
30552
30553 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30554
30555 Use generic grub_reboot() for i386-efi.
30556
30557 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30558 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30559 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30560
30561 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30562
30563 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30564 presence of "prefix" variable as it breaks when normal.mod is
30565 embedded.
30566
30567 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30568
30569 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30570 stack since heap is unavailable at that point.
30571
30572 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30573
30574 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30575 (grub_freebsd_bootinfo): Rewritten.
30576 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30577
30578 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30581
30582 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30583
30584 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30585 domain now.
30586
30587 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30588
30589 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30590 around for handling "/" to the correct fix. Fix a memory leak. Use
30591 xstrdup instead of strdup.
30592
30593 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30594
30595 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30596
30597 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30598
30599 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30600
30601 * font/font.c (struct grub_font): New member 'bmp_idx'.
30602 (font_init): Initialise 'bmp_idx'.
30603 (load_font_index): Fill 'bmp_idx'.
30604 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30605
30606 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30607
30608 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30609 unnecessary calls.
30610
30611 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30612
30613 Move context handling out of the kernel.
30614
30615 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30616 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30617 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30618 * conf/i386-efi.rmk: Likewise.
30619 * conf/i386-ieee1275.rmk: Likewise.
30620 * conf/i386-pc.rmk: Likewise.
30621 * conf/powerpc-ieee1275.rmk: Likewise.
30622 * conf/sparc64-ieee1275.rmk: Likewise.
30623 * conf/x86_64-efi.rmk: Likewise.
30624 * include/grub/env.h: Include grub/menu.h.
30625 (grub_env_var_type): Removed.
30626 (grub_env_var): Replaced field 'type' with 'global'.
30627 (grub_env_find): New prototype.
30628 (grub_env_context_open): Remove EXPORT_FUNC.
30629 (grub_env_context_close): Likewise.
30630 (grub_env_export): Likewise.
30631 (grub_env_set_data_slot): Removed.
30632 (grub_env_get_data_slot): Likewise.
30633 (grub_env_unset_data_slot): Likewise.
30634 (grub_env_unset_menu): New prototype.
30635 (grub_env_set_menu): Likewise.
30636 (grub_env_get_menu): Likewise.
30637 * include/grub/env_private.h: New file.
30638 * include/grub/normal.h (grub_context_init): New prototype.
30639 (grub_context_fini): Likewise.
30640 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30641 * normal/context.c (grub_cmd_export): ... to here.
30642 * kern/env.c: Include env_private.h.
30643 (HASHSZ): Moved to include/grub/env_private.h.
30644 (grub_env_context): Likewise.
30645 (grub_env_sorted_var): Likewise.
30646 (current_context): Renamed from this ...
30647 (grub_current_context): ...to this. 'static' removed. All users updated.
30648 (grub_env_find): Removed 'static'.
30649 (grub_env_context_open): Moved to normal/context.c.
30650 (grub_env_context_close): Likewise.
30651 (grub_env_export): Likewise.
30652 (mangle_data_slot_name): Removed.
30653 (grub_env_set_data_slot): Likewise.
30654 (grub_env_get_data_slot): Likewise.
30655 (grub_env_unset_data_slot): Likewise.
30656 * kern/main.c (grub_set_root_dev): Don't export root.
30657 It will be done later.
30658 (grub_main): Don't export prefix.
30659 It will be done later.
30660 * normal/context.c: New file.
30661 * normal/main.c (free_menu): Use grub_env_unset_menu.
30662 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30663 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30664 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30665 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30666
30667 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30668
30669 setpci support.
30670
30671 * commands/setpci.c: New file.
30672 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30673 (setpci_mod_SOURCES): New variable.
30674 (setpci_mod_CFLAGS): Likewise.
30675 (setpci_mod_LDFLAGS): Likewise.
30676
30677 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30678
30679 Byte-addressable PCI configuration space.
30680
30681 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30682 dword address.
30683 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30684 GRUB_PCI_REG_CACHELINE.
30685 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30686 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30687 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30688 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30689 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30690 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30691 grub_pci_make_address.
30692 (lock_rom_area): Likewise.
30693 * commands/lspci.c (grub_lspci_iter): Use macroses
30694 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30695 of grub_pci_make_address.
30696 * disk/ata.c (grub_ata_pciinit): Likewise.
30697 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30698 (GRUB_PCI_REG_VENDOR): Likewise.
30699 (GRUB_PCI_REG_DEVICE): Likewise.
30700 (GRUB_PCI_REG_COMMAND): Likewise.
30701 (GRUB_PCI_REG_STATUS): Likewise.
30702 (GRUB_PCI_REG_REVISION): Likewise.
30703 (GRUB_PCI_REG_CLASS): Likewise.
30704 (GRUB_PCI_REG_CACHELINE): Likewise.
30705 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30706 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30707 (GRUB_PCI_REG_BIST): Likewise.
30708 (GRUB_PCI_REG_ADDRESSES): Likewise.
30709 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30710 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30711 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30712 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30713 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30714 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30715 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30716 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30717 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30718 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30719 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30720 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30721 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30722 (GRUB_PCI_REG_MIN_GNT): Likewise.
30723 (GRUB_PCI_REG_MAX_LAT): Likewise.
30724 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30725 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30726 * video/efi_uga.c (find_framebuf): Likewise.
30727 * video/sm712.c (grub_video_sm712_setup): Likewise.
30728 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30729 space.
30730
30731 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30732
30733 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30734 can be reliably determined to be supported.
30735
30736 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30737
30738 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30739 that VESA is supported.
30740 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30741 supported.
30742
30743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30744
30745 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30746
30747 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30748
30749 * util/misc.c (make_system_path_relative_to_its_root): Work around
30750 special-casing of "/", as previous incarnation of this routine did.
30751
30752 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30753
30754 Fix any-emu compilation.
30755
30756 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30757 * grub_bin2h_SOURCES: New variable.
30758
30759 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30760
30761 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30762
30763 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30764
30765 * util/grub.d/00_header.in: Fix handling of locale_dir.
30766
30767 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30768
30769 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30770 as possible unifont location (Gentoo).
30771 Reported by: Alexander Brüning
30772
30773 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30774
30775 Don't try to generate lists for kernel.img.
30776
30777 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30778 (pkglib_MODULES): Remove kernel.img.
30779 (kernel_img_EXPORTS): Removed.
30780 (kernel_img_RELOCATABLE): New variable.
30781 * conf/x86_64-efi.rmk: Likewise.
30782 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30783
30784 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30785
30786 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30787 grub_xasprintf or grub_snprintf.
30788 (grub_vsprintf): Likewise.
30789 (grub_snprintf): New proto.
30790 (grub_vsnprintf): Likewise.
30791 (grub_xasprintf): Likewise.
30792 (grub_xvasprintf): Likewise.
30793 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
30794 (grub_sprintf): Removed.
30795 (grub_vsnprintf): New function.
30796 (grub_snprintf): Likewise.
30797 (grub_xvasprintf): Likewise.
30798 (grub_xasprintf): Likewise.
30799 (grub_vsprintf): Renamed to ...
30800 (grub_vsnprintf_real): ...this. New argument max_len.
30801
30802 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30803
30804 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30805 fix grub-script-check warning.
30806
30807 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30808
30809 * include/grub/font.h (grub_font_load): Fix prototype.
30810
30811 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30812
30813 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30814
30815 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30816
30817 * include/grub/x86_64/at_keyboard.h: New file.
30818
30819 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30820
30821 * loader/mips/linux.c: Include missing grub/i18n.h.
30822
30823 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30824
30825 * normal/menu.c (notify_execution_failure): Clarify error message.
30826
30827 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30828
30829 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30830 return value (and revert all return statements). Update users.
30831
30832 2010-01-20 Dan Merillat <debian@dan.merillat.org>
30833
30834 * kern/device.c (grub_device_iterate): Allocate new part_ent
30835 structure based on sizeof (*p) rather than sizeof (p->next), to
30836 account for structure padding.
30837
30838 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30839 disk is NULL, which might happen for LVM physical volumes with no
30840 LVM signature.
30841
30842 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30843
30844 * loader/mips/linux.c (grub_cmd_initrd)
30845 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30846
30847 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30848
30849 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30850 (grub_video_video_init, grub_video_bitmap_init)
30851 (grub_font_manager_init, grub_term_gfxterm_init)
30852 (grub_at_keyboard_init): New extern declarations.
30853 (grub_machine_init): Initialize gfxterm and at_keyboard.
30854
30855 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30856
30857 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30858 `gfxterm.mod' into core image.
30859
30860 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30861 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30862 (kernel_img_FORMAT): Copy to ...
30863
30864 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30865 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30866 (kernel_img_FORMAT): ... here, and ...
30867
30868 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30869 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30870 (kernel_img_FORMAT): ... here.
30871
30872 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30873 and input (at_keyboard) terminals in kernel.
30874 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30875
30876 (pkglib_MODULES): Remove `pci.mod'.
30877 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30878 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30879 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30880 (at_keyboard_mod_LDFLAGS): Remove variables.
30881
30882 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
30883
30884 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30885
30886 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30887
30888 * include/grub/mips/libgcc.h: Only export symbols for functions
30889 that libgcc provides.
30890
30891 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30892
30893 MIPS support.
30894
30895 * bus/bonito.c: New file.
30896 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30897 GRUB_PCI_NUM_DEVICES.
30898 * term/i386/pc/serial.c: Move to ...
30899 * term/serial.c: ... here. All users updated.
30900 * util/i386/pc/grub-mkimage.c: Move to ...
30901 * util/grub-mkrawimage.c: ... here. All users updated.
30902 * term/i386/pc/at_keyboard.c: Move to ...
30903 * term/at_keyboard.c: ... here. All users updated.
30904 * conf/mips-qemu-mips.rmk: New file.
30905 * conf/mips-yeeloong.rmk: Likewise.
30906 * conf/mips.rmk: Likewise.
30907 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30908 mipsel-qemu-mips.
30909 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30910 to port addresses.
30911 (grub_ata_pciinit): Support CS5536.
30912 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30913 * font/font_cmd.c (loadfont_command): Open file before passing it to
30914 grub_font_load.
30915 (pseudo_file_read): New function.
30916 (pseudo_file_close): Likewise.
30917 (pseudo_fs): New structure.
30918 (load_font_module): New function.
30919 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30920 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30921 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30922 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30923 * include/grub/i386/at_keyboard.h: Split into ...
30924 * include/grub/at_keyboard.h: ... this ...
30925 * include/grub/i386/at_keyboard.h: ... and this.
30926 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30927 New prototype.
30928 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30929 updated.
30930 (grub_elf64_size): Likewise.
30931 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30932 filename.
30933 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30934 * include/grub/i386/coreboot/serial.h: Rewritten.
30935 * include/grub/i386/ieee1275/serial.h: Include
30936 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30937 * include/grub/i386/pc/serial.h: Moved from here ...
30938 * include/grub/serial.h: ... to here. All users updated.
30939 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30940 (GRUB_PCI_NUM_BUS): Likewise.
30941 (GRUB_PCI_NUM_DEVICES): Likewise.
30942 (grub_pci_device_map_range): Add missing volatile keyword.
30943 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30944 * include/grub/mips/at_keyboard.h: New file.
30945 * include/grub/mips/cache.h: Likewise.
30946 * include/grub/mips/io.h: Likewise.
30947 * include/grub/mips/kernel.h: Likewise.
30948 * include/grub/mips/libgcc.h: Likewise.
30949 * include/grub/mips/pci.h: Likewise.
30950 * include/grub/mips/qemu-mips/boot.h: Likewise.
30951 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30952 * include/grub/mips/qemu-mips/loader.h: Likewise.
30953 * include/grub/mips/qemu-mips/memory.h: Likewise.
30954 * include/grub/mips/qemu-mips/serial.h: Likewise.
30955 * include/grub/mips/qemu-mips/time.h: Likewise.
30956 * include/grub/mips/relocator.h: Likewise.
30957 * include/grub/mips/time.h: Likewise.
30958 * include/grub/mips/types.h: Likewise.
30959 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30960 * include/grub/mips/yeeloong/boot.h: Likewise.
30961 * include/grub/mips/yeeloong/kernel.h: Likewise.
30962 * include/grub/mips/yeeloong/loader.h: Likewise.
30963 * include/grub/mips/yeeloong/memory.h: Likewise.
30964 * include/grub/mips/yeeloong/pci.h: Likewise.
30965 * include/grub/mips/yeeloong/serial.h: Likewise.
30966 * include/grub/mips/yeeloong/time.h: Likewise.
30967 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30968 * kern/elf.c (grub_elf32_size): New parameter. All users
30969 updated.
30970 (grub_elf64_size): Likewise.
30971 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30972 Load modules before saying "Welcome to GRUB!".
30973 Call grub_refresh after saying "Welcome to GRUB!".
30974 * kern/mips/cache.S: New file.
30975 * kern/mips/cache_flush.S: Likewise.
30976 * kern/mips/dl.c: Likewise.
30977 * kern/mips/init.c: Likewise.
30978 * kern/mips/qemu-mips/init.c: Likewise.
30979 * kern/mips/startup.S: Likewise.
30980 * kern/mips/yeeloong/init.c: Likewise.
30981 * kern/term.c (grub_putcode): Handle NULL terminal.
30982 (grub_getcharwidth): Likewise.
30983 (grub_getkey): Likewise.
30984 (grub_checkkey): Likewise.
30985 (grub_getkeystatus): Likewise.
30986 (grub_getxy): Likewise.
30987 (grub_getwh): Likewise.
30988 (grub_gotoxy): Likewise.
30989 (grub_cls): Likewise.
30990 (grub_setcolorstate): Likewise.
30991 (grub_setcolor): Likewise.
30992 (grub_getcolor): Likewise.
30993 (grub_refresh): Likewise.
30994 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30995 (write_jump): Add hatch nop.
30996 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30997 * lib/mips/setjmp.S: New file.
30998 * loader/mips/linux.c: Likewise.
30999 * term/i386/pc/at_keyboard.c: Move from here ...
31000 * term/at_keyboard.c: ... to here.
31001 * term/i386/pc/serial.c: Moved from here ...
31002 * term/serial.c: ... to here. All users updated.
31003 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31004 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31005 (serial_translate_key_sequence): Avoid deadlock.
31006 (grub_serial_getkey): Handle backspace.
31007 (grub_serial_putchar): Fix newline handling.
31008 * util/i386/pc/grub-mkimage.c: Move from here ...
31009 * util/grub-mkrawimage.c: ... to here. All users updated.
31010 (generate_image): New parameters 'font_path' and 'format'.
31011 Support embedding font.
31012 Use grub_host_to_target* instead of grub_cpu_to_le*.
31013 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31014 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31015 (options): New option "--font".
31016 (usage): Likewise.
31017 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31018 (main): Handle "--font".
31019 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31020 (grub_virtual_screen_setup): Set bg_color_display.
31021 (redraw_screen_rect): Use bg_color_display instead of incorrect
31022 bg_color.
31023 (grub_gfxterm_cls): Likewise.
31024 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31025 Support embedding config file.
31026 (add_segments): Likewise.
31027 (options): New option "--config".
31028 (main): Handle "--config".
31029 * video/sm712.c: New file.
31030
31031 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31032
31033 Fix parallel builds.
31034
31035 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31036 font.c depend on ascii.h).
31037
31038 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31039
31040 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31041
31042 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31043
31044 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31045 By default: disabled.
31046 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31047 parameter.
31048
31049 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31050
31051 * font/font.c: Update copyright years.
31052 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31053
31054 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31055
31056 * font/font.c: Include `ascii.h'.
31057 (ASCII_BITMAP_SIZE): New macro.
31058 (ascii_font_glyph): Define.
31059 (ascii_glyph_lookup): New function.
31060 (grub_font_get_string_width): Change comment. If glyph not found, use
31061 ascii_glyph_lookup.
31062 (grub_font_get_glyph_with_fallback): If glyph not available returns
31063 ascii_glyph_lookup.
31064 * util/grub-mkfont.c (file_formats): New enum.
31065 (options): Add `ascii-bitmaps' new option.
31066 (usage): Add `asii-bitmaps' new option.
31067 (write_font_ascii_bitmap): New function.
31068 (write_font): Rename to ...
31069 (write_font_p2): ... this. Remove print_glyphs call.
31070 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31071 used. Call print_glyphs.
31072 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31073
31074 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31075
31076 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31077 (grub_bin2h_SOURCES): New variable.
31078 * util/bin2h.c: New file.
31079
31080 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31081
31082 * include/multiboot.h: Resynced with spec.
31083 * include/multiboot2.h: Likewise.
31084 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31085 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31086
31087 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31088
31089 * include/grub/term.h (grub_term_register_input,
31090 grub_term_register_output): Check return of terminal init()
31091 routines, and abort if errors are raised.
31092
31093 * commands/terminal.c: Update copyright year.
31094
31095 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31096
31097 * commands/terminal.c (grub_cmd_terminal_input)
31098 (grub_cmd_terminal_output): Check return of terminal init()
31099 routines, and abort if errors are raised.
31100
31101 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31102
31103 * include/grub/i386/bsd.h: Fix include pathes.
31104
31105 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31106
31107 Add missing *BSD copyright headers.
31108
31109 * include/grub/aout.h: Add BSD licence.
31110 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31111 * include/grub/i386/freebsd_linker.h: ... here,
31112 * include/grub/i386/freebsd_reboot.h: ... here,
31113 * include/grub/i386/netbsd_bootinfo.h: ... here,
31114 * include/grub/i386/netbsd_reboot.h: ... here,
31115 * include/grub/i386/openbsd_bootarg.h: ... here,
31116 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31117 licence to each file.
31118
31119 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31120
31121 * acinclude.m4: Remove `nop' assembly instruction; it's not
31122 implemented by all architectures.
31123
31124 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31125
31126 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31127 ELILO. This is no longer necessary.
31128
31129 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31130
31131 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31132
31133 * util/grub-script-check.c: grub-script-check tool.
31134 * conf/common.rmk: Make rules for grub-script-check.
31135
31136 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31137
31138 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31139 spotting it back in 2008. Shame on me for forgetting he did.
31140
31141 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31142
31143 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31144
31145 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31146 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31147 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31148 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31149 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31150 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31151
31152 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31153
31154 * include/grub/test.h: Add license header.
31155 * tests/example_functional_test.c: Likewise.
31156 * tests/example_unit_test.c: Likewise.
31157 * tests/lib/functional_test.c: Likewise.
31158 * tests/lib/test.c: Likewise.
31159 * tests/lib/unit_test.c: Likewise.
31160
31161 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31162
31163 Use flag-based instead of hook-based video mode selection and "auto"
31164 keyword.
31165
31166 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31167 (grub_video_set_mode): Changed prototype. All users updated.
31168 (grub_video_check_mode_flag): New inline function.
31169 * video/video.c (parse_modespec): New function.
31170 (grub_video_set_mode): Parse flags and keywords.
31171
31172 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31173
31174 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31175 fprintf call.
31176
31177 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31178
31179 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31180
31181 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31182
31183 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31184 string.
31185 * util/grub-emu.c (usage): Likewise.
31186 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31187 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31188 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31189 * util/i386/pc/grub-setup.c (usage): Likewise.
31190
31191 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31192
31193 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31194 the message.
31195 (grub_util_info): Likewise.
31196 (grub_util_error): Likewise.
31197 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31198 and/or new lines in `grub_util_warna', `grub_util_info',
31199 `grub_util_error' calls.
31200 * util/getroot.c: Likewise.
31201 * util/grub-editenv.c: Likewise.
31202 * util/grub-emu.c: Likewise.
31203 * util/grub-fstest.c: Likewise.
31204 * util/grub-mkdevicemap.c: Likewise.
31205 * util/grub-mkfont.c: Likewise.
31206 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31207 * util/grub-mkrelpath.c: Likewise.
31208 * util/grub-pe2elf.c: Likewise.
31209 * util/grub-probe.c: Likewise.
31210 * util/hostdisk.c: Likewise.
31211 * util/i386/efi/grub-mkimage.c: Likewise.
31212 * util/i386/pc/grub-mkimage.c: Likewise.
31213 * util/i386/pc/grub-setup.c: Likewise.
31214 * util/ieee1275/ofpath.c: Likewise.
31215 * util/mkisofs/eltorito.c: Likewise.
31216 * util/mkisofs/rock.c: Likewise.
31217 * util/mkisofs/write.c: Likewise.
31218 * util/raid.c: Likewise.
31219 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31220 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31221
31222 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31223
31224 Enable multiboot on non-pc.
31225
31226 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31227 multiboot.mod and multiboot2.mod to ...
31228 * conf/i386.rmk (pkglib_MODULES): ... here.
31229 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31230 Moved to ...
31231 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31232 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31233 Moved to ...
31234 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31235 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31236 Moved to ...
31237 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31238 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31239 Moved to ...
31240 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31241 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31242 relocator.mod.
31243 (ata_mod_SOURCES): Removed.
31244 (ata_mod_CFLAGS): Likewise.
31245 (ata_mod_LDFLAGS): Likewise.
31246 (relocator_mod_SOURCES): Removed.
31247 (relocator_mod_CFLAGS): Likewise.
31248 (relocator_mod_ASFLAGS): Likewise.
31249 (relocator_mod_LDFLAGS): Likewise.
31250 Include i386.mk.
31251 * include/grub/x86_64/multiboot.h: New file.
31252 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31253 Terminate EFI.
31254
31255 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31256
31257 Video multiboot support.
31258
31259 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31260 New prototype.
31261 * include/multiboot.h: Resynced with multiboot specification.
31262 * include/multiboot2.h: Likewise.
31263 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31264 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31265 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31266 (HAS_VGA_TEXT): Likewise.
31267 (accepts_video): New variable.
31268 (grub_multiboot_set_accepts_video): New function.
31269 (grub_multiboot_get_mbi_size): Account for video structures.
31270 (set_video_mode): New function.
31271 (retrieve_video_parameters): Likewise.
31272 (grub_multiboot_make_mbi): Fill video fields.
31273
31274 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31275
31276 Video driver ids.
31277
31278 * include/grub/video.h (grub_video_driver_id): New type.
31279 (grub_video_adapter): New member 'id'. All users updated.
31280 (grub_video_get_driver_id): New proto.
31281 * video/video.c (grub_video_get_driver_id): New function.
31282
31283 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31284
31285 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31286 `var=val'.
31287
31288 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31289
31290 * normal/cmdline.c (print_completion): Gettextizze.
31291
31292 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31293
31294 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31295
31296 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31297
31298 * gettext/gettext.c (grub_gettext_translate): Push and pop
31299 grub_errno.
31300 (grub_gettext_delete_list): Change comment style.
31301 * kern/err.c (grub_error): Gettextizze.
31302 (grub_fatal): Gettextizze.
31303
31304 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31305
31306 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31307 (grub_linux16_real_boot): ... this.
31308 * kern/i386/loader.S: Likewise.
31309 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31310 (grub_linux16_boot): New function. Switches to text mode and calls
31311 grub_linux16_real_boot().
31312
31313 * loader/i386/bsd.c: Include `<grub/video.h>'.
31314 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31315 text mode before calling grub_unix_real_boot().
31316
31317 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31318 (grub_multiboot_boot): Switch to text mode before calling
31319 grub_relocator32_boot().
31320
31321 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31322 (grub_chainloader_boot): Switch to text mode before calling
31323 grub_chainloader_real_boot().
31324
31325 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31326 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31327
31328 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31329 non-empty value.
31330
31331 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31332 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31333
31334 * util/grub.d/00_header.in: Define a "savedefault" function for use
31335 in menu entries.
31336 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31337
31338 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31339 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31340
31341 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31342 saved_entry if boot_once is unset.
31343 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31344 previous saved entry (i.e. grub-reboot).
31345
31346 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31347
31348 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31349
31350 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31351
31352 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31353 `var=val'.
31354 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31355
31356 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31357
31358 * util/grub-reboot.in: Fix --version output.
31359 * util/grub-set-default.in: Likewise.
31360
31361 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31362
31363 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31364 blocks.
31365
31366 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31367
31368 * util/grub.d/00_header.in: Quote the value assigned to `default',
31369 in case it contains spaces.
31370
31371 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31372
31373 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31374 `save_default_entry' call from the macosx case to the linux case.
31375
31376 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31377 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31378
31379 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31380 in `chosen' environment variable.
31381 * normal/menu_text.c (get_entry_number): Check if the variable
31382 matches the title of a menu entry.
31383 (run_menu): Pass menu to get_entry_number.
31384
31385 * util/grub-reboot.in: New file.
31386 * util/grub-set-default.in: New file.
31387 * conf/common.rmk (grub-reboot): New utility.
31388 (grub-set-default): New utility.
31389
31390 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31391 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31392 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31393 move it to `saved_entry' for the next boot. Load environment on
31394 initialisation.
31395 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31396 * util/grub.d/10_hurd.in: Likewise.
31397 * util/grub.d/10_linux.in (linux_entry): Likewise.
31398 * util/grub.d/10_windows.in: Likewise.
31399 * util/grub.d/30_os-prober.in: Likewise.
31400
31401 * util/grub-install.in: Create environment block.
31402 * util/i386/efi/grub-install.in: Likewise.
31403 * util/ieee1275/grub-install.in: Likewise.
31404 * util/sparc64/ieee1275/grub-install.in: Likewise.
31405
31406 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31407
31408 Unit testing framework for GRUB.
31409
31410 * Makefile.in: Test framework build rules for 'make check'.
31411 * conf/tests.rmk: Build rules for individual tests and framework.
31412
31413 * include/grub/test.h: Header file for whitebox tests.
31414 * tests/lib/functional_test.c: Framework support for whitebox
31415 functional tests.
31416 * tests/lib/test.c: Common whitebox testing code for unit and
31417 functional tests.
31418 * tests/lib/unit_test.c: Framework support for whitebox unit
31419 tests.
31420
31421 * tests/util/grub-shell-tester.in: Support utility for grub-script
31422 tests.
31423 * tests/util/grub-shell.in: Utility to execute grub-script
31424 commands in a Qemu instance.
31425
31426 * tests/example_functional_test.c: Example whitebox functional
31427 test.
31428 * tests/example_grub_script_test.in: Example grub-script test.
31429 * tests/example_scripted_test.in: Example scripted test.
31430 * tests/example_unit_test.c: Example whitebox unit test.
31431
31432 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31433
31434 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31435 Add loader/i386/multiboot_mbi.c.
31436 (multiboot2_mod_SOURCES): Likewise.
31437 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31438 (multiboot2_mod_SOURCES): Likewise.
31439 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31440 (grub_multiboot_make_mbi): Likewise.
31441 (grub_multiboot_free_mbi): Likewise.
31442 (grub_multiboot_init_mbi): Likewise.
31443 (grub_multiboot_add_module): Likewise.
31444 (grub_multiboot_set_bootdev): Likewise.
31445 * loader/i386/multiboot.c (mbi): Removed.
31446 (mbi_dest): Likewise.
31447 (alloc_mbi): New variable.
31448 (grub_multiboot_payload_size): Removed. All users updated.
31449 (grub_multiboot_pure_size): New variable.
31450 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31451 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31452 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31453 (grub_fill_multiboot_mmap): Likewise.
31454 (grub_multiboot_get_bootdev): Likewise.
31455 (grub_multiboot): Use multiboot_mbi functions.
31456 * loader/i386/multiboot_mbi.c: New file.
31457
31458 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31459
31460 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31461 it would result in module crash.
31462
31463 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31464
31465 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31466 (grub_ofconsole_getwh): Split to ...
31467 (grub_ofconsole_getwh): ... this.
31468 (grub_ofconsole_dimensions): ...and this.
31469 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31470
31471 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31472
31473 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31474
31475 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31476
31477 * loader/i386/pc/multiboot2.c: Removed stalled file.
31478
31479 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31480
31481 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31482 Reported by: Grégoire Sutre
31483
31484 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31485
31486 * util/misc.c (canonicalize_file_name): New function.
31487 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31488 instead of realpath().
31489
31490 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31491
31492 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31493 and make it clearer that it's optional. Based on confusion
31494 witnessed on IRC.
31495
31496 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31497
31498 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31499 in premature implicit newline.
31500
31501 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31502
31503 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31504 which resulted in garbled command line at the end of screen.
31505
31506 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31507
31508 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31509 initialization with similar approach as with other Linux loaders.
31510
31511 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31512
31513 Fix i386-ieee1275 build.
31514
31515 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31516 and grub_term_height() for video_{width,height} initialization.
31517
31518 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31519
31520 Fix grub-emu build.
31521
31522 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31523
31524 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31525 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31526
31527 Support for multiple terminals.
31528
31529 * Makefile.in (pkglib_DATA): terminal.lst.
31530 (terminal.lst): New target.
31531 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31532 (GRUB_MOD_INIT(handler)): Likewise.
31533 (GRUB_MOD_FINI(handler)): Likewise.
31534 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31535 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31536 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31537 (grub_cmd_sleep): Use grub_term_save_pos.
31538 * commands/terminal.c: New file.
31539 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31540 commands/terminal.c and lib/charset.c.
31541 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31542 (pkglib_MODULES): Add terminal.mod.
31543 (terminal_mod_SOURCES): New variable.
31544 (terminal_mod_CFLAGS): Likewise.
31545 (terminal_mod_LDFLAGS): Likewise.
31546 * genhandlerlist.sh: Don't handle terminals.
31547 * genmk.rb: Generate terminal-*.lst.
31548 * genterminallist.sh: New file.
31549 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31550 (grub_is_valid_utf8): Likewise.
31551 (grub_utf8_to_ucs4_alloc): Likewise.
31552 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31553 (grub_menu_register_viewer): Changed argument.
31554 (grub_menu_try_text): New proto.
31555 (grub_gfxmenu_try_hook): New declaration.
31556 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31557 (grub_menu_init_page): Additional argument term.
31558 (grub_normal_init_page): Likewise.
31559 (grub_cmdline_get): Arguments simplified.
31560 (grub_utf8_to_ucs4_alloc): Removed.
31561 (grub_print_ucs4): Additional argument term.
31562 (grub_getstringwidth): Likewise.
31563 (grub_print_message_indented): Likewise.
31564 (grub_menu_text_register_instances): New proto.
31565 (grub_show_menu): Likewise.
31566 (read_terminal_list): Likewise.
31567 (grub_set_more): Likewise.
31568 * include/grub/parser.h: Include handler.h.
31569 * include/grub/reader.h: Rewritten.
31570 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31571 (GRUB_TERM_WIDTH): Changed to function.
31572 (GRUB_TERM_HEIGHT): Likewise.
31573 (GRUB_TERM_BORDER_WIDTH): Likewise.
31574 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31575 (GRUB_TERM_NUM_ENTRIES): Likewise.
31576 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31577 (GRUB_TERM_CURSOR_X): Likewise.
31578 (grub_term_input_class): Likewise.
31579 (grub_term_output_class): Likewise.
31580 (grub_term_outputs_disabled): New declaration.
31581 (grub_term_inputs_disabled): Likewise.
31582 (grub_term_outputs): Likewise.
31583 (grub_term_inputs): Likewise.
31584 (grub_term_register_input): Rewritten.
31585 (grub_term_register_output): Likewise.
31586 (grub_term_unregister_input): Likewise.
31587 (grub_term_unregister_output): Likewise.
31588 (FOR_ACTIVE_TERM_INPUTS): New macro.
31589 (FOR_DISABLED_TERM_INPUTS): Likewise.
31590 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31591 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31592 * include/grub/terminfo.h: Add oterm argument to all protypes.
31593 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31594 Use grub_rescue_run.
31595 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31596 All users updated.
31597 * kern/reader.c: Removed. All users updated.
31598 * kern/rescue_reader.c (grub_rescue_init): Removed.
31599 (grub_rescue_reader): Likewise.
31600 (grub_register_rescue_reader): Likewise.
31601 (grub_rescue_run): New function based on kern/reader.c.
31602 * kern/term.c: Adapted for multiterm.
31603 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31604 (grub_is_valid_utf8): Likewise.
31605 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31606 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31607 right terminal.
31608 * loader/i386/linux.c (grub_linux_boot): Likewise.
31609 * normal/auth.c (grub_username_get): New function.
31610 (grub_auth_check_authentication): Use grub_username_get.
31611 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31612 * normal/color.c: Adapt for multiterm.
31613 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31614 (grub_normal_init_page): Additional argument term.
31615 (read_lists): Call read_terminal_lists.
31616 (grub_enter_normal_mode): Call grub_cmdline_run.
31617 Handle grub_normal_exit_level.
31618 (grub_cmd_normal): Make reentrant.
31619 (grub_cmd_normal_exit): New function.
31620 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31621 * normal/menu.c: Adapt for multiterm.
31622 * normal/menu_entry.c: Likewise.
31623 * normal/menu_text.c: Likewise.
31624 * normal/menu_viewer.c: Removed. All users updated.
31625 * normal/term.c: New file.
31626 * util/console.c: Change order of includes to workaround a bug in
31627 ncurses headers.
31628 * term/terminfo.c: New argument oterm on all exported functions.
31629 All users updated.
31630 * util/grub-editenv.c (grub_term_input_class): Removed.
31631 (grub_term_output_class): Likewise.
31632
31633 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31634
31635 Make loader output a bit more user-friendly.
31636
31637 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31638 is being loaded. Likewise for the Hurd.
31639
31640 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31641 that kernel of FreeBSD ${version} is being loaded.
31642
31643 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31644 grub_dprintf().
31645 (grub_cmd_initrd): Likewise.
31646 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31647 that Linux ${version} is being loaded. Likewise for initrd.
31648
31649 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31650
31651 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31652
31653 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31654
31655 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31656 (GRUB_MOD_INIT): Gettextizze.
31657 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31658 (GRUB_MOD_INIT): Gettextizze.
31659 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31660 (grub_cmd_linux): Capitalise Linux.
31661 (GRUB_MOD_INIT): Gettextizze.
31662 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31663 (grub_cmd_linux): Capitalise Linux.
31664 (GRUB_MOD_INIT): Gettextizze.
31665 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31666 (grub_cmd_linux): Capitalise Linux.
31667 (GRUB_MOD_INIT): Gettextizze.
31668 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31669 (GRUB_MOD_INIT): Gettextizze.
31670 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31671 (grub_cmd_linux): Capitalise Linux.
31672 (GRUB_MOD_INIT): Gettextizze.
31673 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31674 (grub_cpu_xnu_init): Gettextizze.
31675 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31676 (GRUB_MOD_INIT): Gettextizze.
31677 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31678 (GRUB_MOD_INIT): Gettextizze.
31679 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31680 (grub_linux_load64): Capitalise Linux.
31681 (GRUB_MOD_INIT): Gettextizze.
31682 * loader/xnu.c: Include `<grub/i18n.h>'.
31683 (GRUB_MOD_INIT): Gettextizze.
31684 * po/POTFILES: Add `loader/efi/appleloader.c',
31685 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31686 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31687 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31688 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31689 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31690 and `loader/xnu.c'.
31691
31692 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31693
31694 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31695
31696 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31697
31698 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31699 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31700 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31701
31702 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31703
31704 Reset Multiboot 2 support. New loader implements the draft in
31705 /branches/multiboot2 and shares as much code as possible with the
31706 production Multiboot 1 implementation.
31707
31708 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31709 * loader/multiboot2.c: Likewise.
31710 * loader/i386/multiboot_helper.S: Likewise.
31711 * include/multiboot2.h: Replace with latest version from the draft
31712 in /branches/multiboot2.
31713
31714 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31715 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31716 and `loader/multiboot2.c'.
31717 (pkglib_MODULES): Add `multiboot2.mod'.
31718 (multiboot2_mod_SOURCES): New variable.
31719 (multiboot2_mod_LDFLAGS): Likewise.
31720 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31721
31722 * conf/i386-pc.rmk: Likewise.
31723
31724 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31725 (multiboot_mod_SOURCES): Remove variable.
31726 (multiboot_mod_LDFLAGS): Likewise.
31727 (multiboot_mod_CFLAGS): Likewise.
31728
31729 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31730 `<multiboot2.h>' instead of `<multiboot.h>'.
31731 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31732 (MULTIBOOT_HEADER_MAGIC): New macros.
31733
31734 * loader/multiboot_loader.c (module_version_status): Remove variable.
31735 (find_multi_boot2_header): Remove function.
31736 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31737 logic. Always check for the Multiboot version we're compiling for.
31738 (grub_cmd_module_loader): Likewise.
31739 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31740 command instead of `multiboot'.
31741
31742 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31743
31744 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31745 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31746 all users.
31747
31748 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31749 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31750
31751 Fix breakage introduced with previous commit.
31752
31753 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31754 commands.
31755 * normal/handler.c (read_handler_list): Revert part of previous commit
31756 affecting this file.
31757 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31758 (grub_normal_execute): ... here.
31759
31760 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31761
31762 Merge prefix-redefinition-fix branch.
31763
31764 * normal/autofs.c (read_fs_list): Make function capable of being
31765 run multiple times, gracefuly replacing the previous data
31766 structures.
31767 * normal/dyncmd.c (read_command_list): Likewise.
31768 * normal/handler.c (read_handler_list): Likewise.
31769 * normal/main.c (read_lists): New function. Calls all the
31770 list reading functions.
31771 (grub_normal_execute): Use read_lists() instead of calling all
31772 list reading functions explicitly. Register read_lists() as a
31773 variable hook attached to ${prefix}.
31774
31775 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31776
31777 Merge crypto branch.
31778
31779 * Makefile.in (pkglib_DATA): Add crypto.lst.
31780 (crypto.lst): New target.
31781 * commands/hashsum.c: New file.
31782 * commands/password.c (check_password): Use grub_crypto_memcmp.
31783 * commands/password_pbkdf2.c: New file.
31784 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31785 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31786 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31787 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31788 -I$(srcdir)/lib/libgcrypt_wrap.
31789 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
31790 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
31791 password_pbkdf2.mod.
31792 (crypto_mod_SOURCES): New variable.
31793 (crypto_mod_CFLAGS): Likewise.
31794 (crypto_mod_LDFLAGS): Likewise.
31795 (hashsum_mod_SOURCES): New variable.
31796 (hashsum_mod_CFLAGS): Likewise.
31797 (hashsum_mod_LDFLAGS): Likewise.
31798 (pbkdf2_mod_SOURCES): New variable.
31799 (pbkdf2_mod_CFLAGS): Likewise.
31800 (pbkdf2_mod_LDFLAGS): Likewise.
31801 (password_pbkdf2_mod_SOURCES): New variable.
31802 (password_pbkdf2_mod_CFLAGS): Likewise.
31803 (password_pbkdf2_mod_LDFLAGS): Likewise.
31804 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31805 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31806 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31807 Include conf/gcry.rmk.
31808 * include/grub/auth.h: Rewritten.
31809 * include/grub/crypto.h: New file.
31810 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31811 * include/grub/normal.h (read_crypto_list): New prototype.
31812 * lib/crypto.c: New file.
31813 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31814 * lib/pbkdf2.c: Likewise.
31815 * normal/auth.c (grub_auth_strcmp): Removed.
31816 (grub_iswordseparator): Likewise.
31817 (grub_auth_strword): Likewise.
31818 (is_authenticated): Use grub_strword.
31819 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31820 and grub_strword. Pass entered password to authentication callback.
31821 * normal/crypto.c: New file.
31822 * normal/main.c: Call read_crypto_list.
31823 * util/grub-mkpasswd-pbkdf2.c: New file.
31824 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31825
31826 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31827
31828 Fix descent and ascent calculation.
31829
31830 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31831 (options): New option "asce".
31832 (usage): Likewise.
31833 (add_char): Ignore invalid glyphs for descent calculation.
31834 Calculate ascent from actual content.
31835 (print_glyphs): Use 'asce'.
31836 (write_font): Likewise. Allow ascent override.
31837 (main): Handle "asce" option.
31838
31839 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31840
31841 * kern/err.c: Include `<grub/i18n.h>'.
31842 (grub_print_error): Add full stop. Gettextizze.
31843 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31844 (grub_bsd_load_elf): Capitalise ELF.
31845 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31846 (grub_cmd_freebsd_module): Likewise.
31847 (grub_cmd_freebsd_module_elf): Likewise.
31848 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31849
31850 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31851
31852 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31853 * commands/search_file.c (HELP_MESSAGE): New macro.
31854 * commands/search_label.c (HELP_MESSAGE): Likewise.
31855 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31856 * po/POTFILES: Add `commands/search_file.c',
31857 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31858 `commands/search.c'.
31859
31860 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31861
31862 * config.rpath: Update from Gnulib.
31863
31864 2010-01-05 Yves Blusseau <blusseau@zetam.org>
31865
31866 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31867
31868 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31869
31870 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31871
31872 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31873
31874 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31875 arguments to fread so that we get a return value in bytes, rather
31876 than something that will normally be rounded down to 0.
31877 Adjust error handling to avoid producing garbage when size_t is not
31878 the same size as long long.
31879
31880 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31881
31882 * util/mkisofs/write.c (padblock_write): Check return value of
31883 fread.
31884
31885 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31886
31887 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31888 floppy images now.
31889
31890 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31891
31892 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31893
31894 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31895 instead of manual alignment.
31896 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31897 verbose). Avoid attempts to read past end of the device
31898 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31899 but GRUB_DISK_CACHE_SIZE may exceed that).
31900
31901 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31902
31903 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31904 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31905 it to upper layer.
31906
31907 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31908
31909 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31910 New constant.
31911 (grub_efi_piwg_device_path): New structure
31912 (grub_efi_piwg_device_path_t): New type.
31913 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31914 (devpath_1): Transform to a structure. All users updated.
31915 (devpath_2): Likewise.
31916 (devpath_3): Likewise.
31917 (devpath_4): Likewise.
31918 (devpath_5): Likewise.
31919
31920 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31921
31922 * loader/efi/appleloader.c: Restored. Update all users.
31923
31924 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31925
31926 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31927
31928 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31929 (struct boot_blocklist): Move from here ...
31930 * include/grub/i386/pc/boot.h [ASM_FILE]
31931 (struct grub_boot_blocklist): ... to here. Update all users.
31932 (setup): Only initialize `start' member of `first_block'
31933 structure. Add assert() calls to verify the other members.
31934
31935 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31936 (generate_image): Fix broken blocklist length initialization.
31937 Add assert() call to verify blocklist `segment' field.
31938
31939 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31940
31941 * loader/efi/appleloader.c: Remove. Update all users.
31942
31943 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31944
31945 * boot/i386/pc/boot.S: Update copyright year.
31946 * boot/i386/pc/cdboot.S: Likewise.
31947 * boot/i386/pc/diskboot.S: Likewise.
31948 * boot/i386/pc/lnxboot.S: Likewise.
31949 * boot/i386/pc/pxeboot.S: Likewise.
31950 * bus/pci.c: Likewise.
31951 * commands/cmp.c: Likewise.
31952 * commands/help.c: Likewise.
31953 * commands/hexdump.c: Likewise.
31954 * commands/i386/pc/halt.c: Likewise.
31955 * commands/i386/pc/play.c: Likewise.
31956 * commands/i386/pc/vbeinfo.c: Likewise.
31957 * commands/ls.c: Likewise.
31958 * commands/test.c: Likewise.
31959 * disk/dmraid_nvidia.c: Likewise.
31960 * disk/i386/pc/biosdisk.c: Likewise.
31961 * disk/ieee1275/nand.c: Likewise.
31962 * disk/ieee1275/ofdisk.c: Likewise.
31963 * disk/lvm.c: Likewise.
31964 * disk/raid.c: Likewise.
31965 * disk/raid6_recover.c: Likewise.
31966 * disk/scsi.c: Likewise.
31967 * fs/affs.c: Likewise.
31968 * fs/cpio.c: Likewise.
31969 * fs/ext2.c: Likewise.
31970 * fs/hfs.c: Likewise.
31971 * fs/iso9660.c: Likewise.
31972 * fs/ntfs.c: Likewise.
31973 * fs/sfs.c: Likewise.
31974 * fs/udf.c: Likewise.
31975 * fs/ufs.c: Likewise.
31976 * fs/xfs.c: Likewise.
31977 * gencmdlist.sh: Likewise.
31978 * genmk.rb: Likewise.
31979 * include/grub/disk.h: Likewise.
31980 * include/grub/efi/api.h: Likewise.
31981 * include/grub/efi/efi.h: Likewise.
31982 * include/grub/efi/pe32.h: Likewise.
31983 * include/grub/elf.h: Likewise.
31984 * include/grub/fs.h: Likewise.
31985 * include/grub/i386/at_keyboard.h: Likewise.
31986 * include/grub/i386/pc/memory.h: Likewise.
31987 * include/grub/i386/pc/vbe.h: Likewise.
31988 * include/grub/i386/pci.h: Likewise.
31989 * include/grub/i386/tsc.h: Likewise.
31990 * include/grub/ieee1275/ieee1275.h: Likewise.
31991 * include/grub/ntfs.h: Likewise.
31992 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31993 * include/grub/sparc64/libgcc.h: Likewise.
31994 * include/grub/symbol.h: Likewise.
31995 * include/grub/types.h: Likewise.
31996 * include/multiboot2.h: Likewise.
31997 * io/gzio.c: Likewise.
31998 * kern/device.c: Likewise.
31999 * kern/disk.c: Likewise.
32000 * kern/efi/efi.c: Likewise.
32001 * kern/efi/mm.c: Likewise.
32002 * kern/elf.c: Likewise.
32003 * kern/file.c: Likewise.
32004 * kern/i386/dl.c: Likewise.
32005 * kern/i386/pc/init.c: Likewise.
32006 * kern/i386/pc/startup.S: Likewise.
32007 * kern/ieee1275/ieee1275.c: Likewise.
32008 * kern/ieee1275/init.c: Likewise.
32009 * kern/main.c: Likewise.
32010 * kern/mm.c: Likewise.
32011 * kern/powerpc/dl.c: Likewise.
32012 * kern/sparc64/dl.c: Likewise.
32013 * kern/x86_64/dl.c: Likewise.
32014 * lib/hexdump.c: Likewise.
32015 * loader/efi/appleloader.c: Likewise.
32016 * loader/i386/ieee1275/linux.c: Likewise.
32017 * loader/i386/pc/chainloader.c: Likewise.
32018 * loader/i386/pc/linux.c: Likewise.
32019 * loader/i386/pc/multiboot2.c: Likewise.
32020 * loader/ieee1275/multiboot2.c: Likewise.
32021 * loader/multiboot2.c: Likewise.
32022 * loader/multiboot_loader.c: Likewise.
32023 * loader/powerpc/ieee1275/linux.c: Likewise.
32024 * normal/completion.c: Likewise.
32025 * normal/menu_entry.c: Likewise.
32026 * partmap/apple.c: Likewise.
32027 * util/grub.d/10_hurd.in: Likewise.
32028 * util/hostfs.c: Likewise.
32029 * video/readers/png.c: Likewise.
32030
32031 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32032
32033 * include/grub/misc.h (GNUC_PREREQ): New macro.
32034 (ATTRIBUTE_ERROR): New macro.
32035 * include/grub/list.h (grub_bad_type_cast_real): Use
32036 ATTRIBUTE_ERROR.
32037
32038 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32039
32040 * normal/menu_text.c (print_message): Change messages.
32041
32042 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32043
32044 * normal/menu_entry.c (store_completion): Gettextizze.
32045
32046 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32047
32048 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32049
32050 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32051
32052 * po/POTFILES: Sort correctly.
32053
32054 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32055
32056 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32057 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32058 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32059 full stop.
32060 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32061 summary. Gettextizze the strings.
32062 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32063 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32064 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32065 full stop.
32066 (GRUB_MOD_INIT): Remove command name from summary.
32067 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32068 summary.
32069 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32070 * term/i386/pc/serial.c (options): Add full stops.
32071 (GRUB_MOD_INIT): Remove command name from the summary.
32072
32073 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32074
32075 * commands/acpi.c: Gettextizze help strings and/or options. Include
32076 `grub/i18n.h' if needed.
32077 * commands/blocklist.c: Likewise.
32078 * commands/boot.c: Likewise.
32079 * commands/cat.c: Likewise.
32080 * commands/cmp.c: Likewise.
32081 * commands/configfile.c: Likewise.
32082 * commands/crc.c: Likewise.
32083 * commands/date.c: Likewise.
32084 * commands/echo.c: Likewise.
32085 * commands/efi/fixvideo.c: Likewise.
32086 * commands/efi/loadbios.c: Likewise.
32087 * commands/gptsync.c: Likewise.
32088 * commands/halt.c: Likewise.
32089 * commands/handler.c: Likewise.
32090 * commands/hdparm.c: Likewise.
32091 * commands/hexdump.c: Likewise.
32092 * commands/i386/cpuid.c: Likewise.
32093 * commands/i386/pc/drivemap.c: Likewise.
32094 * commands/i386/pc/halt.c: Likewise.
32095 * commands/i386/pc/pxecmd.c: Likewise.
32096 * commands/i386/pc/vbeinfo.c: Likewise.
32097 * commands/i386/pc/vbetest.c: Likewise.
32098 * commands/ieee1275/suspend.c: Likewise.
32099 * commands/keystatus.c: Likewise.
32100 * commands/loadenv.c: Likewise.
32101 * commands/ls.c: Likewise.
32102 * commands/lsmmap.c: Likewise.
32103 * commands/lspci.c: Likewise.
32104 * commands/memrw.c: Likewise.
32105 * commands/minicmd.c: Likewise.
32106 * commands/parttool.c: Likewise.
32107 * commands/password.c: Likewise.
32108 * commands/probe.c: Likewise.
32109 * commands/read.c: Likewise.
32110 * commands/reboot.c: Likewise.
32111 * commands/search.c: Likewise.
32112 * commands/sleep.c: Likewise.
32113 * commands/test.c: Likewise.
32114 * commands/true.c: Likewise.
32115 * commands/usbtest.c: Likewise.
32116 * commands/videotest.c: Likewise.
32117 * commands/xnu_uuid.c: Likewise.
32118 * disk/loopback.c: Likewise.
32119 * hello/hello.c: Likewise.
32120 * loader/i386/bsd.c: Likewise.
32121 * term/i386/pc/serial.c: Likewise.
32122 * po/POTFILES: Add new files.
32123
32124 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32125
32126 * term/i386/pc/at_keyboard.c
32127 (keyboard_controller_wait_untill_ready): Rename to ...
32128 (keyboard_controller_wait_until_ready): ... this. Update all users.
32129
32130 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32131
32132 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32133 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32134 string using string width.
32135 * normal/menu_text.c (grub_print_message_indented): Use
32136 grub_print_spaces and not print_spaces.
32137 (print_timeout): Likewise.
32138 (print_spaces): Move to...
32139 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32140
32141 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32142
32143 Import from Gnulib.
32144
32145 * gnulib/getdelim.c: New file.
32146 * gnulib/getline.c: Likewise.
32147
32148 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32149
32150 * include/grub/list.h (grub_assert_fail): Removed.
32151 (grub_bad_type_cast_real): New function.
32152 (grub_bad_type_cast): New macro.
32153 (GRUB_AS_LIST): Use grub_bad_type_cast.
32154 (GRUB_AS_LIST_P): Likewise.
32155 (GRUB_AS_NAMED_LIST): Likewise.
32156 (GRUB_AS_NAMED_LIST_P): Likewise.
32157 (GRUB_AS_PRIO_LIST): Likewise.
32158 (GRUB_AS_PRIO_LIST_P): Likewise.
32159 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32160
32161 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32162
32163 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32164 Fix syntax error.
32165
32166 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32167
32168 * configure.ac: Check for TARGET_CFLAGS initialization before we
32169 initialize it ourselves (sigh).
32170 Move a few modifications to TARGET_CFLAGS to be unconditional
32171 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32172 eh_frame)
32173
32174 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32175 * term/i386/pc/at_keyboard.c
32176 (keyboard_controller_wait_untill_ready): Likewise.
32177 (keyboard_controller_led): Rename `led_status' paramter to avoid
32178 name conflict.
32179
32180 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32181
32182 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32183 quotes.
32184
32185 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32186
32187 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32188
32189 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32190
32191 * normal/menu_text.c (grub_print_message_indented): Prevent
32192 past-the-end-of-array dereference.
32193
32194 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32195
32196 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32197 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32198
32199 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32200
32201 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32202 * normal/main.c (grub_normal_read_line): Remove a space from the
32203 default prompt.
32204
32205 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32206
32207 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32208 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32209 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32210 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32211 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32212 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32213 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32214
32215 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32216
32217 * video/readers/jpeg.c (cmd): Declare.
32218 (grub_cmd_jpegtest): Use `grub_command_t' type.
32219 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32220 Assign to `cmd'.
32221 (GRUB_MOD_FINI): Use `cmd' to unregister.
32222 * video/readers/png.c (cmd): Declare.
32223 (grub_cmd_pngtest): Use `grub_command_t' type.
32224 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32225 Assign to `cmd'.
32226 (GRUB_MOD_FINI): Use `cmd' to unregister.
32227 * video/readers/tga.c (cmd): Declare.
32228 (grub_cmd_tgatest): Use `grub_command_t' type.
32229 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32230 Assign to `cmd'.
32231 (GRUB_MOD_FINI): Use `cmd' to unregister.
32232
32233 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32234
32235 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32236 stops.
32237 * kern/corecmd.c (grub_register_core_commands): Likewise.
32238 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32239 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32240 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32241 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32242 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32243 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32244 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32245 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32246 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32247 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32248 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32249 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32250 * normal/handler.c (insert_handler): Likewise.
32251 * normal/main.c (GRUB_MOD_INIT): Likewise.
32252 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32253
32254 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32255
32256 * commands/help.c (grub_cmd_help): Print the command name before the
32257 summary.
32258 (GRUB_MOD_INIT): Remove command name from the summary.
32259 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32260 string as summary.
32261 * lib/arg.c (find_long): Print the command name before the summary.
32262 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32263 summary.
32264 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32265 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32266 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32267 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32268 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32269 * commands/date.c (GRUB_MOD_INIT): Likewise.
32270 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32271 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32272 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32273 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32274 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32275 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32276 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32277 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32278 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32279 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32280 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32281 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32282 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32283 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32284 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32285 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32286 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32287 * commands/password.c (GRUB_MOD_INIT): Likewise.
32288 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32289 * commands/read.c (GRUB_MOD_INIT): Likewise.
32290 * commands/search.c (GRUB_MOD_INIT): Likewise.
32291 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32292 * commands/test.c (GRUB_MOD_INIT): Likewise.
32293 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32294 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32295 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32296 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32297 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32298 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32299 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32300 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32301 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32302 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32303 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32304 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32305 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32306 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32307
32308 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32309
32310 Use search command for preliminar UUID search.
32311
32312 * commands/search.c: Split into ...
32313 * commands/search_wrap.c: ...this
32314 * commands/search.c: ...and this.
32315 * commands/search_file.c: New file.
32316 * commands/search_label.c: New file.
32317 * commands/search_uuid.c: New file.
32318 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32319 Add commands/search_wrap.c, commands/search_file.c,
32320 commands/search_label.c and commands/search_uuid.c.
32321 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32322 (search_mod_SOURCES): Set to commands/search_wrap.c.
32323 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32324 search_label.mod.
32325 (search_fs_file_mod_SOURCES): New variable.
32326 (search_fs_file_mod_CFLAGS): Likewise.
32327 (search_fs_file_mod_LDFLAGS): Likewise.
32328 (search_label_mod_SOURCES): Likewise.
32329 (search_label_mod_CFLAGS): Likewise.
32330 (search_label_mod_LDFLAGS): Likewise.
32331 (search_fs_uuid_mod_SOURCES): New variable.
32332 (search_fs_uuid_mod_CFLAGS): Likewise.
32333 (search_fs_uuid_mod_LDFLAGS): Likewise.
32334 (fs_file_mod_SOURCES): Removed.
32335 (fs_file_mod_CFLAGS): Likewise.
32336 (fs_file_mod_LDFLAGS): Likewise.
32337 (fs_uuid_mod_SOURCES): Removed.
32338 (fs_uuid_mod_CFLAGS): Likewise.
32339 (fs_uuid_mod_LDFLAGS): Likewise.
32340 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32341 Set to util/grub-install.in.
32342 * disk/fs_file.c: Removed.
32343 * disk/fs_uuid.c: Likewise.
32344 * include/grub/search.h: New file.
32345 * util/grub-install.in: Handle sparc64.
32346 Create and use load.cfg.
32347 * util/sparc64/ieee1275/grub-install.in: Removed.
32348
32349 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32350
32351 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32352 Ignore return status if CF is cleared.
32353 (grub_biosdisk_get_diskinfo_standard): Likewise.
32354
32355 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32356
32357 * term/i386/pc/at_keyboard.c
32358 (keyboard_controller_wait_untill_ready): New function.
32359 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32360 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32361 for keyboard polling, rather than duplicate the same loop. This
32362 saves a few bytes in code size.
32363
32364 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32365
32366 Support for (pxe[:server[:gateway]]) syntax and
32367 use environment variable for PXE.
32368
32369 * commands/i386/pc/pxecmd.c (options): Removed.
32370 (print_ip): Removed.
32371 (grub_cmd_pxe): Removed
32372 (grub_cmd_pxe_unload): New function.
32373 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32374 (grub_pxe_your_ip): Made static.
32375 (grub_pxe_default_server_ip): Likewise.
32376 (grub_pxe_default_gateway_ip): Likewise.
32377 (grub_pxe_blksize): Likewise.
32378 (parse_ip): New function.
32379 (grub_pxe_open): Support server and gateway specification.
32380 (grub_pxe_close): Free disk->data.
32381 (grub_pxefs_open): Use disk->data.
32382 (grub_pxefs_read): Likewise.
32383 (grub_env_write_readonly): New function.
32384 (set_mac_env): Likewise.
32385 (set_env_limn_ro): Likewise.
32386 (parse_dhcp_vendor): Likewise.
32387 (grub_pxe_detect): Set the environment variables.
32388 (set_ip_env): New function.
32389 (write_ip_env): Likewise.
32390 (grub_env_write_pxe_default_server): Likewise.
32391 (grub_env_write_pxe_default_gateway): Likewise.
32392 (grub_env_write_pxe_blocksize): Likewise.
32393 (GRUB_MOD_INIT(pxe)): Set environment variables.
32394 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32395 (grub_pxe_mac_addr_t): ... this. All users updated.
32396 (grub_pxe_your_ip): Removed.
32397 (grub_pxe_server_ip): Likewise.
32398 (grub_pxe_gateway_ip): Likewise.
32399 (grub_pxe_blksize): Likewise.
32400
32401 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32402
32403 * commands/help.c: Include `<grub/i18n.h>'.
32404 (grub_cmd_help): Gettextizze.
32405 (GRUB_MOD_INIT): Likewise.
32406 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32407 (GRUB_MOD_INIT): Gettextizze.
32408 * commands/search.c: Include `<grub/i18n.h>'.
32409 (options): Gettextizze.
32410 (GRUB_MOD_INIT): Gettextizze.
32411 * lib/arg.c: Include `<grub/i18n.h>'.
32412 (help_options): Gettextizze.
32413 (find_long): Likewise.
32414 (grub_arg_show_help): Likewise.
32415 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32416 (read_command_list): Gettextizze.
32417 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32418 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32419
32420 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32421
32422 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32423 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32424 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32425 (led_status): New variable.
32426 (keyboard_controller_led): New function.
32427 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32428 update led status for caps lock, num lock and scroll lock.
32429
32430 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32431
32432 * util/hostdisk.c (open_device): Fix a comment.
32433
32434 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32435
32436 * util/grub-install.in (host_os): New variable.
32437 * util/i386/efi/grub-install.in (host_os): Likewise.
32438
32439 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32440
32441 * util/mkisofs/write.c (padblock_write): Abort when given an
32442 excedingly large embed image, instead of silently truncating it.
32443
32444 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32445
32446 * include/multiboot.h: Indentation fixes.
32447
32448 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32449
32450 * include/multiboot.h (struct multiboot_aout_symbol_table)
32451 (struct multiboot_elf_section_header_table): New structure
32452 declarations (stolen from GRUB Legacy).
32453 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32454 table information.
32455
32456 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32457 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32458 type aliases.
32459
32460 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32461
32462 * include/multiboot.h: Make comments src2texi-friendly.
32463
32464 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32465
32466 For consistency with [multiboot]/docs/boot.S.
32467
32468 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32469 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32470 (MULTIBOOT_MAGIC2): Rename from this ...
32471 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32472
32473 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32474
32475 * include/multiboot.h: Remove `<grub/types.h>'.
32476 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32477 types. Update all users.
32478
32479 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32480
32481 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32482 `couldn't' and `can not' by `cannot'.
32483 * commands/i386/pc/drivemap.c: Likewise.
32484 * disk/ata.c: Likewise.
32485 * disk/ieee1275/nand.c: Likewise.
32486 * fs/affs.c: Likewise.
32487 * fs/fat.c: Likewise.
32488 * fs/hfs.c: Likewise.
32489 * fs/hfsplus.c: Likewise.
32490 * fs/iso9660.c: Likewise.
32491 * fs/jfs.c: Likewise.
32492 * fs/minix.c: Likewise.
32493 * fs/reiserfs.c: Likewise.
32494 * fs/sfs.c: Likewise.
32495 * fs/udf.c: Likewise.
32496 * fs/ufs.c: Likewise.
32497 * fs/xfs.c: Likewise.
32498 * loader/powerpc/ieee1275/linux.c: Likewise.
32499 * loader/sparc64/ieee1275/linux.c: Likewise.
32500 * util/grub-probe.c: Likewise.
32501 * util/misc.c: Likewise.
32502
32503 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32504
32505 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32506 grub_errno calls.
32507 * commands/acpi.c: Likewise.
32508 * commands/blocklist.c: Likewise.
32509 * commands/efi/loadbios.c: Likewise.
32510 * commands/i386/pc/drivemap.c: Likewise.
32511 * commands/loadenv.c: Likewise.
32512 * commands/memrw.c: Likewise.
32513 * commands/password.c: Likewise.
32514 * commands/videotest.c: Likewise.
32515 * disk/ata.c: Likewise.
32516 * disk/ata_pthru.c: Likewise.
32517 * disk/dmraid_nvidia.c: Likewise.
32518 * disk/ieee1275/nand.c: Likewise.
32519 * disk/ieee1275/ofdisk.c: Likewise.
32520 * disk/loopback.c: Likewise.
32521 * disk/lvm.c: Likewise.
32522 * disk/mdraid_linux.c: Likewise.
32523 * disk/raid.c: Likewise.
32524 * disk/raid6_recover.c: Likewise.
32525 * disk/scsi.c: Likewise.
32526 * efiemu/main.c: Likewise.
32527 * efiemu/mm.c: Likewise.
32528 * efiemu/pnvram.c: Likewise.
32529 * efiemu/symbols.c: Likewise.
32530 * font/font.c: Likewise.
32531 * fs/cpio.c: Likewise.
32532 * fs/hfsplus.c: Likewise.
32533 * fs/iso9660.c: Likewise.
32534 * fs/jfs.c: Likewise.
32535 * fs/minix.c: Likewise.
32536 * fs/ntfs.c: Likewise.
32537 * fs/ntfscomp.c: Likewise.
32538 * fs/reiserfs.c: Likewise.
32539 * fs/ufs.c: Likewise.
32540 * fs/xfs.c: Likewise.
32541 * gettext/gettext.c: Likewise.
32542 * include/grub/auth.h: Likewise.
32543 * kern/elf.c: Likewise.
32544 * kern/file.c: Likewise.
32545 * kern/ieee1275/init.c: Likewise.
32546 * kern/ieee1275/mmap.c: Likewise.
32547 * kern/ieee1275/openfw.c: Likewise.
32548 * kern/powerpc/dl.c: Likewise.
32549 * kern/sparc64/dl.c: Likewise.
32550 * lib/arg.c: Likewise.
32551 * loader/i386/bsd.c: Likewise.
32552 * loader/i386/bsdXX.c: Likewise.
32553 * loader/i386/efi/linux.c: Likewise.
32554 * loader/i386/efi/xnu.c: Likewise.
32555 * loader/i386/ieee1275/linux.c: Likewise.
32556 * loader/i386/linux.c: Likewise.
32557 * loader/i386/multiboot.c: Likewise.
32558 * loader/i386/pc/linux.c: Likewise.
32559 * loader/i386/pc/multiboot2.c: Likewise.
32560 * loader/i386/xnu.c: Likewise.
32561 * loader/ieee1275/multiboot2.c: Likewise.
32562 * loader/macho.c: Likewise.
32563 * loader/machoXX.c: Likewise.
32564 * loader/multiboot2.c: Likewise.
32565 * loader/multiboot_loader.c: Likewise.
32566 * loader/powerpc/ieee1275/linux.c: Likewise.
32567 * loader/sparc64/ieee1275/linux.c: Likewise.
32568 * loader/xnu.c: Likewise.
32569 * loader/xnu_resume.c: Likewise.
32570 * mmap/i386/pc/mmap.c: Likewise.
32571 * normal/menu_viewer.c: Likewise.
32572 * partmap/acorn.c: Likewise.
32573 * partmap/amiga.c: Likewise.
32574 * partmap/apple.c: Likewise.
32575 * script/lexer.c: Likewise.
32576 * term/gfxterm.c: Likewise.
32577 * term/i386/pc/serial.c: Likewise.
32578 * term/i386/pc/vga.c: Likewise.
32579 * term/ieee1275/ofconsole.c: Likewise.
32580 * term/terminfo.c: Likewise.
32581 * video/bitmap.c: Likewise.
32582 * video/efi_gop.c: Likewise.
32583 * video/efi_uga.c: Likewise.
32584 * video/fb/video_fb.c: Likewise.
32585 * video/i386/pc/vbe.c: Likewise.
32586 * video/readers/tga.c: Likewise.
32587 * video/video.c: Likewise.
32588
32589 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32590
32591 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32592 * commands/lspci.c: Likewise.
32593 * commands/probe.c: Likewise.
32594 * commands/xnu_uuid.c: Likewise.
32595 * conf/i386-coreboot.rmk: Likewise.
32596 * conf/i386-efi.rmk: Likewise.
32597 * conf/i386-ieee1275.rmk: Likewise.
32598 * conf/i386-pc.rmk: Likewise.
32599 * conf/powerpc-ieee1275.rmk: Likewise.
32600 * conf/sparc64-ieee1275.rmk: Likewise.
32601 * conf/x86_64-efi.rmk: Likewise.
32602 * fs/i386/pc/pxe.c: Likewise.
32603 * gettext/gettext.c: Likewise.
32604 * include/grub/efi/graphics_output.h: Likewise.
32605 * include/grub/i386/pc/memory.h: Likewise.
32606 * kern/env.c: Likewise.
32607 * kern/i386/qemu/startup.S: Likewise.
32608 * lib/i386/pc/biosnum.c: Likewise.
32609 * lib/i386/relocator.c: Likewise.
32610 * lib/i386/relocator_asm.S: Likewise.
32611 * lib/relocator.c: Likewise.
32612 * loader/i386/bsd.c: Likewise.
32613 * loader/i386/multiboot.c: Likewise.
32614 * loader/i386/pc/chainloader.c: Likewise.
32615 * loader/i386/xnu.c: Likewise.
32616 * loader/xnu.c: Likewise.
32617 * normal/main.c: Likewise.
32618 * normal/menu_text.c: Likewise.
32619 * util/getroot.c: Likewise.
32620 * util/grub-mkconfig_lib.in: Likewise.
32621 * util/grub.d/00_header.in: Likewise.
32622 * util/i386/pc/grub-mkimage.c: Likewise.
32623 * util/mkisofs/eltorito.c: Likewise.
32624 * util/mkisofs/exclude.h: Likewise.
32625 * util/mkisofs/hash.c: Likewise.
32626 * util/mkisofs/iso9660.h: Likewise.
32627 * util/mkisofs/joliet.c: Likewise.
32628 * util/mkisofs/mkisofs.c: Likewise.
32629 * util/mkisofs/mkisofs.h: Likewise.
32630 * util/mkisofs/multi.c: Likewise.
32631 * util/mkisofs/name.c: Likewise.
32632 * util/mkisofs/rock.c: Likewise.
32633 * util/mkisofs/tree.c: Likewise.
32634 * util/mkisofs/write.c: Likewise.
32635 * video/efi_gop.c: Likewise.
32636
32637 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32638
32639 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32640 size counting.
32641
32642 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32643
32644 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32645 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32646
32647 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32648
32649 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32650 (GRUB_MOD_INIT(memrw)): Update help line.
32651
32652 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32653
32654 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32655 Use grub_extcmd_t. All users updated.
32656 (options): New variable.
32657 (grub_cmd_read): Restructure for readability. Support "-v" option.
32658 (grub_cmd_write): Restructure for readability.
32659
32660 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32661
32662 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32663
32664 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32665
32666 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32667 with the actual contents of the correspondending make variable.
32668 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32669 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32670 specifying `*.lst' and `efiemu??.o'
32671
32672 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32673
32674 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32675 after function name.
32676 Noticed by Rene Engelhard <rene@debian.org>.
32677
32678 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32679
32680 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32681 (options): New variable.
32682 (iospace): Likewise.
32683 (grub_lspci_iter): List IO spaces if "-i" was given.
32684 (grub_cmd_lspci): Parse options.
32685 (GRUB_MOD_INIT(lspci)): Use extcmd.
32686 (GRUB_MOD_FINI(lspci)): Likewise.
32687
32688 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32689
32690 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32691 `function' keyword.
32692 Patch by Tony Mancill <tmancill@debian.org>.
32693
32694 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32695
32696 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32697 (grub_uhci_portstatus): Likewise.
32698 (grub_uhci_portstatus): Add necessary delay.
32699 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32700
32701 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32702
32703 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32704 (GRUB_MOD_INIT): Likewise.
32705 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32706 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32707 * commands/echo.c (options): Fix capitalizations and/or full stops.
32708 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32709 (enable_rom_area): Likewise.
32710 (GRUB_MOD_INIT): Likewise.
32711 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32712 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32713 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32714 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32715 * commands/hexdump.c (options): Likewise.
32716 * commands/i386/cpuid.c (options): Likewise.
32717 (GRUB_MOD_INIT): Likewise.
32718 * commands/i386/pc/drivemap.c (options): Likewise.
32719 (GRUB_MOD_INIT): Likewise.
32720 * commands/i386/pc/halt (options): Likewise.
32721 (GRUB_MOD_INIT): Likewise.
32722 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32723 * commands/i386/pc/pxecmd.c (options): Likewise.
32724 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32725 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32726 * commands/keystatus.c (options): Likewise.
32727 (GRUB_MOD_INIT): Likewise.
32728 * commands/loadenv.c (options): Likewise.
32729 * commands/ls.c (options): Likewise.
32730 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32731 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32732 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32733 * commands/parttool.c (helpmsg): Likewise.
32734 * commands/probe.c (options): Likewise.
32735 * commands/read.c (GRUB_MOD_INIT): Likewise.
32736 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32737 * commands/search.c (options): Likewise.
32738 * commands/sleep.c (options): Likewise.
32739 * commands/test.c (GRUB_MOD_INIT): Likewise.
32740 * commands/true.c (GRUB_MOD_INIT): Likewise.
32741 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32742 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32743 * lib/arg.c (help_options): Likewise.
32744 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32745 `$(XGETTEXT)'.
32746 * po/POTFILES: Add `commands/loadenv.c'.
32747
32748 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32749
32750 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32751 instead of specifying them explicit.
32752
32753 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32754
32755 * NEWS: Add grub-probe support for GNU/Hurd.
32756
32757 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32758
32759 * NEWS: gettext was added after 1.97.
32760
32761 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32762
32763 * util/mkisofs/msdos_partition.h: New file (based on
32764 include/grub/msdos_partition.h).
32765 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32766 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32767 (ld_options, main): Recognize --protective-msdos-label.
32768 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32769 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32770 (padblock_write): If `use_protective_msdos_label' is set, patch a
32771 protective DOS-style label in the output image.
32772
32773 * util/grub-mkrescue.in: Use --protective-msdos-label.
32774
32775 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32776
32777 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32778 boot.
32779
32780 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32781
32782 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32783 variables.
32784 (ld_options, main): Recognize `--embedded-boot'.
32785 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32786 declarations.
32787 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32788 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
32789 (padblock_write): Likewise. Rewrite to support embedded boot image.
32790
32791 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
32792 for BIOS-based disk boot instead of only ElTorito.
32793
32794 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32795
32796 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
32797 build (not needed for bootstrap).
32798
32799 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32800
32801 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32802 from i386-pc build (not needed for bootstrap).
32803 Rewrite a pair of strings.
32804
32805 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32806
32807 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32808
32809 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
32810
32811 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32812
32813 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32814
32815 * kern/env.c (grub_env_context_open): Mark exported variable for
32816 reexport.
32817
32818 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32819
32820 * kern/env.c (grub_env_export): Create nonexistent variables before
32821 exporting.
32822
32823 2009-12-20 Carles Pina i Estany <carles@pina.cat>
32824
32825 * include/grub/auth.h: Include `<grub/i18n.h>'.
32826 (GRUB_GET_PASSWORD): Gettextizze string.
32827 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32828 menu_text.c.
32829 (grub_utf8_to_ucs4_alloc): Fix indentation.
32830 (grub_print_ucs4): Likewise.
32831 (grub_getstringwidth): Likewise.
32832 (print_message_indented): New declaration.
32833 * normal/auth.c: Include `<grub/i18n.h>'.
32834 (grub_auth_check_authentication): Gettexttize string.
32835 * normal/cmdline.c: Include `<grub/i18n.h>'.
32836 (grub_cmdline_get): Gettextizze.
32837 * normal/color.c: Include `<grub/i18n.h>'.
32838 (grub_parse_color_name_pair): Gettexttize strings.
32839 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32840 string (use `print_message_indented').
32841 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32842 `include/grub/normal.h'.
32843 (print_message_indented): Renamed to ...
32844 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32845 used in normal/main.c).
32846 (print_message): Use `grub_print_message_indented' instead of
32847 `print_message_indented'.
32848 (print_timeout): Likewise.
32849 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32850 (grub_normal_print_device_info): Gettexttize strings.
32851 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32852
32853 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32854
32855 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32856 of arguments. Return number of tokens and not arguments. All users
32857 updated.
32858
32859 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32860
32861 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32862 non-MSDOS paritions.
32863
32864 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32865
32866 * include/grub/types.h (UNUSED): Removed since it conflicts with
32867 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32868 Reported by Grégoire Sutre.
32869
32870 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32871
32872 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32873 (grub_print_ucs4_alloc): Likewise.
32874 (grub_getstringwidth): Likewise.
32875 * normal/main.c (grub_normal_init_page): Gettextize version string.
32876 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32877 (getstringwidth): Renamed to ...
32878 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32879 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32880 (grub_print_ucs4): Remove `static' qualifer (now used in
32881 normal/main.c).
32882 * po/POTFILES: Add normal/main.c.
32883
32884 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32885
32886 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32887 (print_message_indented): Add `margin_left' and `margin_right'
32888 parameters.
32889 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32890 strings.
32891 (print_timeout): Use `print_message_indented' to print the message.
32892 Deletes `second_stage' parameter.
32893 (run_menu): Update `print_timeout' calls.
32894
32895 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32896
32897 Fix console palette on OpenFirmware.
32898
32899 * term/ieee1275/ofconsole.c (MAX): Removed.
32900 (colors): Redone based on VGA palette.
32901 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32902 colors are supported.
32903 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32904
32905 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32906
32907 Fix potential EfiEmu double prepare.
32908
32909 * efiemu/main.c (prepared): New variable
32910 (grub_efiemu_unload): Set prepare to '0'.
32911 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32912
32913 set_virtual_address_map support.
32914
32915 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32916 prototype.
32917 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32918 prototype.
32919 (grub_efiemu_crc32): Likewise.
32920 (grub_efiemu_crc64): Likewise.
32921 (grub_efiemu_set_virtual_address_map): Likewise.
32922 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32923 New definition.
32924 (grub_autoefi_set_virtual_address_map): Likewise.
32925 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32926 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32927 Restructure flow to accomodate it.
32928 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32929 (grub_efiemu_crc): Recompute CRC32.
32930 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32931 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32932 * efiemu/symbols.c (relocated_handle): New variable.
32933 (grub_efiemu_free_syms): Free relocated_handle.
32934 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32935 (grub_efiemu_write_sym_markers): New function.
32936 (grub_efiemu_set_virtual_address_map): Likewise.
32937
32938 Newer XNU parameters.
32939
32940 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32941 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32942 (grub_xnu_fill_devicetree): New prototype.
32943 (grub_xnu_heap_real_start): New variable.
32944 * loader/xnu.c (get_name_ptr): New function.
32945 (grub_xnu_load_driver): Fill namelen and name.
32946
32947 64-bit xnu support.
32948
32949 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32950 and 'loader/macho64.c'.
32951 * conf/i386-pc.rmk: Likewise.
32952 * conf/x86_64-efi.rmk: Likewise.
32953 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32954 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32955 * include/grub/macho.h (grub_macho_segment64): New structure.
32956 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32957 (grub_macho_size32): ... to this.
32958 (grub_macho32_get_entry_point): Renamed from ...
32959 (grub_macho_get_entry_point32): ... to this.
32960 (grub_macho_contains_macho64): New prototype.
32961 (grub_macho_size64): Likewise.
32962 (grub_macho_get_entry_point64): Likewise.
32963 (grub_macho32_load): Renamed from ...
32964 (grub_macho_load32): ... to this.
32965 (grub_macho32_filesize): Renamed from ...
32966 (grub_macho_filesize32): ... to this.
32967 (grub_macho32_readfile): Renamed from ...
32968 (grub_macho_readfile32): ... to this.
32969 (grub_macho_filesize64): New prototype.
32970 (grub_macho_readfile64): Likewise.
32971 (grub_macho_parse32): Likewise.
32972 (grub_macho_parse64): Likewise.
32973 * loader/macho.c: Split into ...
32974 * loader/machoXX.c: ... and this. Replace 32 with XX.
32975 * loader/macho32.c: New file.
32976 * loader/macho64.c: Likewise.
32977 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32978 (grub_cmd_xnu_kernel): Make 32-bit only.
32979 (grub_cmd_xnu_kernel64): New function.
32980 (grub_xnu_load_driver): Support Mach-O 64.
32981 (grub_cmd_xnu_mkext): Likewise.
32982 * util/grub.d/30_os-prober.in (osx_entry): New function.
32983 Generate entries for 64-bit boot too.
32984
32985 Eliminate ad-hoc tree format in XNU and EfiEmu.
32986
32987 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32988 * efiemu/pnvram.c: Rewritten to use environment variables.
32989 All users updated.
32990
32991 Inline utf16_to_utf8.
32992
32993 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32994 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32995 All users updated.
32996 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32997
32998 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32999 * commands/usbtest.c (grub_usb_get_string): ... move here.
33000 (usb_print_str): Fix error handling.
33001 * include/grub/usb.h (grub_usb_get_string): Remove.
33002
33003 UTF-8 to UTF-16 transformation.
33004
33005 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33006 (charset_mod_SOURCES): New variable.
33007 (charset_mod_CFLAGS): Likewise.
33008 (charset_mod_LDFLAGS): Likewise.
33009 * include/grub/utf.h: New file.
33010 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33011
33012 Support for device properties.
33013
33014 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33015 (grub_xnu_devprop_device_header): Likewise.
33016 (grub_xnu_devprop_device_descriptor): Likewise.
33017 (grub_xnu_devprop_add_device): New prototype.
33018 (grub_xnu_devprop_remove_device): Likewise.
33019 (grub_xnu_devprop_remove_property): Likewise.
33020 (grub_xnu_devprop_add_property_utf8): Likewise.
33021 (grub_xnu_devprop_add_property_utf16): Likewise.
33022 (grub_cpu_xnu_init): Likewise.
33023 (grub_cpu_xnu_fini): Likewise.
33024 (grub_cpu_xnu_unload): Likewise.
33025 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33026 (property_descriptor): Likewise.
33027 (devices): New variable.
33028 (grub_xnu_devprop_remove_property): New function.
33029 (grub_xnu_devprop_add_device): Likewise.
33030 (grub_xnu_devprop_remove_device): Likewise.
33031 (grub_xnu_devprop_add_property): Likewise.
33032 (grub_xnu_devprop_add_property_utf8): Likewise.
33033 (grub_xnu_devprop_add_property_utf16): Likewise.
33034 (hextoval): Likewise.
33035 (grub_cpu_xnu_fill_devprop): Likewise.
33036 (grub_cmd_devprop_load): Likewise.
33037 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33038 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33039 (cmd_devprop_load): New variable.
33040 (grub_cpu_xnu_init): New function.
33041 (grub_cpu_xnu_fini): Likewise.
33042 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33043 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33044 (grub_cmd_xnu_devtree): Likewise.
33045 (hextoval): New function.
33046 (unescape): Likewise.
33047 (grub_xnu_fill_devicetree): Likewise.
33048
33049 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33050 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33051
33052 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33053
33054 Workaround for broken ATI VBE.
33055
33056 * video/i386/pc/vbe.c (last_set_mode): New variable.
33057 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33058 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33059 (grub_video_vbe_setup): Don't check for reserved flag.
33060
33061 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33062
33063 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33064 the `find' command.
33065
33066 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33067
33068 UUID support for HFS.
33069
33070 * fs/hfs.c (grub_hfs_uuid): New function.
33071 (grub_hfs_fs): New value .uuid.
33072 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33073
33074 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33075
33076 Fix a segfault with parsing unknown long options.
33077
33078 * util/grub-mkrelpath.c (options): Zero terminate it.
33079
33080 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33081
33082 * include/grub/misc.h (grub_puts): New declaration.
33083 (grub_puts_): Likewise.
33084 * kern/misc.c (grub_puts): New definition.
33085 (grub_puts_): Likewise.
33086
33087 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33088
33089 * util/grub-probe.c (probe): Improve error message.
33090
33091 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33092
33093 * loader/i386/multiboot_elfxx.c
33094 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33095 initialization.
33096
33097 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33098
33099 Relocator framework
33100
33101 * loader/i386/xnu_helper.S: Removed. All users updated.
33102 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33103 (relocator_mod_SOURCES): New variable.
33104 (relocator_mod_CFLAGS): Likewise.
33105 (relocator_mod_LDFLAGS): Likewise.
33106 (relocator_mod_ASFLAGS): Likewise.
33107 * conf/x86_64.rmk: Likewise.
33108 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33109 (grub_multiboot_payload_entry_offset): Likewise.
33110 (grub_multiboot_forward_relocator): Likewise.
33111 (grub_multiboot_forward_relocator_end): Likewise.
33112 (grub_multiboot_backward_relocator): Likewise.
33113 (grub_multiboot_backward_relocator_end): Likewise.
33114 (grub_multiboot_payload_eip): New variable.
33115 (grub_multiboot_payload_orig): Likewise.
33116 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33117 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33118 * include/grub/i386/memory.h
33119 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33120 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33121 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33122 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33123 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33124 * include/grub/i386/relocator.h: New file.
33125 * include/grub/x86_64/relocator.h: Likewise.
33126 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33127 (XNU_RELOCATOR): New macro.
33128 (grub_xnu_launcher_start): Remove.
33129 (grub_xnu_launcher_end): Likewise.
33130 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33131 (grub_xnu_heap_real_start): Remove.
33132 (grub_xnu_heap_start): Change to void *. All users updated.
33133 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33134 * lib/i386/relocator.c: New file.
33135 * lib/i386/relocator_asm.S: Likewise.
33136 * lib/i386/relocator_backward.S: Likewise.
33137 * lib/mips/relocator.c: Likewise.
33138 * lib/mips/relocator_asm.S: Likewise.
33139 * lib/relocator.c: Likewise.
33140 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33141 (entry): Removed.
33142 (playground): Likewise.
33143 (grub_multiboot_payload_orig): New variable.
33144 (grub_multiboot_payload_dest): Likewise.
33145 (grub_multiboot_payload_size): Likewise.
33146 (grub_multiboot_payload_eip): Likewise.
33147 (grub_multiboot_payload_esp): Likewise.
33148 (grub_multiboot_boot): Use grub_relocator32_boot.
33149 (grub_multiboot_unload): Free relocators.
33150 (grub_multiboot): Setup stack. Use relocators.
33151 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33152 (grub_multiboot_load_elfXX): Use relocators.
33153 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33154 (grub_multiboot_payload_size): Likewise.
33155 (grub_multiboot_payload_dest): Likewise.
33156 (grub_multiboot_payload_entry_offset): Likewise.
33157 (grub_multiboot_forward_relocator): Likewise.
33158 (grub_multiboot_backward_relocator): Likewise.
33159 (grub_multiboot_real_boot): Likewise.
33160 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33161 (grub_xnu_entry_point): Likewise.
33162 (grub_xnu_arg1): Likewise.
33163 (grub_xnu_stack): Likewise.
33164 (grub_xnu_launch): Removed.
33165 (grub_xnu_boot_resume): New function.
33166 (grub_xnu_boot): Use relocators.
33167 * loader/i386/xnu_helper.S: Removed.
33168 * loader/xnu.c (grub_xnu_heap_start): New variable.
33169 (grub_xnu_heap_size): Likewise.
33170 (grub_xnu_heap_malloc): Use relocators.
33171 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33172
33173 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33176 anything.
33177
33178 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33179
33180 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33181 GRUB_ERR_NONE before calling grub_env_set.
33182
33183 2009-12-12 Robert Millan <rmh@aybabtu.com>
33184
33185 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33186 * genmk.rb (video): New variable.
33187 (CLEANFILES, VIDEOFILES): Add #{video}.
33188 (#{video}): New target rule.
33189 * genvideolist.sh: New file.
33190 * Makefile.in (pkglib_DATA): Add video.lst.
33191 (video.lst): New target rule.
33192 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33193 `video.lst'.
33194 * util/grub.d/30_os-prober.in: Replace `vbe' with
33195 ${GRUB_VIDEO_BACKEND}.
33196
33197 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33198
33199 * THANKS: Add David Miller.
33200
33201 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33202
33203 libpciaccess support.
33204
33205 * Makefile.in (LIBPCIACCESS): New variable.
33206 (enable_grub_emu_pci): Likewise.
33207 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33208 util/pci.c and commands/lspci.c.
33209 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33210 * configure.ac (grub-emu-pci): New option.
33211 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33212 (grub_pci_device_unmap_range): Likewise.
33213 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33214 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33215 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33216 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33217 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33218 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33219 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33220 * include/grub/pciutils.h: New file.
33221 * util/pci.c: Likewise.
33222
33223 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33224
33225 * util/misc.c: Don't include <errno.h> twice.
33226
33227 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33228
33229 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33230 name in an error message.
33231 (grub_biosdisk_rw): Likewise.
33232
33233 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33234
33235 Eliminate NTFS 4Gib barrier.
33236
33237 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33238 (read_run_data): Likewise.
33239 (grub_ntfs_read_run_list): Likewise.
33240 (grub_ntfs_read_block): Likewise.
33241 (grub_ntfs_iterate_dir): Likewise.
33242 (read_mft): Likewise.
33243 (read_data): Likewise.
33244 Use COM_LOG_LEN.
33245 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33246 to avoid 64-bit division
33247 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33248 (grub_ntfs_rlst): Use grub_disk_addr_t.
33249
33250 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33251
33252 Eliminate grub-fstest 4Gib barrier.
33253
33254 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33255 (read_file): Fix error reporting.
33256
33257 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33258
33259 Eliminate hexdump 4Gib barrier.
33260
33261 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33262 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33263
33264 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33265
33266 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33267 Fixes amarsh bug.
33268
33269 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33270
33271 Remove miscellaneous files in distclean target.
33272
33273 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33274
33275 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33276
33277 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33278 if they're already set. This resolves the conflict between my
33279 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33280 fixing the --grub-probe option again.
33281 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33282 change on 2009-10-06, so that we now once again source
33283 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33284
33285 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33286
33287 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33288 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33289 `util/devicemap.c'.
33290
33291 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33292
33293 * include/grub/misc.h (grub_printf_): New declaration.
33294 * kern/misc.c (grub_printf_): New definition.
33295 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33296 instead of `grub_printf' and `_'.
33297 * normal/menu_entry.c (store_completion): Likewise.
33298 (run): Likewise.
33299 (grub_menu_entry_run): Likewise.
33300 * normal/menu_text.c (grub_wait_after_message): Likewise.
33301 (notify_booting): Likewise.
33302 (notify_fallback): Likewise.
33303 (notify_execution_failure): Likewise.
33304
33305 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33306
33307 * configure.ac: Check for vasprintf.
33308 * util/misc.c (asprintf): Move allocation from here ...
33309 (vasprintf): ... to here. New function.
33310 (xasprintf): New function.
33311 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33312 prototypes.
33313 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33314 * util/grub-mkfont.c (write_font): Likewise.
33315 * util/grub-probe.c (probe): Likewise.
33316 * util/hostdisk.c (make_device_name): Likewise.
33317
33318 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33319
33320 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33321 anything even prefixed with 'cdrom' as a cdrom.
33322
33323 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33324
33325 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33326 mount points.
33327
33328 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33329
33330 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33331 grub_gettext_msg_list.
33332 (grub_gettext_gettranslation_from_position): Return const char *
33333 and not char *.
33334 (grub_gettext_translate): Add the translated strings into a list,
33335 returns from the list if existing there.
33336 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33337 (grub_gettext_delete_list): Delete the list.
33338 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33339 lang environment variable is changed.
33340 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33341
33342 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33343
33344 Rename kernel.mod to kernel.img.
33345
33346 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33347 (kernel_mod_EXPORTS): Rename to ...
33348 (kernel_img_EXPORTS): ... this.
33349 (kernel_mod_SOURCES): Rename to ...
33350 (kernel_img_SOURCES): ... this.
33351 (kernel_mod_HEADERS): Rename to ...
33352 (kernel_img_HEADERS): ... this. All users updated.
33353 (kernel_mod_CFLAGS): Rename to ...
33354 (kernel_img_CFLAGS): ... this.
33355 (kernel_mod_ASFLAGS): Rename to ...
33356 (kernel_img_ASFLAGS): ... this.
33357 (kernel_mod_LDFLAGS): Rename to ...
33358 (kernel_img_LDFLAGS): ... this.
33359 * conf/x86_64-efi.rmk: Likewise.
33360 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33361 (read_kernel_image): ... this. All users updated.
33362 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33363
33364 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33365
33366 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33367 (print_spaces): New function.
33368 (grub_print_ucs4): New function.
33369 (getstringwidth): New function.
33370 (print_message_indented): New function.
33371 (print_message): Gettexttize strings using print_message_indented.
33372 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33373 width.
33374 (get_entry_number): Gettextize and uses dynamic terminal width.
33375 (notify_booting, notify_fallback, notify_execution_failure):
33376 Gettextize.
33377 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33378 string.
33379 (run): Likewise.
33380 (grub_menu_entry_run): Likewise.
33381 * PO/POTFILES: Add normal/menu_entry.c.
33382
33383 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33384
33385 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33386
33387 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33388
33389 * util/grub-install.in: Install gettext .mo files.
33390 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33391
33392 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33393
33394 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33395 grub_dprintf.
33396
33397 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33398
33399 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33400 non-firmware-dependant one in realmode.S takes precedence.
33401
33402 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33403
33404 * commands/halt.c: Replace misc arch-specific headers with
33405 `<grub/misc.h>'.
33406 * commands/reboot.c: Likewise.
33407 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33408 `<grub/misc.h>'.
33409 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33410 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33411 (kernel_img_SOURCES): ... to here.
33412
33413 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33414 * include/grub/i386/pc/init.h: Likewise.
33415 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33416 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33417
33418 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33419
33420 * include/grub/i386/halt.h: Remove.
33421 * include/grub/i386/reboot.h: Likewise.
33422
33423 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33424
33425 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33426
33427 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33428 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33429 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33430 "progname.h"
33431 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33432 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33433 (usage): Add missing comma in printf.
33434
33435 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33436
33437 Use the same reboot approach on i386 coreboot and qemu as we do on
33438 BIOS.
33439
33440 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33441 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33442 * kern/i386/reboot.c: Remove.
33443 * include/grub/i386/reboot.h (grub_reboot): Export function.
33444 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33445 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33446 0xf000:0xfff0 instead of 0xffff:0x0000.
33447 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33448 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33449
33450 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33451
33452 Fix $srcdir != $objdir build.
33453
33454 * Makefile.in (po/%.po): Rewrite as ...
33455 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33456
33457 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33458
33459 Fix GNU/Hurd grub-install crash.
33460 * util/grub-probe.c (probe): Try to access `path' only when it is not
33461 NULL.
33462
33463 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33464
33465 Correct module naming.
33466
33467 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33468 (GRUB_MOD_INIT(efi_uga)): ... to this
33469 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33470 (GRUB_MOD_FINI(efi_uga)): ... to this
33471 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33472 (GRUB_MOD_INIT(efi_gop)): ... to this
33473 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33474 (GRUB_MOD_FINI(efi_gop)): ... to this
33475
33476 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33477
33478 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33479 translatable.
33480 (usage): Translate `arg' strings using gettext().
33481 Thanks to Jordi Mallach for the suggestion.
33482
33483 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33484
33485 GOP support. Based on patch from Bean
33486 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33487
33488 * video/efi_gop.c: New file.
33489 * include/grub/efi/graphics_output.h: Likewise.
33490 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33491 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33492 variables.
33493 * conf/x86_64-efi.rmk: Likewise.
33494
33495 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33496
33497 Rename efi_fb to efi_uga.
33498
33499 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33500 'efi_uga.mod'.
33501 (efi_fb_mod_SOURCES): Rename this ...
33502 (efi_uga_mod_SOURCES): ... to this.
33503 (efi_fb_mod_CFLAGS): Rename this ...
33504 (efi_uga_mod_CFLAGS): ... to this.
33505 (efi_fb_mod_LDFLAGS): Rename this ...
33506 (efi_uga_mod_LDFLAGS): ... to this.
33507 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33508 'efi_uga.mod'.
33509 (efi_fb_mod_SOURCES): Rename this ...
33510 (efi_uga_mod_SOURCES): ... to this.
33511 (efi_fb_mod_CFLAGS): Rename this ...
33512 (efi_uga_mod_CFLAGS): ... to this.
33513 (efi_fb_mod_LDFLAGS): Rename this ...
33514 (efi_uga_mod_LDFLAGS): ... to this.
33515 * video/efi_fb.c: Move this ...
33516 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33517
33518 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33519
33520 * po/README: New file. Explain our PO file workflow.
33521
33522 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33523
33524 * po/ChangeLog: Remove. Move relevant entries back to ...
33525 * ChangeLog: ... here.
33526 * po/ca.po: Remove (now handled by TLP).
33527 * po/id.po: Likewise.
33528 * po/zh_CN.po: Likewise.
33529 * Makefile.in (LINGUAS): Initialize in a way that supports
33530 empty set.
33531
33532 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33533
33534 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33535 reliing on po/LINGUAS.
33536 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33537 (po/%.po): ... this.
33538
33539 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33540
33541 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33542 (main): Use `program_name' instead of nonexistent `progname'.
33543
33544 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33545
33546 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33547 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33548
33549 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33550
33551 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33552 commit.
33553 * conf/i386-efi.rmk: Likewise.
33554 * conf/i386-ieee1275.rmk: Likewise.
33555 * conf/powerpc-ieee1275.rmk: Likewise.
33556 * conf/sparc64-ieee1275.rmk: Likewise.
33557 * conf/x86_64-efi.rmk: Likewise.
33558
33559 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33560
33561 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33562
33563 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33564
33565 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33566
33567 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33568
33569 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33570 (grub_mkdevicemap_SOURCES): New variable.
33571 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33572 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33573 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33574 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33575 (grub_mkdevicemap_SOURCES): Remove.
33576 * conf/i386-efi.rmk: Likewise.
33577 * conf/i386-ieee1275.rmk: Likewise.
33578 * conf/i386-pc.rmk: Likewise.
33579 * conf/powerpc-ieee1275.rmk: Likewise.
33580 * conf/sparc64-ieee1275.rmk: Likewise.
33581 * conf/x86_64-efi.rmk: Likewise.
33582 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33583 (usage): Fix strings to use `program_name'.
33584 (main): Initialize gettext.
33585 * util/grub-editenv.c: Likewise.
33586 * util/grub-emu.c: Likewise.
33587 * util/grub-fstest.c: Likewise.
33588 * util/grub-mkdevicemap.c: Likewise.
33589 * util/grub-mkfont.c: Likewise.
33590 * util/grub-mkrelpath.c: Likewise.
33591 * util/grub-pe2elf.c: Likewise.
33592 * util/grub-probe.c: Likewise.
33593 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33594 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33595 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33596
33597 * util/misc.c: Include `"progname.h"'.
33598 (progname): Remove variable.
33599 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33600
33601 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33602
33603 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33604 printf and print a newline after the menuentry header line.
33605 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33606
33607 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33608
33609 autoconf >= 2.60 support $(localedir).
33610
33611 * INSTALL: Note that autoconf 2.60 is required.
33612 * configure.ac (AC_PREREQ): Bump to 2.60.
33613 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33614 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33615
33616 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33617
33618 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33619 aclocal is run.
33620
33621 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33622
33623 * normal/main.c (grub_normal_read_line): Fix off-by-one
33624 buffer overflow.
33625
33626 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33627
33628 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33629 "parser.grub" in grub_command_execute() call.
33630
33631 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33632
33633 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33634 * conf/i386-efi.rmk: Likewise.
33635 * conf/i386-ieee1275.rmk: Likewise.
33636 * conf/i386-pc.rmk: Likewise.
33637 * conf/powerpc-ieee1275.rmk: Likewise.
33638 * conf/sparc64-ieee1275.rmk: Likewise.
33639 * conf/x86_64-efi.rmk: Likewise.
33640 * gettext/gettex.c: Include <grub/i18n.h>.
33641 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33642 here ...
33643 * include/grub/i18n.h: ... to here
33644 * include/grub/i18n.h: ... to here.
33645 * kern/misc.c: Include <grub/i18n.h>
33646 (grub_gettext_dummy): Move above user.
33647
33648 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33649
33650 * util/Makefile.in (install-local): Convert a `for' into a normal
33651 shell expansion.
33652
33653 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33654
33655 * autogen.sh: Add automake call.
33656 * config.guess: Remove.
33657 * config.sub: Likewise.
33658 * install-sh: Likewise.
33659
33660 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33661
33662 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33663
33664 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33665
33666 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33667 function to a normal shell `for'.
33668
33669 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33670
33671 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33672
33673 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33674
33675 * util/grub-mkrelpath.c: New file.
33676 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33677 (grub_mkrelpath_SOURCES): New variable.
33678 * include/grub/util/misc.h: New function prototype.
33679 * util/misc.c (make_system_path_relative_to_its_root): New function.
33680
33681 * util/grub-mkconfig_lib.in (bindir): New variable.
33682 (grub_mkrelpath): Likewise.
33683 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33684
33685 * util/probe.c (probe): Make the file path relative to its root.
33686 Change a info message to use the GRUB path. Enable again the
33687 check if we can read the file with GRUB facilities.
33688
33689 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33690 to its root.
33691
33692 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33693
33694 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33695 platform.
33696
33697 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33698
33699 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33700 strncmp().
33701
33702 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33703
33704 * util/getroot.c (grub_util_is_dmraid): New function.
33705 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33706 devices as normal ones, not as LVM.
33707
33708 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33709
33710 * conf/common.rmk: Add grub-gettext_lib target and updates
33711 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33712 LDFLAGS.
33713 * gettext/gettext.c: New file. (Reads mo files).
33714 * include/grub/file.h (grub_file_pread): New prototype.
33715 * include/grub/i18n.h (_): New prototype.
33716 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33717 prototypes.
33718 * kern/misc.c (grub_gettext_dummy): New function.
33719 * normal/menu_text.c: Include <grub/i18n.h>.
33720 * normal/menu_text.c (print_timeout): Gettexttize string.
33721 * normal/menu_text.c (print_message): Gettexttize string.
33722 * po/POTFILES: Add `normal/menu_text.c'.
33723 * po/ca.po: Add new translations.
33724 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33725 gettext module and defines locale_dir and lang in grub.cfg.
33726 * NEWS: Add gettext support.
33727
33728 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33729
33730 * util/hostdisk.c: Include `<grub/i18n.h>'.
33731 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33732 (make_device_name): Rewrite using asprintf.
33733 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33734 (find_system_device): If a device is not found, generate one just
33735 by reusing the OS path name.
33736 (read_device_map): Make it permissible for device.map not to exist.
33737
33738 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33739
33740 * script/sh/execute.c: Move from here ...
33741 * script/execute.c: ... to here. Update all users.
33742 * script/sh/function.c: Move from here ...
33743 * script/function.c: ... to here. Update all users.
33744 * script/sh/lexer.c: Move from here ...
33745 * script/lexer.c: ... to here. Update all users.
33746 * script/sh/main.c: Move from here ...
33747 * script/main.c: ... to here. Update all users.
33748 * script/sh/parser.y: Move from here ...
33749 * script/parser.y: ... to here. Update all users.
33750 * script/sh/script.c: Move from here ...
33751 * script/script.c: ... to here. Update all users.
33752
33753 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33754
33755 * configure.ac: Detect all `emu' platforms. Define
33756 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33757 --enable-grub-emu logic. Disable include/grub/machine
33758 symlink on `emu' platforms.
33759
33760 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33761 * gensymlist.sh.in: Likewise.
33762
33763 * include/grub/i386/coreboot/machine.h: Remove file.
33764 * include/grub/i386/efi/machine.h: Likewise.
33765 * include/grub/i386/ieee1275/machine.h: Likewise.
33766 * include/grub/i386/pc/machine.h: Likewise.
33767 * include/grub/i386/qemu/machine.h: Likewise.
33768 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33769 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33770 * include/grub/x86_64/efi/machine.h: Likewise.
33771
33772 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33773 * commands/halt.c: Likewise.
33774 * commands/reboot.c: Likewise.
33775 * include/grub/autoefi.h: Likewise.
33776 * include/grub/i386/at_keyboard.h: Likewise.
33777 * include/grub/i386/kernel.h: Likewise.
33778 * include/grub/i386/loader.h: Likewise.
33779 * include/grub/i386/pc/memory.h: Likewise.
33780 * kern/dl.c: Likewise.
33781 * kern/i386/coreboot/init.c: Likewise.
33782 * loader/i386/bsd.c: Likewise.
33783 * loader/i386/linux.c: Likewise.
33784 * loader/multiboot_loader.c: Likewise.
33785 * term/i386/pc/serial.c: Likewise.
33786 * term/usb_keyboard.c: Likewise.
33787
33788 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
33789 `<grub/machine/machine.h>'
33790 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
33791 * util/misc.c: Remove `<grub/machine/machine.h>' and
33792 `<grub/machine/time.h>'.
33793
33794 * Makefile.in (enable_grub_emu): Remove variable.
33795 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
33796
33797 * conf/any-emu.rmk: New file.
33798 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
33799 (grub_emu_init.c): Move from here ...
33800 * conf/any-emu.rmk: ... to here.
33801
33802 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33803 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33804 * conf/any-emu.rmk: ... to here.
33805
33806 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33807
33808 * include/grub/parser.h (grub_parser_register): Document need
33809 of `name' parameter.
33810 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33811 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33812 "sh" to "grub".
33813
33814 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33815
33816 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33817 `$(XGETTEXT)'.
33818 * include/grub/i18n.h (N_): New macro.
33819 * util/mkisofs/mkisofs.h: Likewise.
33820 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33821 around N_().
33822 (usage): Use gettext() to translate help strings when printing them.
33823
33824 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33825
33826 Based on patch from Bean
33827 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33828
33829 * video/efi_fb.c: New file.
33830 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33831 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33832 variables.
33833 * conf/x86_64-efi.rmk: Likewise.
33834
33835 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33836
33837 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33838 * util/i386/pc/grub-setup.c: Likewise.
33839
33840 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33841
33842 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33843 <hurd/fs.h>
33844 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33845 file_get_storage_info to implement grub_guess_root_device.
33846
33847 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33848
33849 * Makefile.in (target): Use make's builtin $(shell) function
33850 instead of calling directly $(SHELL) to create the locale directories,
33851 inside the $(foreach) function.
33852
33853 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33854
33855 * util/grub-mkrescue.in: Print an error and usage if output option
33856 has not been given.
33857
33858 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33859
33860 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33861 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33862 root and /boot are on different devices.
33863
33864 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33865
33866 Fix build for srcdir != objdir.
33867
33868 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33869 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33870 $(srcdir).
33871 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33872 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33873 reference for input.
33874
33875 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33876
33877 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33878 or hardlinking it). Remove -J option, Joliet is not compatible with
33879 multiple source directories.
33880
33881 2009-11-21 Carles Pina i Estany <carles@pina.cat>
33882 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33883
33884 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33885 (process_input_dir): New function. Process an arbitrary input
33886 directory.
33887 Misc adjustments to support both "override mode" and system-wide mode.
33888
33889 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33890
33891 * configure.ac (UNIFONT_BDF): Rename to ...
33892 (FONT_SOURCE): ... this. Update all users.
33893
33894 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33895
33896 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33897 to the list of unifont files to look for.
33898
33899 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33900
33901 Patch from Joe Auricchio <jauricchio@gmail.com>
33902 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33903 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33904 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33905
33906 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33907
33908 * Makefile.in (install-local): Add a missing backslash.
33909
33910 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33911
33912 * include/grub/x86_64/io.h: New file.
33913
33914 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33915
33916 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33917 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33918 Include `"progname.h"'.
33919 (main): Initialize gettext.
33920 * util/i386/pc/grub-setup.c: Gettexttize.
33921 * util/i386/pc/grub-mkimage.c: Likewise.
33922
33923 * Makefile.in (po/*.po): Redefine as ...
33924 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33925
33926 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33927
33928 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33929
33930 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33931 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33932 (program_name): Remove.
33933 (main): Initialize gettext support.
33934 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33935 Include `<libintl.h>'.
33936 (_): New macro.
33937
33938 * util/mkisofs/eltorito.c: Gettexttize.
33939 * util/mkisofs/joliet.c: Likewise.
33940 * util/mkisofs/mkisofs.c: Likewise.
33941 * util/mkisofs/multi.c: Likewise.
33942 * util/mkisofs/rock.c: Likewise.
33943 * util/mkisofs/tree.c: Likewise.
33944 * util/mkisofs/write.c: Likewise.
33945
33946 * po/POTFILES: Update with new files.
33947
33948 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33949
33950 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33951 * util/mkisofs/iso9660.h: Likewise.
33952 * util/mkisofs/joliet.c: Likewise.
33953 * util/mkisofs/mkisofs.c: Likewise.
33954 * util/mkisofs/mkisofs.h: Likewise.
33955 * util/mkisofs/rock.c: Likewise.
33956 * util/mkisofs/tree.c: Likewise.
33957 * util/mkisofs/write.c: Likewise.
33958
33959 * util/mkisofs/eltorito.c (rcsid): Remove.
33960 * util/mkisofs/hash.c: Likewise.
33961 * util/mkisofs/joliet.c: Likewise.
33962 * util/mkisofs/name.c: Likewise.
33963 * util/mkisofs/rock.c: Likewise.
33964 * util/mkisofs/tree.c: Likewise.
33965 * util/mkisofs/write.c: Likewise.
33966
33967 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33968
33969 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33970 instead of static allocation.
33971 * util/mkisofs/match.h: Likewise.
33972
33973 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33974
33975 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33976 and `util/grub.d/10_linux.in'.
33977 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33978 translatable Shell files.
33979
33980 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33981
33982 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33983
33984 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33985
33986 * INSTALL: Document Automake is needed for bootstrap.
33987 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
33988 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33989 Add gettext initialization.
33990 (kfreebsd_entry): Make menuentry output translatable.
33991
33992 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33993
33994 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33995 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33996 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33997 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33998 (LINGUAS): Auto-generate using `po/LINGUAS'.
33999 * po/LINGUAS: New file.
34000
34001 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34002
34003 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34004 other things).
34005 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34006 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34007 bindtextdomain() calls for gettext initialization.
34008
34009 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34010
34011 * gnulib/progname.c: New file (imported from Gnulib).
34012 * gnulib/progname.h: Likewise.
34013 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34014 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34015 (usage): Replace `progname' with `program_name'.
34016 (main): Use set_program_name() for program name initialization.
34017
34018 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34019
34020 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34021 from here ...
34022 * Makefile.in (CPPFLAGS): ... to here.
34023
34024 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34025
34026 * aclocal.m4: Move from here ...
34027 * acinclude.m4: ... to here.
34028 * autogen.sh: Add call to `aclocal'.
34029 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34030
34031 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34032
34033 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34034 (LINGUAS): New variable.
34035 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34036 (install-local): Install MO files.
34037 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34038 * include/grub/i18n.h: New file.
34039 * po/POTFILES: New file.
34040 * po/ca.po: New file.
34041 * util/grub.d/10_linux.in (bindir): New variable.
34042 Add gettext initialization.
34043 (linux_entry): Make menuentry output translatable.
34044 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34045 (usage): Make --help output translatable.
34046 (main): Initialize gettext.
34047
34048 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34049
34050 * import_gcry.py: New file (written by Vladimir with minor
34051 adjustments).
34052 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34053 ciphers.
34054 * INSTALL: Document that Python is required for bootstrap.
34055
34056 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34057
34058 Import ciphers from libgcrypt 1.4.4.
34059
34060 * lib/libgcrypt/cipher/ChangeLog
34061 * lib/libgcrypt/cipher/ac.c
34062 * lib/libgcrypt/cipher/arcfour.c
34063 * lib/libgcrypt/cipher/bithelp.h
34064 * lib/libgcrypt/cipher/blowfish.c
34065 * lib/libgcrypt/cipher/camellia-glue.c
34066 * lib/libgcrypt/cipher/camellia.c
34067 * lib/libgcrypt/cipher/camellia.h
34068 * lib/libgcrypt/cipher/cast5.c
34069 * lib/libgcrypt/cipher/cipher.c
34070 * lib/libgcrypt/cipher/crc.c
34071 * lib/libgcrypt/cipher/des.c
34072 * lib/libgcrypt/cipher/dsa.c
34073 * lib/libgcrypt/cipher/ecc.c
34074 * lib/libgcrypt/cipher/elgamal.c
34075 * lib/libgcrypt/cipher/hash-common.c
34076 * lib/libgcrypt/cipher/hash-common.h
34077 * lib/libgcrypt/cipher/hmac-tests.c
34078 * lib/libgcrypt/cipher/md.c
34079 * lib/libgcrypt/cipher/md4.c
34080 * lib/libgcrypt/cipher/md5.c
34081 * lib/libgcrypt/cipher/primegen.c
34082 * lib/libgcrypt/cipher/pubkey.c
34083 * lib/libgcrypt/cipher/rfc2268.c
34084 * lib/libgcrypt/cipher/rijndael-tables.h
34085 * lib/libgcrypt/cipher/rijndael.c
34086 * lib/libgcrypt/cipher/rmd.h
34087 * lib/libgcrypt/cipher/rmd160.c
34088 * lib/libgcrypt/cipher/rsa.c
34089 * lib/libgcrypt/cipher/seed.c
34090 * lib/libgcrypt/cipher/serpent.c
34091 * lib/libgcrypt/cipher/sha1.c
34092 * lib/libgcrypt/cipher/sha256.c
34093 * lib/libgcrypt/cipher/sha512.c
34094 * lib/libgcrypt/cipher/tiger.c
34095 * lib/libgcrypt/cipher/twofish.c
34096 * lib/libgcrypt/cipher/whirlpool.c
34097
34098 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34099
34100 Fix build for systems without error().
34101
34102 * gnulib/error.c: New file (imported from Gnulib).
34103 * gnulib/error.h: Likewise.
34104 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34105 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34106 (this variable is now used by error()).
34107
34108 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34109
34110 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34111 instead of relying that char is signed.
34112
34113 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34114
34115 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34116 blocksize different from specified.
34117 (grub_pxefs_read): Likewise.
34118
34119 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34120
34121 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34122
34123 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34124 (grub_ata_readwrite): Likewise. Update 2 format strings.
34125 (grub_atapi_read): Likewise.
34126
34127 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34128 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34129 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34130 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34131 (ata_mod_LDFLAGS): Move from here ...
34132 * conf/i386.rmk: ... to here ...
34133 * conf/x86_64-efi.rmk: ... and here.
34134 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34135 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34136
34137 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34138
34139 Relicense multiboot.h, with RMS' blessing.
34140
34141 * include/multiboot.h: Change to X11 license.
34142
34143 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34144
34145 Support --version in grub-mkisofs.
34146
34147 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34148 (OPTION_VERSION): New macro.
34149 (ld_options): Recognize --version.
34150 (usage): Move `program_name' from here ...
34151 (program_name): ... to here. Add `static' qualifier.
34152 (main): Recognize `OPTION_VERSION'.
34153
34154 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34155
34156 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34157 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34158
34159 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34160
34161 Fix help2man generation for mkisofs.
34162
34163 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34164 (usage): Send output to stdout (rather than stderr).
34165
34166 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34167
34168 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34169 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34170 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34171 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34172 (bin_SCRIPTS): Add `grub-mkfloppy'.
34173 (grub_mkfloppy_SOURCES): New variable.
34174
34175 * util/grub-mkrescue.in: New file.
34176 * util/i386/pc/grub-mkfloppy.in: New file.
34177
34178 * util/i386/coreboot/grub-mkrescue.in: Remove.
34179 * util/i386/pc/grub-mkrescue.in: Remove.
34180
34181 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34182
34183 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34184 from here ...
34185 * include/multiboot.h (struct multiboot_header): ... to here. Update
34186 all users.
34187 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34188 from here ...
34189 * include/multiboot.h (struct multiboot_info): ... to here. Update
34190 all users.
34191 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34192 from here ...
34193 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34194 Update all users.
34195 * include/grub/multiboot.h (struct grub_mod_list): Move
34196 from here ...
34197 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34198 Update all users.
34199
34200 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34201
34202 * include/multiboot2.h (multiboot_word): Rename from this ...
34203 (multiboot2_word): ... to this. Update all users.
34204 (multiboot_header): Rename from this ...
34205 (multiboot2_header): ... to this. Update all users.
34206 (multiboot_tag_header): Rename from this ...
34207 (multiboot2_tag_header): ... to this. Update all users.
34208 (multiboot_tag_start): Rename from this ...
34209 (multiboot2_tag_start): ... to this. Update all users.
34210 (multiboot_tag_name): Rename from this ...
34211 (multiboot2_tag_name): ... to this. Update all users.
34212 (multiboot_tag_module): Rename from this ...
34213 (multiboot2_tag_module): ... to this. Update all users.
34214 (multiboot_tag_memory): Rename from this ...
34215 (multiboot2_tag_memory): ... to this. Update all users.
34216 (multiboot_tag_unused): Rename from this ...
34217 (multiboot2_tag_unused): ... to this. Update all users.
34218 (multiboot_tag_end): Rename from this ...
34219 (multiboot2_tag_end): ... to this. Update all users.
34220
34221 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34222
34223 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34224 this platform we should support Multiboot1 first.
34225
34226 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34227 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34228 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34229
34230 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34231
34232 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34233 of write calls (converting them to fwrite() if they aren't already).
34234 (get_torito_desc): Likewise.
34235 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34236
34237 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34238
34239 * util/i386/pc/grub-install.in: Move from here ...
34240 * util/grub-install.in: ... to here. Update all users.
34241
34242 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34243
34244 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34245
34246 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34247
34248 Support for El Torito without floppy emulation.
34249
34250 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34251 (init_boot_catalog): Improve error handling.
34252 (get_torito_desc): Don't use floppy emulation unless requested by
34253 user. Patch boot information table when requested via
34254 `-boot-info-table'.
34255 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34256 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34257 (use_boot_info_table): New variables.
34258 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34259 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34260 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34261 `--eltorito-emul-floppy'.
34262 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34263 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34264 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34265 (use_boot_info_table, get_731): New prototypes.
34266 * util/mkisofs/write.c (get_731): New function.
34267
34268 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34269
34270 Fix the generation of the man page.
34271
34272 * util/pc/i386/grub-install.in: Source
34273 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34274
34275 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34276
34277 Large file support for grub-mkisofs.
34278
34279 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34280 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34281 (session_start): Upgrade type to `uint64_t'. Update all users.
34282 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34283 (struct directory_entry): Upgrade type of `starting_block' and
34284 `size' to `uint64_t'. Update all users.
34285 (struct deferred): Remove unused structure.
34286 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34287 Update all users.
34288 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34289 file is larger than `UINT32_MAX'.
34290 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34291 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34292 return value.
34293 (struct deferred_write): Upgrade type of `extent' and `size' to
34294 `uint64_t'. Update all users.
34295 (last_extent_written): Upgrade type to `uint64_t'. Update all
34296 users.
34297 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34298 Update all users. Upgrade type of `remain' to `int64_t' and
34299 `use' to `size_t'. Use error() to handle fread() errors.
34300 (write_files): Rely on write_one_file() rather than calling
34301 xfwrite() directly.
34302
34303 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34304
34305 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34306
34307 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34308
34309 * util/mkisofs/fnmatch.c: Remove.
34310 * util/mkisofs/getopt1.c: Likewise.
34311 * util/mkisofs/getopt.c: Likewise.
34312 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34313 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34314 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34315 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34316 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34317
34318 * configure.ac: Detect `mingw32msvc' host_os.
34319 Check for lstat(), getuid() and getgid().
34320
34321 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34322 instances of `u_char' with `uint8_t'.
34323
34324 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34325 [!HAVE_GETUID] (getuid): New function (stub).
34326 [!HAVE_GETGID] (getgid): Likewise.
34327 [!HAVE_LSTAT] (lstat): Likewise.
34328 [!S_IROTH] (S_IROTH): New macro (dummy).
34329 [!S_IRGRP] (S_IRGRP): Likewise.
34330
34331 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34332
34333 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34334 conditional expression).
34335
34336 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34337
34338 Import from Gnulib.
34339
34340 * gnulib/fnmatch.c: New file.
34341 * gnulib/fnmatch.h: Likewise.
34342 * gnulib/fnmatch_loop.c: Likewise.
34343 * gnulib/getopt.c: Likewise.
34344 * gnulib/getopt.h: Likewise.
34345 * gnulib/getopt1.c: Likewise.
34346 * gnulib/getopt_int.h: Likewise.
34347 * gnulib/gettext.h: Likewise.
34348
34349 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34350
34351 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34352 * normal/handler.c (read_handler_list): Likewise.
34353
34354 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34355
34356 Misc cleanup.
34357
34358 * kern/command.c (grub_register_command_prio): Use
34359 grub_zalloc() instead of explicitly zeroing data.
34360 * kern/list.c: Include `<grub/mm.h>'.
34361 (grub_named_list_find): Replace `0' with `NULL'.
34362 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34363 (fs_module_list): Change type to `grub_named_list_t'. Update all
34364 users.
34365 * normal/dyncmd.c (read_command_list): Add space between function
34366 call and parenthesis.
34367 * normal/handler.c (read_handler_list): Likewise.
34368
34369 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34370
34371 * normal/auth.c (punishment_delay): Moved from here ...
34372 (grub_auth_strcmp): ... to here (inside function).
34373
34374 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34375
34376 * include/grub/list.h (struct grub_named_list): Remove `const'
34377 qualifier from `name'.
34378 (struct grub_prio_list): Likewise.
34379
34380 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34381
34382 * normal/auth.c: Include `<grub/time.h>'.
34383 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34384
34385 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34386
34387 * normal/auth.c (punishment_delay): New variable.
34388 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34389 (grub_auth_check_authentication): Punish failed login attempts with
34390 an incremental (2^N) delay.
34391
34392 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34393
34394 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34395 path with $(srcdir).
34396
34397 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34398
34399 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34400
34401 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34402
34403 * util/i386/coreboot/grub-mkrescue.in: New file.
34404 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34405 variables.
34406
34407 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34408 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34409 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34410 requirements.
34411 * util/mkisofs/defaults.h: New file.
34412 * util/mkisofs/eltorito.c: Likewise.
34413 * util/mkisofs/exclude.h: Likewise.
34414 * util/mkisofs/fnmatch.c: Likewise.
34415 * util/mkisofs/getopt.c: Likewise.
34416 * util/mkisofs/getopt1.c: Likewise.
34417 * util/mkisofs/hash.c: Likewise.
34418 * util/mkisofs/include/fctldefs.h: Likewise.
34419 * util/mkisofs/include/mconfig.h: Likewise.
34420 * util/mkisofs/include/prototyp.h: Likewise.
34421 * util/mkisofs/include/statdefs.h: Likewise.
34422 * util/mkisofs/iso9660.h: Likewise.
34423 * util/mkisofs/joliet.c: Likewise.
34424 * util/mkisofs/match.c: Likewise.
34425 * util/mkisofs/match.h: Likewise.
34426 * util/mkisofs/mkisofs.c: Likewise.
34427 * util/mkisofs/mkisofs.h: Likewise.
34428 * util/mkisofs/multi.c: Likewise.
34429 * util/mkisofs/name.c: Likewise.
34430 * util/mkisofs/rock.c: Likewise.
34431 * util/mkisofs/tree.c: Likewise.
34432 * util/mkisofs/write.c: Likewise.
34433
34434 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34435
34436 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34437 being insecure.
34438
34439 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34440
34441 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34442 `grub-mkimage' (and use $0 when possible).
34443
34444 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34445
34446 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34447 error message for excessively large memory map.
34448
34449 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34450
34451 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34452 executable bit.
34453
34454 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34455
34456 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34457 message for coreboot users.
34458
34459 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 Fix build with GNU gold.
34462
34463 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34464 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34465 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34466 link addresses.
34467 * aclocal.m4: Likewise.
34468
34469 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34470
34471 * configure.ac (AC_PREREQ): Bump to 2.59d.
34472 * INSTALL: Make it more clear when Autoconf and Ruby are
34473 needed and when to run `./autogen.sh'.
34474
34475 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34476
34477 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34478 OSes.
34479
34480 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34481
34482 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34483
34484 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34485
34486 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34487 giving it to GNU Mach.
34488
34489 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34490
34491 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34492 GNU partition number to get internal GRUB partition number.
34493
34494 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34495
34496 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34497 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34498
34499 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34500
34501 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34502 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34503 case.
34504
34505 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34506
34507 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34508
34509 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34510
34511 Fix build problem.
34512
34513 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34514 `-isystem=$(srcdir)/include'.
34515
34516 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34517
34518 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34519 checked (grub-install doesn't currently rely on it).
34520
34521 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34522
34523 Revert SVN r2660.
34524
34525 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34526 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34527 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34528 * conf/i386-ieee1275.rmk: Likewise.
34529 * conf/i386-pc.rmk: Likewise.
34530 * conf/powerpc-ieee1275.rmk: Likewise.
34531 * conf/sparc64-ieee1275.rmk: Likewise.
34532 * conf/x86_64-efi.rmk: Likewise.
34533
34534 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34535
34536 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34537
34538 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34539
34540 * include/grub/misc.h: Stop checking for APPLE_CC.
34541
34542 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34543
34544 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34545 doesn't cause an infinite call loop.
34546
34547 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34548
34549 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34550 strings.
34551
34552 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34553
34554 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34555 variable.
34556 * Makefile.in: Likewise.
34557
34558 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34559
34560 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34561
34562 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34563
34564 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34565
34566 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34567
34568 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34569
34570 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34571
34572 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34573 from here ...
34574 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34575
34576 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34577
34578 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34579 in $(MAKEINFO) invocation. This makes it clear in output that
34580 errors are being ignored.
34581
34582 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34583
34584 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34585 from here ...
34586 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34587 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34588 * conf/i386-ieee1275.rmk: Likewise.
34589 * conf/i386-pc.rmk: Likewise.
34590 * conf/powerpc-ieee1275.rmk: Likewise.
34591 * conf/sparc64-ieee1275.rmk: Likewise.
34592 * conf/x86_64-efi.rmk: Likewise.
34593
34594 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34595
34596 * util/grub-editenv.c (main): If only a command is given, use
34597 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34598 (usage): FILENAME is now optional and has a default.
34599
34600 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34601
34602 Improve grub-mkconfig performance when there are several menu
34603 entries on a single filesystem.
34604
34605 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34606 prepare_grub_to_access_device.
34607 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34608 * util/grub.d/30_os-prober.in: Likewise.
34609
34610 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34611
34612 * util/grub.d/10_freebsd.in: Remove.
34613 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34614 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34615
34616 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34617
34618 * docs/grub.cfg: Fix example usage of *BSD loaders.
34619
34620 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34621
34622 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34623 grub_util_error() call.
34624
34625 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34626
34627 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34628 `reserved_first_sector' member.
34629 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34630 `reserved_first_sector' to 1.
34631 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34632 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34633 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34634 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34635 filesystems which begin at first sector.
34636 (options): New option --skip-fs-probe.
34637 (main): Handle --skip-fs-probe and pass it to setup().
34638
34639 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34640
34641 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34642 (memset): Fix function prototype.
34643
34644 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34645 2009-10-25 Vasily Averin <vvs@parallels.com>
34646
34647 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34648 `dirent.direntlen == 0'.
34649
34650 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34651
34652 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34653 `cpio'.
34654 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34655
34656 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34657
34658 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34659 `__trampoline_setup' and `__ucmpdi2'.
34660 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34661 that libgcc provides.
34662
34663 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34664
34665 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34666 * include/grub/sparc64/libgcc.h (memset): Likewise.
34667 * include/grub/misc.h (memset, memcmp): New function prototypes.
34668
34669 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34670
34671 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34672 `cpio'.
34673 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34674
34675 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34676
34677 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34678 * docs/grub.cfg: Compensate for recent change in multiboot
34679 loader (since 2009-08-14 it won't pass filename to payload).
34680 * util/grub.d/10_hurd.in: Likewise.
34681
34682 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34683
34684 * config.guess: Update to latest version from config git
34685 repository.
34686 * config.sub: Likewise.
34687
34688 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34689
34690 Fix build on sparc64.
34691
34692 * configure.ac: Perform checks for libgcc symbols before
34693 adding `-nostdlib' to LDFLAGS.
34694
34695 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34696
34697 Let user specify OpenBSD root device.
34698
34699 * loader/i386/bsd.c (openbsd_root): New variable.
34700 (openbsd_opts): New option 'root'.
34701 (OPENBSD_ROOT_ARG): New macro.
34702 (grub_openbsd_boot): Use 'openbsd_root'.
34703 (grub_cmd_openbsd): Fill 'openbsd_root'.
34704
34705 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34706
34707 * NEWS: Misc adjustments.
34708
34709 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34710
34711 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34712
34713 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34714
34715 * configure.ac: Bump version to 1.97.
34716
34717 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34718
34719 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34720 -mno-3dnow on x86 architectures. Some toolchains enable these
34721 features by default, but they rely on registers that aren't enabled
34722 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34723
34724 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34725
34726 Make entry text a bit more readable.
34727
34728 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34729
34730 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34731
34732 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34733
34734 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34735
34736 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34737 operations.
34738
34739 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34740
34741 * configure.ac: Add missing dollar.
34742
34743 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34744
34745 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34746
34747 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34748 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34749 exports.
34750 * include/grub/sparc64/libgcc.h: Likewise. Use
34751 preprocessor conditionals.
34752
34753 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34754
34755 * conf/common.rmk (grub-dumpbios): Remove rule.
34756 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34757 * util/grub-dumpbios.in: Remove file.
34758
34759 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34760
34761 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34762 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34763
34764 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34765 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34766 users.
34767
34768 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34769 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34770 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34771 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34772 users.
34773
34774 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34775
34776 * term/tparm.c: Switch to GPLv3.
34777
34778 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34779
34780 * include/grub/i386/cpuid.h: Add header protection.
34781
34782 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34783
34784 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34785
34786 * include/grub/i386/cpuid.h: New file.
34787 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34788 (has_longmode): Rename to ...
34789 (grub_cpuid_has_longmode): ... this. Update all users. Remove
34790 `static' attribute.
34791 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
34792 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
34793 on a CPU that doesn't implement AMD64 instruction set.
34794
34795 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34796
34797 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
34798 that version.texi is rebuilt on version number changes.
34799
34800 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34801
34802 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34803 Fixes bug #27602.
34804
34805 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34806
34807 * util/i386/pc/grub-install.in: Source
34808 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34809 that the --grub-probe option will work.
34810 * util/sparc64/ieee1275/grub-install.in: Likewise.
34811
34812 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34813
34814 * configure.ac: Bump version to 1.97~beta4.
34815
34816 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34817
34818 Resync grub-mkdevicemap in x86_64-efi.
34819
34820 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34821 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34822 `util/devicemap.c'.
34823
34824 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
34825
34826 * util/grub-editenv.c (create_envblk_file): Write new block with a
34827 .new suffix and then rename it into place, to ensure atomic
34828 creation.
34829
34830 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34831
34832 Do not automatically install headers.
34833
34834 * Makefile.in (include_DATA): Remove. Update all users.
34835
34836 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34837
34838 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34839 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34840
34841 * util/osdetect.lua: Remove.
34842 * script/lua/lauxlib.c: Likewise.
34843 * script/lua/ldebug.c: Likewise.
34844 * script/lua/grub_main.c: Likewise.
34845 * script/lua/lauxlib.h: Likewise.
34846 * script/lua/ldebug.h: Likewise.
34847 * script/lua/ltablib.c: Likewise.
34848 * script/lua/liolib.c: Likewise.
34849 * script/lua/lstrlib.c: Likewise.
34850 * script/lua/lualib.h: Likewise.
34851 * script/lua/ldo.c: Likewise.
34852 * script/lua/ldump.c: Likewise.
34853 * script/lua/ldo.h: Likewise.
34854 * script/lua/loslib.c: Likewise.
34855 * script/lua/lundump.c: Likewise.
34856 * script/lua/grub_lib.c: Likewise.
34857 * script/lua/ldblib.c: Likewise.
34858 * script/lua/lundump.h: Likewise.
34859 * script/lua/lmem.c: Likewise.
34860 * script/lua/grub_lib.h: Likewise.
34861 * script/lua/lmathlib.c: Likewise.
34862 * script/lua/lstate.c: Likewise.
34863 * script/lua/ltm.c: Likewise.
34864 * script/lua/lvm.c: Likewise.
34865 * script/lua/lmem.h: Likewise.
34866 * script/lua/lstate.h: Likewise.
34867 * script/lua/ltm.h: Likewise.
34868 * script/lua/ltable.c: Likewise.
34869 * script/lua/lvm.h: Likewise.
34870 * script/lua/llex.c: Likewise.
34871 * script/lua/lgc.c: Likewise.
34872 * script/lua/grub_lua.h: Likewise.
34873 * script/lua/loadlib.c: Likewise.
34874 * script/lua/lfunc.c: Likewise.
34875 * script/lua/lopcodes.c: Likewise.
34876 * script/lua/lparser.c: Likewise.
34877 * script/lua/ltable.h: Likewise.
34878 * script/lua/llex.h: Likewise.
34879 * script/lua/lgc.h: Likewise.
34880 * script/lua/lfunc.h: Likewise.
34881 * script/lua/lbaselib.c: Likewise.
34882 * script/lua/lopcodes.h: Likewise.
34883 * script/lua/lparser.h: Likewise.
34884 * script/lua/lzio.c: Likewise.
34885 * script/lua/linit.c: Likewise.
34886 * script/lua/lobject.c: Likewise.
34887 * script/lua/llimits.h: Likewise.
34888 * script/lua/lstring.c: Likewise.
34889 * script/lua/lzio.h: Likewise.
34890 * script/lua/lapi.c: Likewise.
34891 * script/lua/lcode.c: Likewise.
34892 * script/lua/lua.h: Likewise.
34893 * script/lua/lobject.h: Likewise.
34894 * script/lua/lstring.h: Likewise.
34895 * script/lua/lapi.h: Likewise.
34896 * script/lua/lcode.h: Likewise.
34897 * script/lua/luaconf.h: Likewise.
34898
34899 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
34900
34901 * docs/grub.texi (Command-line and menu entry commands): Document
34902 date and echo commands.
34903
34904 2009-09-24 Pavel Roskin <proski@gnu.org>
34905
34906 * include/grub/kernel.h (struct grub_module_header): Remove
34907 `grub_module_header_types'. Make `type' unsigned. Make `size'
34908 32-bit on all platforms.
34909 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34910 8-bit field. Use grub_host_to_target32() for `size'.
34911 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34912 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34913 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34914
34915 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34916
34917 Fix "lost keypress" bug in at_keyboard.
34918
34919 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34920 Checks for readyness of input buffer (without flushing it).
34921 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34922 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34923
34924 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34925
34926 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34927 size check within GRUB_MACHINE_PCBIOS section.
34928
34929 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34930
34931 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34932 return value.
34933 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34934 KEYBOARD_ISREADY check.
34935 (grub_at_keyboard_checkkey): Rename to ...
34936 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34937 Remove gratuitous cast.
34938
34939 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
34940
34941 * configure.ac: Call AC_PROG_MKDIR_P.
34942 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34943 version.texi in $(builddir) rather than $(srcdir).
34944 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34945 to makeinfo's @include search path.
34946
34947 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34948
34949 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34950
34951 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34952
34953 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34954 for `*.dpkg-new'.
34955
34956 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
34957
34958 Build info documentation. Some code borrowed from Automake.
34959
34960 * configure.ac: Check for makeinfo.
34961 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34962 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34963 docs/version.texi.
34964 (MOSTLYCLEANFILES): Add vti.tmp.
34965 (docs/version.texi, docs/stamp-vti): Update automatically.
34966 (docs/grub.info): Build info documentation. Use --force and ignore
34967 errors for now.
34968 (all-local): Add $(INFOS).
34969 (install-local): Install info files.
34970 (uninstall): Uninstall info files.
34971 * docs/version.texi: Remove from revision control. This file is
34972 automatically generated on build now.
34973 * gendistlist.sh: Add `*.info'.
34974
34975 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34976
34977 * kern/term.c: Fix indentation.
34978
34979 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34980
34981 * util/hostdisk.c: Fix a comment.
34982
34983 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34984
34985 Fix regression introduced in r2539.
34986
34987 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34988 to 0xA1.
34989
34990 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
34991
34992 * util/grub.d/30_os-prober.in: Don't throw away stderr from
34993 os-prober. Under normal operation, it does not print anything to
34994 stderr; if it does, we need to debug it, and throwing away stderr
34995 makes that excessively difficult.
34996
34997 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34998
34999 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35000
35001 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35002
35003 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35004 AC_LANG_PROGRAM from autoconf.
35005 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35006 prototypes (fixes warning).
35007
35008 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35009 `--disable-werror' was used.
35010
35011 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35012
35013 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35014 uninitialized `lastaddr'.
35015
35016 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35017
35018 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35019
35020 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35021
35022 * commands/test.c (get_fileinfo): Return immediately if
35023 grub_fs_probe fails.
35024
35025 2009-09-14 José Martínez <xosemp@gmail.com>
35026
35027 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35028
35029 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35030
35031 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35032 output.
35033
35034 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35035
35036 * configure.ac: Remove --enable-grub-pe2elf. Only build
35037 grub-pe2elf when needed by the build system itself.
35038 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35039
35040 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35041
35042 * configure.ac: Bump version to 1.97~beta3.
35043 * docs/version.texi: Likewise.
35044
35045 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35046
35047 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35048 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35049 from here ...
35050 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35051 (grub_linux_setup_video): ... to here (with some adjustments).
35052
35053 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35054
35055 Fix memory corruption issue (spotted by Colin Watson).
35056
35057 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35058 causing returned size to be stored in an incorrect memory location.
35059 Fix use of uninitialized value when storing the returned size.
35060
35061 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35062
35063 Change clean rules to properly remove files
35064
35065 * genmk.rb: add new clean rules
35066 * Makefile.in (clean): add the new targets
35067 (mostlyclean): likewise
35068
35069 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35070
35071 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35072 to grub_uint64_t.
35073 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35074 non-resident files.
35075
35076 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35077
35078 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35079 part of bug #27349.
35080
35081 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35082
35083 * util/grub-mkconfig.in: Make the created config mode 400 and
35084 print a warning if it fails.
35085
35086 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35087
35088 * util/grub.d/40_custom.in: Ask user to type custom entries below
35089 comment, rather than below 'exec tail' line.
35090
35091 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35092
35093 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35094 visible in grub.cfg.
35095
35096 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35097
35098 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35099 file.
35100
35101 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35102
35103 * docs/grub.cfg: Add an example menu entry for memtest86+.
35104
35105 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35106
35107 * config.guess: Update to latest version from config git.
35108 * config.sub: Likewise.
35109
35110 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35111
35112 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35113 unknown-command case. Fixes bug #27320.
35114
35115 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35116
35117 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35118 `help' if the command exists.
35119
35120 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35121
35122 * INSTALL: Require GCC 4.1.3 or later.
35123
35124 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35125
35126 * Makefile.in (RMKFILES): add i386-qemu.rmk
35127 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35128 $(srcdir)/stamp-h.in
35129
35130 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35131
35132 * util/grub-probe.c (probe): Comment out buggy codepath, which
35133 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35134 should be re-enabled after 1.97.
35135
35136 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35137
35138 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35139 find searches for.
35140
35141 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35142
35143 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35144 unnecessary calls to grub_error.
35145
35146 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35147
35148 * NEWS: Mention `keystatus' and Unicode fonts.
35149
35150 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35151
35152 * configure.ac: Bump version to 1.97~beta2.
35153 * docs/version.texi: Likewise.
35154
35155 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35156
35157 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35158 containing unwind information in some cases where it previously did
35159 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35160 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35161 discussion.
35162
35163 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35164
35165 Embedding loadenv module into grub-emu
35166
35167 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35168 commands/loadenv.c
35169 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35170 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35171 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35173 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35174 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35175
35176 2009-09-03 Magnus Granberg <zorry@ume.nu>
35177
35178 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35179 include -fPIE in the default specs.
35180 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35181 to TARGET_CFLAGS.
35182
35183 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35184
35185 * INSTALL: Note that GNU Bison 2.3 or later is required.
35186
35187 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35188
35189 * kern/i386/pc/startup.S: Fix typo.
35190
35191 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35192
35193 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35194 according to GCS.
35195
35196 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35197
35198 * docs/grub.texi (Naming convention): Describe one-based partition
35199 numbering.
35200 (Device syntax): Likewise.
35201 (File name syntax): Likewise.
35202 (Block list syntax): Likewise.
35203 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35204 menu.lst.
35205 (File name syntax): Likewise.
35206 (Command-line and menu entry commands): Document acpi, blocklist,
35207 crc, export, insmod, keystatus, ls, set, and unset commands.
35208
35209 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35210
35211 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35212 to avoid implying that only one of --shift, --ctrl, or --alt may be
35213 used.
35214
35215 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35216
35217 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35218 rather than comparing against S_IFREG, which will almost never work.
35219
35220 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35221
35222 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35223 (write_blocklists): Likewise.
35224
35225 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35226
35227 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35228 argument to grub_printf.
35229
35230 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35231
35232 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35233 non GNU test.
35234
35235 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35236
35237 * kern/file.c (grub_file_read): Spelling fix
35238
35239 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35240
35241 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35242 loading of headers in some cases.
35243
35244 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35245
35246 * configure.ac: Bump version to 1.97~beta1.
35247 * docs/version.texi: Likewise.
35248
35249 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35250
35251 * include/grub/i386/xnu.h: Add license header.
35252 include grub/err.h explicitly.
35253
35254 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35255
35256 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35257 to `ufs' in the vfs.root.mountfrom kernel parameter.
35258
35259 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35260
35261 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35262
35263 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35264 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35265
35266 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35267 `ARRAY_SIZE' macro.
35268
35269 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35270
35271 * kern/file.c (grub_file_read): Check offset.
35272 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35273 * fs/jfs.c (grub_jfs_read_file): Likewise.
35274 * fs/ntfs.c (grub_ntfs_read): Likewise.
35275 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35276 * fs/minix.c (grub_minix_read_file): Correct offset check.
35277 * fs/ufs.c (grub_ufs_read_file): Likewise.
35278
35279 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35280
35281 * term/i386/pc/console.c (bios_data_area): Cast
35282 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35283
35284 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35285
35286 1-bit optimised blitters.
35287
35288 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35289 prototype.
35290 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35291 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35292 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35293 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35294 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35295 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35296 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35297 function.
35298 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35299 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35300 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35301 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35302 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35303 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35304 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35305 when possible.
35306 * video/video.c (grub_video_get_blit_format): Return
35307 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35308
35309 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35310
35311 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35312 the first argument to grub_printf.
35313
35314 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35315 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35316
35317 Add `getkeystatus' terminal method. Add a new `keystatus' command
35318 to query it.
35319
35320 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35321 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35322 modifier key bitmasks.
35323 (struct grub_term_input): Add `getkeystatus' member.
35324 (grub_getkeystatus): Add prototype.
35325 * kern/term.c (grub_getkeystatus): New function.
35326
35327 * include/grub/i386/pc/memory.h
35328 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35329 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35330 Data Area layout.
35331 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35332 (grub_console_term_input): Set `getkeystatus' member.
35333 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35334 constants.
35335 (grub_usb_keyboard_getreport): Likewise.
35336 (grub_usb_keyboard_checkkey): Likewise.
35337 (grub_usb_keyboard_getkeystatus): New function.
35338 (grub_usb_keyboard_term): Set `getkeystatus' member.
35339
35340 * commands/keystatus.c: New file.
35341 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35342 (keystatus_mod_SOURCES): New variable.
35343 (keystatus_mod_CFLAGS): Likewise.
35344 (keystatus_mod_LDFLAGS): Likewise.
35345 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35346 commands/keystatus.c.
35347 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35348 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35349 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35351 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35352 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35353
35354 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35355
35356 Split befs.mod and afs.mod into *_be.mod and *.mod
35357
35358 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35359 (grub_fstest_SOURCES): Likewise.
35360 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35361 (afs_be_mod_SOURCES): New variable.
35362 (afs_be_mod_CFLAGS): Likewise.
35363 (afs_be_mod_LDFLAGS): Likewise.
35364 (befs_be_mod_SOURCES): Likewise.
35365 (befs_be_mod_CFLAGS): Likewise.
35366 (befs_be_mod_LDFLAGS): Likewise.
35367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35368 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35369 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35370 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35371 (grub_emu_SOURCES): Likewise.
35372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35373 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35374 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35375 * fs/afs_be.c: New file.
35376 * fs/befs_be.c: New file.
35377 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35378 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35379 (U16): Replaced with ...
35380 (grub_afs_to_cpu16): ...this. All users updated.
35381 (U32): Replaced with ...
35382 (grub_afs_to_cpu32): ...this. All users updated.
35383 (U64): Replaced with ...
35384 (grub_afs_to_cpu64): ...this. All users updated.
35385 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35386 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35387 (grub_afs_validate_sblock): Check only one endianness.
35388 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35389 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35390 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35391 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35392 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35393 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35394 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35395 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35396
35397 2009-08-26 Bean <bean123ch@gmail.com>
35398
35399 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35400 64-bit number.
35401 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35402 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35403 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35404
35405 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35406
35407 NetBSD memory map support.
35408
35409 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35410 (grub_netbsd_btinfo_mmap_header): New structure.
35411 (grub_netbsd_btinfo_mmap_entry): Likewise.
35412 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35413
35414 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35415
35416 Enable bsd.mod on coreboot.
35417
35418 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35419 (bsd_mod_SOURCES): New variable.
35420 (bsd_mod_CFLAGS): Likewise.
35421 (bsd_mod_LDFLAGS): Likewise.
35422 (bsd_mod_ASFLAGS): Likewise.
35423 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35424 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35425
35426 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35427
35428 Cleanup NetBSD root support.
35429
35430 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35431 grub_bsd_get_device.
35432 Fix typo.
35433
35434 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35435
35436 * util/grub.d/00_header.in: Move check for the video backend of
35437 gfxterm from here ...
35438 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35439 a suitable video backend.
35440
35441 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35442
35443 Fix breakage in grub-setup.
35444
35445 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35446 "msdos_partition_map".
35447
35448 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35449
35450 Fix breakage in normal/auth.c.
35451
35452 * normal/auth.c (grub_iswordseparator): New function.
35453
35454 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35455
35456 Authentication support.
35457
35458 * commands/password.c: New file.
35459 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35460 (password_mod_SOURCES): New variable.
35461 (password_mod_CFLAGS): Likewise.
35462 (password_mod_LDFLAGS): Likewise.
35463 (normal_mod_SOURCES): Add normal/auth.c.
35464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35465 normal/auth.c.
35466 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35467 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35468 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35470 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35471 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35472 * include/grub/auth.h: New file.
35473 * include/grub/err.h (grub_err_t): New enum value
35474 GRUB_ERR_ACCESS_DENIED.
35475 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35476 'users'.
35477 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35478 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35479 users updated.
35480 * normal/auth.c: New file.
35481 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35482 (grub_cmdline_run): Don't allow to go to command line without
35483 authentication.
35484 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35485 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35486 menuentry without superuser rights.
35487 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35488 user isn't a superuser.
35489
35490 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35491
35492 Save space by inlining misc.c functions.
35493
35494 * kern/misc.c (grub_iswordseparator): Made static.
35495 * kern/misc.c (grub_strcat): Moved from here ...
35496 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35497 * kern/misc.c (grub_strncat): Moved from here ...
35498 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35499 * kern/misc.c (grub_strcasecmp): Moved from here ...
35500 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35501 * kern/misc.c (grub_strncasecmp): Moved from here ...
35502 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35503 * kern/misc.c (grub_isalpha): Moved from here ...
35504 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35505 * kern/misc.c (grub_isdigit): Moved from here ...
35506 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35507 * kern/misc.c (grub_isgraph): Moved from here ...
35508 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35509 * kern/misc.c (grub_tolower): Moved from here ...
35510 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35511
35512 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35513
35514 * script/sh/function.c (grub_script_function_find): Cut error message
35515 not to flood terminal.
35516 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35517 limit.
35518 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35519
35520 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35521
35522 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35523 `report' grub_uint8_t *.
35524 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35525 Use a 50-millisecond timeout rather than just repeating
35526 grub_usb_keyboard_getreport 50 times.
35527 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35528
35529 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35530
35531 Rename *_partition_map to part_*
35532
35533 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35534 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35535 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35536 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35537 All users updated.
35538 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35539 All users updated.
35540 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35541 * util/grub-probe.c (probe_partmap): Don't transform partition name
35542 to get module name.
35543
35544 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35545
35546 Fix OpenBSD and NetBSD support.
35547
35548 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35549 memory address conflict.
35550 (OPENBSD_MMAP_ACPI): New definition.
35551 (OPENBSD_MMAP_NVS): Likewise.
35552 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35553 and OPENBSD_MMAP_NVS.
35554 Add memory map terminator
35555 Explicit cast when calling grub_unix_real_boot.
35556 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35557
35558 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35559
35560 Let user specify NetBSD root device.
35561
35562 * loader/i386/bsd.c (netbsd_root): New variable.
35563 (netbsd_opts): New option 'root'.
35564 (NETBSD_ROOT_ARG): New macro.
35565 (grub_netbsd_boot): Use 'netbsd_root'.
35566 (grub_bsd_unload): Free 'netbsd_root'.
35567 (grub_cmd_netbsd): Fill 'netbsd_root'.
35568
35569 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35570
35571 Support for 64-bit NetBSD.
35572
35573 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35574 point when booting non-FreeBSD.
35575
35576 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35577
35578 Support --no-smp and --no-acpi for NetBSD.
35579
35580 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35581 (NETBSD_AB_NOACPI): Likewise.
35582 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35583 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35584
35585 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35586
35587 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35588 errors.
35589 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35590 errors. Call grub_error when needed.
35591
35592 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35593
35594 * commands/search.c (search_fs): Try searching without autoload first.
35595 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35596 filesystem module explicitly for faster booting.
35597
35598 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35599
35600 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35601
35602 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35603
35604 * util/grub.d/30_os-prober.in: Disable os-prober if
35605 `GRUB_DISABLE_OS_PROBER' was set to true.
35606
35607 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35608
35609 * partmap/pc.c: Rename to ...
35610 * partmap/msdos.c: ... this. Update all users.
35611 (grub_pc_partition_map): Rename to ...
35612 (grub_msdos_partition_map): ... this. Update all users.
35613
35614 * parttool/pcpart.c: Rename to ...
35615 * parttool/msdospart.c: ... this. Update all users.
35616
35617 * include/grub/pc_partition.h: Rename to ...
35618 * include/grub/msdos_partition.h: ... this. Update all users.
35619 (grub_pc_partition_bsd_entry): Rename to ...
35620 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35621 (grub_pc_partition_disk_label): Rename to ...
35622 (grub_msdos_partition_disk_label): ... this. Update all users.
35623 (grub_pc_partition_entry): Rename to ...
35624 (grub_msdos_partition_entry): ... this. Update all users.
35625 (grub_pc_partition_mbr): Rename to ...
35626 (grub_msdos_partition_mbr): ... this. Update all users.
35627 (grub_pc_partition): Rename to ...
35628 (grub_msdos_partition): ... this. Update all users.
35629 (grub_pc_partition_is_empty): Rename to ...
35630 (grub_msdos_partition_is_empty): ... this. Update all users.
35631 (grub_pc_partition_is_extended): Rename to ...
35632 (grub_msdos_partition_is_extended): ... this. Update all users.
35633 (grub_pc_partition_is_bsd): Rename to ...
35634 (grub_msdos_partition_is_bsd): ... this. Update all users.
35635
35636 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35637 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35638 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35639 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35640 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35641 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35642 (gpt_mod_LDFLAGS): Rename to ...
35643 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35644 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35645 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35646 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35647 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35648 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35649 (part_gpt_mod_LDFLAGS): ... this.
35650 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35651 `pcpart.mod' to `msdospart.mod'.
35652 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35653 to ...
35654 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35655 (msdospart_mod_LDFLAGS): ... this.
35656
35657 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35658
35659 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35660 (openbsd_opts): Likewise.
35661 (netbsd_opts): Likewise.
35662 (freebsd_flags): Added 0 terminator.
35663 (openbsd_flags): Likewise.
35664 (netbsd_flags): Likewise.
35665 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35666 (grub_cmd_freebsd): Transformed into extended command.
35667 (grub_cmd_openbsd): Likewise.
35668 (grub_cmd_netbsd): Likewise.
35669 (cmd_freebsd): Changed type to grub_extcmd_t.
35670 (cmd_openbsd): Likewise.
35671 (cmd_netbsd): Likewise.
35672 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35673 grub_cmd_openbsd as extended commands.
35674 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35675 cmd_netbsd and cmd_openbsd
35676
35677 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35678
35679 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35680
35681 2009-08-21 Pavel Roskin <proski@gnu.org>
35682
35683 * Makefile.in (install-local): When checking if a file is in the
35684 build directory, use "test -e" to detect symlinks.
35685
35686 * Makefile.in (install-local): Remove all files in
35687 $(DESTDIR)$(pkglibdir) before installing new files there.
35688
35689 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35690
35691 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35692 grub-mkelfimage.
35693
35694 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35695
35696 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35697 explicitly specified by the user.
35698
35699 2009-08-18 Pavel Roskin <proski@gnu.org>
35700
35701 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35702 grub_uint8_t pointer for data.
35703 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35704 Likewise.
35705 * video/fb/fbutil.c: Remove unnecessary casts.
35706
35707 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35708
35709 VBE cleanup.
35710
35711 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35712 (grub_vbe_set_video_mode): Save active mode info
35713 only after setting the mode.
35714 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35715 second argument.
35716
35717 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35718
35719 Rename variables for clarity.
35720
35721 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35722 (active_vbe_mode_info): ... this. All users updated.
35723 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35724 All users updated.
35725 (initial_mode): Rename to ...
35726 (initial_vbe_mode): ... this. All users updated.
35727 (mode_in_use): Rename to ..
35728 (vbe_mode_in_use): ... this. All users updated.
35729 (mode_list): Rename to ..
35730 (vbe_mode_list): ... this. All users updated.
35731 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35732 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35733 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35734 'mode_list_size' to 'vbe_mode_list_size'.
35735 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35736 'best_mode_info' to 'best_vbe_mode_info' and
35737 'best_mode' to 'best_vbe_mode'
35738
35739 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35740
35741 Remove duplicate grub_video_fb_get_video_ptr.
35742
35743 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35744 (grub_video_fb_get_video_ptr): ... this.
35745 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35746 * video/fb/fbutil.c: Add comment about addressing.
35747 (get_data_ptr): Rename to ...
35748 (grub_video_fb_get_video_ptr): ... this. All users updated.
35749 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35750
35751 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35752
35753 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35754 grub_dprintf() that was just added.
35755
35756 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35757
35758 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35759 (DEFAULT_VIDEO_MODE): Remove macros.
35760 (grub_linux_boot): Remove assumption that Linux has FB support,
35761 and use "text" as default video mode.
35762
35763 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35764
35765 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35766 grub_dprintf.
35767 * fs/fat.c (grub_fat_read_data): Likewise.
35768
35769 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35770
35771 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35772 payload.
35773 (grub_module): Likewise.
35774
35775 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35776
35777 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35778 mbi->cmdline but free playground.
35779
35780 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35781
35782 Handle group offset on UFS1.
35783
35784 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35785 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35786
35787 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35788
35789 Split ufs.mod into ufs1.mod and ufs2.mod.
35790
35791 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
35792 (grub_fstest_SOURCES): Likewise.
35793 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
35794 (ufs_mod_SOURCES): Remove.
35795 (ufs_mod_CFLAGS): Likewise.
35796 (ufs_mod_LDFLAGS): Likewise.
35797 (ufs1_mod_SOURCES): New variable.
35798 (ufs1_mod_CFLAGS): Likewise.
35799 (ufs1_mod_LDFLAGS): Likewise.
35800 (ufs2_mod_SOURCES): New variable.
35801 (ufs2_mod_CFLAGS): Likewise.
35802 (ufs2_mod_LDFLAGS): Likewise.
35803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35804 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35805 Likewise.
35806 (grub_emu_SOURCES): Likewise.
35807 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35808 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35809 (grub_setup_SOURCES): Likewise.
35810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35811 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35812 (grub_setup_SOURCES): Likewise.
35813 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35814 Likewise.
35815 * fs/ufs2.c: New file.
35816 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35817
35818 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35819
35820 Framebuffer split.
35821
35822 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35823 subsystem at the end.
35824 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35825 (video_fb_mod_SOURCES): New variable.
35826 (video_fb_mod_CFLAGS): Likewise.
35827 (video_fb_mod_LDFLAGS): Likewise.
35828 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35829 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35830 * video/i386/pc/vbeblit.c: Moved from here ...
35831 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35832 * video/i386/pc/vbefill.c: Moved from here ...
35833 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35834 * video/i386/pc/vbeutil.c: Moved from here ...
35835 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35836 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35837 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35838 * include/grub/i386/pc/vbefill.h: Moved from here ...
35839 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35840 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35841 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35842 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35843 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35844 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35845 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35846 (grub_video_adapter): Added 'get_info_and_fini'.
35847 (grub_video_get_info_and_fini): New prototype.
35848 (grub_video_set_mode): make modestring const char *.
35849 * loader/i386/linux.c (grub_linux_setup_video): Use
35850 grub_video_get_info_and_fini.
35851 (grub_linux_boot): Move modesetting just before booting.
35852 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35853 grub_video_get_info_and_fini.
35854 * video/i386/pc/vbe.c: Moved framebuffer part ...
35855 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35856 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35857 grub_video_fbstd_colors and grub_video_fb_set_palette.
35858 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35859 grub_video_fb_init.
35860 (grub_video_vbe_fini): Use grub_video_fb_fini.
35861 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35862 render_target and use grub_video_fb_set_active_render_target and
35863 grub_video_fb_set_palette.
35864 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35865 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35866 (grub_video_vbe_adapter): Use framebuffer.
35867 * video/video.c (grub_video_get_info_and_fini): New function.
35868 (grub_video_set_mode): Make modestring const char *.
35869 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35870 values are already initialised.
35871
35872 2009-08-14 Pavel Roskin <proski@gnu.org>
35873
35874 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35875 ABS and APPLE_CC.
35876 * boot/i386/pc/diskboot.S: Likewise.
35877 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35878 sectors allow compilation on MacOSX.
35879 * conf/i386-pc.rmk: Enable unconditional compilation of
35880 lnxboot.img.
35881
35882 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
35883
35884 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35885 * util/grub.d/00_header.in: Enter interruptible sleep if
35886 GRUB_HIDDEN_TIMEOUT is set.
35887
35888 2009-08-13 Yves Blusseau <blusseau@zetam.org>
35889
35890 * include/grub/symbol.h: Add the LOCAL macro.
35891 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35892 starting with "L_".
35893
35894 2009-08-13 Pavel Roskin <proski@gnu.org>
35895
35896 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35897 any modern compilers we support.
35898
35899 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35900 Use local labels starting with "L_" so that Apple assembler
35901 knows they are local.
35902
35903 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35904
35905 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35906 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35907 (bsd_kernel_types): ... this enum.
35908
35909 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35910 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35911 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35912
35913 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35914 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35915 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35916 messages.
35917
35918 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35919
35920 * util/grub-dumpdevtree: Moved from here ...
35921 * util/i386/efi/grub-dumpdevtree: ... to here.
35922 (hexify): New function. Converts a string to its hex version.
35923 Generate hex versions of "efi" and "device-properties" by calling
35924 hexify() on the ASCII strings rather than by hardcoding numbers.
35925
35926 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35927
35928 * fs/jfs.c: Update copyright year.
35929
35930 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35931
35932 * util/grub.d/00_header.in: Fix a comment.
35933 * util/grub.d/10_linux.in: Likewise.
35934 * util/grub.d/10_windows.in: Likewise.
35935 * util/grub.d/10_hurd.in: Likewise.
35936
35937 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35938
35939 * util/grub-mkconfig.in: Allow the user to specify the used font
35940 with GRUB_FONT.
35941
35942 2009-08-08 Pavel Roskin <proski@gnu.org>
35943
35944 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35945 available, xfs.mod needs it now.
35946
35947 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35948 the "g" modifier in sed when the intention is to strip something
35949 once. This fixes comparison of kernels with multiple dashes.
35950
35951 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35952 on it. Add missing space before closing bracket. Fix
35953 misleading formatting.
35954
35955 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35956
35957 * docs/grub.texi: Major overhaul. Remove all sections that are
35958 specific to GRUB Legacy, or mostly composed of Legacy-specific
35959 information.
35960
35961 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35962
35963 * docs/version.texi: New file. Provides version information for
35964 grub.texi.
35965
35966 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35967
35968 * docs/grub.texi: Update CVS information to SVN.
35969 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35970
35971 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35972
35973 * util/grub-mkconfig.in: Remove a wrong `fi'.
35974
35975 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35976
35977 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35978 (grub_jfs_uuid): New function.
35979 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35980
35981 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35982
35983 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35984 of it to ...
35985 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35986 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35987
35988 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35989
35990 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35991 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35992 Update all users.
35993
35994 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35995 not just "vmlinu[zx]".
35996 Moved from here ...
35997 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35998 all users.
35999
36000 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36001 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36002 all users.
36003
36004 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36005
36006 * util/grub.d/10_freebsd.in: Use an absolute device path for
36007 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36008
36009 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36010
36011 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36012 handling of multiple abstraction modules.
36013
36014 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36015
36016 Fix a bug resulting in black screen when loading Linux using a
36017 packed video mode.
36018
36019 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36020 function.
36021
36022 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36023 (grub_vbe_bios_getset_dac_palette_width): New function.
36024 (grub_vbe_bios_get_dac_palette_width)
36025 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36026 grub_vbe_bios_getset_dac_palette_width()).
36027
36028 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36029 check for return status.
36030 (grub_vbe_get_video_mode_info): When getting information for a packed
36031 mode (<= 8 bpp), obtain DAC palette width using
36032 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36033 {red,green,blue}_mark_size.
36034
36035 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36036
36037 * commands/search.c (options): Fix help output to match actual code.
36038
36039 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36040
36041 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36042 of homegrown code.
36043
36044 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36045
36046 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36047 on XFS or ReiserFS.
36048
36049 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36050
36051 Support Apple partition map with sector size different from 512 bytes.
36052
36053 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36054 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36055 and 'apart.partmap_size'.
36056
36057 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36058 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36059
36060 Fix cpuid command.
36061
36062 * commands/i386/cpuid.c (options): New variable.
36063 (grub_cmd_cpuid): Return real error.
36064 (GRUB_MOD_INIT(cpuid)): Declare options.
36065
36066 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36067
36068 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36069 valid.
36070
36071 2009-07-31 Bean <bean123ch@gmail.com>
36072
36073 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36074 log2_inode.
36075 (grub_fshelp_node): Move inode field to the end.
36076 (grub_xfs_data): Remove inode field.
36077 (grub_xfs_inode_block): Calculate inode size using sblock.
36078 (grub_xfs_inode_offset): Likewise.
36079 (grub_xfs_read_inode): Calculate inode size using sblock.
36080 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36081 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36082 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36083 to match inode size.
36084 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36085 not accessible when data is null.
36086 (grub_xfs_open): Likewise.
36087
36088 2009-07-31 Bean <bean123ch@gmail.com>
36089
36090 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36091 Don't change pv->disk if it's already set.
36092
36093 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36094 (grub_raid_register): ... here.
36095 (grub_raid_rescan): Removed.
36096
36097 * include/grub/raid.h (grub_raid_rescan): Removed.
36098
36099 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36100 (fstest): Replace grub_raid_rescan with module fini function followed
36101 by init function.
36102
36103 * util/grub-probe.c: Add include file <grub/raid.h>.
36104 (probe_raid_level): New function.
36105 (probe): Detect abstraction by walking the disk device, support two
36106 level of abstraction (LVM on RAID) when detecting partition map.
36107
36108 2009-07-31 Pavel Roskin <proski@gnu.org>
36109
36110 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36111 to grub_zalloc(), it was erroneous.
36112 Reported by Bean <bean123ch@gmail.com>
36113
36114 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36115
36116 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36117 embedding zone, not only the first one.
36118
36119 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36120
36121 * term/gfxterm.c (clear_char): New function.
36122 (grub_virtual_screen_setup): Use clear_char.
36123 (scroll_up): Likewise.
36124 (grub_virtual_screen_cls): Likewise.
36125
36126 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36127
36128 * util/deviceiter.c (get_acceleraid_disk_name): New static
36129 function.
36130 (grub_util_iterate_devices): Handle Accelraid devices.
36131 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36132
36133 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36134
36135 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36136 separator for the suggested gfxpayload string (';' collides with the
36137 parser and needs escaping).
36138
36139 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36140
36141 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36142 Clear direction flag before jumping to OS.
36143 (grub_multiboot2_real_boot): Likewise.
36144
36145 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36146
36147 * util/i386/pc/grub-install: Fix parsing of --disk-module
36148 option.
36149
36150 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36151
36152 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36153 when embedding.
36154
36155 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36156
36157 * util/grub-mkconfig.in (package_version): New variable.
36158 Use it do display the version.
36159
36160 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36161
36162 * kern/file.c (grub_file_open): Revert to previous check with
36163 grub_errno.
36164
36165 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36166
36167 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36168 from help line. It's out of sync with code.
36169
36170 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36171
36172 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36173 entries on failed boot.
36174
36175 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36176
36177 * kern/file.c (grub_file_open): Fix an error check.
36178
36179 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36180
36181 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36182 partition map couldn't be identified.
36183
36184 2009-07-23 Pavel Roskin <proski@gnu.org>
36185
36186 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36187 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36188 case of little endian words becomes just an optimization.
36189 Respect const modifier.
36190 (md5_final): Use code that doesn't depend on endianness.
36191
36192 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36193 to avoid loss of upper bits if align is unsigned and shorter
36194 than addr.
36195
36196 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36197
36198 UUID support for UFS
36199
36200 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36201 (grub_ufs_uuid): New function.
36202 (grub_ufs_fs): add .uuid
36203
36204 2009-07-21 Pavel Roskin <proski@gnu.org>
36205
36206 * kern/dl.c (grub_dl_check_header): Make static.
36207
36208 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36209
36210 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36211 add drivemap for Vista. It breaks Windows 7.
36212
36213 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36214
36215 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36216 128 bytes
36217
36218 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36219
36220 Add BFS support
36221
36222 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36223 (grub_fstest_SOURCES): Likewise.
36224 (pkglib_MODULES): Add befs.mod.
36225 (befs_mod_SOURCES): New variable.
36226 (befs_mod_CFLAGS): Likewise.
36227 (befs_mod_LDFLAGS): Likewise.
36228 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36230 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36231 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36232 (grub_setup_SOURCES): Likewise.
36233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36234 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36235 (grub_setup_SOURCES): Likewise.
36236 * fs/befs.c: New file.
36237 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36238 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36239 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36240 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36241 (B_KEY_INDEX_ALIGN): New declaration.
36242 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36243 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36244 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36245 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36246 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36247 (grub_afs_mount) [MODE_BFS]: Likewise.
36248 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36249 (grub_afs_fs): Use GRUB_AFS_FSNAME
36250 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36251 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36252 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36253 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36254
36255 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36256
36257 * util/getroot.c (find_root_device): Add support for MacOSX.
36258 * util/hostdisk.c: Likewise.
36259
36260 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36261
36262 * font/font.c (find_glyph): Check whether a font is present to avoid
36263 segmentation fault.
36264
36265 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36266
36267 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36268
36269 2009-07-20 Pavel Roskin <proski@gnu.org>
36270
36271 * configure.ac: Trim excessively wordy excuses.
36272
36273 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36274
36275 Add symlink, mtime and label support to AtheFS.
36276
36277 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36278 (grub_afs_iterate_dir): Handle symlinks.
36279 (grub_afs_open): Use grub_afs_read_symlink.
36280 (grub_afs_dir): Likewise.
36281 Pass mtime.
36282 (grub_afs_label): New function.
36283 (grub_afs_fs): Add grub_afs_label.
36284 (grub_afs_read_symlink): New function.
36285
36286 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36287
36288 Fix AtheFS support.
36289
36290 * fs/afs.c: Fix comments style.
36291 (grub_afs_blockrun): Declare as packed.
36292 (grub_afs_datastream): Likewise.
36293 (grub_afs_bnode): Likewise.
36294 (grub_afs_btree): Likewise.
36295 (grub_afs_sblock): Likewise.
36296 Declare `name' as char.
36297 (grub_afs_inode): Declare as packed.
36298 Change void *vnode to grub_uint32_t unused.
36299 (grub_afs_iterate_dir): Check that key_size is positive.
36300 (grub_afs_mount): Don't read superblock twice.
36301 (grub_afs_dir): Don't free node in case of error,
36302 grub_fshelp_find_file already handles this.
36303 (grub_afs_open): Likewise.
36304
36305 2009-07-19 Pavel Roskin <proski@gnu.org>
36306
36307 * Makefile.in: Remove LIBLZO and enable_lzo.
36308 * conf/i386-pc.rmk: Remove lzo support.
36309 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36310 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36311 support.
36312 * kern/i386/pc/lzo1x.S: Remove.
36313 * kern/i386/pc/startup.S: Remove lzo support.
36314 * util/i386/pc/grub-mkimage.c: Likewise.
36315
36316 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36317
36318 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36319 * fs/xfs.c (grub_xfs_dir): Likewise.
36320 * fs/afs.c (grub_afs_dir): Likewise.
36321 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36322 (grub_iso9660_open): Likewise.
36323 * fs/jfs.c (grub_jfs_open): Likewise.
36324 * fs/ext2.c (grub_ext2_dir): Likewise.
36325 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36326 * script/sh/lexer.c (grub_script_yylex): Likewise.
36327
36328 2009-07-16 Pavel Roskin <proski@gnu.org>
36329
36330 * configure.ac: Never add "-c" to CFLAGS.
36331
36332 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36333
36334 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36335 grub_cv_cc_efiemu should be used.
36336
36337 * configure.ac: Typo fixes.
36338
36339 * kern/mm.c (grub_zalloc): New function.
36340 (grub_debug_zalloc): Likewise.
36341 * include/grub/mm.h: Declare grub_zalloc() and
36342 grub_debug_zalloc().
36343 * util/misc.c (grub_zalloc): New function.
36344 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36345 instead of grub_malloc(), remove unneeded initializations.
36346 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36347 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36348 * commands/parttool.c (grub_cmd_parttool): Likewise.
36349 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36350 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36351 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36352 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36353 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36354 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36355 (grub_cmd_efiemu_pnvram): Likewise.
36356 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36357 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36358 (grub_iso9660_iterate_dir): Likewise.
36359 * fs/jfs.c (grub_jfs_opendir): Likewise.
36360 * fs/ntfs.c (list_file): Likewise.
36361 (grub_ntfs_mount): Likewise.
36362 * kern/disk.c (grub_disk_open): Likewise.
36363 * kern/dl.c (grub_dl_load_core): Likewise.
36364 * kern/elf.c (grub_elf_file): Likewise.
36365 * kern/env.c (grub_env_context_open): Likewise.
36366 (grub_env_set): Likewise.
36367 (grub_env_set_data_slot): Likewise.
36368 * kern/file.c (grub_file_open): Likewise.
36369 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36370 * loader/i386/multiboot.c (grub_module): Likewise.
36371 * loader/xnu.c (grub_xnu_create_key): Likewise.
36372 (grub_xnu_create_value): Likewise.
36373 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36374 (read_config_file): Likewise.
36375 * normal/menu_entry.c (make_screen): Likewise.
36376 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36377 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36378 * script/sh/script.c (grub_script_parse): Likewise.
36379 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36380 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36381 * video/readers/png.c (grub_png_output_byte): Likewise.
36382 (grub_video_reader_png): Likewise.
36383
36384 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36385
36386 Enable all targets that can be built by default
36387
36388 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36389 grub-mkfont and grub-fstest if they can be built
36390
36391 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36392
36393 Fix hang and segmentation fault in grub-emu-usb
36394
36395 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36396 * util/usb.c (grub_libusb_devices): likewise
36397 (grub_libusb_init): rename to ...
36398 (GRUB_MOD_INIT (libusb)):...this
36399 (grub_libusb_fini): rename to ..
36400 (GRUB_MOD_FINI (libusb)):...this
36401 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36402 * include/grub/disk.h (grub_raid_init): removed, it's useless
36403 (grub_raid_fini): likewise
36404 (grub_lvm_init): likewise
36405 (grub_lvm_fini): likewise
36406 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36407 by grub_init_all
36408
36409 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36410
36411 Fix libusb
36412
36413 * Makefile.in (LIBUSB): new macro
36414 * genmk.rb (Utility/print_tail): new method
36415 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36416 (top level): call util.print_tail at the end.
36417
36418 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36419
36420 Make FreeBSD accept zpool.cache
36421
36422 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36423 type is /boot/zfs/zpool.cache
36424
36425 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36426
36427 Fix 64-bit efiemu
36428
36429 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36430 correct wrong typedef
36431 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36432
36433 2009-07-15 Pavel Roskin <proski@gnu.org>
36434
36435 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36436 * kern/disk.c (struct grub_disk_cache): Likewise.
36437
36438 * commands/probe.c (options): Typo fix.
36439
36440 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36441 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36442 accordingly.
36443 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36444
36445 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36446 the end of "Error" to make the message more readable.
36447
36448 * boot/i386/pc/boot.S (kernel_segment): Remove.
36449 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36450 for destination.
36451
36452 * boot/i386/pc/boot.S (boot_version): Remove.
36453 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36454 Remove.
36455
36456 * include/grub/i386/pc/boot.h: Sort all offsets.
36457 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36458 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36459 * boot/i386/pc/boot.S: Assert location of every offset listed in
36460 include/grub/i386/pc/boot.h.
36461
36462 2009-07-13 Pavel Roskin <proski@gnu.org>
36463
36464 * include/grub/i386/coreboot/machine.h: Rename
36465 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36466 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36467 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36468
36469 * kern/dl.c: Force native word size to suppress warnings when
36470 compiling grub-emu.
36471
36472 * kern/device.c (grub_device_iterate): Change struct part_ent to
36473 hold the name, not a pointer to it. Use one grub_malloc() per
36474 partition, not two. Free partition_name if grub_malloc() fails.
36475 Set ents to NULL only before grub_partition_iterate() is called.
36476
36477 2009-07-11 Bean <bean123ch@gmail.com>
36478
36479 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36480 childname.
36481
36482 2009-07-10 Bean <bean123ch@gmail.com>
36483 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36484
36485 * kern/ieee1275/openfw.c (grub_children_iterate)
36486 (grub_devalias_iterate): Fix size evaluation for property or path
36487 strings, which was broken since r2132.
36488
36489 2009-07-07 Pavel Roskin <proski@gnu.org>
36490
36491 * commands/search.c (search_file): Merge into ...
36492 (search_fs): ... this. Accept search type as argument.
36493 (grub_cmd_search): Pass search type to search_fs().
36494
36495 * include/grub/util/console.h: New file.
36496 * util/console.c: Use it instead of grub/machine/console.h.
36497 * util/grub-emu.c: Likewise.
36498
36499 * lib/arg.c (find_long_option): Remove.
36500 (find_long): Add `len' argument, make `s' const char *.
36501 (grub_arg_parse): Parse long options in place, not in a
36502 temporary buffer.
36503
36504 2009-07-06 Pavel Roskin <proski@gnu.org>
36505
36506 * commands/search.c (search_fs): Fix potential NULL pointer
36507 dereference.
36508
36509 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36510 function pointer.
36511
36512 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36513
36514 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36515 comparison.
36516
36517 2009-07-05 Pavel Roskin <proski@gnu.org>
36518
36519 * include/grub/i386/linux.h (struct linux_kernel_params):
36520 Restore padding3, it's still needed.
36521
36522 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36523 FreeBSD.
36524 * util/osdetect.lua: Likewise.
36525
36526 2009-07-05 Bean <bean123ch@gmail.com>
36527
36528 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36529
36530 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36531 (grub_lua_getenv): Likewise.
36532 (grub_lua_setenv): Likewise.
36533 (save_errno): New function.
36534 (push_result): Likewise.
36535 (grub_lua_enum_device): Likewise.
36536 (grub_lua_enum_file): Likewise.
36537 (grub_lua_file_open): Likewise.
36538 (grub_lua_file_close): Likewise.
36539 (grub_lua_file_seek): Likewise.
36540 (grub_lua_file_read): Likewise.
36541 (grub_lua_file_getline): Likewise.
36542 (grub_lua_file_getsize): Likewise.
36543 (grub_lua_file_getpos): Likewise.
36544 (grub_lua_file_eof): Likewise.
36545 (grub_lua_file_exist): Likewise.
36546 (grub_lua_add_menu): Likewise.
36547
36548 * script/lua/grub_lua.h (isupper): New inline function.
36549 (islower): Likewise.
36550 (ispunct): Likewise.
36551 (isxdigit): Likewise.
36552 (strcspn): Change to normal function.
36553 (strpbkr): New function declaration.
36554 (memchr): Likewise.
36555
36556 * script/lua/grub_main.c (scan_str): New function.
36557 (strcspn): Likewise.
36558 (strpbrk): Likewise.
36559 (memchr): Likewise.
36560
36561 * script/lua/linit.c (lualibs): Enable the string library.
36562
36563 * util/osdetect.lua: New file.
36564
36565 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36566
36567 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36568 `capabilities' member.
36569
36570 2009-07-02 Pavel Roskin <proski@gnu.org>
36571
36572 * genparttoollist.sh: Add missing newline at the end.
36573
36574 2009-07-01 Pavel Roskin <proski@gnu.org>
36575
36576 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36577
36578 * util/hostdisk.c (open_device): Remove `const' from
36579 `sysctl_size', as sysctlbyname() can change it (in this case it
36580 doesn't actually happen).
36581
36582 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36583 using signed long int constants.
36584
36585 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36586 constant to avoid a warning on FreeBSD.
36587
36588 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36589 where it's needed.
36590
36591 * Makefile.in: Install include/grub/machine symlink.
36592
36593 * Makefile.in: When installing symlinks, use "cp -fR", which
36594 works on FreeBSD and MacOSX.
36595 From Yves Blusseau <cl7m42e02@sneakemail.com>
36596
36597 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36598 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36599
36600 * util/misc.c: Move grub_reboot() and grub_halt() ...
36601 * util/grub-emu.c: ... here. Make main_env static.
36602 * include/grub/util/misc.h: Remove main_env.
36603
36604 * kern/mm.c: Use correct format to print size_t.
36605
36606 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36607 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36608 * kern/powerpc/dl.c: Likewise.
36609 * kern/sparc64/dl.c: Likewise.
36610 * kern/x86_64/dl.c: Likewise.
36611
36612 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36613
36614 Fix grub-emu build on sparc64-ieee1275.
36615
36616 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36618
36619 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36620
36621 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36622 (grub_reboot, grub_halt): New functions.
36623
36624 * util/i386/pc/misc.c: Delete. Update all users.
36625 * util/sparc64/ieee1275/misc.c: Likewise.
36626 * util/powerpc/ieee1275/misc.c: Likewise.
36627
36628 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36629
36630 * conf/i386.rmk (setjmp_mod_SOURCES)
36631 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36632 * conf/common.rmk (setjmp_mod_SOURCES)
36633 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36634 to use $(target_cpu).
36635 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36636 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36637 * conf/powerpc-ieee1275.rmk: Likewise.
36638 * conf/sparc64-ieee1275.rmk: Likewise.
36639
36640 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36641 $(target_cpu) for kern/$(target_cpu)/dl.c.
36642 * conf/i386-efi.rmk: Likewise.
36643 * conf/i386-ieee1275.rmk: Likewise.
36644 * conf/x86_64-efi.rmk: Likewise.
36645 * conf/i386-coreboot.rmk: Likewise.
36646 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36647 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36648 kern/$(target_cpu)/cache.S.
36649 * conf/sparc64-ieee1275.rmk: Likewise.
36650
36651 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36652
36653 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36654 type to `grub_uint8_t', and adjust `padding9' accordingly.
36655
36656 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36657
36658 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36659
36660 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36661 assembly in final jump, using register constraints.
36662
36663 (grub_linux_boot): For text mode, initialize `have_vga' using
36664 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36665
36666 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36667 right before the final jump.
36668
36669 Set `video_mode' to 0x3.
36670
36671 Document initialization of `video_page', `video_mode' and
36672 `video_ega_bx'.
36673
36674 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36675
36676 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36677 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36678 and set GRUB_LINUX_FLAG_QUIET appropriately.
36679
36680 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36681
36682 Fix build on Debian / sparc.
36683
36684 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36685
36686 2009-06-28 Pavel Roskin <proski@gnu.org>
36687
36688 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36689 fix a warning.
36690
36691 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36692
36693 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36694
36695 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36696 `err'.
36697
36698 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36699
36700 Revert r2338.
36701
36702 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36703 file can't be opened. grub_file_open() is already supposed to set
36704 grub_errno / grub_errmsg appropriately.
36705 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36706
36707 2009-06-27 Pavel Roskin <proski@gnu.org>
36708 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36709
36710 * include/grub/dl.h: Include grub/elf.h.
36711 (struct grub_dl): Add symtab field.
36712 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36713 GRUB_MODULES_MACHINE_READONLY.
36714 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36715 of the header for read-only modules.
36716 (grub_dl_unload): Free mod->symtab for read-only modules.
36717 * kern/i386/dl.c: Use mod->symtab.
36718 * kern/powerpc/dl.c: Likewise.
36719 * kern/sparc64/dl.c: Likewise.
36720 * kern/x86_64/dl.c: Likewise.
36721
36722 * conf/i386-qemu.rmk: New file.
36723 * kern/i386/qemu/startup.S: Likewise.
36724 * kern/i386/qemu/mmap.c: Likewise.
36725 * boot/i386/qemu/boot.S: Likewise.
36726 * include/grub/i386/qemu/time.h: Likewise.
36727 * include/grub/i386/qemu/serial.h: Likewise.
36728 * include/grub/i386/qemu/kernel.h: Likewise.
36729 * include/grub/i386/qemu/console.h: Likewise.
36730 * include/grub/i386/qemu/boot.h: Likewise.
36731 * include/grub/i386/qemu/init.h: Likewise.
36732 * include/grub/i386/qemu/machine.h: Likewise.
36733 * include/grub/i386/qemu/loader.h: Likewise.
36734 * include/grub/i386/qemu/memory.h: Likewise.
36735
36736 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36737 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36738 [qemu] (pkglib_IMAGES): Add `boot.img'.
36739 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36740 [qemu] (boot_img_FORMAT): New variables.
36741 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36742 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36743 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36744 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36745 [qemu] (kernel_img_FORMAT): New variables.
36746
36747 * configure.ac: Recognise `i386-qemu'.
36748
36749 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36750 (for no compression).
36751 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36752 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36753 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36754 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36755 ifdefs).
36756
36757 2009-06-27 Pavel Roskin <proski@gnu.org>
36758
36759 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36760 read.
36761 * efiemu/prepare32.c: Likewise.
36762 * efiemu/prepare64.c: Likewise.
36763
36764 2009-06-26 Pavel Roskin <proski@gnu.org>
36765
36766 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36767 * include/grub/elf.h: Define symbols without "32" or "64" based
36768 on GRUB_TARGET_WORDSIZE.
36769 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36770 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36771 ELF definitions.
36772 * efiemu/loadcore64.c: Likewise.
36773 * loader/i386/bsd32.c: Likewise.
36774 * loader/i386/bsd64.c: Likewise.
36775 * kern/dl.c: Remove own ELF definitions.
36776 * util/i386/efi/grub-mkimage.c: Likewise.
36777
36778 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36779
36780 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36781 segment 0x0 unconditionally, because the reference generated by
36782 GAS is an absolute address.
36783
36784 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36785
36786 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36787 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
36788
36789 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36790
36791 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
36792 indexes. Check for -f explicitly.
36793 (search_file): Improve error message.
36794 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
36795
36796 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36797
36798 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
36799 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36800
36801 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36802
36803 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36804 * conf/i386-ieee1275.rmk: Likewise.
36805 * conf/i386-coreboot.rmk: Likewise.
36806
36807 * kern/i386/pc/startup.S (grub_stop): Remove function.
36808 * kern/i386/ieee1275/startup.S: Likewise.
36809 * kern/i386/coreboot/startup.S: Likewise.
36810 * kern/i386/misc.S (grub_stop): New function.
36811
36812 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36813
36814 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36815 * kern/i386/realmode.S (real_to_prot): ... to here.
36816
36817 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36818
36819 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36820 with `kernel.img'.
36821 (kernel_elf_SOURCES): Rename to ...
36822 (kernel_img_SOURCES): ... this.
36823 (kernel_elf_HEADERS): Rename to ...
36824 (kernel_img_HEADERS): ... this. Update all users.
36825 (kernel_elf_ASFLAGS): Rename to ...
36826 (kernel_img_ASFLAGS): ... this.
36827 (kernel_elf_CFLAGS): Rename to ...
36828 (kernel_img_CFLAGS): ... this.
36829 (kernel_elf_LDFLAGS): Rename to ...
36830 (kernel_img_LDFLAGS): ... this.
36831 * conf/i386-coreboot.rmk: Likewise.
36832 * conf/powerpc-ieee1275.rmk: Likewise.
36833
36834 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36835 with "kernel.img".
36836
36837 2009-06-21 Pavel Roskin <proski@gnu.org>
36838
36839 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36840 to match nested functions.
36841 * loader/sparc64/ieee1275/linux.c: Likewise.
36842
36843 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36844
36845 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36846
36847 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36848 all i386 platforms.
36849
36850 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36851
36852 Fix asm file handling on ELF, and remove workarounds.
36853
36854 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
36855 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
36856 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36857 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36858
36859 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36860
36861 Load BSD ELF modules
36862
36863 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36864 and loader/i386/bsd64.c
36865 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36866 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36867 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36868 (grub_freebsd_load_elfmodule32): New declaration
36869 (grub_freebsd_load_elfmoduleobj64): Likewise
36870 (grub_freebsd_load_elf_meta32): Likewise
36871 (grub_freebsd_load_elf_meta64): Likewise
36872 (grub_freebsd_add_meta): Likewise
36873 (grub_freebsd_add_meta_module): Likewise
36874 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36875 (grub_freebsd_add_meta_module): Likewise and move module-specific
36876 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36877 (grub_cmd_freebsd): Add elf-kernel specific parts
36878 based on grub_freebsd_add_meta_module
36879 (grub_cmd_freebsd_module): Add type parsing moved from
36880 grub_freebsd_add_meta_module
36881 (grub_cmd_freebsd_module_elf): New function
36882 (cmd_freebsd_module_elf): New variable
36883 (GRUB_MOD_INIT): Register freebsd_module_elf
36884 * loader/i386/bsd32.c: New file
36885 * loader/i386/bsd64.c: Likewise
36886 * loader/i386/bsdXX.c: Likewise
36887 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36888 (grub_elf64_load): Likewise
36889 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36890 All users updated
36891 (grub_elf64_load_hook_t): Likewise
36892
36893 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
36894
36895 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36896 variable.
36897 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36898 don't write a menu entry for recovery mode.
36899
36900 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36901
36902 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36903 after it's no longer needed.
36904
36905 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36906
36907 * include/grub/i386/loader.h (grub_linux_prot_size)
36908 (grub_linux_tmp_addr, grub_linux_real_addr)
36909 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36910 GRUB_MACHINE_PCBIOS.
36911 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36912 common grub_util_info() call to ...
36913 (generate_image): ... here.
36914 Fix use of uninitialized memory, comparison of signed with
36915 unsigned integers and memory leak.
36916 Remove bogus module address message.
36917
36918 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36919
36920 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36921 grub_raid_register
36922 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36923
36924 2009-06-19 Pavel Roskin <proski@gnu.org>
36925
36926 * configure.ac: Remove stray AC_MSG_CHECKING.
36927
36928 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36929
36930 * disk/scsi.c (grub_scsi_open): use continue instead of big if
36931
36932 2009-06-18 Pavel Roskin <proski@gnu.org>
36933
36934 * conf/common.rmk: Add fs_file.mod.
36935 * disk/fs_file.c: New file.
36936 * include/grub/disk.h (enum grub_disk_dev_id): Add
36937 GRUB_DISK_DEVICE_FILE_ID.
36938
36939 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36940
36941 Fix build with Apple's toolchain. Part 2
36942
36943 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36944 a fake start
36945
36946 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36947
36948 Fix build with Apple's toolchain. Part 1
36949
36950 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36951 for long calls
36952 * configure.ac: remove a leftover AC_MSG_RESULT
36953 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
36954 Apple's toolchain
36955
36956 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36957
36958 Fix warnings
36959
36960 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36961 (decomp_block): initialize ch
36962 use grub_memcpy instead of memcpy
36963
36964 2009-06-17 Pavel Roskin <proski@gnu.org>
36965
36966 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36967 version, use declarations needed to use vga_text as the startup
36968 console.
36969
36970 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36971 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36972 the kernel.
36973 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36974 and grub_at_keyboard_fini(), it's done on module load and
36975 unload.
36976
36977 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
36978
36979 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36980 file can't be found.
36981 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36982
36983 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36984
36985 Fix newline handling
36986
36987 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
36988 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
36989 (grub_script_yylex): don't segfault on unterminated script
36990 newline terminates command and variable
36991
36992 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36993
36994 avoid double grub_adjust_range call. Bug reported by David Simner
36995
36996 * kern/disk.c (grub_disk_write): change to raw disk access before
36997 calling disk_read
36998
36999 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37000
37001 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37002 spaces, for the benefit of help2man.
37003 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37004
37005 2009-06-16 Pavel Roskin <proski@gnu.org>
37006
37007 * kern/i386/halt.c: Include grub/machine/init.h.
37008 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37009
37010 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37011
37012 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37013 drivemap menuentry.
37014
37015 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37016
37017 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37018 `echo' command.
37019
37020 2009-06-16 Pavel Roskin <proski@gnu.org>
37021
37022 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37023 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37024 save %dx, we only need %dl and we never change it.
37025 * boot/i386/pc/cdboot.S: Don't set the root drive.
37026 * boot/i386/pc/pxeboot.S: Likewise.
37027 * include/grub/i386/pc/boot.h: Remove
37028 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37029 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37030 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37031 * kern/i386/pc/init.c (make_install_device): Remove references
37032 to grub_root_drive.
37033 * kern/i386/pc/startup.S: Likewise.
37034 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37035
37036 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37037
37038 xnu_uuid command
37039
37040 * commands/xnu_uuid.c: new file
37041 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37042 (xnu_uuid_mod_SOURCES): new variable
37043 (xnu_uuid_mod_CFLAGS): likewise
37044 (xnu_uuid_mod_LDFLAGS): likewise
37045 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37046 * conf/i386-ieee1275.rmk: likewise
37047 * conf/i386-pc.rmk: likewise
37048 * conf/powerpc-ieee1275.rmk: likewise
37049 * conf/sparc64-ieee1275.rmk: likewise
37050 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37051
37052 2009-06-16 Pavel Roskin <proski@gnu.org>
37053
37054 * configure.ac: Avoid '==' in test command, it's not portable.
37055
37056 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37057
37058 Probe command
37059
37060 * commands/probe.c: new file
37061 * conf/common.rmk (pkglib_MODULES): add probe.mod
37062 (probe_mod_SOURCES): new variable
37063 (probe_mod_CFLAGS): likewise
37064 (probe_mod_LDFLAGS): likewise
37065 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37066 * conf/i386-ieee1275.rmk: likewise
37067 * conf/i386-pc.rmk: likewise
37068 * conf/powerpc-ieee1275.rmk: likewise
37069 * conf/sparc64-ieee1275.rmk: likewise
37070
37071 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37072
37073 Fix handling of string like \"hello\" and "a
37074 b"
37075
37076 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37077 (grub_script_yylex): fix parsing of quoting, escaping and newline
37078
37079 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37080
37081 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37082 handling
37083
37084 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37085
37086 * util/grub-mkconfig.in: Fix parsing of --output option.
37087
37088 2009-06-12 Pavel Roskin <proski@gnu.org>
37089
37090 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37091 genmk.rb don't need to be generated or installed.
37092
37093 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37094
37095 * commands/i386/pc/drivemap_int13h.S: add more comments
37096
37097 2009-06-11 Pavel Roskin <proski@gnu.org>
37098
37099 * Makefile.in (uninstall): Uninstall manuals.
37100
37101 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37102 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37103 and update-grub_lib in two places.
37104 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37105
37106 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37107 a compiler warning.
37108
37109 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37110 `entry_lo' to fix variable shadowing.
37111
37112 2009-06-11 Christian Franke <franke@computer.org>
37113
37114 * kern/misc.c (__enable_execute_stack): Add missing return type
37115 to prevent gcc warning.
37116
37117 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37118
37119 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37120
37121 2009-06-11 Pavel Roskin <proski@gnu.org>
37122
37123 * Makefile.in: Don't rely on any scripts being executable.
37124 Always use $(SHELL) to run shell scripts.
37125
37126 * configure.ac: Always define ___main if using -nostdlib. This
37127 fixes tests on Cygwin.
37128
37129 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37130
37131 UDF fix
37132
37133 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37134 is in bytes and not in blocks
37135
37136 2009-06-11 Pavel Roskin <proski@gnu.org>
37137
37138 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37139 warning.
37140
37141 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37142
37143 * util/grub.d/30_os-prober.in: Fix a comment. Source
37144 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37145 to set the root device. Place drivemap command in the generated
37146 chain entry.
37147
37148 2009-06-11 Pavel Roskin <proski@gnu.org>
37149
37150 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37151 have long been resolved.
37152
37153 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37154
37155 * util/grub.d/10_linux.in: Capitalise "Linux".
37156
37157 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37158
37159 2009-06-11 Pavel Roskin <proski@gnu.org>
37160
37161 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37162 fix a gcc warning and ensure that the function won't ever exit.
37163
37164 * kern/i386/ieee1275/init.c: Add missing prototype for
37165 grub_stop_floppy().
37166
37167 * loader/ieee1275/multiboot2.c [__i386__]: Include
37168 grub/cpu/multiboot.h.
37169
37170 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37171 casts to short - they are not portable and cause warnings. Fix
37172 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37173
37174 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37175
37176 Drivemap fixes
37177
37178 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37179 new function
37180 (grub_get_root_biosnumber_saved): new variable
37181 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37182 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37183 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37184 %dx after the call if necessary
37185 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37186 (boot_mod_SOURCES): remove
37187 (boot_mod_CFLAGS): remove
37188 (boot_mod_LDFLAGS): remove
37189 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37190 (boot_mod_SOURCES): new variable
37191 (boot_mod_CFLAGS): likewise
37192 (boot_mod_LDFLAGS): likewise
37193 * conf/i386-efi.rmk: likewise
37194 * conf/i386-ieee1275.rmk: likewise
37195 * conf/i386-pc.rmk: likewise
37196 * conf/powerpc-ieee1275.rmk: likewise
37197 * conf/sparc64-ieee1275.rmk: likewise
37198 * conf/x86_64-efi.rmk: likewise
37199 * include/grub/i386/pc/biosnum.h: new file
37200 * lib/i386/pc/biosnum.c: likewise
37201 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37202 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37203 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37204
37205 2009-06-10 Pavel Roskin <proski@gnu.org>
37206
37207 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37208 Use separate variables. Read only the file size at the end, but
37209 not the checksum that we don't use.
37210
37211 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37212 Adjust all callers.
37213
37214 * kern/ieee1275/openfw.c: Remove libc includes.
37215 * kern/ieee1275/cmain.c: Likewise.
37216 * include/grub/ieee1275/ieee1275.h: Likewise.
37217
37218 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37219 compiler warnings.
37220
37221 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37222
37223 * Makefile.in: Remove all trailing whitespace.
37224 * conf/i386-pc.rmk: Likewise.
37225 * conf/powerpc-ieee1275.rmk: Likewise.
37226 * conf/sparc64-ieee1275.rmk: Likewise.
37227 * docs/grub.texi: Likewise.
37228 * docs/texinfo.tex: Likewise.
37229 * disk/fs_uuid.c: Likewise.
37230 * disk/lvm.c: Likewise.
37231 * disk/scsi.c: Likewise.
37232 * disk/ata.c: Likewise.
37233 * disk/ieee1275/ofdisk.c: Likewise.
37234 * disk/i386/pc/biosdisk.c: Likewise.
37235 * disk/host.c: Likewise.
37236 * disk/raid.c: Likewise.
37237 * disk/efi/efidisk.c: Likewise.
37238 * disk/usbms.c: Likewise.
37239 * disk/memdisk.c: Likewise.
37240 * disk/loopback.c: Likewise.
37241 * kern/powerpc/dl.c: Likewise.
37242 * kern/device.c: Likewise.
37243 * kern/dl.c: Likewise.
37244 * kern/sparc64/dl.c: Likewise.
37245 * kern/ieee1275/ieee1275.c: Likewise.
37246 * kern/term.c: Likewise.
37247 * kern/fs.c: Likewise.
37248 * kern/i386/dl.c: Likewise.
37249 * kern/i386/pc/startup.S: Likewise.
37250 * kern/i386/pc/init.c: Likewise.
37251 * kern/i386/pc/mmap.c: Likewise.
37252 * kern/i386/pc/lzo1x.S: Likewise.
37253 * kern/i386/ieee1275/init.c: Likewise.
37254 * kern/i386/realmode.S: Likewise.
37255 * kern/i386/tsc.c: Likewise.
37256 * kern/partition.c: Likewise.
37257 * kern/corecmd.c: Likewise.
37258 * kern/file.c: Likewise.
37259 * kern/efi/efi.c: Likewise.
37260 * kern/efi/init.c: Likewise.
37261 * kern/efi/mm.c: Likewise.
37262 * kern/main.c: Likewise.
37263 * kern/err.c: Likewise.
37264 * kern/env.c: Likewise.
37265 * kern/disk.c: Likewise.
37266 * kern/generic/millisleep.c: Likewise.
37267 * kern/generic/rtc_get_time_ms.c: Likewise.
37268 * kern/misc.c: Likewise.
37269 * kern/parser.c: Likewise.
37270 * genmk.rb: Likewise.
37271 * configure.ac: Likewise.
37272 * boot/i386/pc/diskboot.S: Likewise.
37273 * boot/i386/pc/pxeboot.S: Likewise.
37274 * boot/i386/pc/boot.S: Likewise.
37275 * boot/i386/pc/lnxboot.S: Likewise.
37276 * boot/i386/pc/cdboot.S: Likewise.
37277 * parttool/pcpart.c: Likewise.
37278 * video/readers/tga.c: Likewise.
37279 * video/video.c: Likewise.
37280 * video/bitmap.c: Likewise.
37281 * lib/envblk.c: Likewise.
37282 * lib/i386/setjmp.S: Likewise.
37283 * fs/xfs.c: Likewise.
37284 * fs/afs.c: Likewise.
37285 * fs/fat.c: Likewise.
37286 * fs/ntfs.c: Likewise.
37287 * fs/udf.c: Likewise.
37288 * fs/affs.c: Likewise.
37289 * fs/iso9660.c: Likewise.
37290 * fs/hfs.c: Likewise.
37291 * fs/fshelp.c: Likewise.
37292 * fs/ext2.c: Likewise.
37293 * fs/jfs.c: Likewise.
37294 * fs/reiserfs.c: Likewise.
37295 * fs/hfsplus.c: Likewise.
37296 * fs/minix.c: Likewise.
37297 * fs/cpio.c: Likewise.
37298 * fs/sfs.c: Likewise.
37299 * fs/ufs.c: Likewise.
37300 * efiemu/prepare.c: Likewise.
37301 * efiemu/loadcore_common.c: Likewise.
37302 * efiemu/runtime/efiemu.sh: Likewise.
37303 * efiemu/runtime/efiemu.S: Likewise.
37304 * efiemu/runtime/efiemu.c: Likewise.
37305 * efiemu/pnvram.c: Likewise.
37306 * efiemu/main.c: Likewise.
37307 * efiemu/i386/pc/cfgtables.c: Likewise.
37308 * efiemu/i386/loadcore64.c: Likewise.
37309 * efiemu/i386/loadcore32.c: Likewise.
37310 * efiemu/loadcore.c: Likewise.
37311 * efiemu/symbols.c: Likewise.
37312 * efiemu/mm.c: Likewise.
37313 * include/grub/autoefi.h: Likewise.
37314 * include/grub/datetime.h: Likewise.
37315 * include/grub/term.h: Likewise.
37316 * include/grub/hfs.h: Likewise.
37317 * include/grub/lvm.h: Likewise.
37318 * include/grub/i386/tsc.h: Likewise.
37319 * include/grub/i386/linux.h: Likewise.
37320 * include/grub/i386/xnu.h: Likewise.
37321 * include/grub/i386/efiemu.h: Likewise.
37322 * include/grub/i386/pc/biosdisk.h: Likewise.
37323 * include/grub/i386/pc/memory.h: Likewise.
37324 * include/grub/i386/pc/vbe.h: Likewise.
37325 * include/grub/parttool.h: Likewise.
37326 * include/grub/video.h: Likewise.
37327 * include/grub/memory.h: Likewise.
37328 * include/grub/fs.h: Likewise.
37329 * include/grub/partition.h: Likewise.
37330 * include/grub/xnu.h: Likewise.
37331 * include/grub/efi/api.h: Likewise.
37332 * include/grub/efi/pe32.h: Likewise.
37333 * include/grub/efi/memory.h: Likewise.
37334 * include/grub/multiboot.h: Likewise.
37335 * include/grub/usbdesc.h: Likewise.
37336 * include/grub/multiboot2.h: Likewise.
37337 * include/grub/acpi.h: Likewise.
37338 * include/grub/efiemu/efiemu.h: Likewise.
37339 * include/grub/disk.h: Likewise.
37340 * include/grub/ieee1275/ieee1275.h: Likewise.
37341 * include/grub/net.h: Likewise.
37342 * include/grub/machoload.h: Likewise.
37343 * include/grub/macho.h: Likewise.
37344 * include/multiboot.h: Likewise.
37345 * genmoddep.awk: Likewise.
37346 * normal/main.c: Likewise.
37347 * normal/menu_entry.c: Likewise.
37348 * normal/menu_viewer.c: Likewise.
37349 * normal/completion.c: Likewise.
37350 * normal/cmdline.c: Likewise.
37351 * normal/misc.c: Likewise.
37352 * normal/datetime.c: Likewise.
37353 * bus/usb/usbtrans.c: Likewise.
37354 * bus/usb/ohci.c: Likewise.
37355 * bus/usb/uhci.c: Likewise.
37356 * bus/usb/usb.c: Likewise.
37357 * mmap/efi/mmap.c: Likewise.
37358 * mmap/i386/pc/mmap_helper.S: Likewise.
37359 * mmap/i386/pc/mmap.c: Likewise.
37360 * mmap/i386/mmap.c: Likewise.
37361 * mmap/i386/uppermem.c: Likewise.
37362 * mmap/mmap.c: Likewise.
37363 * commands/acpi.c: Likewise.
37364 * commands/echo.c: Likewise.
37365 * commands/blocklist.c: Likewise.
37366 * commands/loadenv.c: Likewise.
37367 * commands/usbtest.c: Likewise.
37368 * commands/boot.c: Likewise.
37369 * commands/parttool.c: Likewise.
37370 * commands/search.c: Likewise.
37371 * commands/cat.c: Likewise.
37372 * commands/i386/pc/play.c: Likewise.
37373 * commands/i386/pc/drivemap.c: Likewise.
37374 * commands/i386/pc/vbeinfo.c: Likewise.
37375 * commands/i386/pc/acpi.c: Likewise.
37376 * commands/i386/pc/vbetest.c: Likewise.
37377 * commands/ls.c: Likewise.
37378 * commands/cmp.c: Likewise.
37379 * commands/test.c: Likewise.
37380 * commands/efi/acpi.c: Likewise.
37381 * commands/gptsync.c: Likewise.
37382 * commands/help.c: Likewise.
37383 * partmap/amiga.c: Likewise.
37384 * partmap/apple.c: Likewise.
37385 * partmap/acorn.c: Likewise.
37386 * partmap/pc.c: Likewise.
37387 * partmap/sun.c: Likewise.
37388 * partmap/gpt.c: Likewise.
37389 * script/sh/lexer.c: Likewise.
37390 * script/sh/function.c: Likewise.
37391 * font/font.c: Likewise.
37392 * font/font_cmd.c: Likewise.
37393 * loader/powerpc/ieee1275/linux.c: Likewise.
37394 * loader/efi/chainloader.c: Likewise.
37395 * loader/multiboot_loader.c: Likewise.
37396 * loader/macho.c: Likewise.
37397 * loader/i386/multiboot.c: Likewise.
37398 * loader/i386/linux.c: Likewise.
37399 * loader/i386/pc/linux.c: Likewise.
37400 * loader/i386/pc/multiboot2.c: Likewise.
37401 * loader/i386/pc/chainloader.c: Likewise.
37402 * loader/i386/pc/xnu.c: Likewise.
37403 * loader/i386/bsd_trampoline.S: Likewise.
37404 * loader/i386/efi/linux.c: Likewise.
37405 * loader/i386/multiboot_elfxx.c: Likewise.
37406 * loader/i386/bsd_helper.S: Likewise.
37407 * loader/i386/bsd.c: Likewise.
37408 * loader/i386/linux_trampoline.S: Likewise.
37409 * loader/i386/xnu_helper.S: Likewise.
37410 * loader/i386/xnu.c: Likewise.
37411 * loader/i386/bsd_pagetable.c: Likewise.
37412 * loader/i386/multiboot_helper.S: Likewise.
37413 * loader/xnu.c: Likewise.
37414 * loader/xnu_resume.c: Likewise.
37415 * io/gzio.c: Likewise.
37416 * term/efi/console.c: Likewise.
37417 * term/terminfo.c: Likewise.
37418 * term/ieee1275/ofconsole.c: Likewise.
37419 * term/i386/pc/serial.c: Likewise.
37420 * term/i386/pc/vesafb.c: Likewise.
37421 * term/i386/pc/vga.c: Likewise.
37422 * term/usb_keyboard.c: Likewise.
37423 * term/gfxterm.c: Likewise.
37424 * aclocal.m4: Likewise.
37425 * util/lvm.c: Likewise.
37426 * util/grub.d/30_os-prober.in: Likewise.
37427 * util/grub.d/10_hurd.in: Likewise.
37428 * util/console.c: Likewise.
37429 * util/grub-macho2img.c: Likewise.
37430 * util/grub-probe.c: Likewise.
37431 * util/hostfs.c: Likewise.
37432 * util/i386/pc/grub-mkimage.c: Likewise.
37433 * util/i386/pc/grub-setup.c: Likewise.
37434 * util/i386/efi/grub-mkimage.c: Likewise.
37435 * util/grub-mkconfig.in: Likewise.
37436 * util/raid.c: Likewise.
37437 * util/resolve.c: Likewise.
37438 * util/grub-mkdevicemap.c: Likewise.
37439 * util/grub-emu.c: Likewise.
37440 * util/getroot.c: Likewise.
37441 * util/hostdisk.c: Likewise.
37442 * util/usb.c: Likewise.
37443 * util/grub-editenv.c: Likewise.
37444 * util/misc.c: Likewise.
37445
37446 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37447
37448 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37449 `genparttoollist.sh'.
37450 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37451 Add `*.sh' to the list find searches for and change `mdate.sh'
37452 to `mdate-sh'.
37453
37454 2009-06-10 Pavel Roskin <proski@gnu.org>
37455
37456 * include/grub/multiboot2.h: Provide compatibility defines for
37457 multiboot2.h.
37458 * include/multiboot2.h: Include stdint.h only if needed, using
37459 angle brackets.
37460 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37461 grub/multiboot2.h.
37462 * loader/ieee1275/multiboot2.c: Likewise.
37463 * loader/multiboot2.c: Likewise.
37464 * loader/multiboot_loader.c: Likewise.
37465
37466 * configure.ac: Use -nostdlib when probing for the target. It
37467 should not be required to have libc for the target.
37468
37469 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37470 they fail without libc headers for the target.
37471 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37472 exports.
37473 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37474 preprocessor conditionals.
37475
37476 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37477 build system doesn't need to be aware of the tar.c internals.
37478
37479 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37480
37481 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37482
37483 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37484
37485 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37486 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37487
37488 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37489
37490 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37491 aren't available if ata.mod gets used.
37492
37493 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37494
37495 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37496 initialising controller.
37497 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37498
37499 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37500
37501 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37502 to choose between ata and biosdisk module on i386-pc.
37503
37504 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37505
37506 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37507 Subclass and Programming Interface fields in terms of the 3 byte
37508 Class Code register.
37509 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37510
37511 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37512 interface is OHCI. Add grub_dprintf for symmetry with
37513 bus/usb/uhci.c.
37514 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37515 interface is UHCI. Add interf variable for programming
37516 interface. Print interface with class/subclass.
37517
37518 * bus/usb/ohci.c: Set interf with correct field.
37519
37520 * bus/usb/uhci.c: Remove unneeded doubled lines.
37521 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37522 Remove whitespace inside comment.
37523
37524 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37525
37526 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37527 as fallback an equivalent option without depth.
37528
37529 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37530
37531 Not fail if unable to retrieve C/H/S on LBA disks
37532
37533 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37534 if unable to retrieve C/H/S on LBA disks
37535
37536 2009-06-08 Pavel Roskin <proski@gnu.org>
37537
37538 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37539 about aliasing.
37540
37541 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37542
37543 * Makefile.in (uninstall): Remove all $lib_DATA files.
37544
37545 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37546
37547 Bugfix: install on partitionless device
37548
37549 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37550 is a whole disk
37551
37552 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37553
37554 * Makefile.in (uninstall): Remove all $include_DATA files.
37555
37556 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37557
37558 * commands/true.c: New file. Implement the true and false commands.
37559 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37560 (true_mod_SOURCES): New variable.
37561 (true_mod_CFLAGS): Likewise.
37562 (true_mod_LDFLAGS): Likewise.
37563
37564 2009-06-05 Colin D Bennett <colin@gibibit.com>
37565
37566 Optimized font character lookup using binary search instead of linear
37567 search. Fonts now are required to have the character index ordered by
37568 code point.
37569
37570 * font/font.c (load_font_index): Verify that fonts have ordered
37571 character indices.
37572 (find_glyph): Use binary search instead of linear search to find a
37573 character in a font.
37574
37575 2009-06-05 Michael Scherer <misc@mandriva.org>
37576
37577 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37578 uses case sensitive btree.
37579 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37580 only for case insensitive filesystems.
37581
37582 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37583
37584 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37585 * conf/common.rmk (search_mod_CFLAGS): likewise
37586
37587 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37588
37589 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37590 compensate a compiler bug
37591
37592 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37593
37594 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37595 instead of '\b'
37596
37597 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37598
37599 Definitions for creating asm symbols with Apple's CC
37600
37601 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37602 [APPLE_CC] (VARIABLE): likewise
37603
37604 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37605
37606 Disable lnxboot.img when compiled
37607 with Apple's CC
37608
37609 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37610 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37611 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37612 [! APPLE_CC] (CODE_LENG): skip
37613 [! APPLE_CC] (setup_sects): likewise
37614 [! APPLE_CC]: skip filling
37615
37616 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37617
37618 Address in trampolines based on 32-bit registers when compiled
37619 with Apple's CC
37620
37621 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37622 for addresses
37623 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37624
37625 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37626
37627 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37628
37629 * kern/misc.c [APPLE_CC] (memcpy): new function
37630 [APPLE_CC] (memmove): likewise
37631 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37632 (memcpy): define alias conditionally on !APPLE_CC
37633 (memset): likewise
37634 (abort): likewise
37635 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37636 APPLE_CC are defined
37637 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37638 (grub_assert_fail): make prototype conditional
37639
37640 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37641
37642 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37643
37644 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37645 grub-macho2img
37646 (CLEANFILES): add grub-macho2img
37647 (grub_macho2img_SOURCES): new variable
37648 * kern/i386/pc/startup.S (bss_start): new variable
37649 (bss_end): likewise
37650 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37651 * util/grub-macho2img.c: new file
37652
37653 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37654
37655 Use objconv when compiling with Apple's CC
37656
37657 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37658 (efiemu64.o): likewise
37659 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37660 when compiling with Apple's CC
37661 (efiemu64_s.o): likewise
37662 * configure.ac: check for objconv when compiling with Apple's CC
37663 * genmk.rb: use objconv for modules when compiled with Apple's CC
37664
37665 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37666
37667 Define segment as well as section when compiling with
37668 Apple's CC
37669
37670 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37671 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37672 (efiemu_convert_pointer): likewise
37673 (efiemu_set_virtual_address_map): likewise
37674 (efiemu_convert_pointer): likewise
37675 (efiemu_getcrc32): likewise
37676 (init_crc32_table): likewise
37677 (reflect): likewise
37678 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37679 (GRUB_MOD_DEP): likewise
37680
37681 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37682
37683 Allow a compilation without -mcmodel=large
37684
37685 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37686 when compiled without -mcmodel=large
37687 (filter_memory_map): remove memory post 4 GiB when compiled
37688 without -mcmodel=large
37689 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37690 TARGET_CFLAGS when -mcmodel=large isn't supported
37691
37692 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37693
37694 Remove nested functions in efiemu core
37695
37696 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37697
37698 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37699
37700 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37701
37702 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37703 temporary storage
37704 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37705 using Apple's CC
37706 (grub_cpu_is_tsc_supported): likewise
37707 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37708
37709 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37710
37711 Absolute addressing through constant with Apple's cc
37712
37713 * kern/i386/pc/startup.S: Define necessary constants
37714 and address through it when using ABS with Apple's CC
37715 * boot/i386/pc/diskboot.S: likewise
37716 * boot/i386/pc/boot.S: likewise
37717 * boot/i386/pc/lnxboot.S: likewise
37718 * boot/i386/pc/cdboot.S: likewise
37719 * mmap/i386/pc/mmap_helper.S: likewise
37720 * commands/i386/pc/drivemap_int13h.S: likewise
37721
37722 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37723
37724 Check if compiler is apple cc
37725
37726 * Makefile.in (ASFLAGS): new variable
37727 (TARGET_ASFLAGS): likewise
37728 (TARGET_MODULE_FORMAT): likewise
37729 (TARGET_APPLE_CC): likewise
37730 (OBJCONV): likewise
37731 (TARGET_IMG_CFLAGS): likewise
37732 (TARGET_CPPFLAGS): add includedir
37733 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37734 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37735 Check for linker script only if compiler isn't Apple's CC
37736 (TARGET_MODULE_FORMAT): set
37737 (TARGET_APPLE_CC): likewise
37738 (TARGET_ASFLAGS): likewise
37739 (ASFLAGS): likewise
37740 Check for objcopy only if compiler isn't Apple's CC
37741 Check for BSS symbol only if compiler isn't Apple's CC
37742 * genmk.rb: adapt nm options if we use Apple's utils
37743 * aclocal.m4 (grub_apple_cc): new test
37744 (grub_apple_target_cc): likewise
37745
37746 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37747
37748 Simplify sed expressions and improve awk
37749
37750 * Makefile.in (install-local): simplify sed expression
37751 * gencmdlist.sh: likewise
37752 * genmoddep.awk: avoid adding module as a dependency of itself
37753
37754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37755
37756 Add missing start symbols
37757
37758 * boot/i386/pc/boot.S: add start
37759 * boot/i386/pc/pxeboot.S: likewise
37760
37761 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37762
37763 Fix wrong assumptions with grub-mkimage on EFI
37764
37765 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37766 (relocate_addresses): consider both r_addend and value at offset
37767 (make_mods_section): zerofill modinfo and header
37768 (convert_elf): write prefix here
37769
37770 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37771
37772 Use .asciz instead of .string
37773
37774 * i386/pc/diskboot.S: use .asciz instead of .string
37775 * i386/pc/boot.S: likewise
37776 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37777 (GRUB_MOD_NAME): likewise
37778
37779 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37780
37781 gfxpayload support
37782
37783 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37784 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37785 (grub_video_setup): remove
37786 (grub_video_set_mode): new prototype
37787 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
37788 (vid_mode): remove
37789 (linux_vesafb_res): compile only on PCBIOS
37790 (grub_linux_boot): support gfxpayload
37791 * loader/i386/pc/xnu.c (video_hook): new function
37792 (grub_xnu_set_video): support gfxpayload
37793 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
37794 (DEFAULT_VIDEO_HEIGHT): likewise
37795 (DEFAULT_VIDEO_FLAGS): likewise
37796 (DEFAULT_VIDEO_MODE): new definition
37797 (video_hook): new function
37798 (grub_gfxterm_init): use grub_video_set_mode
37799 * util/grub.d/30_os-prober.in: remove explicit modesetting before
37800 loading xnu
37801 * video/video.c (grub_video_setup): removed
37802 (grub_video_set_mode): new function based on grub_gfxterm_init and
37803 grub_video_setup
37804
37805 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37806
37807 Avoid calling biosdisk in drivemap
37808
37809 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37810 (revparse_biosdisk): likewise
37811 (list_mappings): derive name from id directly
37812 (grub_cmd_drivemap): use tryparse_diskstring
37813
37814 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37815
37816 Script fixes
37817
37818 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37819 (grub_lexer_param): add tokenonhold
37820 (grub_script_create_cmdline): remove cmdline. All callers updated
37821 (grub_script_function_create): make functionname
37822 grub_script_arg. All callers updated
37823 (grub_script_execute_argument_to_string): new prototype
37824 * kern/parser.c (state_transitions): reorder
37825 (grub_parser_cmdline_state): fix a bug and make more compact
37826 * script/sh/execute.c (grub_script_execute_argument_to_string):
37827 make global
37828 (grub_script_execute_cmdline): use new format
37829 * script/sh/function.c (grub_script_function_create): make functionname
37830 grub_script_arg. All callers updated
37831 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
37832 (grub_script_yylex): remove
37833 (grub_script_yylex2): renamed to ...
37834 (grub_script_yylex): ...renamed
37835 parse the expressions like a${b}c
37836 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37837 (GRUB_PARSER_TOKEN_VAR): remove
37838 (GRUB_PARSER_TOKEN_NAME): likewise
37839 ("if"): declare as typeless
37840 ("while"): likewise
37841 ("function"): likewise
37842 ("else"): likewise
37843 ("then"): likewise
37844 ("fi"): likewise
37845 (text): remove
37846 (argument): likewise
37847 (script): accept empty scripts and make exit on error
37848 (arguments): use GRUB_PARSER_TOKEN_ARG
37849 (function): likewise
37850 (command): move error handling to script
37851 (menuentry): move grub_script_lexer_ref before
37852 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
37853 argument. All callers updated
37854
37855 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37856
37857 Prevent GRUB from probing floppies during boot.
37858
37859 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37860 * commands/search.c (options): Add --no-floppy.
37861 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37862 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37863 --no-floppy when searching for UUIDs.
37864
37865 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37866
37867 Simplify the code duplication in commands/search.c.
37868
37869 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37870 (search_fs): ... this. Update all users.
37871
37872 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
37873
37874 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37875
37876 2009-05-28 Pavel Roskin <proski@gnu.org>
37877
37878 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37879 Remove the original symlink explicitly.
37880
37881 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37882 just one slash. That's how grub_fshelp_find_file() does it.
37883
37884 2009-05-26 Pavel Roskin <proski@gnu.org>
37885
37886 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37887 to `str'.
37888
37889 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37890 possibly unused.
37891
37892 2009-05-25 Christian Franke <franke@computer.org>
37893
37894 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37895 register.
37896 (grub_atapi_identify): Add wait after drive select.
37897 (grub_ata_identify): Do more strict status register check before
37898 calling grub_atapi_identify (). Suppress error message if status
37899 register is 0x00 after command failure. Add status register
37900 check after PIO read to avoid bogus identify due to stuck DRQ.
37901 Thanks to Pavel Roskin for testing.
37902 (grub_device_initialize): Remove unsafe status register check.
37903 Thanks to 'phcoder' for problem report and patch.
37904 Prevent sign extension in debug message.
37905
37906 2009-05-23 Colin D Bennett <colin@gibibit.com>
37907
37908 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37909 definition file, and functions defined in `normal/menu.c' have had
37910 their prototypes moved to `include/grub/menu.h' for consistency.
37911
37912 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37913 from normal.h.
37914 (grub_menu_get_entry): Likewise.
37915 (grub_menu_get_timeout): Likewise.
37916 (grub_menu_set_timeout): Likewise.
37917 (grub_menu_execute_entry): Likewise.
37918 (grub_menu_execute_with_fallback): Likewise.
37919 (grub_menu_entry_run): Likewise.
37920
37921 * include/grub/normal.h: Re-ordered and grouped function
37922 prototypes by file that the function is defined in.
37923 (grub_menu_execute_callback): Removed; moved to menu.h.
37924 (grub_menu_get_entry): Likewise.
37925 (grub_menu_get_timeout): Likewise.
37926 (grub_menu_set_timeout): Likewise.
37927 (grub_menu_execute_entry): Likewise.
37928 (grub_menu_execute_with_fallback): Likewise.
37929 (grub_menu_entry_run): Likewise.
37930 (grub_menu_addentry): Renamed from this ...
37931 (grub_normal_add_menu_entry): ... to this.
37932
37933 * normal/main.c (grub_menu_addentry): Renamed from this ...
37934 (grub_normal_add_menu_entry): ... to this.
37935
37936 * script/sh/execute.c (grub_script_execute_menuentry): Update
37937 reference to renamed grub_menu_addentry function.
37938
37939 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
37940
37941 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37942
37943 2009-05-22 Pavel Roskin <proski@gnu.org>
37944
37945 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37946 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37947 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37948 compiling for the i386 targets, but not for the utilities.
37949
37950 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37951 to grub_uint8_t.
37952 (grub_root_drive): Likewise.
37953 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37954 remove alignment.
37955 (grub_root_drive): Change size to byte.
37956 (grub_start_addr): Remove.
37957 (grub_end_addr): Likewise.
37958 (grub_apm_bios_info): Likewise.
37959
37960 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
37961
37962 * normal/i386: Remove.
37963 * normal/powerpc: Likewise.
37964 * normal/sparc64: Likewise.
37965 * normal/x86_64: Likewise.
37966
37967 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37968
37969 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
37970 * loader/i386/linux_trampoline.S: Fix indentation
37971 * loader/i386/xnu_helper.S: Likewise
37972
37973 2009-05-18 Colin D Bennett <colin@gibibit.com>
37974
37975 Display error messages when parsing a Lua statement fails.
37976 Previously, executing a syntactically invalid statement like
37977 ")foo" or "bar;" would silently fail.
37978
37979 * script/lua/grub_main.c (handle_lua_error): New function.
37980 (grub_lua_parse_line): Improved reporting of Lua parser and
37981 execution errors.
37982
37983 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37984
37985 Remove -Werror which causes build to fail on some systems
37986
37987 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37988 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37989 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
37990
37991 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37992
37993 trampoline for linux on 64-bit platform
37994
37995 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37996 loader/i386/efi/linux_trampoline.S
37997 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
37998 declaration
37999 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38000 here
38001 * loader/i386/linux_trampoline.S: moved here
38002 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38003 trampoline
38004 (jumpvector): removed
38005 (grub_linux_trampoline_start): new declaration
38006 (grub_linux_trampoline_end): likewise
38007 (grub_linux_boot): use trampoline when on 64-bit platform
38008 * loader/i386/linux.c: likewise
38009
38010 2009-05-16 Pavel Roskin <proski@gnu.org>
38011
38012 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38013 const to avoid a warning.
38014 (grub_lua_setenv): Likewise.
38015 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38016 lmsg to fix a warning.
38017
38018 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38019
38020 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38021 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38022 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38023 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38024 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38025 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38026 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38027 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38028
38029 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38030
38031 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38032
38033 2009-05-16 Bean <bean123ch@gmail.com>
38034
38035 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38036 (lua_mod_SOURCES): New variable.
38037 (lua_mod_CFLAGS): Likewise.
38038 (lua_mod_LDFLAGS): Likewise.
38039
38040 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38041 (setjmp_mod_SOURCES): New variable.
38042 (setjmp_mod_CFLAGS): Likewise.
38043 (setjmp_LDFLAGS): Likewise.
38044
38045 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38046 (setjmp_mod_SOURCES): New variable.
38047 (setjmp_mod_CFLAGS): Likewise.
38048 (setjmp_LDFLAGS): Likewise.
38049
38050 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38051 (setjmp_mod_SOURCES): New variable.
38052 (setjmp_mod_CFLAGS): Likewise.
38053 (setjmp_LDFLAGS): Likewise.
38054
38055 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38056 (setjmp_mod_SOURCES): New variable.
38057 (setjmp_mod_CFLAGS): Likewise.
38058 (setjmp_LDFLAGS): Likewise.
38059
38060 * normal/i386/setjmp.S: Moved from here ...
38061 * lib/i386/setjmp.S: ... Moved here
38062 * normal/x86_64/setjmp.S: Moved from here ...
38063 * lib/x86_64/setjmp.S: ... Moved here
38064 * normal/powerpc/setjmp.S: Moved from here ...
38065 * lib/powerpc/setjmp.S: ... Moved here
38066 * normal/sparc64/setjmp.S: Moved from here ...
38067 * lib/sparc64/setjmp.S: ... Moved here
38068
38069 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38070 returns_twice in mingw.
38071
38072 * script/lua/grub_lib.c: New file.
38073 * script/lua/grub_lib.h: Likewise.
38074 * script/lua/grub_lua.h: Likewise.
38075 * script/lua/grub_main.c: Likewise.
38076 * script/lua/lapi.c: Likewise.
38077 * script/lua/lapi.h: Likewise.
38078 * script/lua/lauxlib.c: Likewise.
38079 * script/lua/lauxlib.h: Likewise.
38080 * script/lua/lbaselib.c: Likewise.
38081 * script/lua/lcode.c: Likewise.
38082 * script/lua/lcode.h: Likewise.
38083 * script/lua/ldblib.c: Likewise.
38084 * script/lua/ldebug.c: Likewise.
38085 * script/lua/ldebug.h: Likewise.
38086 * script/lua/ldo.c: Likewise.
38087 * script/lua/ldo.h: Likewise.
38088 * script/lua/ldump.c: Likewise.
38089 * script/lua/lfunc.c: Likewise.
38090 * script/lua/lfunc.h: Likewise.
38091 * script/lua/lgc.c: Likewise.
38092 * script/lua/lgc.h: Likewise.
38093 * script/lua/linit.c: Likewise.
38094 * script/lua/liolib.c: Likewise.
38095 * script/lua/llex.c: Likewise.
38096 * script/lua/llex.h: Likewise.
38097 * script/lua/llimits.h: Likewise.
38098 * script/lua/lmathlib.c: Likewise.
38099 * script/lua/lmem.c: Likewise.
38100 * script/lua/lmem.h: Likewise.
38101 * script/lua/loadlib.c: Likewise.
38102 * script/lua/lobject.c: Likewise.
38103 * script/lua/lobject.h: Likewise.
38104 * script/lua/lopcodes.c: Likewise.
38105 * script/lua/lopcodes.h: Likewise.
38106 * script/lua/loslib.c: Likewise.
38107 * script/lua/lparser.c: Likewise.
38108 * script/lua/lparser.h: Likewise.
38109 * script/lua/lstate.c: Likewise.
38110 * script/lua/lstate.h: Likewise.
38111 * script/lua/lstring.c: Likewise.
38112 * script/lua/lstring.h: Likewise.
38113 * script/lua/lstrlib.c: Likewise.
38114 * script/lua/ltable.c: Likewise.
38115 * script/lua/ltable.h: Likewise.
38116 * script/lua/ltablib.c: Likewise.
38117 * script/lua/ltm.c: Likewise.
38118 * script/lua/ltm.h: Likewise.
38119 * script/lua/lua.h: Likewise.
38120 * script/lua/luaconf.h: Likewise.
38121 * script/lua/lualib.h: Likewise.
38122 * script/lua/lundump.c: Likewise.
38123 * script/lua/lundump.h: Likewise.
38124 * script/lua/lvm.c: Likewise.
38125 * script/lua/lvm.h: Likewise.
38126 * script/lua/lzio.c: Likewise.
38127 * script/lua/lzio.h: Likewise.
38128
38129 2009-05-16 Bean <bean123ch@gmail.com>
38130
38131 * include/grub/kernel.h (grub_module_header_types): Add type
38132 OBJ_TYPE_CONFIG.
38133
38134 * kern/main.c (grub_load_config): New function.
38135 (grub_main): Call grub_load_config to read boot config.
38136
38137 * grub-mkimage (generate_image): New parameter config_path.
38138 (options): New option --config.
38139 (main): Parse --config option, and pass it to generate_image.
38140
38141 2009-05-14 Christian Franke <franke@computer.org>
38142
38143 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38144 This fixes build on Cygwin.
38145
38146 2009-05-14 Pavel Roskin <proski@gnu.org>
38147
38148 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38149 jump. This saves two bytes, so the typical case of 2 swapped
38150 drives would fit 32 bytes.
38151
38152 2009-05-13 Pavel Roskin <proski@gnu.org>
38153
38154 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38155 grub_uint32_t to avoid a warning.
38156
38157 * loader/i386/linux.c (allocate_pages): When assigning
38158 real_mode_mem, cast through grub_size_t to fix a warning. The
38159 code already makes sure that the value would fit a pointer.
38160 (grub_linux_setup_video): Cast render_target->data to
38161 grub_size_t to fix a warning.
38162
38163 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38164
38165 * commands/i386/pc/drivemap.c: New file - implement drivemap
38166 command.
38167 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38168 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38169
38170 2009-05-13 Pavel Roskin <proski@gnu.org>
38171
38172 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38173 embedding_area_exists.
38174
38175 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38176
38177 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38178 it easier to understand / work with.
38179 Improve warning messages for cases where there's no embedding area,
38180 or when it is too small (or core.img too large).
38181
38182 2009-05-13 Pavel Roskin <proski@gnu.org>
38183
38184 * loader/i386/pc/multiboot2.c: Add necessary includes for
38185 grub_multiboot2_real_boot().
38186
38187 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38188 PX record is always little-endian. We only need the lower 2
38189 bytes of the mode.
38190
38191 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38192 facilitate code reuse.
38193 (grub_cpio_mount): Use "struct head", not a char buffer. This
38194 fixes a warning reported by gcc 4.4.
38195
38196 * kernel/disk.c (grub_disk_read): Use void pointer for the
38197 buffer.
38198 (grub_disk_write): Use const void pointer for the buffer.
38199 Adjust all callers. Remove unnecessary casts.
38200
38201 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38202
38203 * util/i386/pc/grub-install.in: Update copyright year.
38204
38205 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38206
38207 gptsync
38208
38209 * commands/gptsync.c: new file
38210 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38211 (gptsync_mod_SOURCES): new variable
38212 (gptsync_mod_CFLAGS): likewise
38213 (gptsync_mod_LDFLAGS): likewise
38214 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38215 new definition
38216 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38217 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38218 * conf/i386-ieee1275.rmk: likewise
38219 * conf/i386-pc.rmk: likewise
38220 * conf/powerpc-ieee1275.rmk: likewise
38221
38222 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38223
38224 Fixed grub-emu
38225
38226 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38227 (grub_dl_ref): likewise
38228
38229 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38230
38231 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38232 split in two functions (one for msdos and one for gpt).
38233
38234 2009-05-08 Pavel Roskin <proski@gnu.org>
38235
38236 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38237 not modified.
38238
38239 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38240 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38241 Initialize them with -1. Add sanity check for bad1. Eliminate
38242 nerr variable.
38243
38244 2009-05-08 David S. Miller <davem@davemloft.net>
38245
38246 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38247
38248 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38249
38250 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38251 existence.
38252
38253 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38254
38255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38256 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38257
38258 2009-05-05 David S. Miller <davem@davemloft.net>
38259
38260 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38261
38262 2009-05-05 Pavel Roskin <proski@gnu.org>
38263
38264 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38265 of grub_dl_ref() and grub_dl_unref().
38266 * commands/parttool.c: Remove preprocessor conditionals around
38267 grub_dl_ref() and grub_dl_unref().
38268 * fs/affs.c: Likewise.
38269 * fs/afs.c: Likewise.
38270 * fs/cpio.c: Likewise.
38271 * fs/ext2.c: Likewise.
38272 * fs/fat.c: Likewise.
38273 * fs/hfs.c: Likewise.
38274 * fs/hfsplus.c: Likewise.
38275 * fs/iso9660.c: Likewise.
38276 * fs/jfs.c: Likewise.
38277 * fs/minix.c: Likewise.
38278 * fs/ntfs.c: Likewise.
38279 * fs/reiserfs.c: Likewise.
38280 * fs/sfs.c: Likewise.
38281 * fs/udf.c: Likewise.
38282 * fs/ufs.c: Likewise.
38283 * fs/xfs.c: Likewise.
38284 * include/grub/dl.h: Likewise.
38285 * loader/xnu.c: Likewise.
38286
38287 2009-05-04 Pavel Roskin <proski@gnu.org>
38288
38289 * commands/acpi.c: Remove unused variable my_mod.
38290 * partmap/amiga.c: Likewise.
38291 * partmap/apple.c: Likewise.
38292 * partmap/gpt.c: Likewise.
38293 * partmap/pc.c: Likewise.
38294 * partmap/sun.c: Likewise.
38295 * term/gfxterm.c: Likewise.
38296 * term/i386/pc/vesafb.c: Likewise.
38297 * term/i386/pc/vga.c: Likewise.
38298
38299 2009-05-04 David S. Miller <davem@davemloft.net>
38300
38301 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38302 pointer args to grub_ieee1275_get_property().
38303
38304 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38305
38306 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38307 devices, and do not traverse down under controller nodes.
38308
38309 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38310 (grub_ofdisk_open): Use it to un-escape "," characters.
38311 * kern/disk.c (find_part_sep): New.
38312 (grub_disk_open): Use it to find the first non-escaped ','
38313 character in the disk name.
38314 * util/ieee1275/devicemap.c (escape_of_path): New.
38315 (grub_util_emit_devicemap_entry): Use it.
38316 * util/sparc64/ieee1275/grub-install.in: Update script to
38317 strip partition specifiers properly by not triggering on
38318 '\' escaped ',' characters.
38319
38320 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38321
38322 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38323 to 0x300.
38324 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38325 resolutions.
38326 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38327 on documentation from Wikipedia).
38328
38329 2009-05-04 Pavel Roskin <proski@gnu.org>
38330
38331 * disk/ata.c: Spelling fixes.
38332 * disk/raid.c: Likewise.
38333 * disk/usbms.c: Likewise.
38334 * disk/dmraid_nvidia.c: Likewise.
38335 * kern/ieee1275/openfw.c: Likewise.
38336 * kern/ieee1275/init.c: Likewise.
38337 * kern/ieee1275/cmain.c: Likewise.
38338 * boot/i386/pc/cdboot.S: Likewise.
38339 * video/readers/png.c: Likewise.
38340 * video/i386/pc/vbe.c: Likewise.
38341 * fs/udf.c: Likewise.
38342 * fs/hfs.c: Likewise.
38343 * fs/reiserfs.c: Likewise.
38344 * efiemu/runtime/efiemu.c: Likewise.
38345 * efiemu/main.c: Likewise.
38346 * efiemu/mm.c: Likewise.
38347 * include/grub/elf.h: Likewise.
38348 * include/grub/xnu.h: Likewise.
38349 * include/grub/usbdesc.h: Likewise.
38350 * include/grub/usb.h: Likewise.
38351 * include/grub/script_sh.h: Likewise.
38352 * include/grub/lib/LzmaEnc.h: Likewise.
38353 * include/grub/efiemu/efiemu.h: Likewise.
38354 * include/grub/command.h: Likewise.
38355 * normal/menu.c: Likewise.
38356 * normal/main.c: Likewise.
38357 * normal/datetime.c: Likewise.
38358 * bus/usb/uhci.c: Likewise.
38359 * mmap/i386/uppermem.c: Likewise.
38360 * mmap/mmap.c: Likewise.
38361 * commands/acpi.c: Likewise.
38362 * commands/test.c: Likewise.
38363 * partmap/apple.c: Likewise.
38364 * font/font.c: Likewise.
38365 * loader/sparc64/ieee1275/linux.c: Likewise.
38366 * loader/macho.c: Likewise.
38367 * loader/i386/bsd_trampoline.S: Likewise.
38368 * loader/i386/bsd.c: Likewise.
38369 * loader/xnu.c: Likewise.
38370 * term/i386/pc/vesafb.c: Likewise.
38371 * term/usb_keyboard.c: Likewise.
38372 * util/resolve.c: Likewise.
38373 * util/getroot.c: Likewise.
38374
38375 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38376
38377 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38378
38379 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38380
38381 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38382 build error.
38383
38384 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38385
38386 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38387 parameter only available on BIOS.
38388
38389 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38390
38391 Removed wrong semicolon in declaration
38392
38393 * grub/misc.h (grub_dprintf): remove semicolon
38394
38395 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38396
38397 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38398 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38399 is done by grub_cmd_linux() now).
38400 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38401 restore video to text mode.
38402 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38403 indicates lack of "vga=" parameter. "vga=0" is mapped to
38404 `GRUB_LINUX_VID_MODE_NORMAL'.
38405
38406 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38407
38408 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38409 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38410 and `normal/script.c'. Add `kern/rescue_reader.c',
38411 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38412 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38413 `grub_script.tab.c'.
38414
38415 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38416 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38418 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38419 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38420
38421 * Makefile.in: Remove duplicated 2008 in Copyright line.
38422
38423 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38424
38425 * util/misc.c (grub_util_warn): New function. Emits a warning
38426 unconditionally.
38427 * include/grub/util/misc.h (grub_util_warn): New declaration.
38428
38429 * util/i386/pc/grub-install.in: Understand --force and pass it down
38430 to grub-setup.
38431
38432 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38433 down to setup().
38434 (setup): Improve error messages and add warnings when requested to
38435 install in odd layouts. Refuse to install using blocklists unless
38436 --force was set.
38437
38438 2009-05-04 martin f. krafft <madduck@madduck.net>
38439
38440 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38441
38442 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38443
38444 Updated copyright year
38445
38446 * fs/hfsplus.c: updated copyright year
38447
38448 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38449
38450 HFS+ UUID
38451
38452 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38453 in the space previously used by unused3
38454 (grub_hfsplus_uuid): new function
38455 (grub_hfsplus_fs): added uuid field
38456
38457 2009-05-03 Pavel Roskin <proski@gnu.org>
38458
38459 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38460 suppress warnings. It's no longer needed.
38461 * disk/host.c: Likewise.
38462 * disk/ata_pthru.c: Likewise.
38463 * disk/loopback.c: Likewise.
38464 * hook/datehook.c: Likewise.
38465 * parttool/pcpart.c: Likewise.
38466 * fs/i386/pc/pxe.c: Likewise.
38467 * fs/ntfscomp.c: Likewise.
38468 * efiemu/main.c: Likewise.
38469 * mmap/mmap.c: Likewise.
38470 * commands/crc.c: Likewise.
38471 * commands/hexdump.c: Likewise.
38472 * commands/hdparm.c: Likewise.
38473 * commands/acpi.c: Likewise.
38474 * commands/echo.c: Likewise.
38475 * commands/minicmd.c: Likewise.
38476 * commands/blocklist.c: Likewise.
38477 * commands/memrw.c: Likewise.
38478 * commands/loadenv.c: Likewise.
38479 * commands/usbtest.c: Likewise.
38480 * commands/lsmmap.c: Likewise.
38481 * commands/boot.c: Likewise.
38482 * commands/parttool.c: Likewise.
38483 * commands/configfile.c: Likewise.
38484 * commands/search.c: Likewise.
38485 * commands/ieee1275/suspend.c: Likewise.
38486 * commands/cat.c: Likewise.
38487 * commands/i386/pc/pxecmd.c: Likewise.
38488 * commands/i386/pc/play.c: Likewise.
38489 * commands/i386/pc/halt.c: Likewise.
38490 * commands/i386/pc/vbeinfo.c: Likewise.
38491 * commands/i386/pc/vbetest.c: Likewise.
38492 * commands/lspci.c: Likewise.
38493 * commands/date.c: Likewise.
38494 * commands/handler.c: Likewise.
38495 * commands/ls.c: Likewise.
38496 * commands/test.c: Likewise.
38497 * commands/cmp.c: Likewise.
38498 * commands/efi/loadbios.c: Likewise.
38499 * commands/efi/fixvideo.c: Likewise.
38500 * commands/halt.c: Likewise.
38501 * commands/help.c: Likewise.
38502 * commands/reboot.c: Likewise.
38503 * hello/hello.c: Likewise.
38504 * script/sh/main.c: Likewise.
38505 * loader/xnu.c: Likewise.
38506 * term/terminfo.c: Likewise.
38507 * term/i386/pc/serial.c: Likewise.
38508 * term/usb_keyboard.c: Likewise.
38509
38510 2009-05-03 David S. Miller <davem@davemloft.net>
38511
38512 * normal/menu.c: Include grub/parser.h
38513
38514 2009-05-03 Pavel Roskin <proski@gnu.org>
38515
38516 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38517 not char*.
38518 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38519 Suggested by Javier Martín <lordhabbit@gmail.com>
38520
38521 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38522 efiemu??.o doesn't exist.
38523 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38524 copying.
38525
38526 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38527
38528 FreeBSD 64-bit support
38529
38530 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38531 and loader/i386/bsd_trampoline.S
38532 (bsd_mod_ASFLAGS): new variable
38533 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38534 (FREEBSD_MODTYPE_KERNEL64): likewise
38535 (grub_bsd64_trampoline_start): likewise
38536 (grub_bsd64_trampoline_end): likewise
38537 (grub_bsd64_trampoline_selfjump): likewise
38538 (grub_bsd64_trampoline_gdt): likewise
38539 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38540 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38541 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38542 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38543 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38544 of "attrib" member
38545 * loader/i386/bsd_pagetable.c: new file
38546 * loader/i386/bsd_trampoline.S: likewise
38547 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38548 (ALIGN_VAR): likewise
38549 (entry_hi): new variable
38550 (kern_end_mdofs): likewise
38551 (is_64bit): likewise
38552 (grub_freebsd_add_meta): use ALIGN_VAR
38553 (grub_e820_mmap): new declaration
38554 (grub_freebsd_add_mmap): new function
38555 (grub_freebsd_add_meta_module): support 64 bit kernels
38556 (grub_freebsd_list_modules): use ALIGN_VAR
38557 (gdt_descriptor): new declaration
38558 (grub_freebsd_boot): support 64 bit kernels
38559 (grub_bsd_elf64_hook): new function
38560 (grub_bsd_load_elf): support elf64
38561
38562 2009-05-03 Bean <bean123ch@gmail.com>
38563
38564 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38565 after we get the result of if statement.
38566
38567 2009-05-03 Bean <bean123ch@gmail.com>
38568
38569 * Makefile.in (enable_efiemu): New variable.
38570
38571 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38572 set.
38573 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38574 path.
38575 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38576 path, add -mno-red-zone option.
38577 (efiemu64_s.o): Likewise.
38578 (efiemu64.o): Use macro $^ for source file.
38579
38580 * configure.ac (--enable-efiemu): New option.
38581
38582 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38583
38584 xnu support
38585
38586 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38587 (pkglib_MODULES): add xnu.mod
38588 (xnu_mod_SOURCES): new variable
38589 (xnu_mod_CFLAGS): likewise
38590 (xnu_mod_LDFLAGS): likewise
38591 (xnu_mod_ASFLAGS): likewise
38592 * conf/i386-pc.rmk: likewise
38593 * conf/x86_64-efi.rmk: likewise
38594 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38595 new declaration
38596 * include/grub/i386/macho.h: new file
38597 * include/grub/i386/xnu.h: likewise
38598 * include/grub/macho.h: likewise
38599 * include/grub/machoload.h: likewise
38600 * include/grub/x86_64/macho.h: likewise
38601 * include/grub/x86_64/xnu.h: likewise
38602 * include/grub/xnu.h: likewise
38603 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38604 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38605 * loader/i386/efi/xnu.c: new file
38606 * loader/i386/pc/xnu.c: likewise
38607 * loader/i386/xnu.c: likewise
38608 * loader/i386/xnu_helper.S: likewise
38609 * loader/macho.c: likewise
38610 * loader/xnu.c: likewise
38611 * loader/xnu_resume.c: likewise
38612 * util/grub-dumpdevtree: likewise
38613 * include/grub/i386/pit.h: include grub/err.h
38614 (grub_pit_wait): export
38615 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38616
38617 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38618
38619 Efiemu
38620
38621 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38622 _linux_efi, linux_efi.
38623 new files in grub-emu
38624 new targets efiemu32.o and efiemu64.o
38625 * loader/linux_normal_efiemu.c: likewise
38626 * loader/i386/efi/linux.c: added preliminary efiemu support
38627 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38628 files to copy
38629 * include/grub/autoefi.h: new file
38630 * include/grub/i386/efiemu.h: likewise
38631 * include/grub/i386/pc/efiemu.h: likewise
38632 * include/grub/efi/api.h: add LL suffix when necessary
38633 new definitions relating to tables
38634 * include/grub/efiemu/efiemu.h: new file
38635 * include/grub/efiemu/runtime.h: likewise
38636 * efiemu/prepare.c: likewise
38637 * efiemu/loadcore_common.c: likewise
38638 * efiemu/loadcore64.c: likewise
38639 * efiemu/runtime/efiemu.sh: likewise
38640 * efiemu/runtime/efiemu.S: likewise
38641 * efiemu/runtime/efiemu.c: likewise
38642 * efiemu/runtime/config.h: likewise
38643 * efiemu/prepare32.c: likewise
38644 * efiemu/main.c: likewise
38645 * efiemu/modules/pnvram.c: likewise
38646 * efiemu/modules/i386: likewise
38647 * efiemu/modules/i386/pc: likewise
38648 * efiemu/modules/acpi.c: likewise
38649 * efiemu/i386/pc/cfgtables.c: likewise
38650 * efiemu/i386/loadcore64.c: likewise
38651 * efiemu/i386/loadcore32.c: likewise
38652 * efiemu/prepare64.c: likewise
38653 * efiemu/loadcore.c: likewise
38654 * efiemu/symbols.c: likewise
38655 * efiemu/mm.c: likewise
38656 * efiemu/loadcore32.c: likewise
38657
38658 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38659
38660 ACPI spoofing
38661
38662 * commands/acpi.c: new file
38663 * commands/i386/pc/acpi.c: likewise
38664 * commands/efi/acpi.c: likewise
38665 * include/grub/acpi.h: likewise
38666 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38667 (acpi_mod_SOURCES): new variable
38668 (acpi_mod_CFLAGS): likewise
38669 (acpi_mod_LDFLAGS): likewise
38670 * conf/i386-efi.rmk: likewise
38671 * conf/x86_64-efi.rmk: likewise
38672
38673 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38674
38675 Missing part from mmap patch
38676
38677 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38678 (grub_mmap_unregister)
38679 (grub_mmap_free_and_unregister): use grub_mmap_register
38680
38681 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38682
38683 Mmap services
38684
38685 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38686 * loader/i386/linux.c (find_mmap_size): likewise
38687 (allocate_pages): likewise
38688 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38689 (grub_fill_multiboot_mmap): likewise
38690 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38691 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38692 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38693 (OPENBSD_MMAP_RESERVED): likewise
38694 * include/grub/i386/pc/memory.h: include grub/memory.h
38695 (grub_lower_mem): removed
38696 (grub_upper_mem): likewise
38697 (GRUB_MACHINE_MEMORY_ACPI): new definition
38698 (GRUB_MACHINE_MEMORY_NVS): likewise
38699 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38700 (GRUB_MACHINE_MEMORY_HOLE): likewise
38701 (grub_machine_mmap_register): likewise
38702 (grub_machine_mmap_unregister): likewise
38703 (grub_machine_get_upper): likewise
38704 (grub_machine_get_lower): likewise
38705 (grub_machine_get_post64): likewise
38706 * include/grub/i386/efi/memory.h: new file
38707 * include/grub/x86_64/efi/memory.h: likewise
38708 * include/grub/efi/memory.h: likewise
38709 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38710 (mmap_mod_SOURCES): new variable
38711 (mmap_mod_LDFLAGS): likewise
38712 (mmap_mod_ASFLAGS): likewise
38713 * conf/i386-coreboot.rmk: likewise
38714 * conf/i386-ieee1275.rmk: likewise
38715 * conf/i386-efi.rmk: likewise
38716 * conf/x86_64-efi.rmk: likewise
38717 * include/grub/types.h (UINT_TO_PTR): new macro
38718 (PTR_TO_UINT32): likewise
38719 (PTR_TO_UINT64): likewise
38720 * include/grub/memory.h: new file
38721 * mmap/i386/pc/mmap.c: likewise
38722 * mmap/i386/pc/mmap_helper.S: likewise
38723 * mmap/i386/uppermem.c: likewise
38724 * mmap/mmap.c: likewise
38725 * mmap/efi/mmap.c: likewise
38726 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38727 grub_upper_mem
38728 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38729 (grub_upper_mem): likewise
38730 (grub_machine_init): don't use grub_upper_mem,
38731 make grub_lower_mem local
38732 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38733 grub_mmap_iterate and grub_mmap_get_upper
38734 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38735
38736 2009-05-02 Bean <bean123ch@gmail.com>
38737
38738 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38739 script/sh/parser.y.
38740 (pkglib_MODULES): Add normal.mod and sh.mod.
38741 (normal_SOURCES): New variable.
38742 (normal_mod_CFLAGS): Likewise.
38743 (normal_mod_LDFLAGS): Likewise.
38744 (sh_mod_SOURCES): Likewise.
38745 (sh_mod_CFLAGS): Likewise.
38746 (sh_mod_LDFLAGS): Likewise.
38747
38748 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38749 script/sh/lexer.c_DEPENDENCIES.
38750 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38751 kern/rescue_reader.c and kern/rescue_parser.c.
38752 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38753 (grub_emu_SOURCES): Change source files.
38754 (pkglib_MODULES): Remove normal.mod.
38755 (normal_SOURCES): Removed.
38756 (normal_mod_CFLAGS): Likewise.
38757 (normal_mod_LDFLAGS): Likewise.
38758 * conf/i386-coreboot.rmk: Likewise.
38759 * conf/i386-efi.rmk: Likewise.
38760 * conf/i386-ieee1276.rmk: Likewise.
38761 * conf/powerpc-ieee1275.rmk: Likewise.
38762 * conf/sparc64-ieee1275.rmk: Likewise.
38763 * conf/x86_64-efi.rmk: Likewise.
38764
38765 * include/grub/command.h (grub_command_execute): New inline function.
38766
38767 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38768
38769 * include/grub/normal.h: Remove <grub/setjmp.h>.
38770 (grub_fs_module_list): Moved to normal/autofs.c.
38771 (grub_exit_env): Removed.
38772 (grub_command_execute): Likewise.
38773 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38774 parameter script.
38775 (read_command_list): New function declaration.
38776 (read_fs_list): Likewise.
38777
38778 * include/parser.h: Include <grub/reader.h>.
38779 (grub_parser_split_cmdline): Change type of getline parameter.
38780 (grub_parser): New structure.
38781 (grub_parser_class): New variable.
38782 (grub_parser_execute): New function declaration.
38783 (grub_register_rescue_parser): Likewise.
38784 (grub_parser_register): New inline function.
38785 (grub_parser_unregister): Likewise.
38786 (grub_parser_get_current): Likewise.
38787 (grub_parser_set_current): Likewise.
38788
38789 * include/grub/reader.h: New file.
38790 * kern/reader.c: Likewise.
38791 * kern/rescue_parser.c: Likewise.
38792 * kern/rescue_reader.c: Likewise.
38793 * normal/autofs.c: Likewise.
38794 * normal/dyncmd.c: Likewise.
38795
38796 * include/grub/rescue.h: Removed.
38797 * normal/command.h: Likewise.
38798
38799 * include/grub/script.h: Moved to ...
38800 * include/grub/script_sh.h: ... Moved here.
38801 * normal/execute.c: Moved to ...
38802 * script/sh/execute.c: ... Moved here.
38803 * normal/function.c: Moved to ...
38804 * script/sh/function.c: ... Moved here.
38805 * normal/lexer.c: Moved to ...
38806 * script/sh/lexer.c: ... Moved here.
38807 * normal/parser.y: Moved to ...
38808 * script/sh/parser.y: ... Moved here.
38809 * normal/script.c: Moved to ...
38810 * script/sh/script.c: ... Moved here.
38811
38812 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38813 <grub/reader.h>.
38814 (grub_exit_env): Removed.
38815 (fs_module_list): Moved to normal/autofs.c.
38816 (grub_file_getline): Don't handle comment here.
38817 (free_menu): Skip removed field entry->commands.
38818 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38819 script parameter.
38820 (read_config_file): Removed nested parameter, change getline function.
38821 (grub_enter_normal_mode): Removed.
38822 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38823 (read_command_list): Likewise.
38824 (autoload_fs_module): Moved to normal/autofs.c.
38825 (read_fs_list): Likewise.
38826 (reader_nested): New variable.
38827 (grub_normal_execute): Run parser.sh to switch to sh parser.
38828 (grub_cmd_rescue): Removed.
38829 (cmd_normal): Removed.
38830 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38831 rescue command.
38832 (grub_cmdline_run): New function.
38833 (grub_normal_reader_init): Likewise.
38834 (grub_normal_read_line): Likewise.
38835 (grub_env_write_pager): Likewise.
38836 (cmdline): New variable.
38837 (grub_normal_reader): Likewise.
38838 (GRUB_MOD_INIT): Register normal reader and set as current, register
38839 pager hook, register normal command with grub_register_command_prio,
38840 so that it won't show up in command.lst.
38841 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38842 grub_fs_autoload_hook.
38843
38844 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38845 (grub_menu_execute_entry): Replace grub_script_execute with
38846 grub_parser_execute, change parameter to grub_command_execute.
38847
38848 * normal/menu_text.c: Remove <grub/script.h>.
38849
38850 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38851 and <grub/parser.h>.
38852 (run): Change editor_getline to use new parser interface. Change
38853 parameter to grub_command_execute.
38854
38855 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38856 <grub/reader.h> and <grub/parser.h>.
38857 (grub_load_normal_mode): Execute normal command.
38858 (grub_main): Call grub_register_core_commands,
38859 grub_register_rescue_parser and grub_register_rescue_reader, use
38860 grub_reader_loop to enter input loop.
38861
38862 * kern/parser.c (grub_parser_split_cmdline): Change type of
38863 getline parameter.
38864 (grub_parser_class): New variable.
38865 (grub_parser_execute): New function.
38866
38867 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38868 * loader/multiboot2.c: Likewise.
38869 * loader/sparc64/ieee1275/linux.c: Likewise.
38870
38871 * util/grub-emu.c (read_command_list): New dummy function.
38872
38873 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38874
38875 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38876 count to 16 for CCISS and IDA.
38877
38878 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38879
38880 * normal/menu_text.c (grub_wait_after_message): Print a newline
38881 after waiting for user input.
38882
38883 * loader/i386/linux.c: Include `<grub/normal.h>'.
38884 (grub_cmd_linux): Improve the error message about `ask' mode, by
38885 waiting for user input so it's not missed (we can do this, since
38886 user requested interaction).
38887
38888 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38889
38890 Added missing lst to grub-mkrescue
38891
38892 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38893 and ${input_dir}/parttool.lst
38894
38895 2009-04-30 David S. Miller <davem@davemloft.net>
38896
38897 * util/hostdisk.c (device_is_wholedisk): New function.
38898 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38899 zero only if device_is_wholedisk() returns true.
38900
38901 * util/hostdisk.c (convert_system_partition_to_system_disk):
38902 Handle virtual disk devices named /dev/vdiskX as found on sparc
38903 and powerpc.
38904
38905 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38906 lettered partition specifier is found, convert to numbered.
38907
38908 2009-04-29 David S. Miller <davem@davemloft.net>
38909
38910 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38911 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38912
38913 * normal/command.c: Add missing newline at end of file.
38914
38915 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38916 warnings.
38917 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38918 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38919 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38920 ihandles have a 32-bit type but need to be stored in a "void *".
38921
38922 2009-04-28 Pavel Roskin <proski@gnu.org>
38923
38924 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38925 not disk. Adjust all dependencies.
38926 (grub_fs_uuid_close): Use grub_device_close(), not
38927 grub_disk_close().
38928
38929 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38930 parent's partition, don't copy it by reference, as it gets freed
38931 on close.
38932
38933 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38934
38935 Preboot hooks support
38936
38937 * commands/boot.c (struct grub_preboot_t): new declaration
38938 (preboots_head): new variable
38939 (preboots_tail): likewise
38940 (grub_loader_register_preboot_hook): new function
38941 (grub_loader_unregister_preboot_hook): likewise
38942 (grub_loader_set): launch preboot hooks
38943 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38944 (grub_loader_register_preboot_hook): new declaration
38945 (grub_loader_unregister_preboot_hook): likewise
38946
38947 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38948
38949 Warning fix
38950
38951 * disk/scsi.c (grub_scsi_open): added missing cast when
38952 calling grub_dprintf
38953
38954 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38955
38956 Bug and warning fixes
38957
38958 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
38959 declaration
38960 * commands/test.c (test_parse): fixed bug with file tests and corrected
38961 declaration of find_file
38962
38963 2009-04-26 Pavel Roskin <proski@gnu.org>
38964
38965 * Makefile.in: Don't install empty manual pages if help2man is
38966 missing. Use help2man option for output, not shell redirection.
38967
38968 2009-04-26 David S. Miller <davem@davemloft.net>
38969
38970 * util/grub-mkdevicemap.c (make_device_map): Add missing
38971 NESTED_FUNC_ATTR to process_device().
38972
38973 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38974
38975 Test command
38976
38977 * commands/test.c: rewritten to use bash-like test
38978
38979 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38980
38981 Parttool autoloading and improvements
38982
38983 * Makefile.in (pkglib_DATA): add parttool.lst
38984 (parttool.lst): new target
38985 * genmk.rb: generate parttool-*
38986 (CLEANFILES): add #{parttool}
38987 (PARTTOOLFILES): new variable
38988 * genparttoollist.sh: new file
38989 * parttool/pcpart.c (grub_pcpart_boot): more feedback
38990 (grub_pcpart_type): likewise
38991 * commands/parttool.c (helpmsg): new variable
38992 (grub_cmd_parttool): output help if not enough arguments are supplied
38993 autoload modules
38994 (GRUB_MOD_INIT(parttool)): use helpmsg
38995
38996 2009-04-24 David S. Miller <davem@davemloft.net>
38997
38998 Avoiding opening same device multiple times in device iterator.
38999
39000 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39001 and use it to build a list of partitions in iterate_disk() and
39002 iterate_partition().
39003
39004 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39005 on disk->data.
39006
39007 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39008 grub_devalias_iterate() result instead of unconditional 0.
39009 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39010 Also, capture hook return value, either directly or via
39011 grub_children_iterate(), and propagate to caller.
39012 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39013 grub_children_iterate): Return value is now 'int' instead of
39014 'grub_err_t'.
39015 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39016 like a proper iterator, stopping when hooks return non-zero.
39017 (grub_devalias_iterate): Likewise.
39018
39019 2009-04-23 David S. Miller <davem@davemloft.net>
39020
39021 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39022
39023 2009-04-22 David S. Miller <davem@davemloft.net>
39024
39025 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39026 is larger than address_cells, use that value for address_cells too.
39027
39028 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39029 IEEE1275_MAX_PATH_LEN): Define.
39030 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39031 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39032 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39033 'devtype'. Explicitly NULL terminate devalias expansion.
39034
39035 * util/sparc64/ieee1275/misc.c: New file.
39036 * util/sparc64/ieee1275/grub-setup.c: New file.
39037 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39038 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39039 * util/sparc64/ieee1275/grub-install.in: New file.
39040 * util/ieee1275/ofpath.c: New file.
39041 * util/ieee1275/devicemap.c: New file.
39042 * util/devicemap.c: New file.
39043 * util/deviceiter.c: New file.
39044 * kern/sparc64/ieee1275/init.c: New file.
39045 * include/grub/util/ofpath.h: New file.
39046 * include/grub/util/deviceiter.h: New file.
39047 * util/grub-mkdevicemap.c: Include deviceiter.h.
39048 Implement using grub_util_emit_devicemap_entry and
39049 grub_util_iterate_devices.
39050 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39051 util/devicemap.c into grub-mkdevicemap
39052 * conf/i386-efi.rmk: Likewise.
39053 * conf/i386-ieee1275.rmk: Likewise.
39054 * conf/i386-pc.rmk: Likewise.
39055 * conf/powerpc-ieee1275.rmk: Likewise.
39056 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39057 images and installation utilities. Build kernel as image
39058 instead of as elf binary. Use common rules as much as possible.
39059
39060 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39061
39062 Correct GPT definition
39063
39064 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39065 of "attrib" member
39066
39067 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39068
39069 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39070
39071 2009-04-19 David S. Miller <davem@davemloft.net>
39072
39073 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39074 (grub_rescue_cmd_linux): Rename to...
39075 (grub_cmd_linux): and fix prototype.
39076 (grub_rescue_cmd_initrd): Rename to...
39077 (grub_cmd_initrd): and fix prototype.
39078 (cmd_linux, cmd_initrd): New.
39079 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39080 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39081
39082 2009-04-17 Pavel Roskin <proski@gnu.org>
39083
39084 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39085 format.
39086 (grub_ohci_transfer): Likewise.
39087
39088 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39089
39090 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39091 return without a value. Fix inconsistent indentation.
39092
39093 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39094 match struct grub_fs.
39095
39096 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39097 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39098 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39099 * commands/lspci.c (grub_lspci_iter): Likewise.
39100
39101 2009-04-16 Bean <bean123ch@gmail.com>
39102
39103 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39104 value.
39105
39106 2009-04-15 Pavel Roskin <proski@gnu.org>
39107
39108 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39109 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39110 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39111 definitions.
39112
39113 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39114
39115 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39116 that no multiple data or metadata areas are supported and `Unknown
39117 metadata header'.
39118
39119 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39120
39121 Move loader out of the kernel
39122
39123 * kern/loader.c: moved to ...
39124 * commands/boot.c: ... moved here
39125 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39126 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39127 * include/grub/kernel.h (grub_machine_fini): export
39128 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39129 (grub_loader_set): likewise
39130 (grub_loader_unset): likewise
39131 (grub_loader_boot): likewise
39132 * conf/common.rmk: new module boot.mod
39133 (pkglib_MODULES): add boot.mod
39134 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39135 (grub_emu_SOURCES): likewise
39136 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39137 (grub_emu_SOURCES): likewise
39138 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39139 (grub_emu_SOURCES): likewise
39140 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39141 (grub_emu_SOURCES): likewise
39142 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39143 (grub_emu_SOURCES): likewise
39144 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39145 (grub_emu_SOURCES): likewise
39146 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39147 (grub_emu_SOURCES): likewise
39148
39149 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39150
39151 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39152
39153 * kern/misc.c (grub_itoa): Removed function
39154 (grub_ltoa): likewise
39155 (grub_vsprintf): use grub_lltoa
39156
39157 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39158
39159 Restore grub-emu
39160
39161 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39162 * conf/i386-coreboot.rmk: likewise
39163 * conf/i386-ieee1275.rmk: likewise
39164 * conf/powerpc-ieee1275.rmk: likewise
39165
39166 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39167
39168 * INSTALL: Add that `./autogen.sh' needs to be run before
39169 `./configure.'.
39170
39171 2009-04-14 Bean <bean123ch@gmail.com>
39172
39173 * Makefile.in (pkglib_DATA): Add handler.lst.
39174 (handler.lst): New rule.
39175
39176 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39177 * conf/i386-coreboot.rmk: Likewise.
39178 * conf/i386-ieee1275.rmk: Likewise.
39179 * conf/i386-efi.rmk: Likewise.
39180 * conf/x86_64-efi.rmk: Likewise.
39181 * conf/powerpc-ieee1275.rmk: Likewise.
39182 * conf/sparc64-ieee1275.rmk: Likewise.
39183
39184 * genhandlerlist.sh: New file.
39185
39186 * genmk.rb: Add rules to generate handler.lst.
39187
39188 * include/grub/normal.h (grub_file_getline): New function definition.
39189 (read_handler_list): Likewise.
39190 (free_handler_list): Likewise.
39191
39192 * include/grub/term.h (grub_term_register_input): Add name parameter
39193 for auto generation of handler.lst.
39194 (grub_term_register_output): Likewise.
39195
39196 * normal/handler.c: New file.
39197
39198 * normal/main.c (get_line): Renamed to grub_file_getline.
39199 (read_config_file): Use the newly renamed grub_file_getline.
39200 (read_command_list): Likewise.
39201 (read_fs_list): Likewise.
39202 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39203 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39204
39205 * term/efi/console.c (grub_console_init): Add name parameter for auto
39206 generation of handler.lst.
39207 * term/gfxterm.c: Likewise.
39208 * term/i386/pc/at_keyboard.c: Likewise.
39209 * term/i386/pc/console.c: Likewise.
39210 * term/i386/pc/serial.c: Likewise.
39211 * term/i386/pc/vesafb.c: Likewise.
39212 * term/i386/pc/vga.c: Likewise.
39213 * term/i386/pc/vga_text.c: Likewise.
39214 * term/ieee1275/ofconsole.c: Likewise.
39215 * term/usb_keyboard.c: Likewise.
39216
39217 2009-04-14 Bean <bean123ch@gmail.com>
39218
39219 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39220 properly with null character.
39221
39222 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39223
39224 * configure: Remove.
39225 * config.h.in: Likewise.
39226 * stamp-h.in: Likewise.
39227 * DISTLIST: Likewise.
39228 * conf/common.mk: Likewise.
39229 * conf/i386-coreboot.mk: Likewise.
39230 * conf/i386-efi.mk: Likewise.
39231 * conf/i386-ieee1275.mk: Likewise.
39232 * conf/i386.mk: Likewise.
39233 * conf/i386-pc.mk: Likewise.
39234 * conf/powerpc-ieee1275.mk: Likewise.
39235 * conf/sparc64-ieee1275.mk: Likewise.
39236 * conf/x86_64-efi.mk: Likewise.
39237
39238 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39239 develop on GRUB.
39240
39241 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39242 David S. Miller <davem@davemloft.net>
39243
39244 * util/hostdisk.c (make_device_name): Fix buffer length
39245 calculations.
39246
39247 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39248
39249 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39250 <sys/param.h> and <sys/sysctl.h>.
39251 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39252 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39253 opening the device and reset them afterwards.
39254
39255 2009-04-13 Pavel Roskin <proski@gnu.org>
39256
39257 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39258 Reported by John Stanley <jpsinthemix@verizon.net>
39259
39260 2009-04-13 Robert Millan <rmh@aybabtu.com>
39261
39262 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39263 that name for menuentries when appropriate.
39264
39265 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39266
39267 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39268
39269 2009-04-13 Robert Millan <rmh@aybabtu.com>
39270
39271 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39272 to Linux, simply abort telling the user it's no longer supported.
39273
39274 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39275
39276 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39277 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39278 `freebsd_loadenv' only when devices.hints exist.
39279
39280 2009-04-13 Pavel Roskin <proski@gnu.org>
39281
39282 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39283
39284 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39285
39286 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39287 partition number.
39288 (grub_drive): Likewise.
39289
39290 2009-04-13 David S. Miller <davem@davemloft.net>
39291
39292 * kern/sparc64/ieee1275/ieee1275.c: New file.
39293 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39294 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39295 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39296 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39297 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39298 grub_ieee1275_alloc_physmem): Declare new exported functions.
39299
39300 * include/grub/sparc64/ieee1275/loader.h: New file.
39301 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39302 * include/grub/sparc64/kernel.h: Likewise.
39303 * loader/sparc64/ieee1275/linux.c: Likewise.
39304
39305 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39306 (grub_fstest_SOURCES): Likewise.
39307
39308 * util/hostdisk.c (make_device_name): Do not make any assumptions
39309 about the length of drive names.
39310
39311 * kern/dl.c (grub_dl_load_file): Close file immediately when
39312 we are done using it.
39313
39314 2009-04-12 David S. Miller <davem@davemloft.net>
39315
39316 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39317 values. Noticed by Pavel Roskin.
39318
39319 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39320 target compiler.
39321
39322 * genmk.rb: Add more flexible image type specification, also
39323 pass --strip-unneeded to objcopy.
39324 * conf/i386-pc.rmk: Use *_FORMAT.
39325 * conf/i386-pc.mk: Rebuilt.
39326
39327 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39328 (OFDISK_HASH_SZ): Define.
39329 (ofdisk_hash): New hash table.
39330 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39331 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39332 instead of device phandle which is not unique.
39333
39334 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39335 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39336 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39337 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39338 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39339 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39340 GRUB_KERNEL_MACHINE_DATA_END): Define.
39341 (grub_kernel_image_size, grub_total_module_size): Declare.
39342
39343 2009-04-12 Pavel Roskin <proski@gnu.org>
39344
39345 * configure.ac: Change the logic when we check for target tools.
39346 Do it when the target is specified and it's different from the
39347 specified value of the host.
39348
39349 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39350
39351 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39352 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39353 GNU/kFreeBSD. Check if a device is a character device. Use
39354 DIOCGMEDIASIZE to get the size.
39355 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39356 support for GNU/kFreeBSD.
39357 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39358 is a character device instead of a block device. Add support for
39359 FreeBSD device names.
39360
39361 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39362 is a character device instead of a block device.
39363
39364 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39365 is a character device instead of a block device.
39366
39367 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39368
39369 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39370 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39371 FreeBSD. Check if a device is a character device. Use
39372 DIOCGMEDIASIZE to get the size.
39373 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39374 support for FreeBSD.
39375 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39376 is a character device instead of a block device. Add support for
39377 FreeBSD device names.
39378
39379 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39380 a character device instead of a block device.
39381 (grub_util_check_char_device): New function.
39382
39383 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39384 a character device instead of a block device.
39385
39386 * include/grub/util/getroot.h (grub_util_check_char_device): New
39387 prototype.
39388
39389 2009-04-11 David S. Miller <davem@davemloft.net>
39390
39391 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39392 static libgcc.
39393 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39394 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39395 function, if present.
39396 (__bswapdi2): Likewise.
39397
39398 * include/grub/sparc64/ieee1275/boot.h: New file.
39399 * boot/sparc64/ieee1275/boot.S: Likewise.
39400 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39401
39402 * kern/misc.c (grub_ltoa): New function.
39403 (grub_vsprintf): Use it to format 'long' integers.
39404
39405 2009-04-10 David S. Miller <davem@davemloft.net>
39406
39407 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39408 slots are of type grub_ieee1275_cell_t.
39409 (grub_nand_read): Likewise.
39410 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39411 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39412 macros are used to compare values in arg/ret block of the call.
39413 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39414 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39415 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39416 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39417 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39418 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39419 grub_ieee1275_close, grub_ieee1275_set_property,
39420 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39421 grub_ieee1275_cell_t.
39422 * kern/ieee1275/openfw.c (grub_map): Likewise.
39423 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39424 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39425
39426 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39427 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39428 (grub_devalias_iterate): Likewise.
39429
39430 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39431
39432 UFS improvements
39433
39434 * fs/ufs.c (INODE_NBLOCKS): new definition
39435 (struct grub_ufs_dirent): added fields for non-BSD dirents
39436 (grub_ufs_get_file_block): fixed double indirect handling
39437 (grub_ufs_lookup_symlink): use more robust way to determine whether
39438 symlink is inline
39439 (grub_ufs_find_file): support for non-BSD dirents
39440 (grub_ufs_dir): support for non-BSD dirents
39441
39442 2009-04-10 Bean <bean123ch@gnail.com>
39443
39444 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39445 attribute, otherwise the size would be wrong for i386 platform.
39446
39447 * include/grub/pci.h (grub_pci_read_word): New inline function.
39448 (grub_pci_read_byte): Likewise.
39449 (grub_pci_write): Likewise.
39450 (grub_pci_write_word): Likewise.
39451 (grub_pci_write_byte): Likewise.
39452
39453 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39454
39455 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39456 (find_framebuf): Scan pci to locate the frame buffer address.
39457
39458 * commands/efi/fixvideo.c: New file.
39459
39460 * commands/efi/loadbios.c: Likewise.
39461
39462 * commands/memrw.c: Likewise.
39463
39464 * util/grub-dumpbios.in: Likewise.
39465
39466 * conf/common.rmk (grub-dumpbios): New utility.
39467 (pkglib_MODULES): New module memrw.mod.
39468 (memrw_mod_SOURCE): New macro.
39469 (memrw_mod_CFLAGS): Likewise.
39470 (memrw_mod_LDFLAGS): Likewise.
39471
39472 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39473 fixvideo.mod.
39474 (loadbios_mod_SOURCE): New macro.
39475 (loadbios_mod_CFLAGS): Likewise.
39476 (loadbios_mod_LDFLAGS): Likewise.
39477 (fixvideo_mod_SOURCE): Likewise.
39478 (fixvideo_mod_CFLAGS): Likewise.
39479 (fixvideo_mod_LDFLAGS): Likewise.
39480
39481 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39482 fixvideo.mod.
39483 (loadbios_mod_SOURCE): New macro.
39484 (loadbios_mod_CFLAGS): Likewise.
39485 (loadbios_mod_LDFLAGS): Likewise.
39486 (fixvideo_mod_SOURCE): Likewise.
39487 (fixvideo_mod_CFLAGS): Likewise.
39488 (fixvideo_mod_LDFLAGS): Likewise.
39489
39490 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39491
39492 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39493
39494 2009-04-07 David S. Miller <davem@davemloft.net>
39495
39496 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39497 support for R_SPARC_OLO10 relocations. Fix compile warning for
39498 R_SPARC_WDISP30 case.
39499 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39500
39501 2009-04-06 Pavel Roskin <proski@gnu.org>
39502
39503 * include/grub/misc.h (ARRAY_SIZE): New macro.
39504 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39505 New macro.
39506 * loader/i386/linux.c (allocate_pages): Use free_pages().
39507 (grub_linux_unload): Don't use free_pages().
39508 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39509 wrong index. Treat all other modes as text modes.
39510 (grub_cmd_linux): Initialize vid_mode unconditionally to
39511 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39512
39513 * commands/help.c (print_command_help): Use cmd->prio, not
39514 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39515
39516 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39517
39518 Parttool
39519
39520 * parttool/pcpart.c: new file
39521 * commands/parttool.c: likewise
39522 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39523 (parttool_mod_SOURCES): new variable
39524 (parttool_mod_CFLAGS): likewise
39525 (parttool_mod_LDFLAGS): likewise
39526 (pcpart_mod_SOURCES): likewise
39527 (pcpart_mod_CFLAGS): likewise
39528 (pcpart_mod_LDFLAGS): likewise
39529 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39530 and parttool/pcpart.c
39531 * conf/i386-efi.rmk: likewise
39532 * conf/i386-ieee1275.rmk: likewise
39533 * conf/i386-pc.rmk: likewise
39534 * conf/powerpc-ieee1275.rmk: likewise
39535 * conf/sparc64-ieee1275.rmk: likewise
39536 * conf/x86_64-ieee1275.rmk: likewise
39537
39538 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39539
39540 Support for mtime and further expandability of dir command
39541
39542 * include/grub/lib/datetime.h: moved to ...
39543 * include/grub/datetime.h: ... moved here and added
39544 declaration of grub_unixtime2datetime. All users updated
39545 * include/grub/fs.h: new syntax for dir and mtime functions in
39546 struct grub_fs
39547 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39548 and GRUB_FSHELP_FLAGS_MASK
39549 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39550 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39551 (grub_ext2_mtime): new function
39552 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39553 (grub_hfsplus_mtime): new function
39554 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39555 (GRUB_UFS_ATTR_FILE): likewise
39556 (GRUB_UFS_ATTR_LNK): likewise
39557 (struct grub_ufs_sblock): new fields mtime
39558 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39559 all users updated
39560 (grub_ufs_dir): mtime support
39561 (grub_ufs_mtime): new function
39562 * fs/affs.c (grub_affs_dir): use new dir syntax
39563 * fs/afs.c (grub_afs_dir): likewise
39564 * fs/cpio.c (grub_cpio_dir): likewise
39565 * fs/fat.c (grub_fat_find_dir): likewise
39566 * fs/hfs.c (grub_hfs_dir): likewise
39567 * fs/iso9660.c (grub_iso9660_dir): likewise
39568 * fs/jfs.c (grub_jfs_dir): likewise
39569 * fs/minix.c (grub_minix_dir): likewise
39570 * fs/ntfs.c (grub_ntfs_dir): likewise
39571 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39572 * fs/sfs.c (grub_sfs_dir): likewise
39573 * fs/xfs.c (grub_xfs_dir): likewise
39574 * util/hostfs.c (grub_hostfs_dir): likewise
39575 * lib/datetime.c: moved to ...
39576 * normal/datetime.c: ... moved here
39577 (grub_unixtime2datetime): new function
39578 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39579 * normal/completion.c (iterate_dir): use new dir syntax
39580 * normal/misc.c (grub_normal_print_device_info): tell the
39581 last modification time of a volume
39582 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39583 * conf/common.rmk: added lib/datetime.c to ls.mod
39584 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39585 (normal_mod_SOURCES): likewise
39586 (datetime_mod_SOURCES): Removed lib/datetime.c
39587 * conf/i386-efi.rmk: likewise
39588 * conf/i386-ieee1275.rmk: likewise
39589 * conf/i386-pc.rmk: likewise
39590 * conf/powerpc-ieee1275.rmk: likewise
39591 * conf/sparc64-ieee1275.rmk: likewise
39592 * conf/x86_64-efi.rmk: likewise
39593
39594 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39595
39596 Trim trailing spaces in FAT label and support mtools-like labels
39597
39598 * fs/fat.c (grub_fat_iterate_dir): New function based
39599 on grub_fat_find_dir
39600 (grub_fat_find_dir): use grub_fat_iterate_dir
39601 (grub_fat_label): likewise
39602
39603 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39604
39605 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39606 and command.h
39607 remove extraneous kernel_elf_HEADERS
39608
39609 2009-04-04 Bean <bean123ch@gnail.com>
39610
39611 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39612
39613 * util/misc.c: Likewise.
39614
39615 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39616
39617 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39618 instead of grub_printf.
39619
39620 2009-04-03 Robert Millan <rmh@aybabtu.com>
39621
39622 * loader/i386/linux.c (grub_linux_setup_video): Fill
39623 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39624 values from `mode info' structure instead of hardcoded
39625 values.
39626
39627 2009-04-01 Pavel Roskin <proski@gnu.org>
39628
39629 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39630 unused now.
39631 * genmk.rb: Likewise.
39632 * configure.ac: Likewise.
39633
39634 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39635
39636 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39637 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39638
39639 2009-04-01 David S. Miller <davem@davemloft.net>
39640
39641 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39642 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39643 (grub_setjmp): Mark with 'returns_twice' attribute.
39644 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39645 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39646 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39647
39648 2009-04-01 Robert Millan <rmh@aybabtu.com>
39649
39650 Reapply fix from 2008-07-28 which was accidentally reverted; also
39651 perform the same fix to a similar check in same function.
39652
39653 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39654 with the same number are found, just use issue a warning with
39655 grub_dprintf(), as this error has been reported to be non-fatal.
39656
39657 2009-03-31 Pavel Roskin <proski@gnu.org>
39658
39659 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39660 for cross-compilation.
39661
39662 2009-03-30 Robert Millan <rmh@aybabtu.com>
39663
39664 Fix i386-ieee1275 build.
39665
39666 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39667 Remove declaration.
39668
39669 2009-03-30 Pavel Roskin <proski@gnu.org>
39670
39671 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39672 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39673 zero-terminated, rely only on the strlen value. Fix comparison
39674 of strings differing in length.
39675
39676 2009-03-30 Robert Millan <rmh@aybabtu.com>
39677
39678 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39679 checking for abi version. Improve error messages on BIOS to notify
39680 user about `linux16' command.
39681
39682 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39683
39684 Leak fixes
39685
39686 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39687 in case of collision
39688 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39689
39690 2009-03-29 Robert Millan <rmh@aybabtu.com>
39691
39692 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39693 set `vid_mode' accordingly.
39694 (grub_linux_boot): Process `vid_mode' and set video mode.
39695
39696 2009-03-29 Robert Millan <rmh@aybabtu.com>
39697
39698 * util/grub.d/10_linux.in (linux_entry): New function.
39699 Factorize generation of Linux boot entries.
39700
39701 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39702
39703 Make the format of Environment Block plain text. The boot loader
39704 part is not tested well yet.
39705
39706 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39707 (buffer): Removed.
39708 (envblk): Likewise.
39709 (usage): Remove "info" and "clear". Add "unset". Update the
39710 description of "set", as this does not delete variables any
39711 longer.
39712 (create_envblk_file): Complete rewrite.
39713 (open_envblk_file): Likewise.
39714 (cmd_info): Removed.
39715 (cmd_list): Likewise.
39716 (cmd_set): Likewise.
39717 (cmd_clear): Likewise.
39718 (list_variables): New function.
39719 (write_envblk): Likewise.
39720 (set_variables): Likewise.
39721 (unset_variables): Likewise.
39722 (main): Complete rewrite.
39723
39724 * commands/loadenv.c (buffer): Removed.
39725 (envblk): Likewise.
39726 (open_envblk_file): New function.
39727 (read_envblk_file): Complete rewrite.
39728 (grub_cmd_load_env): Likewise.
39729 (grub_cmd_list_env): Likewise.
39730 (struct blocklist): New struct.
39731 (free_blocklists): New function.
39732 (check_blocklists): Likewise.
39733 (write_blocklists): Likewise.
39734 (grub_cmd_save_env): Complete rewrite.
39735
39736 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39737 a plain text signature.
39738 (GRUB_ENVBLK_MAXLEN): Removed.
39739 (struct grub_envblk): Complete rewrite.
39740 (grub_envblk_find): Removed.
39741 (grub_envblk_insert): Likewise.
39742 (grub_envblk_open): New prototype.
39743 (grub_envblk_set): Likewise.
39744 (grub_envblk_delete): Put const to VALUE.
39745 (grub_envblk_iterate): Put const to NAME and VALUE.
39746 (grub_envblk_close): New prototype.
39747 (grub_envblk_buffer): New inline function.
39748 (grub_envblk_size): Likewise.
39749
39750 * lib/envblk.c: Include grub/mm.h.
39751 (grub_env_find): Removed.
39752 (grub_envblk_open): New function.
39753 (grub_envblk_close): Likewise.
39754 (escaped_value_len): Likewise.
39755 (find_next_line): Likewise.
39756 (grub_envblk_insert): Removed.
39757 (grub_envblk_set): New function.
39758 (grub_envblk_delete): Complete rewrite.
39759 (grub_envblk_iterate): Likewise.
39760
39761 2009-03-28 Robert Millan <rmh@aybabtu.com>
39762
39763 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39764 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39765 variables. Use 16-bit loader.
39766 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39767 loader.
39768 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39769 (grub_linux16_boot): ... this. Update all users.
39770 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39771 (grub_linux_boot): ... this. Update all users.
39772
39773 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39774 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39775 commands to `linux16' and `initrd16'.
39776 (GRUB_MOD_FINI(linux)): Rename to ...
39777 (GRUB_MOD_FINI(linux16)): ... this.
39778
39779 2009-03-24 Pavel Roskin <proski@gnu.org>
39780
39781 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39782 not just for compilation.
39783
39784 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39785
39786 Move multiboot helper out of kernel
39787
39788 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
39789 `loader/i386/multiboot_helper.S'.
39790 * conf/i386-coreboot.rmk: Likewise
39791 * conf/i386-ieee1275.rmk: Likewise
39792
39793 * kern/i386/loader.S: Move multiboot helpers from here...
39794 * loader/i386/multiboot_helper.S: ...moved here
39795 * include/grub/i386/loader.h: Move declarations of multiboot
39796 helpers from here...
39797 * include/grub/i386/multiboot.h: ...moved here
39798 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
39799
39800 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39801
39802 * kern/env.c (grub_env_context_open): Added an argument to specify
39803 whether a new context inherits exported variables from current
39804 one. This is useful when making a sandbox to interpret a config
39805 file.
39806 All callers updated.
39807
39808 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39809
39810 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39811
39812 * kern/env.c (grub_env_context_close): Fix memory leaks.
39813
39814 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39815
39816 * normal/main.c (grub_normal_execute): Added an argument
39817 BATCH to specify if an interactive interface should be provided
39818 after reading a config file.
39819 All callers updated.
39820 (read_command_list): Prevent being executed twice.
39821 (read_fs_list): Likewise.
39822
39823 * include/grub/normal.h (grub_normal_execute): Updated the
39824 prototype.
39825
39826 2009-03-22 Pavel Roskin <proski@gno.org>
39827
39828 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39829 _start.
39830 * kern/i386/pc/startup.S: Likewise.
39831 * kern/i386/efi/startup.S: Likewise.
39832 * kern/i386/ieee1275/startup.S: Likewise.
39833 * kern/i386/coreboot/startup.S: Likewise.
39834 * kern/x86_64/efi/startup.S: Likewise.
39835
39836 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39837 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39838 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39839
39840 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39841
39842 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39843
39844 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39845 limit detection.
39846 Use vaddr of correct segment for entry_point.
39847
39848 2009-03-21 Bean <bean123ch@gmail.com>
39849
39850 * commands/blocklist.c: Add include file <grub/command.h>, remove
39851 <grub/normal.h> and <grub/arg.h>.
39852 (grub_cmd_blocklist): Use the new command interface.
39853 (GRUB_MOD_INIT): Likewise.
39854 (GRUB_MOD_FINI): Likewise.
39855 * commands/boot.c: Likewise.
39856 * commands/cat.c: Likewise.
39857 * commands/cmp.c: Likewise.
39858 * commands/configfile.c: Likewise.
39859 * commands/crc.c: Likewise.
39860 * commands/echo.c: Likewise.
39861 * commands/halt.c: Likewise.
39862 * commands/handler.c: Likewise.
39863 * commands/hdparm.c: Likewise.
39864 * commands/help.c: Likewise.
39865 * commands/hexdump.c: Likewise.
39866 * commands/loadenv.c: Likewise.
39867 * commands/ls.c: Likewise.
39868 * commands/lsmmap.c: Likewise.
39869 * commands/lspci.c: Likewise.
39870 * commands/loadenv.c: Likewise.
39871 * commands/read.c: Likewise.
39872 * commands/reboot.c: Likewise.
39873 * commands/search.c: Likewise.
39874 * commands/sleep.c: Likewise.
39875 * commands/test.c: Likewise.
39876 * commands/usbtest.c: Likewise.
39877 * commands/videotest.c: Likewise.
39878 * commands/i386/cpuid.c: Likewise.
39879 * commands/i386/pc/halt.c: Likewise.
39880 * commands/i386/pc/play.c: Likewise.
39881 * commands/i386/pc/pxecmd.c: Likewise.
39882 * commands/i386/pc/vbeinfo.c: Likewise.
39883 * commands/i386/pc/vbetest.c: Likewise.
39884 * commands/ieee1275/suspend.c: Likewise.
39885 * disk/loopback.c: Likewise.
39886 * font/font_cmd.c: Likewise.
39887 * hello/hello.c: Likewise.
39888 * loader/efi/appleloader.c: Likewise.
39889 * loader/efi/chainloader.c: Likewise.
39890 * loader/i386/bsd.c: Likewise.
39891 * loader/i386/efi/linux.c: Likewise.
39892 * loader/i386/ieee1275/linux.c: Likewise.
39893 * loader/i386/linux.c: Likewise.
39894 * loader/i386/pc/chainloader.c: Likewise.
39895 * loader/i386/pc/linux.c: Likewise.
39896 * loader/powerpc/ieee1275/linux.c: Likewise.
39897 * loader/multiboot_loader.c: Likewise.
39898 * term/gfxterm.c: Likewise.
39899 * term/i386/pc/serial.c: Likewise.
39900 * term/terminfo.c: Likewise.
39901
39902 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39903 * term/i386/pc/vga.c: Likewise.
39904 * video/readers/jpeg.c: Likewise.
39905 * video/readers/png.c: Likewise.
39906 * video/readers/tga.c: Likewise.
39907
39908 * util/grub-fstest (cmd_loopback): Removed.
39909 (cmd_blocklist): Likewise.
39910 (cmd_ls): Likewise.
39911 (grub_register_command): Likewise.
39912 (grub_unregister_command): Likewise.
39913 (execute_command): Use grub_command_find to locate command and execute
39914 it.
39915
39916 * include/grub/efi/chainloader.h: Removed.
39917 * loader/efi/chainloader_normal.c: Likewise.
39918 * loader/i386/bsd_normal.c: Likewise.
39919 * loader/i386/pc/chainloader_normal.c: Likewise.
39920 * loader/i386/pc/multiboot_normal.c: Likewise.
39921 * loader/linux_normal.c: Likewise.
39922 * loader/multiboot_loader_normal.c: Likewise.
39923 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39924
39925 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39926 and grub_register_command_p1.
39927
39928 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39929 kern/command.c, lib/arg.c and commands/extcmd.c.
39930 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39931 (minicmd_mod_SOURCES): New variable.
39932 (minicmd_mod_CFLAGS): Likewise.
39933 (minicmd_mod_LDFLAGS): Likewise.
39934 (extcmd_mod_SOURCES): Likewise.
39935 (extcmd_mod_CFLAGS): Likewise.
39936 (extcmd_mod_LDFLAGS): Likewise.
39937 (boot_mod_SOURCES): Removed.
39938 (boot_mod_CFLAGS): Likewise.
39939 (boot_mod_LDFLAGS): Likewise.
39940
39941 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39942 kern/corecmd.c.
39943 (kernel_img_HEADERS): Add command.h.
39944 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39945 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39946 and lib/arg.c.
39947 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39948 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39949 remove the corresponding normal mode command.
39950 (normal_mod_SOURCES): Remove normal/arg.c.
39951 * conf/i386-coreboot.rmk: Likewise.
39952 * conf/i386-efi.rmk: Likewise.
39953 * conf/i386-ieee1275.rmk: Likewise.
39954 * conf/powerpc-ieee1275.rmk: Likewise.
39955 * conf/x86_64-efi.rmk: Likewise.
39956
39957 * include/grub/arg.h: Move from here ...
39958 * include/grub/lib/arg.h: ... to here.
39959
39960 * normal/arg.c: Move from here ...
39961 * lib/arg.c: ... to here.
39962
39963 * commands/extcmd.c: New file.
39964 * commands/minicmd.c: Likewise.
39965 * include/grub/command.h: Likewise.
39966 * include/grub/extcmd.h: Likewise.
39967 * kern/command.c: Likewise.
39968 * kern/corecmd.c: Likewise.
39969
39970 * kern/list.c (grub_list_iterate): Return int instead of void.
39971 (grub_list_insert): New function.
39972 (grub_prio_list_insert): Likewise.
39973
39974 * kern/rescue.c (grub_rescue_command): Removed.
39975 (grub_rescue_command_list): Likewise.
39976 (grub_rescue_register_command): Likewise.
39977 (grub_rescue_unregister_command): Likewise.
39978 (grub_rescue_cmd_boot): Move to minicmd.c
39979 (grub_rescue_cmd_help): Likewise.
39980 (grub_rescue_cmd_info): Likewise.
39981 (grub_rescue_cmd_boot): Likewise.
39982 (grub_rescue_cmd_testload): Likewise.
39983 (grub_rescue_cmd_dump): Likewise.
39984 (grub_rescue_cmd_rmmod): Likewise.
39985 (grub_rescue_cmd_lsmod): Likewise.
39986 (grub_rescue_cmd_exit): Likewise.
39987 (grub_rescue_print_devices): Moved to corecmd.c.
39988 (grub_rescue_print_files): Likewise.
39989 (grub_rescue_cmd_ls): Likewise.
39990 (grub_rescue_cmd_insmod): Likewise.
39991 (grub_rescue_cmd_set): Likewise.
39992 (grub_rescue_cmd_unset): Likewise.
39993 (attempt_normal_mode): Use grub_command_find to get normal module.
39994 (grub_enter_rescue_mode): Use grub_register_core_commands to register
39995 commands, remove grub_rescue_register_command calls.
39996
39997 * normal/command.c (grub_register_command): Removed.
39998 (grub_unregister_command): Likewise.
39999 (grub_command_find): Likewise.
40000 (grub_iterate_commands): Likewise.
40001 (rescue_command): Likewise.
40002 (export_command): Moved to corecmd.c.
40003 (set_command): Removed.
40004 (unset_command): Likewise.
40005 (insmod_command): Likewise.
40006 (rmmod_command): Likewise.
40007 (lsmod_command): Likewise.
40008 (grub_command_init): Likewise.
40009
40010 * normal/completion.c (iterate_command): Use cmd->prio to check for
40011 active command.
40012 (complete_arguments): Use grub_extcmd_t structure to find options.
40013 (grub_normal_do_completion): Change function grub_iterate_commands to
40014 grub_command_iterate.
40015
40016 * normal/execute.c (grub_script_execute_cmd): No need to parse
40017 argument here.
40018
40019 * normal/main.c (grub_dyncmd_dispatcher): New function.
40020 (read_command_list): Register unload commands as dyncmd.
40021 (grub_cmd_normal): Use new command interface, register rescue,
40022 unregister normal at entry, register normal, unregister rescue at exit.
40023
40024 * include/grub/list.h (grub_list_test_t): New type.
40025 (grub_list_iterate): Return int instead of void.
40026 (grub_list_insert): New function.
40027 (GRUB_AS_NAMED_LIST_P): New macro.
40028 (GRUB_AS_PRIO_LIST): Likewise.
40029 (GRUB_AS_PRIO_LIST_P): Likewise.
40030 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40031 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40032 (grub_prio_list): New structure.
40033 (grub_prio_list_insert): New function.
40034 (grub_prio_list_remove): New inline function.
40035
40036 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40037 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40038 (GRUB_COMMAND_FLAG_MENU): Likewise.
40039 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40040 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40041 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40042 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40043 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40044 (grub_command): Likewise.
40045 (grub_register_command): Likewise.
40046 (grub_command_find): Likewise.
40047 (grub_iterate_commands): Likewise.
40048 (grub_command_init): Likewise.
40049 (grub_arg_parse): Likewise.
40050 (grub_arg_show_help): Likewise.
40051
40052 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40053 (grub_rescue_unregister_command): Likewise.
40054
40055 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40056 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40057 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40058
40059 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40060 grub_rescue_cmd_initrd.
40061 * include/grub/i386/loader.h: Likewise.
40062 * include/grub/x86_64/loader.h: Likewise.
40063
40064 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40065
40066 2009-03-21 Bean <bean123ch@gmail.com>
40067
40068 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40069 instead of stat in mingw environment.
40070
40071 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40072
40073 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40074
40075 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40076 AC_CONFIG_LINKS.
40077
40078 2009-03-21 Bean <bean123ch@gmail.com>
40079
40080 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40081 out of range error.
40082
40083 2009-03-18 Michel Dänzer <michel@daenzer.net>
40084
40085 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40086 checking inode flags for EXT4_EXTENTS_FLAG.
40087
40088 2009-03-18 Robert Millan <rmh@aybabtu.com>
40089
40090 * loader/i386/linux.c: Include `<grub/video.h>' and
40091 `<grub/i386/pc/vbe.h>'..
40092 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40093 (grub_linux32_boot): Attempt to configure video settings with
40094 grub_linux_setup_video().
40095 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40096 to avoid grub_console_fini() which would step out of graphical mode
40097 unconditionally.
40098
40099 2009-03-14 Robert Millan <rmh@aybabtu.com>
40100
40101 Fix build on powerpc.
40102 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40103
40104 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40105
40106 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40107 background image command.
40108
40109 2009-03-12 Colin D Bennett <colin@gibibit.com>
40110
40111 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40112 (grub_gfxterm_putchar): Extract pairs of identical calls to
40113 draw_cursor out of conditional blocks.
40114
40115 2009-03-11 Pavel Roskin <proski@gnu.org>
40116
40117 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40118 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40119
40120 2009-03-11 Robert Millan <rmh@aybabtu.com>
40121
40122 * loader/i386/multiboot_elfxx.c
40123 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40124
40125 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40126
40127 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40128 `kern/handler.c'.
40129
40130 2009-03-11 Robert Millan <rmh@aybabtu.com>
40131
40132 * loader/i386/multiboot.c (code_size): New variable.
40133 (grub_multiboot): Define offsets by adding to `code_size' rather
40134 than subtracting from `grub_multiboot_payload_size'. Provide
40135 4-byte alignment to MBI and others by increasing
40136 `boot_loader_name_length' appropriately.
40137
40138 * loader/i386/multiboot_elfxx.c
40139 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40140
40141 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40142
40143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40144 `fs/ext2.c'.
40145
40146 2009-03-08 Robert Millan <rmh@aybabtu.com>
40147
40148 Make loader/i386/linux.c usable on i386-pc again.
40149
40150 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40151 memory to heap.
40152 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40153 `#error' stanza.
40154
40155 2009-03-07 Bean <bean123ch@gmail.com>
40156
40157 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40158 allocation.
40159
40160 2009-03-06 Robert Millan <rmh@aybabtu.com>
40161
40162 Fix display issue on terminals with screen size other than 80x25
40163 (e.g. gfxterm with resolution higher than 640x480).
40164
40165 * normal/main.c (grub_normal_init_page): Display title text in a
40166 position relative to the center of the terminal instead of relying
40167 on a hardcoded offset.
40168
40169 2009-03-04 Robert Millan <rmh@aybabtu.com>
40170
40171 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40172 installed.
40173
40174 * Makefile.in (host_kernel): New variable.
40175 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40176 scripts instead of just the windows one.
40177 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40178
40179 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40180
40181 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40182 `kern/handler.c'.
40183 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40184 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40187 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40189
40190 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40191
40192 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40193 or if there's no space for the disk label and print the partition number on a
40194 invalid magic.
40195
40196 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40197
40198 * util/misc.c: Include <time.h>.
40199 (grub_millisleep): New function.
40200
40201 2009-03-04 Bean <bean123ch@gmail.com>
40202
40203 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40204 another option -mno-red-zone.
40205
40206 * commands/handler.c: Change module description.
40207
40208 * kern/handler.c: Add missing space at the end of description line.
40209
40210 * kern/list.c: Likewise.
40211
40212 2009-03-03 Robert Millan <rmh@aybabtu.com>
40213
40214 Move more components to the relocation area, and fix mbi pointer
40215 handling to use the destination rather than the origin (thanks to
40216 Vladimir Serbinenko for spotting).
40217
40218 * loader/i386/multiboot.c (mbi_dest): New variable.
40219 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40220 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40221 relocation area.
40222
40223 2009-03-01 Bean <bean123ch@gmail.com>
40224
40225 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40226 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40227 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40228 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40229
40230 * loader/i386/efi/linux.c (acpi_guid): New variable.
40231 (acpi_guid): Likewise.
40232 (EBDA_SEG_ADDR): New constant.
40233 (LOW_MEM_ADDR): Likewise.
40234 (FAKE_EBDA_SEG): Likewise.
40235 (fake_bios_data): New function.
40236 (grub_linux_boot): Call fake_bios_data.
40237
40238 2009-03-01 Bean <bean123ch@gmail.com>
40239
40240 * commands/terminal.c: Removed.
40241
40242 * commands/handler.c: New file.
40243
40244 * include/grub/list.h: Likewise.
40245
40246 * include/grub/handler.h: Likewise.
40247
40248 * kern/list.c: Likewise.
40249
40250 * kern/handler.c: Likewise.
40251
40252 * kern/term.h: Include header file <grub/handler.h>.
40253 (grub_term_input): Move next field to the beginning.
40254 (grub_term_output): Likewise.
40255 (grub_term_input_class): New variable.
40256 (grub_term_output_class): Likewise.
40257 (grub_term_register_input): Changed to inline function.
40258 (grub_term_register_output): Likewise.
40259 (grub_term_unregister_input): Likewise.
40260 (grub_term_unregister_output): Likewise.
40261 (grub_term_set_current_input): Likewise.
40262 (grub_term_set_current_output): Likewise.
40263 (grub_term_get_current_input): Likewise.
40264 (grub_term_get_current_output): Likewise.
40265 (grub_term_iterate_input): Removed.
40266 (grub_term_iterate_output): Likewise.
40267
40268 * kern/term.c (grub_term_list_input): Removed.
40269 (grub_term_list_output): Likewise.
40270 (grub_term_input_class): New variable.
40271 (grub_term_output_class): Likewise.
40272 (grub_cur_term_input): Change variable as macro.
40273 (grub_cur_term_output): Likewise.
40274 (grub_term_register_input): Removed.
40275 (grub_term_register_output): Likewise.
40276 (grub_term_unregister_input): Likewise.
40277 (grub_term_unregister_output): Likewise.
40278 (grub_term_set_current_input): Likewise.
40279 (grub_term_set_current_output): Likewise.
40280 (grub_term_iterate_input): Likewise.
40281 (grub_term_iterate_output): Likewise.
40282 (grub_term_get_current_input): Likewise.
40283 (grub_term_get_current_output): Likewise.
40284
40285 * util/grub-editenv.c: Include header file <grub/handler.h>.
40286 (grub_term_get_current_input): Removed.
40287 (grub_term_get_current_output): Likewise.
40288 (grub_term_input_class): New variable.
40289 (grub_term_output_class): Likewise.
40290
40291 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40292 (grub_term_get_current_output): Likewise.
40293 (grub_term_input_class): New variable.
40294 (grub_term_output_class): Likewise.
40295
40296 * util/grub-probe.c (grub_term_get_current_input): Removed.
40297 (grub_term_get_current_output): Likewise.
40298 (grub_term_input_class): New variable.
40299 (grub_term_output_class): Likewise.
40300
40301 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40302 (grub_term_get_current_output): Likewise.
40303 (grub_term_input_class): New variable.
40304 (grub_term_output_class): Likewise.
40305
40306 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40307 (terminal_mod_SOURCES): Likewise.
40308 (terminal_mod_CFLAGS): Likewise.
40309 (terminal_mod_LDFLAGS): Likewise.
40310
40311 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40312 handler.c.
40313 (kernel_img_SOURCES): Add list.c and handler.c.
40314 (kernel_img_HEADERS): Add list.h and handler.h.
40315
40316 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40317 handler.c.
40318 (kernel_mod_SOURCES): Add list.c and handler.c.
40319 (kernel_mod_HEADERS): Add list.h and handler.h.
40320
40321 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40322 handler.c.
40323 (kernel_elf_SOURCES): Add list.c and handler.c.
40324 (kernel_elf_HEADERS): Add list.h and handler.h.
40325
40326 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40327 handler.c.
40328 (kernel_elf_SOURCES): Add list.c and handler.c.
40329 (kernel_elf_HEADERS): Add list.h and handler.h.
40330
40331 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40332 handler.c.
40333 (kernel_mod_SOURCES): Add list.c and handler.c.
40334 (kernel_mod_HEADERS): Add list.h and handler.h.
40335
40336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40337 handler.c.
40338 (kernel_elf_SOURCES): Add list.c and handler.c.
40339 (kernel_elf_HEADERS): Add list.h and handler.h.
40340
40341 2009-02-27 Robert Millan <rmh@aybabtu.com>
40342
40343 Factorize elf32 / elf64 code in Multiboot loader. This will
40344 prevent it from getting out of sync again.
40345
40346 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40347 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40348 grub_multiboot_load_elf64): Move from here ...
40349 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40350 grub_multiboot_load_elf): ... to here (new file).
40351
40352 2009-02-27 Robert Millan <rmh@aybabtu.com>
40353
40354 * util/grub.d/10_linux.in: Rename "single-user mode" to
40355 "recovery mode".
40356
40357 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40358
40359 Don't leak in SCSI code.
40360 * disk/scsi.c (grub_scsi_close): free `scsi'.
40361
40362 2009-02-27 Robert Millan <rmh@aybabtu.com>
40363
40364 * loader/i386/pc/multiboot.c: Move from here ...
40365 * loader/i386/multiboot.c: ... to here. Update all users.
40366
40367 2009-02-27 Robert Millan <rmh@aybabtu.com>
40368
40369 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40370 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40371
40372 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40373
40374 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40375 b-tree.
40376
40377 2009-02-27 Robert Millan <rmh@aybabtu.com>
40378
40379 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40380 `0x' qualifier as 0 when base is specified as parameter).
40381
40382 2009-02-24 Bean <bean123ch@gmail.com>
40383
40384 * configure.ac: Check for -mcmodel=large in x86_64 target.
40385
40386 * include/grub/efi/api.h (efi_call_10): New macro.
40387 (efi_wrap_10): New function.
40388
40389 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40390 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40391 (GRUB_PE32_REL_BASED_LOW): Likewise.
40392 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40393 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40394 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40395 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40396 (GRUB_PE32_REL_BASED_REL): Likewise.
40397 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40398 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40399 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40400
40401 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40402 issue.
40403
40404 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40405 (efi_wrap_10): New function.
40406
40407 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40408
40409 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40410 MB/MBP model (NV chipset).
40411 (devdata_devs): Add devpath_5 to the list.
40412
40413 * load/i386/efi/linux.c (video_base): Remove variable.
40414 (RGB_MASK): New macro.
40415 (RGB_MAGIC): Likewise.
40416 (LINE_MIN): Likewise.
40417 (LINE_MAX): Likewise.
40418 (FBTEST_STEP): Likewise.
40419 (FBTEST_COUNT): Likewise.
40420 (fb_list): New variable.
40421 (grub_find_video_card): Remove function.
40422 (find_framebuf): New function.
40423 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40424 line length.
40425
40426 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40427 problem for x86_64.
40428
40429 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40430
40431 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40432
40433 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40434 coding tool name.
40435
40436 2009-02-22 Robert Millan <rmh@aybabtu.com>
40437
40438 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40439 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40440 in our relocation, instead of using it directly from heap. Also
40441 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40442
40443 2009-02-21 Robert Millan <rmh@aybabtu.com>
40444
40445 Implement USB keyboard support (based on patch by Marco Gerards)
40446
40447 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40448 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40449 (usb_keyboard_mod_LDFLAGS): New variables.
40450
40451 * term/usb_keyboard.c: New file.
40452
40453 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40454
40455 Corrected wrong declaration
40456
40457 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40458
40459 2009-02-14 Christian Franke <franke@computer.org>
40460
40461 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40462 (grub_lspci_iter): Print class code and programming interface byte.
40463
40464 2009-02-14 Christian Franke <franke@computer.org>
40465
40466 * gendistlist.sh: Ignore `.svn' directories.
40467
40468 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40469
40470 * fs/fat.c: Add 2009 to Copyright line.
40471
40472 2009-02-14 Christian Franke <franke@computer.org>
40473
40474 * commands/hdparm.c: New file. Provides `hdparm' command
40475 which sends ATA commands via grub_disk_ata_pass_through ().
40476
40477 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40478
40479 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40480 and <grub/cpu/io.h> to include/grub/ata.h.
40481 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40482 (GRUB_CDROM_SECTOR_SIZE): Remove.
40483 (GRUB_ATA_*): Move to include/grub/ata.h.
40484 (GRUB_ATAPI_*): Likewise.
40485 (enum grub_ata_commands): Likewise.
40486 (enum grub_ata_timeout_milliseconds): Likewise.
40487 (struct grub_ata_device): Likewise.
40488 (grub_ata_regset): Likewise.
40489 (grub_ata_regget): Likewise.
40490 (grub_ata_regset2): Likewise.
40491 (grub_ata_regget2): Likewise.
40492 (grub_ata_check_ready): Likewise.
40493 (grub_ata_wait_not_busy): Remove static, exported in
40494 include/grub/ata.h.
40495 (grub_ata_wait_drq): Likewise.
40496 (grub_ata_pio_read): Likewise.
40497
40498 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40499 function for hdparm.mod.
40500
40501 * include/grub/ata.h: New file, contains declarations from
40502 disk/ata.c.
40503 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40504
40505 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40506 (grub_disk_ata_pass_through): New exported variable.
40507
40508 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40509
40510 2009-02-13 Colin D Bennett <colin@gibibit.com>
40511
40512 Support multiple fallback entries, and provide an API to support
40513 executing default+fallback menu entries. Renamed the `terminal' menu
40514 viewer to `text'.
40515
40516 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40517 variable declaration.
40518 (grub_menu_execute_callback): New structure declaration.
40519 (grub_menu_execute_callback_t): New typedef.
40520 (grub_menu_execute_with_fallback): New function declaration.
40521 (grub_menu_get_entry): Likewise.
40522 (grub_menu_get_timeout): Likewise.
40523 (grub_menu_set_timeout): Likewise.
40524
40525 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40526
40527 * normal/menu.c (grub_wait_after_message): Moved to
40528 `normal/menu_text.c'.
40529 (draw_border): Likewise.
40530 (print_message): Likewise.
40531 (print_entry): Likewise.
40532 (print_entries): Likewise.
40533 (grub_menu_init_page): Likewise.
40534 (get_entry_number): Likewise.
40535 (print_timeout): Likewise.
40536 (run_menu): Likewise.
40537 (grub_menu_execute_entry): Likewise.
40538 (show_text_menu): Likewise.
40539 (get_and_remove_first_entry_number): New function.
40540 (grub_menu_execute_with_fallback): Likewise.
40541 (get_entry): Renamed to ...
40542 (grub_menu_get_entry): .. this and made it global.
40543 (get_timeout): Renamed to ...
40544 (grub_menu_get_timeout): ... this and made it global.
40545 (set_timeout): Renamed to ...
40546 (grub_menu_set_timeout): ... this and made it global.
40547 (grub_normal_terminal_menu_viewer): Renamed to ...
40548 (grub_normal_text_menu_viewer): ... this.
40549
40550 * normal/menu_text.c: New file. Extracted text-menu-specific code
40551 from normal/menu.c.
40552
40553 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40554 (normal_mod_SOURCES): Likewise.
40555
40556 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40557 (normal_mod_SOURCES): Likewise.
40558
40559 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40560 (normal_mod_SOURCES): Likewise.
40561
40562 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40563 (normal_mod_SOURCES): Likewise.
40564
40565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40566 (normal_mod_SOURCES): Likewise.
40567
40568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40569 (normal_mod_SOURCES): Likewise.
40570
40571 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40572 (normal_mod_SOURCES): Likewise.
40573
40574 2009-02-11 Robert Millan <rmh@aybabtu.com>
40575
40576 * util/grub.d/00_header.in: Update old reference to `font' command.
40577
40578 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40579
40580 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40581
40582 Based on patch from Javier Martín.
40583
40584 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40585
40586 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40587 to avoid false positives with FAT.
40588 (grub_fstest_SOURCES): Likewise.
40589 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40590 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40592 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40593 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40595
40596 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40597
40598 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40599 bpb.version_specific.fat12_or_fat16.fstype and
40600 bpb.version_specific.fat32.fstype.
40601
40602 2009-02-08 Robert Millan <rmh@aybabtu.com>
40603
40604 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40605
40606 2009-02-08 Robert Millan <rmh@aybabtu.com>
40607
40608 * Makefile.in (host_os, host_cpu): New variables.
40609 (target_os): Remove. Update all users.
40610
40611 2009-02-08 Marco Gerards <marco@gnu.org>
40612
40613 * Makefile.in (enable_grub_emu_usb): New variable.
40614 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40615 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40616 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40617 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40618 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40619 `usbtest.mod' and `usbms.mod'.
40620 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40621 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40622 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40623 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40624 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40625 variables.
40626
40627 * disk/usbms.c: New file.
40628
40629 * include/grub/usb.h: Likewise.
40630
40631 * include/grub/usbtrans.h: Likewise.
40632
40633 * include/grub/usbdesc.h: Likewise.
40634
40635 * bus/usb/usbtrans.c: Likewise.
40636
40637 * bus/usb/ohci.c: Likewise.
40638
40639 * bus/usb/uhci.c: Likewise.
40640
40641 * bus/usb/usbhub.c: Likewise.
40642
40643 * bus/usb/usb.c: Likewise.
40644
40645 * commands/usbtest.c: Likewise.
40646
40647 * util/usb.c: Likewise.
40648
40649 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40650
40651 * configure.ac: Test for libusb presence.
40652
40653 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40654
40655 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40656
40657 * kern/mm.c: Add more comments.
40658
40659 2009-02-08 Robert Millan <rmh@aybabtu.com>
40660
40661 Patch from Javier Martín.
40662 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40663 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40664
40665 2009-02-08 Robert Millan <rmh@aybabtu.com>
40666
40667 * fs/cpio.c: Split tar functionality to ...
40668 * fs/tar.c: ... here (new file). Update all users.
40669
40670 2009-02-07 Robert Millan <rmh@aybabtu.com>
40671
40672 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40673 backward-incompatible features.
40674
40675 Based on patch from Javier Martín, with some adjustments.
40676
40677 2009-02-07 Michael Scherer <misc@mandriva.org>
40678
40679 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40680
40681 2009-02-07 Robert Millan <rmh@aybabtu.com>
40682
40683 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40684 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40685 after the RAID stuff.
40686
40687 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40688
40689 Fixes problem when running vbetest command as reported by
40690 Vladimir Serbinenko <phcoder@gmail.com>.
40691
40692 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40693
40694 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40695
40696 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40697 /dev/md/NpN style mdraid devices.
40698
40699 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40700
40701 * util/unifont2pff.rb: Remove.
40702
40703 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40704
40705 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40706 `#'.
40707
40708 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40709
40710 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40711 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40712 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40715 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40716 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40717
40718 2009-02-02 Christian Franke <franke@computer.org>
40719
40720 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40721
40722 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40723
40724 * INSTALL: Note that we now require at least autoconf 2.59 and
40725 that LZO is optional.
40726
40727 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40728
40729 Base on patch on bug #24154 created by Tomas Tintera
40730 <trosos@seznam.cz>.
40731
40732 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40733
40734 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40735
40736 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40737 <bero@arklinux.org>.
40738
40739 * normal/parser.y (script_init): Add missing semicolon.
40740
40741 2009-01-31 Colin D Bennett <colin@gibibit.com>
40742
40743 * normal/main.c: Add include to grub/menu_viewer.h.
40744 (free_menu_entry_classes): Added.
40745 (grub_normal_menu_addentry): Added class property handling.
40746 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40747 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40748
40749 * normal/menu_viewer.c: New file.
40750
40751 * normal/menu.c (run_menu_entry): Renamed to ...
40752 (grub_menu_execute_entry): ... this and made it as global.
40753 (grub_menu_run): Renamed to ...
40754 (show_text_menu): ... this and made it local.
40755 (show_text_menu): Adapt to new function names.
40756 (grub_normal_terminal_menu_viewer): New global variable.
40757
40758 * include/grub/menu.h: New file.
40759
40760 * include/grub/menu_viewer.h: New file.
40761
40762 * include/grub/normal.h: Added include to grub/menu.h.
40763 (grub_menu_entry): Moved to include/grub/menu.h.
40764 (grub_menu_entry_t): Likewise.
40765 (grub_menu): Likewise.
40766 (grub_menu_t): Likewise.
40767 (grub_normal_terminal_menu_viewer): Added.
40768 (grub_menu_execute_entry): Likewise.
40769 (grub_menu_run): Removed.
40770
40771 * DISTLIST: Added include/grub/menu.h.
40772 Added include/grub/menu_viewer.h.
40773 Added normal/menu_viewer.c.
40774
40775 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40776
40777 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40778 arglist for menutitle arguments.
40779
40780 * normal/main.c (grub_normal_menu_addentry): Likewise.
40781
40782 * normal/parser.y (menuentry): Likewise.
40783
40784 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40785
40786 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40787 (grub_script_create_cmdmenu): Likewise.
40788
40789 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
40790
40791 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
40792 changes.
40793
40794 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
40795
40796 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
40797
40798 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
40799
40800 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40801
40802 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40803
40804 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40805
40806 2009-01-30 Christian Franke <franke@computer.org>
40807
40808 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40809 in option help text.
40810
40811 2009-01-27 Pavel Roskin <proski@gnu.org>
40812
40813 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40814
40815 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40816
40817 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40818
40819 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40820
40821 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40822 unregister function.
40823
40824 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40825
40826 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40827
40828 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40829
40830 * util/grub-mkfont.c (usage): Fix typo.
40831
40832 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40833
40834 2009-01-26 Daniel Mierswa <impulze@impulze.org>
40835
40836 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40837
40838 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40839
40840 * kern/misc.c (grub_strcasecmp): New function.
40841 (grub_strcasecmp): Use grub_size_t instead of int for length.
40842 Fix return value.
40843 * include/grub/misc.h: Update function prototypes.
40844
40845 2009-01-26 Robert Millan <rmh@aybabtu.com>
40846
40847 * configure.ac: Fix cross-compilation check.
40848
40849 2009-01-22 Christian Franke <franke@computer.org>
40850
40851 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40852 (precision) digit string. Allow `.format2' without `format1' (width).
40853 Limit input chars for `%s' output to `format2' if specified. This is
40854 compatible with standard printf ().
40855
40856 2009-01-22 Christian Franke <franke@computer.org>
40857
40858 * disk/ata.c (grub_ata_wait_status): Replace by ...
40859 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40860 other status bits may be invalid while BSY is asserted.
40861 (grub_ata_check_ready): New function.
40862 (grub_ata_cmd): Removed.
40863 (grub_ata_wait_drq): New function.
40864 (grub_ata_strncpy): Remove inline.
40865 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40866 and error check now done by grub_ata_wait_drq ().
40867 (grub_ata_pio_write): Likewise.
40868 (grub_atapi_identify): Set DEV before check for !BSY. Use
40869 grub_ata_wait_drq () to wait for data.
40870 (grub_ata_device_initialize): Add status register check to
40871 detect missing SATA slave devices. Add debug messages.
40872 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40873 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40874 transfer loop by grub_ata_pio_write ().
40875 (grub_ata_identify): Set DEV before check for !BSY. Use
40876 grub_ata_wait_drq () to wait for data.
40877 (grub_ata_setaddress): Set DEV before check for !BSY.
40878 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40879 read/write in one loop. Fix invalid command on write. Fix incomplete
40880 command on (size % batch) == 0. Add missing error check after write of
40881 last block. Add debug messages.
40882 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40883
40884 2009-01-19 Christian Franke <franke@computer.org>
40885
40886 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40887 (GRUB_ATAPI_IREASON_*): Likewise.
40888 (grub_ata_pio_write): Fix timeout error return.
40889 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40890 (grub_atapi_wait_drq): New function.
40891 (grub_atapi_packet): New parameter `size'.
40892 Use grub_atapi_wait_drq () and direct write instead of
40893 grub_ata_pio_write ().
40894 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40895 reads the number of bytes requested by the device for each DRQ
40896 assertion.
40897 (grub_atapi_write): Remove old implementation, return not
40898 implemented instead.
40899
40900 2009-01-19 Christian Franke <franke@computer.org>
40901
40902 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40903 of 512 to calculate data size.
40904 (grub_scsi_read12): Likewise.
40905 (grub_scsi_write10): Likewise.
40906 (grub_scsi_write12): Likewise.
40907 (grub_scsi_read): Adjust size according to blocksize.
40908 Add checks for invalid blocksize and unaligned transfer.
40909
40910 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40911
40912 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40913
40914 * term/gfxterm.c (write_char): Fix background rendering for wide
40915 width glyphs.
40916
40917 2009-01-19 Robert Millan <rmh@aybabtu.com>
40918
40919 * config.guess: Update to latest version from config git.
40920 * config.sub: Likewise.
40921
40922 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
40923
40924 * Makefile.in: Change font compilation to use new grub-mkfont instead
40925 of java version.
40926
40927 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40928 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40929 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40930 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40931 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40932 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40933 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40934 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40935 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40936
40937 2009-01-16 Christian Franke <franke@computer.org>
40938
40939 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40940 (enum grub_ata_timeout_milliseconds): New enum.
40941 (grub_ata_wait_status): Add parameter milliseconds.
40942 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40943 recovery from timed-out commands.
40944 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40945 return grub_errno instead of REG_ERROR.
40946 (grub_ata_pio_write): Add parameter milliseconds.
40947 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40948 Pass milliseconds to grub_ata_wait_status () and
40949 grub_ata_pio_read ().
40950 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40951 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40952 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40953 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40954 It is not suitable for device detection, because DEV bit is ignored,
40955 the command may run too long, and not all devices set the signature
40956 properly.
40957 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40958 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40959 Fix device selection, DEV bit must be set first to address the registers
40960 of the correct device.
40961 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40962 grub_ata_pio_read/write ().
40963 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40964 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40965
40966 2009-01-13 Carles Pina i Estany <carles@pina.cat>
40967
40968 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40969
40970 2009-01-13 Bean <bean123ch@gmail.com>
40971
40972 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40973
40974 2009-01-13 Bean <bean123ch@gmail.com>
40975
40976 * Makefile.in: (enable_grub_mkfont): New variable.
40977 (freetype_cflags): Likewise.
40978 (freetype_libs): Likewise.
40979
40980 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40981 (grub_mkfont_SOURCES): New variable.
40982 (grub_mkfont_CFLAGS): Likewise.
40983 (grub_mkfont_LDFLAGS): Likewise.
40984
40985 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40986 library if `--enable-grub-mkfont' is requested.
40987 (enable_grub_mkfont): New variable.
40988 (freetype_cflags): Likewise.
40989 (freetype_libs): Likewise.
40990
40991 * util/grub-mkfont.c: New file.
40992
40993 2009-01-12 Christian Franke <franke@computer.org>
40994
40995 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40996 mode check. Fix setting of compat_use[].
40997
40998 2009-01-10 Robert Millan <rmh@aybabtu.com>
40999
41000 Update a few copyright years which we forgot to do in 2008 (only for
41001 files whose changes made in 2008 were copyright-significant)
41002
41003 * Makefile.in: Add 2008 to Copyright line.
41004 * disk/ieee1275/ofdisk.c: Likewise.
41005 * disk/efi/efidisk.c: Likewise.
41006 * kern/dl.c: Likewise.
41007 * kern/sparc64/ieee1275/init.c: Likewise.
41008 * kern/mm.c: Likewise.
41009 * kern/efi/mm.c: Likewise.
41010 * boot/i386/pc/boot.S: Likewise.
41011 * genfslist.sh: Likewise.
41012 * fs/iso9660.c: Likewise.
41013 * fs/hfs.c: Likewise.
41014 * fs/jfs.c: Likewise.
41015 * fs/minix.c: Likewise.
41016 * fs/ufs.c: Likewise.
41017 * gensymlist.sh.in: Likewise.
41018 * genkernsyms.sh.in: Likewise.
41019 * include/grub/misc.h: Likewise.
41020 * include/grub/types.h: Likewise.
41021 * include/grub/symbol.h: Likewise.
41022 * include/grub/elf.h: Likewise.
41023 * include/grub/kernel.h: Likewise.
41024 * include/grub/disk.h: Likewise.
41025 * include/grub/dl.h: Likewise.
41026 * include/grub/i386/linux.h: Likewise.
41027 * include/grub/i386/pc/biosdisk.h: Likewise.
41028 * include/grub/efi/api.h: Likewise.
41029 * include/grub/efi/pe32.h: Likewise.
41030 * include/grub/util/misc.h: Likewise.
41031 * normal/execute.c: Likewise.
41032 * normal/arg.c: Likewise.
41033 * normal/completion.c: Likewise.
41034 * normal/lexer.c: Likewise.
41035 * normal/parser.y: Likewise.
41036 * normal/misc.c: Likewise.
41037 * commands/i386/pc/vbeinfo.c: Likewise.
41038 * commands/hexdump.c: Likewise.
41039 * commands/terminal.c: Likewise.
41040 * commands/ls.c: Likewise.
41041 * commands/help.c: Likewise.
41042 * partmap/pc.c: Likewise.
41043 * loader/efi/chainloader.c: Likewise.
41044 * loader/multiboot_loader.c: Likewise.
41045 * loader/i386/pc/multiboot2.c: Likewise.
41046 * term/efi/console.c: Likewise.
41047 * term/i386/pc/serial.c: Likewise.
41048 * util/lvm.c: Likewise.
41049 * util/console.c: Likewise.
41050 * util/i386/efi/grub-mkimage.c: Likewise.
41051 * util/raid.c: Likewise.
41052
41053 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41054
41055 * commands/videotest.c: Removed include to grub/machine/memory.h.
41056
41057 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41058 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41059 (video_mod_SOURCES): Removed.
41060 (video_mod_CFLAGS): Likewise.
41061 (video_mod_LDFLAGS): Likewise.
41062 (gfxterm_mod_SOURCES): Likewise.
41063 (gfxterm_mod_CFLAGS): Likewise.
41064 (gfxterm_mod_LDFLAGS): Likewise.
41065 (videotest_mod_SOURCES): Likewise.
41066 (videotest_mod_CFLAGS): Likewise.
41067 (videotest_mod_LDFLAGS): Likewise.
41068 (bitmap_mod_SOURCES): Likewise.
41069 (bitmap_mod_CFLAGS): Likewise.
41070 (bitmap_mod_LDFLAGS): Likewise.
41071 (tga_mod_SOURCES): Likewise.
41072 (tga_mod_CFLAGS): Likewise.
41073 (tga_mod_LDFLAGS): Likewise.
41074 (jpeg_mod_SOURCES): Likewise.
41075 (jpeg_mod_CFLAGS): Likewise.
41076 (jpeg_mod_LDFLAGS): Likewise.
41077 (png_mod_SOURCES): Likewise.
41078 (png_mod_CFLAGS): Likewise.
41079 (png_mod_LDFLAGS): Likewise.
41080
41081 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41082 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41083 (video_mod_SOURCES): Added.
41084 (video_mod_CFLAGS): Likewise.
41085 (video_mod_LDFLAGS): Likewise.
41086 (videotest_mod_SOURCES): Likewise.
41087 (videotest_mod_CFLAGS): Likewise.
41088 (videotest_mod_LDFLAGS): Likewise.
41089 (bitmap_mod_SOURCES): Likewise.
41090 (bitmap_mod_CFLAGS): Likewise.
41091 (bitmap_mod_LDFLAGS): Likewise.
41092 (tga_mod_SOURCES): Likewise.
41093 (tga_mod_CFLAGS): Likewise.
41094 (tga_mod_LDFLAGS): Likewise.
41095 (jpeg_mod_SOURCES): Likewise.
41096 (jpeg_mod_CFLAGS): Likewise.
41097 (jpeg_mod_LDFLAGS): Likewise.
41098 (png_mod_SOURCES): Likewise.
41099 (png_mod_CFLAGS): Likewise.
41100 (png_mod_LDFLAGS): Likewise.
41101 (gfxterm_mod_SOURCES): Likewise.
41102 (gfxterm_mod_CFLAGS): Likewise.
41103 (gfxterm_mod_LDFLAGS): Likewise.
41104
41105 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41106 grub/machine/console.h.
41107
41108 2009-01-04 Jerone Young <jerone@gmail.com>
41109
41110 Make on screen instructions clearer
41111
41112 Based on patch created by Jidanni <jidanni@jidanni.org>
41113
41114 * normal/menu.c: print clearer instructions on the screen
41115
41116 2009-01-02 Colin D Bennett <colin@gibibit.com>
41117
41118 New font engine.
41119
41120 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41121 build system and fixed gfxterm.c to work with different sized fonts.
41122
41123 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41124
41125 * configure: Re-generated.
41126
41127 * DISTLIST: Removed font/manager.c.
41128 Added font/font.c.
41129 Added font/font_cmd.c.
41130
41131 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41132 compilation.
41133
41134 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41135
41136 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41137
41138 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41139
41140 * normal/menu.c: Likewise.
41141
41142 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41143 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41144
41145 * include/grub/font.h: Replaced with new file.
41146
41147 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41148 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41149 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41150 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41151 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41152 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41153 fg_red, fg_green, fg_blue, fg_alpha.
41154 (grub_video_adapter): Removed blit_glyph.
41155 (grub_video_blit_glyph): Removed.
41156
41157 * font/manager.c: Removed file.
41158
41159 * font/font.c: New file.
41160
41161 * font/font_cmd.c: Likewise.
41162
41163 * video/video.c (grub_video_blit_glyph): Removed.
41164
41165 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41166 (grub_video_vbe_map_rgba): Likewise.
41167 (grub_video_vbe_unmap_color_int): Likewise.
41168 (grub_video_vbe_blit_glyph): Removed.
41169 (grub_video_vbe_adapter): Removed blit_glyph.
41170
41171 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41172 (get_pixel): Likewise.
41173 (set_pixel): Likewise.
41174
41175 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41176
41177 * term/gfxterm.c: Adapted to new font engine.
41178
41179 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41180
41181 * term/i386/pc/vga.c: Likewise.
41182
41183 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41184
41185 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41186
41187 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41188
41189 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41190
41191 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41192
41193 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41194
41195 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41196
41197 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41198
41199 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41200
41201 * util/grub.d/00_header.in: Changed to use new loadfont command.
41202
41203 * util/grub-mkconfig_lib.in: Changed font extension.
41204
41205 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41206
41207 * util/getroot.c (grub_util_get_grub_dev): Add support for
41208 /dev/md/dNNpNN style partitionable mdraid devices.
41209
41210 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41211
41212 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41213 at a time limit of the PXE TFTP API correctly.
41214 (grub_pxefs_close): Likewise.
41215
41216 2008-11-29 Robert Millan <rmh@aybabtu.com>
41217
41218 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41219 grub_ata_device_initialize() calls.
41220
41221 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41222
41223 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41224 iteration failed.
41225 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41226
41227 2008-11-28 Robert Millan <rmh@aybabtu.com>
41228
41229 Fix build on powerpc-ieee1275. Based on patch created by
41230 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41231 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41232 `kern/ieee1275/mmap.c'.
41233 * include/grub/powerpc/ieee1275/memory.h: New file.
41234
41235 Provide grub-install on coreboot.
41236 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41237 (grub_install_SOURCES): New variable.
41238 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41239 usable on coreboot.
41240
41241 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41242
41243 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41244 to `grub_term_input_t'.
41245 (grub_term_get_current_output): Change return type to
41246 `grub_term_output_t'.
41247
41248 2008-11-22 Robert Millan <rmh@aybabtu.com>
41249
41250 Fix breakage on coreboot due to declaration mismatch.
41251 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41252 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41253 grub_vga_text_cls().
41254
41255 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41256 comments. Avoid copying one more byte than necessary (just in case).
41257
41258 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41259 to 0x200000 (avoids trouble with some OFW implementations, and matches
41260 with the one in Yaboot).
41261 Reported by Manoel Abranches
41262
41263 2008-11-20 Robert Millan <rmh@aybabtu.com>
41264
41265 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41266 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41267
41268 * util/grub-mkconfig_lib.in (grub_warn): New function.
41269 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41270 warnings, to obtain consistent formatting.
41271 * util/grub.d/00_header.in: Likewise.
41272 * util/update-grub_lib.in: Likewise.
41273
41274 * loader/i386/linux.c (allocate_pages): Fix a warning.
41275 Move comment text to `#error' stanza.
41276
41277 Harmonize ieee1275's grub_available_iterate() with the generic
41278 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41279 build problem on i386-ieee1275):
41280 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41281 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41282 parameter `type'. Update all users of this function.
41283 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41284 `kern/ieee1275/mmap.c'.
41285 * kern/ieee1275/init.c
41286 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41287 with ...
41288 (grub_machine_mmap_iterate): ... this.
41289 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41290 return type to `grub_err_t'. Update all implementations of this
41291 function prototype.
41292 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41293 Likewise.
41294
41295 Add `lsmmap' command (lists firmware-provided memory map):
41296 * commands/lsmmap.c: New file.
41297 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41298 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41299 variables.
41300 * conf/powerpc-ieee1275.rmk: Likewise.
41301 * conf/i386-coreboot.rmk: Likewise.
41302 * conf/i386-ieee1275.rmk: Likewise.
41303
41304 2008-11-19 Robert Millan <rmh@aybabtu.com>
41305
41306 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41307 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41308 constraints to initrd allocation (based on code from
41309 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41310 for Linux to find it.
41311
41312 2008-11-14 Robert Millan <rmh@aybabtu.com>
41313
41314 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41315 order to cope with duplicate slashes.
41316
41317 2008-11-14 Robert Millan <rmh@aybabtu.com>
41318
41319 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41320 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41321 don't want to mess with lower memory, because it is used in the Linux
41322 loader.
41323
41324 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41325 an appropriate place in lower memory, between 0x10000 and 0x90000,
41326 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41327 is in our heap (probably as a result of it being corrupted during
41328 decompression). Add #error instance with comment to explain why this
41329 loader isn't currently usable on PC/BIOS.
41330
41331 2008-11-14 Robert Millan <rmh@aybabtu.com>
41332
41333 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41334 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41335
41336 2008-11-12 Robert Millan <rmh@aybabtu.com>
41337
41338 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41339
41340 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41341 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41342 from here ...
41343 * include/grub/i386/pc/memory.h: ... to here.
41344
41345 2008-11-12 Robert Millan <rmh@aybabtu.com>
41346
41347 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41348 split).
41349
41350 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41351 (grub_console_cur_color, grub_console_real_putchar)
41352 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41353 (grub_console_setcolorstate, grub_console_setcolor)
41354 (grub_console_getcolor): Move from here ...
41355 * include/grub/i386/vga_common.h: ... to here (new file).
41356
41357 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41358 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41359 `<grub/i386/io.h>'.
41360 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41361 `<grub/i386/vga_common.h>'.
41362
41363 2008-11-12 Robert Millan <rmh@aybabtu.com>
41364
41365 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41366 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41367 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41368 variables.
41369 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41370 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41371
41372 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41373 grub_console_init() with call to grub_vga_text_init().
41374 (grub_machine_fini): Replace call to
41375 grub_console_fini() with call to grub_vga_text_fini() and
41376 grub_at_keyboard_fini().
41377
41378 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41379 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41380 (grub_console_setcolorstate, grub_console_setcolor)
41381 (grub_console_getcolor): New function prototypes.
41382
41383 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41384 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41385 (grub_vga_text_setcursor): Static-ize.
41386 (grub_vga_text_term): New structure.
41387 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41388
41389 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41390 (grub_console_cur_color, grub_console_standard_color)
41391 (grub_console_normal_color, grub_console_highlight_color)
41392 (map_char, grub_console_putchar, grub_console_getcharwidth)
41393 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41394 (grub_console_getcolor): Move from here ...
41395 * term/i386/vga_common.c: ... to here (same function names).
41396
41397 2008-11-12 Robert Millan <rmh@aybabtu.com>
41398
41399 Use newly-added Multiboot support in coreboot.
41400
41401 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41402 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41403
41404 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41405 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41406 (codestart): Store the MBI in `startup_multiboot_info' when we're
41407 being loaded using Multiboot.
41408
41409 * kern/i386/coreboot/init.c (grub_machine_init): Move
41410 grub_at_keyboard_init() call to beginning of function (useful for
41411 debugging). Call grub_machine_mmap_init() before attempting to use
41412 grub_machine_mmap_iterate().
41413 (grub_lower_mem, grub_upper_mem): Move from here ...
41414 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41415 here (new file).
41416
41417 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41418 function prototype.
41419
41420 2008-11-12 Robert Millan <rmh@aybabtu.com>
41421
41422 Fix a regression introduced by the at_keyboard.mod split. Because
41423 some terminals are default on some platforms and non-default on
41424 others, the first terminal being registered determines which is
41425 going to be default.
41426
41427 * kern/term.c (grub_term_register_input): If this is the first
41428 terminal being registered, set it as the current one.
41429 (grub_term_register_output): Likewise.
41430
41431 * term/efi/console.c (grub_console_init): Do not call
41432 grub_term_set_current_output() or grub_term_set_current_input().
41433 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41434 * term/i386/pc/console.c (grub_console_init): Likewise.
41435 (grub_console_fini): Do not call grub_term_set_current_input()
41436 (but leave grub_term_set_current_output() to restore text mode).
41437
41438 2008-11-10 Robert Millan <rmh@aybabtu.com>
41439
41440 * util/grub.d/00_header.in: Add backward compatibility check for
41441 versions of terminal.mod that don't understand `terminal_input' or
41442 `terminal_output'.
41443
41444 2008-11-09 Robert Millan <rmh@aybabtu.com>
41445
41446 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41447 `terminal_input' / `terminal_output', not `terminal'.
41448
41449 2008-11-08 Robert Millan <rmh@aybabtu.com>
41450
41451 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41452 (DISTCLEANFILES): Add `build_env.mk'.
41453
41454 2008-11-08 Robert Millan <rmh@aybabtu.com>
41455
41456 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41457 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41458 members. Update all users.
41459 * util/console.c (grub_ncurses_term): Split in ...
41460 (grub_ncurses_term_input): ... this, and ...
41461 (grub_ncurses_term_output): ... this. Update all users.
41462 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41463
41464 2008-11-08 Robert Millan <rmh@aybabtu.com>
41465
41466 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41467 (PKGDATA): Add $(pkgdata_SRCDIR).
41468 (pkglib_BUILDDIR): New variable.
41469 (pkgdata_SRCDIR): New variable.
41470 (build_env.mk): New target.
41471 (include_DATA): New variable.
41472 (install-local): Install $(include_DATA) files in $(includedir).
41473
41474 2008-11-07 Pavel Roskin <proski@gnu.org>
41475
41476 * gendistlist.sh: Use C locale for sorting to ensure consistent
41477 output on all systems.
41478
41479 * util/grub.d/00_header.in: Remove incorrect space before
41480 "serial".
41481
41482 2008-11-07 Robert Millan <rmh@aybabtu.com>
41483
41484 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41485 per specification.
41486 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41487 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41488 (based on find_multi_boot1_header).
41489 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41490 using find_multi_boot2_header(), and abort if neither Multiboot or
41491 Multiboot headers were found.
41492
41493 2008-11-07 Robert Millan <rmh@aybabtu.com>
41494
41495 Modularize at_keyboard.mod:
41496
41497 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41498 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41499 (at_keyboard_mod_LDFLAGS): New variables.
41500
41501 Actual terminal split:
41502
41503 * include/grub/term.h (struct grub_term): Split in ...
41504 (struct grub_term_input): ... this, and ...
41505 (struct grub_term_output): ... this. Update all users.
41506 (grub_term_set_current): Split in ...
41507 (grub_term_set_current_input): ... this, and ...
41508 (grub_term_set_current_output): ... this.
41509 (grub_term_get_current): Split in ...
41510 (grub_term_get_current_input): ... this, and ...
41511 (grub_term_get_current_output): ... this.
41512 (grub_term_register): Split in ...
41513 (grub_term_register_input): ... this, and ...
41514 (grub_term_register_output): ... this.
41515 (grub_term_unregister): Split in ...
41516 (grub_term_unregister_input): ... this, and ...
41517 (grub_term_unregister_output): ... this.
41518 (grub_term_iterate): Split in ...
41519 (grub_term_iterate_input): ... this, and ...
41520 (grub_term_iterate_output): ... this.
41521
41522 * kern/term.c (grub_term_list): Split in ...
41523 (grub_term_list_input): ... this, and ...
41524 (grub_term_list_output): ... this. Update all users.
41525 (grub_cur_term): Split in ...
41526 (grub_cur_term_input): ... this, and ...
41527 (grub_cur_term_output): ... this. Update all users.
41528 (grub_term_set_current): Split in ...
41529 (grub_term_set_current_input): ... this, and ...
41530 (grub_term_set_current_output): ... this.
41531 (grub_term_get_current): Split in ...
41532 (grub_term_get_current_input): ... this, and ...
41533 (grub_term_get_current_output): ... this.
41534 (grub_term_register): Split in ...
41535 (grub_term_register_input): ... this, and ...
41536 (grub_term_register_output): ... this.
41537 (grub_term_unregister): Split in ...
41538 (grub_term_unregister_input): ... this, and ...
41539 (grub_term_unregister_output): ... this.
41540 (grub_term_iterate): Split in ...
41541 (grub_term_iterate_input): ... this, and ...
41542 (grub_term_iterate_output): ... this.
41543
41544 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41545 a check for input and one for output (and only attempt to get keys
41546 from user when input works).
41547
41548 * util/grub-probe.c (grub_term_get_current): Split in ...
41549 (grub_term_get_current_input): ... this, and ...
41550 (grub_term_get_current_output): ... this.
41551 * util/grub-fstest.c: Likewise.
41552 * util/i386/pc/grub-setup.c: Likewise.
41553 * util/grub-editenv.c: Likewise.
41554
41555 Portability adjustments:
41556
41557 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41558 `term/i386/pc/at_keyboard.c'.
41559 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41560 grub_keyboard_controller_init() (now handled by terminal .init).
41561 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41562 grub_at_keyboard_init().
41563 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41564 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41565 at_keyboard.mod via input terminal interface).
41566 * include/grub/i386/coreboot/console.h: Convert into a stub for
41567 `<grub/i386/pc/console.h>'.
41568
41569 Migrate full terminals to new API:
41570
41571 * term/efi/console.c (grub_console_term): Split into ...
41572 (grub_console_term_input): ... this, and ...
41573 (grub_console_term_output): ... this. Update all users.
41574 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41575 (grub_ofconsole_init): Split into ...
41576 (grub_ofconsole_init_input): ... this, and ...
41577 (grub_ofconsole_init_output): ... this.
41578 (grub_ofconsole_term): Split into ...
41579 (grub_ofconsole_term_input): ... this, and ...
41580 (grub_ofconsole_term_output): ... this. Update all users.
41581 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41582 (grub_serial_term_input): ... this, and ...
41583 (grub_serial_term_output): ... this. Update all users.
41584 * term/i386/pc/console.c (grub_console_term): Split into ...
41585 (grub_console_term_input): ... this, and ...
41586 (grub_console_term_output): ... this. Update all users.
41587 (grub_console_term_input): Only enable it on PC/BIOS platform.
41588 (grub_console_init): Remove grub_keyboard_controller_init() call.
41589
41590 Migrate input terminals to new API:
41591
41592 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41593 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41594 i386-specific anyway).
41595 (grub_console_checkkey): Rename to ...
41596 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41597 users.
41598 (grub_keyboard_controller_orig): New variable.
41599 (grub_console_getkey): Rename to ...
41600 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41601 users.
41602 (grub_keyboard_controller_init): Static-ize. Save original
41603 controller value so that it can be restored ...
41604 (grub_keyboard_controller_fini): ... here (new function).
41605 (grub_at_keyboard_term): New structure.
41606 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41607 functions.
41608
41609 Migrate output terminals to new API:
41610
41611 * term/i386/pc/vga.c (grub_vga_term): Change type to
41612 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41613 members. Update all users.
41614 * term/gfxterm.c (grub_video_term): Change type to
41615 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41616 members. Update all users.
41617 * include/grub/i386/pc/console.h (grub_console_checkkey)
41618 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41619 etc).
41620
41621 Migrate `terminal' command and userland tools to new API:
41622
41623 * commands/terminal.c (grub_cmd_terminal): Split into ...
41624 (grub_cmd_terminal_input): ... this, and ...
41625 (grub_cmd_terminal_output): ... this.
41626 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41627 `terminal_input' and `terminal_output'.
41628 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41629 `terminal_input' / `terminal_output' API.
41630 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41631 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41632 provided ${GRUB_TERMINAL}, convert it).
41633
41634 2008-11-04 Robert Millan <rmh@aybabtu.com>
41635
41636 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41637 for FreeBSD.
41638 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41639
41640 2008-11-03 Bean <bean123ch@gmail.com>
41641
41642 * kern/elf.c (grub_elf32_load): Revert to previous code.
41643 (grub_elf64_load): Likewise.
41644
41645 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41646
41647 2008-11-01 Robert Millan <rmh@aybabtu.com>
41648
41649 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41650 (TARGET_CPPFLAGS): Likewise.
41651 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41652
41653 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41654
41655 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41656
41657 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41658
41659 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41660 addition of objects until the code is not going to be able to fail.
41661
41662 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41663
41664 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41665 (add a missing NULL check, and correct them by moving the pointer
41666 operations after the actual check).
41667
41668 2008-10-29 Robert Millan <rmh@aybabtu.com>
41669
41670 * util/i386/pc/grub-install.in: Handle empty string as output from
41671 make_system_path_relative_to_its_root().
41672
41673 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41674
41675 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41676 circular metadata worst case scenario. If the metadata is circular
41677 then copy the wrap in place.
41678 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41679 project lib/format_text/layout.h
41680 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41681
41682 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41683
41684 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41685
41686 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41687
41688 * util/update-grub_lib.in: Mention filename in warning message.
41689
41690 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41691
41692 * NEWS: Update for rename of update-grub to grub-mkconfig.
41693
41694 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41695
41696 * util/update-grub_lib.in: Copy to ...
41697 * util/grub-mkconfig_lib.in: ... this. Update all users.
41698 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41699 * util/update-grub.in: Rename to ...
41700 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41701 option. Add `--output' option to allow users to specify the generated
41702 configuration file. Default to stdout.
41703 (update_grub_dir): Rename to ...
41704 (grub_mkconfig_dir): ... this.
41705 (grub_cfg): Default to an empty string.
41706 * conf/common.rmk (update-grub): Rename to ...
41707 (grub-mkconfig): ... this.
41708 (update-grub_lib): Copy to ...
41709 (grub-mkconfig_lib): ... this.
41710 (update-grub_SCRIPTS): Copy to ...
41711 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41712 (update-grub_DATA): Rename to ...
41713 (grub-mkconfig_DATA): ... this.
41714
41715 2008-09-28 Robert Millan <rmh@aybabtu.com>
41716
41717 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41718 to `modified'. Add the real `created' field.
41719 (grub_iso9660_uuid): Use `modified' rather than `created' for
41720 constructing the UUID.
41721
41722 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41723
41724 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41725 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41726
41727 2008-09-28 Bean <bean123ch@gmail.com>
41728
41729 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41730 Thanks to Christian Franke for finding this bug.
41731
41732 2008-09-25 Robert Millan <rmh@aybabtu.com>
41733
41734 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41735 instances of grub_util_get_disk_name() (see previous commit).
41736
41737 2008-09-25 Robert Millan <rmh@aybabtu.com>
41738
41739 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41740 `util/i386/get_disk_name.c'.
41741 * conf/i386-efi.rmk: Likewise.
41742 * conf/x86_64-efi.rmk: Likewise.
41743 * conf/i386-coreboot.rmk: Likewise.
41744 * conf/i386-ieee1275.rmk: Likewise.
41745 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41746 `util/ieee1275/get_disk_name.c'.
41747 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41748 * util/ieee1275/get_disk_name.c: Remove file.
41749 * util/i386/get_disk_name.c: Remove file.
41750 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41751 "hd%d" for device.map entries, rather than using
41752 grub_util_get_disk_name().
41753
41754 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41755
41756 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41757 warning.
41758 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41759
41760 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41761
41762 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41763 Changed to 0x5100.
41764 (GRUB_TERM_PPAGE): Changed to 0x4900.
41765
41766 2008-09-24 Robert Millan <rmh@aybabtu.com>
41767
41768 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41769 macros (they were i386-pc specific).
41770 * include/grub/sparc64/ieee1275/console.h: Likewise.
41771 * include/grub/efi/console.h: Likewise.
41772
41773 2008-09-22 Bean <bean123ch@gmail.com>
41774
41775 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41776 resident and in attribute list.
41777
41778 * include/grub/ntfs.h (BMP_LEN): Removed.
41779
41780 2008-09-22 Bean <bean123ch@gmail.com>
41781
41782 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
41783 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41784
41785 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41786 error occurs, as grub_disk_open will call grub_disk_close, which will
41787 call p->close (scsi).
41788
41789 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41790
41791 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
41792 (AC_PREREQ): Bumped to 2.59.
41793 (AC_TRY_COMPILE): Replace obsolete macro with ...
41794 (AC_COMPILE_IFELSE): ... this.
41795 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
41796 (AC_LINK_IFELSE): ... this.
41797
41798 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41799
41800 * autogen.sh: Add a call to `gendistlist.sh'.
41801
41802 2008-09-19 Christian Franke <franke@computer.org>
41803
41804 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41805 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41806 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41807 Export __enable_execute_stack() to modules.
41808 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41809 New function.
41810
41811 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41812
41813 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41814 Sort the list.
41815
41816 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41817
41818 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
41819 #include <grub/util/hostdisk.h>.
41820
41821 2008-09-08 Robert Millan <rmh@aybabtu.com>
41822
41823 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41824 segments when their filesz is zero (grub_file_read() interprets
41825 zero-size as "read until EOF", which results in memory corruption).
41826 Use `lowest_segment' rather than 0 for calculating the current
41827 segment load address.
41828
41829 2008-09-08 Robert Millan <rmh@aybabtu.com>
41830
41831 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41832 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41833 clobbered useful information.
41834
41835 2008-09-08 Robert Millan <rmh@aybabtu.com>
41836
41837 * include/grub/util/biosdisk.h: Move to ...
41838 * include/grub/util/hostdisk.h: ... here. Update all users.
41839 * util/biosdisk.c: Move to ...
41840 * util/hostdisk.c: ... here. Update all users.
41841
41842 2008-09-07 Robert Millan <rmh@aybabtu.com>
41843
41844 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41845 variables.
41846 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41847 and length can be stored directly in the `mbi->mmap_addr' and
41848 `mbi->mmap_length' struct fields.
41849
41850 2008-09-07 Robert Millan <rmh@aybabtu.com>
41851
41852 * conf/i386.rmk: New file. Provides declaration for building
41853 `cpuid.mod'.
41854 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41855 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41856 variables.
41857 Include `conf/i386.mk'.
41858 * conf/i386-efi.rmk: Likewise.
41859 * conf/x86_64-efi.rmk: Likewise.
41860 * conf/i386-coreboot.rmk: Likewise.
41861 * conf/i386-ieee1275.rmk: Likewise.
41862
41863 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41864
41865 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41866 Adds optimization support for BGR based modes.
41867
41868 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41869 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41870 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41871 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41872 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41873 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41874 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41875 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41876 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41877 (grub_video_i386_vbeblit_index_index): Likewise.
41878 (grub_video_i386_vbeblit_replace_directN): Added.
41879 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41880 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41881 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41882 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41883 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41884 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41885 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41886 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41887 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41888 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41889 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41890 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41891 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41892
41893 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41894 (grub_video_i386_vbefill_R8G8B8): Likewise.
41895 (grub_video_i386_vbefill_index): Likewise.
41896 (grub_video_i386_vbefill_direct32): Added.
41897 (grub_video_i386_vbefill_direct24): Likewise.
41898 (grub_video_i386_vbefill_direct16): Likewise.
41899 (grub_video_i386_vbefill_direct8): Likewise.
41900
41901 * include/grub/video.h (grub_video_blit_format): Removed
41902 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41903 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41904 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41905 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41906 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
41907
41908 * video/video.c (grub_video_get_blit_format): Updated to use new
41909 blit formats. Added handling for 16 bit color modes.
41910
41911 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
41912 fillers.
41913 (common_blitter): Updated to use new blitters.
41914
41915 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41916 Removed.
41917 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41918 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41919 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41920 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41921 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41922 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41923 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41924 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41925 (grub_video_i386_vbeblit_index_index): Likewise.
41926 (grub_video_i386_vbeblit_replace_directN): Added.
41927 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41928 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41929 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41930 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41931 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41932 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41933 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41934 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41935 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41936 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41937 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41938 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41939 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41940
41941 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41942 (grub_video_i386_vbefill_R8G8B8): Likewise.
41943 (grub_video_i386_vbefill_index): Likewise.
41944 (grub_video_i386_vbefill_direct32): Added.
41945 (grub_video_i386_vbefill_direct24): Likewise.
41946 (grub_video_i386_vbefill_direct16): Likewise.
41947 (grub_video_i386_vbefill_direct8): Likewise.
41948
41949 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41950 types.
41951
41952 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41953 types.
41954
41955 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41956 blitter types.
41957
41958 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41959 types.
41960
41961 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41962
41963 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41964 RAID level 1.
41965
41966 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41967
41968 * fs/iso9660.c (grub_iso9660_date): New structure.
41969 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41970 (grub_iso9660_uuid): New function.
41971
41972 2008-09-05 Bean <bean123ch@gmail.com>
41973
41974 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41975
41976 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41977 insensitive bit for names in Win32 and Win32 & DOS namespace.
41978
41979 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41980
41981 * include/grub/types.h (LONG_MAX): Likewise.
41982
41983 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41984
41985 * util/getroot.c: Include <config.h>.
41986 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41987 add support for /dev/md/N devices and handle LVM double dash escaping.
41988
41989 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41990
41991 * config.guess: Update to latest version from config git.
41992 * config.sub: Likewise.
41993
41994 2008-09-03 Robert Millan <rmh@aybabtu.com>
41995
41996 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41997 `disk->total_sectors'.
41998
41999 2008-09-01 Colin D Bennett <colin@gibibit.com>
42000
42001 * include/grub/normal.h: Fixed incorrect comment for
42002 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42003
42004 2008-09-01 Colin D Bennett <colin@gibibit.com>
42005
42006 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42007 values with defines.
42008
42009 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42010 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42011 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42012 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42013 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42014 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42015 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42016 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42017 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42018 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42019 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42020 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42021 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42022 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42023 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42024 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42025 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42026 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42027 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42028
42029 2008-08-31 Robert Millan <rmh@aybabtu.com>
42030
42031 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42032 declaration.
42033 (grub_multiboot): Fix a few warnings.
42034
42035 2008-08-31 Robert Millan <rmh@aybabtu.com>
42036
42037 * loader/i386/pc/multiboot.c: Update comment not to say that
42038 boot_device support is unimplemented.
42039
42040 2008-08-31 Robert Millan <rmh@aybabtu.com>
42041
42042 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42043 or memory map support are unimplemented.
42044
42045 2008-08-31 Colin D Bennett <colin@gibibit.com>
42046
42047 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42048
42049 2008-08-31 Colin D Bennett <colin@gibibit.com>
42050
42051 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42052 total video memory in 'vbeinfo' output; show color format details for
42053 each video mode.
42054
42055 2008-08-30 Pavel Roskin <proski@gnu.org>
42056
42057 * util/genmoddep.c: Remove for real this time.
42058 * DISTLIST: Remove util/genmoddep.c.
42059
42060 2008-08-30 Robert Millan <rmh@aybabtu.com>
42061
42062 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42063 as required by Multiboot spec (it was already 4-byte aligned, but
42064 only by chance).
42065
42066 2008-08-29 Pavel Roskin <proski@gnu.org>
42067
42068 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42069 * kern/powerpc/ieee1275/startup.S: ... this.
42070 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42071 * DISTLIST: Likewise.
42072
42073 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42074 grub/cpu/kernel.h. Add start label for consistency with other
42075 platforms. Add grub_prefix immediately after start. Add jump
42076 to the code after grub_prefix.
42077 * include/grub/powerpc/kernel.h: Provide valid values for
42078 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42079
42080 2008-08-29 Bean <bean123ch@gmail.com>
42081
42082 * configure.ac: Change host_os to cygwin for mingw.
42083 (asprintf): New check for function.
42084
42085 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42086 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42087
42088 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42089 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42090 sync, sleep and grub_util_get_disk_size for mingw.
42091
42092 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42093 to get size in mingw.
42094 (open_device): Use flag O_BINARY if it's defined.
42095 (find_root_device): Add dummy code for mingw.
42096
42097 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42098 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42099 (get_scsi_disk_name): Return 0 for mingw.
42100
42101 * util/hostfs.c: #include <grub/util/misc.h>.
42102 (grub_hostfs_open): Use "rb" flag to open file, use
42103 grub_util_get_disk_size to get disk size for mingw.
42104
42105 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42106 (asprintf): New function if HAVE_ASPRINTF is not set.
42107 (sync): New function for mingw.
42108 (sleep): Likewise.
42109 (grub_util_get_disk_size): Likewise.
42110
42111 2008-08-28 Pavel Roskin <proski@gnu.org>
42112
42113 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42114 kern/time.c.
42115
42116 2008-08-28 Robert Millan <rmh@aybabtu.com>
42117
42118 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42119
42120 2008-08-28 Robert Millan <rmh@aybabtu.com>
42121
42122 Change find_grub_drive() syntax so it doesn't prevent it from
42123 detecting NULL names as errors.
42124
42125 * util/biosdisk.c (find_grub_drive): Move free slot search code
42126 from here ...
42127 (find_free_slot): ... to here.
42128 (read_device_map): Use find_free_slot() to search for free slots.
42129
42130 2008-08-27 Marco Gerards <marco@gnu.org>
42131
42132 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42133 (scsi_mod_SOURCES): New variable.
42134 (scsi_mod_CFLAGS): Likewise
42135 (scsi_mod_LDFLAGS): Likewise.
42136
42137 * disk/scsi.c: New file.
42138
42139 * include/grub/scsi.h: Likewise.
42140
42141 * include/grub/scsicmd.h: Likewise.
42142
42143 * disk/ata.c: Include <grub/scsi.h>.
42144 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42145 instead.
42146 (grub_ata_iterate): Skip ATAPI devices.
42147 (grub_ata_open): Only handle ATAPI devices.
42148 (struct grub_atapi_read): Removed.
42149 (grub_atapi_readsector): Likewise.
42150 (grub_ata_read): No longer handle ATAPI devices.
42151 (grub_ata_write): Likewise.
42152 (grub_atapi_iterate): New function.
42153 (grub_atapi_read): Likewise.
42154 (grub_atapi_write): Likewise.
42155 (grub_atapi_open): Likewise.
42156 (grub_atapi_close): Likewise.
42157 (grub_atapi_dev): New variable.
42158 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42159 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42160
42161 * include/grub/disk.h (enum grub_disk_dev_id): Add
42162 `GRUB_DISK_DEVICE_SCSI_ID'.
42163
42164 2008-08-26 Robert Millan <rmh@aybabtu.com>
42165
42166 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42167 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42168 descriptive.
42169
42170 2008-08-23 Bean <bean123ch@gmail.com>
42171
42172 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42173 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42174 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42175 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42176 dm_nv.mod.
42177 (raid5rec_mod_SOURCES): New macro.
42178 (raid5rec_mod_CFLAGS): Likewise.
42179 (raid5rec_mod_LDFLAGS): Likewise.
42180 (raid6rec_mod_SOURCES): Likewise.
42181 (raid6rec_mod_CFLAGS): Likewise.
42182 (raid6rec_mod_LDFLAGS): Likewise.
42183 (mdraid_mod_SOURCES): Likewise.
42184 (mdraid_mod_CFLAGS): Likewise.
42185 (mdraid_mod_LDFLAGS): Likewise.
42186 (dm_nv_mod_SOURCES): Likewise.
42187 (dm_nv_mod_CFLAGS): Likewise.
42188 (dm_nv_mod_LDFLAGS): Likewise.
42189
42190 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42191 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42192 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42193
42194 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42195 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42196
42197 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42198
42199 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42200
42201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42202
42203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42204
42205 * disk/raid5_recover.c: New file.
42206
42207 * disk/raid6_recover.c: Likewise.
42208
42209 * disk/mdraid_linux.c: Likewise.
42210
42211 * disk/dmraid_nvidia.c: Likewise.
42212
42213 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42214 ULONG_MAX.
42215
42216 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42217 calculate the size of raid device.
42218 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42219 different layout of raid5.
42220 (grub_raid_scan_device): Remove code specific to mdraid.
42221 (grub_raid_list): New variable.
42222 (free_array): New function.
42223 (grub_raid_register): Likewise.
42224 (grub_raid_unregister): Likewise.
42225 (grub_raid_rescan): Likewise.
42226 (GRUB_MOD_INIT): Don't iterate device here.
42227 (GRUB_MOD_FINI): Use free_array to release resource.
42228
42229 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42230 (grub_raid5_recover_func_t): New function variable type.
42231 (grub_raid6_recover_func_t): Likewise.
42232 (grub_raid5_recover_func): New variable.
42233 (grub_raid6_recover_func): Likewise.
42234 (grub_raid_register): New function.
42235 (grub_raid_unregister): Likewise.
42236 (grub_raid_rescan): Likewise.
42237 (grub_raid_block_xor): Likewise.
42238
42239 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42240 (CMD_CRC): New macro.
42241 (part): Removed.
42242 (read_file): Handle device as well as file.
42243 (cmd_crc): New function.
42244 (fstest): Handle multiple disks.
42245 (options): Remove part, raw and long, add root and diskcount.
42246 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42247 (main): Find the first non option entry and ignore subsequent options,
42248 add handling for the new options, support multiple disks.
42249
42250 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42251
42252 2008-08-23 Bean <bean123ch@gmail.com>
42253
42254 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42255
42256 * genfslist.sh: Ignore kernel.mod.
42257
42258 * genpartmaplist.sh: Likewise.
42259
42260 2008-08-23 Robert Millan <rmh@aybabtu.com>
42261
42262 * util/getroot.c (find_root_device): Skip anything that starts with
42263 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42264
42265 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42266
42267 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42268 * util/grub.d/00_header.in: Allow the administrator to change default
42269 gfxmode via ${GRUB_GFXMODE}.
42270
42271 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42272
42273 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42274
42275 2008-08-21 Robert Millan <rmh@aybabtu.com>
42276
42277 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42278 loader.
42279 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42280 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42281
42282 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42283
42284 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42285 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42286
42287 2008-08-19 Robert Millan <rmh@aybabtu.com>
42288
42289 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42290 (struct grub_virtual_screen): Remove `cursor_color'.
42291 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42292 initialization.
42293 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42294
42295 2008-08-18 Robert Millan <rmh@aybabtu.com>
42296
42297 Unify (identical) linux_normal.c files.
42298 * loader/i386/efi/linux_normal.c: Move from here ...
42299 * loader/linux_normal.c: ... to here. Update all users.
42300 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42301 * loader/i386/ieee1275/linux_normal.c: Likewise.
42302
42303 2008-08-18 Robert Millan <rmh@aybabtu.com>
42304
42305 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42306 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42307 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42308 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42309 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42310 New macros.
42311 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42312 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42313 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42314 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42315 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42316 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42317 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42318 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42319 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42320 portably using grub_getxy().
42321 Replace `-EFI' with `-bzImage' in boot message.
42322
42323 2008-08-17 Robert Millan <rmh@aybabtu.com>
42324
42325 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42326
42327 2008-08-17 Robert Millan <rmh@aybabtu.com>
42328
42329 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42330
42331 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42332 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42333 (grub_machine_mmap_iterate): New function declaration.
42334 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42335 structure.
42336 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42337 macros.
42338
42339 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42340 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42341 Move e820 parsing from here ...
42342 * kern/i386/pc/mmap.c: New file.
42343 (grub_machine_mmap_iterate): ... to here.
42344
42345 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42346 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42347 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42348 (grub_available_iterate): Redeclare to return `void', and redeclare
42349 its hook to use grub_uint64_t as addr and size parameters, and rename
42350 to ...
42351 (grub_machine_mmap_iterate): ... this. Update all users.
42352
42353 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42354 to make it more readable. Rename to ...
42355 (grub_machine_mmap_iterate): ... this.
42356
42357 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42358 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42359 (grub_multiboot): Allocate an extra region after the payload, and fill
42360 it with a Multiboot memory map. Adjust a.out loader to calculate size
42361 with the extra space.
42362 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42363 with the extra space.
42364
42365 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42366
42367 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42368
42369 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42370
42371 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42372 mdate-sh to the list `find' searches for.
42373 * DISTLIST: Regenerated.
42374
42375 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42376
42377 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42378 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42379 genmoddep.awk, gensymlist.sh.in.
42380 (DISTDIRS): Add bus, docs, hook, lib.
42381 * DISTLIST: Regenerated.
42382 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42383
42384 2008-08-16 Robert Millan <rmh@aybabtu.com>
42385
42386 * disk/raid.c (grub_raid_init): Handle/report errors set by
42387 grub_device_iterate().
42388 * disk/lvm.c (grub_lvm_init): Likewise.
42389
42390 2008-08-15 Bean <bean123ch@gmail.com>
42391
42392 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42393 and datehook.mod.
42394 (datetime_mod_SOURCES): New macro.
42395 (datetime_mod_CFLAGS): Likewise.
42396 (datetime_mod_LDFLAGS): Likewise.
42397 (date_mod_SOURCES): Likewise.
42398 (date_mod_CFLAGS): Likewise.
42399 (date_mod_LDFLAGS): Likewise.
42400 (datehook_mod_SOURCES): Likewise.
42401 (datehook_mod_CFLAGS): Likewise.
42402 (datehook_mod_LDFLAGS): Likewise.
42403
42404 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42405 and datehook.mod.
42406 (datetime_mod_SOURCES): New macro.
42407 (datetime_mod_CFLAGS): Likewise.
42408 (datetime_mod_LDFLAGS): Likewise.
42409 (date_mod_SOURCES): Likewise.
42410 (date_mod_CFLAGS): Likewise.
42411 (date_mod_LDFLAGS): Likewise.
42412 (datehook_mod_SOURCES): Likewise.
42413 (datehook_mod_CFLAGS): Likewise.
42414 (datehook_mod_LDFLAGS): Likewise.
42415
42416 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42417 and datehook.mod.
42418 (datetime_mod_SOURCES): New macro.
42419 (datetime_mod_CFLAGS): Likewise.
42420 (datetime_mod_LDFLAGS): Likewise.
42421 (date_mod_SOURCES): Likewise.
42422 (date_mod_CFLAGS): Likewise.
42423 (date_mod_LDFLAGS): Likewise.
42424 (datehook_mod_SOURCES): Likewise.
42425 (datehook_mod_CFLAGS): Likewise.
42426 (datehook_mod_LDFLAGS): Likewise.
42427
42428 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42429 and datehook.mod.
42430 (datetime_mod_SOURCES): New macro.
42431 (datetime_mod_CFLAGS): Likewise.
42432 (datetime_mod_LDFLAGS): Likewise.
42433 (date_mod_SOURCES): Likewise.
42434 (date_mod_CFLAGS): Likewise.
42435 (date_mod_LDFLAGS): Likewise.
42436 (datehook_mod_SOURCES): Likewise.
42437 (datehook_mod_CFLAGS): Likewise.
42438 (datehook_mod_LDFLAGS): Likewise.
42439
42440 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42441 and datehook.mod.
42442 (datetime_mod_SOURCES): New macro.
42443 (datetime_mod_CFLAGS): Likewise.
42444 (datetime_mod_LDFLAGS): Likewise.
42445 (date_mod_SOURCES): Likewise.
42446 (date_mod_CFLAGS): Likewise.
42447 (date_mod_LDFLAGS): Likewise.
42448 (datehook_mod_SOURCES): Likewise.
42449 (datehook_mod_CFLAGS): Likewise.
42450 (datehook_mod_LDFLAGS): Likewise.
42451
42452 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42453
42454 * commands/date.c: New file.
42455
42456 * hook/datehook.c: Likewise.
42457
42458 * include/grub/lib/datetime.h: Likewise.
42459
42460 * include/grub/i386/cmos.h: Likewise.
42461
42462 * lib/datetime.c: Likewise.
42463
42464 * lib/i386/datetime.c: Likewise.
42465
42466 * lib/efi/datetime.c: Likewise.
42467
42468 2008-08-14 Robert Millan <rmh@aybabtu.com>
42469
42470 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42471 (grub_mkelfimage_SOURCES): New variable.
42472 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42473
42474 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42475 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42476 * conf/powerpc-ieee1275.rmk: Likewise.
42477 * conf/i386-ieee1275.rmk: Likewise.
42478
42479 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42480 * kern/i386/coreboot/init.c: Likewise.
42481
42482 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42483 with `<grub/cpu/kernel.h>'.
42484 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42485 to ...
42486 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42487 * kern/i386/coreboot/startup.S: Likewise.
42488
42489 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42490 (GRUB_MOD_GAP): Remove.
42491 * include/grub/powerpc/kernel.h: New file.
42492 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42493 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42494 * include/grub/i386/kernel.h: New file.
42495 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42496 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42497 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42498
42499 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42500 `grub-mkelfimage'.
42501 Use --directory when invoking grub_mkimage.
42502
42503 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42504 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42505 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42506 and GRUB_KERNEL_CPU_PREFIX.
42507
42508 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42509
42510 * include/grub/err.h (grub_err_printf): New function prototype.
42511 * util/misc.c (grub_err_printf): New function.
42512 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42513 grub_printf.
42514 * kern/err.c (grub_print_error): Use grub_err_printf.
42515
42516 2008-08-13 Robert Millan <rmh@aybabtu.com>
42517
42518 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42519
42520 2008-08-13 Robert Millan <rmh@aybabtu.com>
42521
42522 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42523 boot entry.
42524
42525 2008-08-12 Robert Millan <rmh@aybabtu.com>
42526
42527 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42528 of the relocation code from here ...
42529 (grub_multiboot): ... to here.
42530 (forward_relocator, backward_relocator): Move from here ...
42531 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42532 (grub_multiboot_backward_relocator): ... to here.
42533 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42534 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42535 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42536 (grub_multiboot_forward_relocator_end)
42537 (grub_multiboot_backward_relocator)
42538 (grub_multiboot_backward_relocator_end): New variables.
42539
42540 2008-08-12 Bean <bean123ch@gmail.com>
42541
42542 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42543
42544 2008-08-11 Robert Millan <rmh@aybabtu.com>
42545
42546 * kern/i386/linuxbios/startup.S: Move from here ...
42547 * kern/i386/coreboot/startup.S: ... to here.
42548
42549 * kern/i386/linuxbios/init.c: Move from here ...
42550 * kern/i386/coreboot/init.c: ... to here.
42551
42552 * kern/i386/linuxbios/table.c: Move from here ...
42553 * kern/i386/coreboot/mmap.c: ... to here.
42554
42555 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42556
42557 2008-08-11 Robert Millan <rmh@aybabtu.com>
42558
42559 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42560 errors. Leave it to the upper layer to handle them.
42561
42562 2008-08-09 Christian Franke <franke@computer.org>
42563
42564 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42565 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42566 Install `grub.d/10_windows' only on Cygwin.
42567 * configure.ac: Add subst of `target_os'.
42568 Check `target_os' also before setting TARGET_OBJ2ELF.
42569 Add `--enable-grub-pe2elf'.
42570
42571 2008-08-08 Robert Millan <rmh@aybabtu.com>
42572
42573 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42574 (grub_last_time): Change type to grub_uint64_t.
42575 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42576 (grub_disk_close): Likewise.
42577
42578 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42579 (run_menu): Migrate code from to using grub_get_time_ms().
42580
42581 * util/misc.c (grub_get_time_ms): New function.
42582
42583 2008-08-08 Marco Gerards <marco@gnu.org>
42584
42585 * disk/ata.c (grub_ata_regget): Change return type to
42586 `grub_uint8_t'.
42587 (grub_ata_regget2): Likewise.
42588 (grub_ata_wait_status): New function.
42589 (grub_ata_wait_busy): Removed function, updated all users to use
42590 `grub_ata_wait_status'.
42591 (grub_ata_wait_drq): Likewise.
42592 (grub_ata_cmd): New function.
42593 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42594 error handling.
42595 (grub_ata_pio_write): Add error handling.
42596 (grub_atapi_identify): Likewise.
42597 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42598 handling.
42599 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42600 handling. Actually use the detected registers. Reorder the
42601 detection logic such that it is easier to read.
42602 (grub_ata_pciinit): Do not assign the same ID to each controller.
42603 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42604 handling.
42605 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42606
42607 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42608
42609 2008-08-08 Marco Gerards <marco@gnu.org>
42610
42611 * NEWS: Update.
42612
42613 2008-08-07 Bean <bean123ch@gmail.com>
42614
42615 * include/grub/x86_64/pci.h: New file.
42616
42617 2008-08-07 Christian Franke <franke@computer.org>
42618
42619 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42620 (TIMER2_GATE): Likewise.
42621 (grub_pit_wait): Add enable/disable of the timer2 gate
42622 bit of port 0x61. This fixes a possible infinite loop.
42623
42624 2008-08-07 Bean <bean123ch@gmail.com>
42625
42626 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42627 kern/i386/tsc.c and kern/i386/pit.c.
42628
42629 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42630 x86_64 platform.
42631
42632 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42633 <grub/i386/tsc.h>.
42634
42635 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42636
42637 2008-08-07 Bean <bean123ch@gmail.com>
42638
42639 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42640
42641 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42642
42643 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42644 multiple inclusion. Add #include <grub/types.h>.
42645
42646 2008-08-06 Christian Franke <franke@computer.org>
42647
42648 * conf/common.rmk: Build and install `10_windows'.
42649 * util/grub.d/10_windows.in: New script.
42650
42651 2008-08-06 Pavel Roskin <proski@gnu.org>
42652
42653 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42654
42655 2008-08-06 Robert Millan <rmh@aybabtu.com>
42656
42657 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42658 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42659
42660 2008-08-06 Bean <bean123ch@gmail.com>
42661
42662 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42663 (grub_pxefs_fs_int): Remove dummy definition.
42664 (grub_pxefs_open): Use data->block_size to store the current block
42665 size setting.
42666 (grub_pxefs_read): Use block size stored in data->block_size. As the
42667 value of grub_pxe_blksize can be changed after the file is opened.
42668
42669 2008-08-06 Bean <bean123ch@gmail.com>
42670
42671 * fs/i386/pc/pxe.c (curr_file): new variable.
42672 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42673 require the dummy internal file system anymore.
42674 (grub_pxefs_read): Removed.
42675 (grub_pxefs_close): Likewise.
42676 (grub_pxefs_fs_int): Likewise.
42677 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42678 connection when we switch file.
42679 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42680
42681 2008-08-06 Robert Millan <rmh@aybabtu.com>
42682
42683 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42684 `halt.mod'.
42685 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42686 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42687
42688 * kern/i386/halt.c: New file.
42689 * kern/i386/reboot.c: Likewise.
42690 * include/grub/i386/reboot.h: Likewise.
42691 * include/grub/i386/halt.h: Likewise.
42692
42693 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42694 Include `<grub/cpu/halt.h>'.
42695 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42696 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42697
42698 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42699 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42700 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42701 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42702 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42703 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42704 from here ...
42705 * include/grub/i386/at_keyboard.h: ... to here.
42706
42707 2008-08-05 Robert Millan <rmh@aybabtu.com>
42708
42709 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42710 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42711 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42712 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42713 `kern/generic/millisleep.c'.
42714
42715 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42716 instead of grub_get_rtc().
42717 (grub_tsc_init): Initialize `tsc_boot_time'.
42718
42719 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42720 (grub_machine_init): Use grub_tsc_init() rather than
42721 installing an RTC-based handler via grub_install_get_time_ms().
42722
42723 * kern/i386/pit.c: New file.
42724 * include/grub/i386/pit.h: Likewise.
42725
42726 2008-08-05 Bean <bean123ch@gmail.com>
42727
42728 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42729
42730 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42731 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42732 (pxe_mod_SOURCES): New macro.
42733 (pxe_mod_CFLAGS): Likewise.
42734 (pxe_mod_LDFLAGS): Likewise.
42735 (pxecmd_mod_SOURCES): Likewise.
42736 (pxecmd_mod_CFLAGS): Likewise.
42737 (pxecmd_mod_LDFLAGS): Likewise.
42738
42739 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42740 (grub_pxe_call): Likewise.
42741
42742 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42743
42744 * commands/i386/pc/pxecmd.c: New file.
42745
42746 * fs/i386/pc/pxe.c: Likewise.
42747
42748 * include/grub/i386/pc/pxe.h: Likewise.
42749
42750 2008-08-05 Bean <bean123ch@gmail.com>
42751
42752 * util/console.c (grub_console_cur_color): New variable.
42753 (grub_console_standard_color): Likewise.
42754 (grub_console_normal_color): Likewise.
42755 (grub_console_highlight_color): Likewise.
42756 (color_map): Likewise.
42757 (use_color): Likewise.
42758 (NUM_COLORS): New macro.
42759 (grub_ncurses_setcolorstate): Handle color properly.
42760 (grub_ncurses_setcolor): Don't change color here, just remember the
42761 settings, color will be set in grub_ncurses_setcolorstate.
42762 (grub_ncurses_getcolor): New function.
42763 (grub_ncurses_init): Initialize color pairs.
42764 (grub_ncurses_term): New member grub_ncurses_getcolor.
42765
42766 2008-08-05 Colin D Bennett <colin@gibibit.com>
42767
42768 High resolution timer support. Implemented for x86 CPUs using TSC.
42769 Extracted generic grub_millisleep() so it's linked in only as needed.
42770 This requires a Pentium compatible CPU; if the RDTSC instruction is
42771 not supported, then it falls back on the generic grub_get_time_ms()
42772 implementation that uses the machine's RTC.
42773
42774 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42775 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42776 `kern/generic/millisleep.c'.
42777
42778 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42779 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42780
42781 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42782 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42783
42784 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42785
42786 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42787 `kern/generic/millisleep.c'.
42788
42789 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42790
42791 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
42792
42793 * kern/generic/rtc_get_time_ms.c: New file.
42794
42795 * kern/generic/millisleep.c: New file.
42796
42797 * kern/misc.c: Don't include
42798 <kern/time.h> anymore.
42799 (grub_millisleep_generic): Removed.
42800
42801 * commands/sleep.c (grub_interruptible_millisleep): Uses
42802 grub_get_time_ms() instead of grub_get_rtc().
42803
42804 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42805 function.
42806 (grub_cpu_is_cpuid_supported): New inline function.
42807 (grub_cpu_is_tsc_supported): New inline function.
42808 (grub_tsc_init): New function prototype.
42809 (grub_tsc_get_time_ms): New function prototype.
42810
42811 * kern/i386/tsc.c (grub_get_time_ms): New file.
42812
42813 * include/grub/time.h: Include <grub/types.h.
42814 (grub_millisleep_generic): Removed.
42815 (grub_get_time_ms): New prototype.
42816 (grub_install_get_time_ms): New prototype.
42817 (grub_rtc_get_time_ms): New prototype.
42818
42819 * kern/time.c (grub_get_time_ms): New function.
42820 (grub_install_get_time_ms): New function.
42821
42822 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42823 <grub/time.h> anymore.
42824 (grub_millisleep): Removed.
42825 (grub_machine_init): Call grub_tsc_init.
42826
42827 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42828 get_time_ms() implementation.
42829
42830 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42831 (ieee1275_get_time_ms): New function.
42832 (grub_machine_init): Install get_time_ms() implementation.
42833
42834 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42835 (grub_machine_init): Call grub_tsc_init().
42836 (grub_millisleep): Removed.
42837
42838 * kern/ieee1275/init.c (grub_millisleep): Removed.
42839 (grub_machine_init): Install ieee1275_get_time_ms()
42840 implementation.
42841 (ieee1275_get_time_ms): New function.
42842 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42843 real work.
42844
42845 2008-08-05 Marco Gerards <marco@gnu.org>
42846
42847 * disk/ata.c: Include <grub/pci.h>.
42848 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42849 (grub_ata_initialize): Rewritten.
42850 (grub_ata_device_initialize): New function.
42851
42852 2008-08-04 Pavel Roskin <proski@gnu.org>
42853
42854 * kern/main.c: Include grub/mm.h.
42855
42856 2008-08-04 Robert Millan <rmh@aybabtu.com>
42857
42858 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42859 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42860 corruption problem).
42861
42862 2008-08-04 Robert Millan <rmh@aybabtu.com>
42863
42864 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42865 warnings introduced in my last commit.
42866
42867 2008-08-03 Robert Millan <rmh@aybabtu.com>
42868
42869 Make PCI available on all i386 architectures.
42870
42871 * include/grub/i386/pc/pci.h: Move from here ...
42872 * include/grub/i386/pci.h: ... to here.
42873
42874 * include/grub/i386/pc/pci.h: Remove.
42875 * include/grub/i386/efi/pci.h: Remove.
42876 * include/grub/x86_64/efi/pci.h: Remove.
42877
42878 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42879 `<grub/cpu/pci.h>'.
42880
42881 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42882 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42883 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42884
42885 * conf/i386-ieee1275.rmk: Likewise.
42886
42887 2008-08-03 Robert Millan <rmh@aybabtu.com>
42888
42889 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42890 (grub_console_setcursor): Make it possible to set cursor off.
42891
42892 2008-08-03 Robert Millan <rmh@aybabtu.com>
42893
42894 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42895 of modules instead of assuming which platform provides what.
42896 * util/update-grub.in: Likewise.
42897
42898 2008-08-03 Robert Millan <rmh@aybabtu.com>
42899
42900 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42901 instead of `grub_install_dos_part' to determine whether a drive needs
42902 to be prepended to prefix (`grub_install_dos_part' is not reliable,
42903 because it can be overridden when loading GRUB via Multiboot).
42904
42905 2008-08-02 Robert Millan <rmh@aybabtu.com>
42906
42907 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42908
42909 2008-08-02 Robert Millan <rmh@aybabtu.com>
42910
42911 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42912 of informational grub_dprintf() calls.
42913
42914 2008-08-02 Robert Millan <rmh@aybabtu.com>
42915
42916 * disk/memdisk.c (memdisk_size): Don't initialize.
42917 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42918
42919 * include/grub/i386/pc/kernel.h
42920 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42921 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42922 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42923 (grub_arch_memdisk_size): Remove.
42924
42925 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42926 field (was only used to transfer a constant). Add `type' field to
42927 support multiple module types.
42928 (grub_module_iterate): New function.
42929
42930 * kern/device.c (grub_device_open): Do not hide error messages
42931 when grub_disk_open() fails. Use grub_print_error() instead.
42932
42933 * kern/i386/pc/init.c (grub_arch_modules_addr)
42934 (grub_arch_memdisk_size): Remove functions.
42935 (grub_arch_modules_addr): Return the module address in high memory
42936 (now that it isn't copied anymore).
42937
42938 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42939 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42940 decompression routine (grub_total_module_size already includes that
42941 now). Don't copy modules back to low memory.
42942
42943 * kern/main.c: Include `<grub/mm.h>'.
42944 (grub_load_modules): Split out (and use) ...
42945 (grub_module_iterate): ... this function, which iterates through
42946 module objects and runs a hook.
42947 Comment out grub_mm_init_region() call, as it would cause non-ELF
42948 modules to be overwritten.
42949
42950 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42951 the memdisk image in its own region, make it part of the module list.
42952 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42953 (main): Parse --memdisk|-m option, and pass user-provided path as
42954 parameter to generate_image().
42955 (add_segments): Pass `memdisk_path' down to load_modules().
42956 (load_modules): Embed memdisk image in module section when requested.
42957 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42958 `header.type' instead of `header.offset'.
42959
42960 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42961 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42962 (memdisk_mod_LDFLAGS): New variables.
42963 * conf/i386-coreboot.rmk: Likewise.
42964 * conf/i386-ieee1275.rmk: Likewise.
42965
42966 2008-08-02 Robert Millan <rmh@aybabtu.com>
42967
42968 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42969 (backward_relocator): New variables. Used to allocate and relocate
42970 the payload, respectively.
42971 (grub_multiboot_load_elf32): Load into heap instead of requested
42972 address, install the appropriate relocator code in each bound of
42973 the payload, and set the entry point such that
42974 grub_multiboot_real_boot() will jump to one of them.
42975
42976 * kern/i386/loader.S (grub_multiboot_payload_size)
42977 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42978 (grub_multiboot_payload_entry_offset): New variables.
42979 (grub_multiboot_real_boot): Set cpu context to what the relocator
42980 expects, and jump to the relocator instead of the payload.
42981
42982 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42983 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42984 (grub_multiboot_payload_entry_offset): Export.
42985
42986 2008-08-01 Bean <bean123ch@gmail.com>
42987
42988 * normal/menu_entry.c (editor_getline): Don't return the original
42989 string as result, as it will be released by lexer once it has done
42990 using it.
42991
42992 2008-08-01 Robert Millan <rmh@aybabtu.com>
42993
42994 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42995 within menuentries, not before them.
42996 util/grub.d/10_hurd.in: Likewise.
42997
42998 2008-08-01 Bean <bean123ch@gmail.com>
42999
43000 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43001 (bufio_mod_SOURCES): New macro.
43002 (bufio_mod_CFLAGS): Likewise.
43003 (bufio_mod_LDFLAGS): Likewise.
43004
43005 * include/grub/bufio.h: New file.
43006
43007 * io/bufio.c: Likewise.
43008
43009 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43010 (grub_video_reader_png): Use grub_buffile_open to open file.
43011
43012 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43013 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43014
43015 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43016 (grub_video_reader_tga): Use grub_buffile_open to open file.
43017
43018 * font/manager.c: Include <grub/bufio.h>.
43019 (add_font): Use grub_buffile_open to open file.
43020
43021 2008-07-31 Robert Millan <rmh@aybabtu.com>
43022
43023 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43024 ELF segments, use a macro for arbitrarily accessing any of them instead
43025 of preparing a pointer that allows access to one at a time.
43026 (grub_multiboot_load_elf64): Likewise.
43027
43028 2008-07-31 Bean <bean123ch@gmail.com>
43029
43030 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43031 GRUB_KERNEL_MACHINE_DATA_END.
43032
43033 2008-07-30 Robert Millan <rmh@aybabtu.com>
43034
43035 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43036 Increase from 0x50 to 0x60.
43037 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43038 use UUIDs to identify the root drive for them. If that's not
43039 possible, abort.
43040 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43041 check, for cross-disk installs.
43042
43043 2008-07-30 Robert Millan <rmh@aybabtu.com>
43044
43045 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43046 is non-empty, use it to set the `prefix' environment variable instead
43047 of the usual approach.
43048 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43049 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43050 environment variable instead of dummy make_install_device().
43051
43052 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43053 (start): Insert a data section, with `grub_prefix' variable.
43054 * kern/i386/linuxbios/startup.S: Likewise.
43055
43056 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43057 New variable reference.
43058 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43059 New macro. Defines offset of `grub_prefix' within startup.S (relative
43060 to `start').
43061 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43062 section within startup.S (relative to `start').
43063 * include/grub/i386/coreboot/kernel.h: Likewise.
43064
43065 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43066 Overwrite grub_prefix with its contents, at the beginning of the
43067 first segment.
43068 (main): Understand -p|--prefix.
43069
43070 2008-07-30 Robert Millan <rmh@aybabtu.com>
43071
43072 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43073
43074 2008-07-30 Robert Millan <rmh@aybabtu.com>
43075
43076 * term/i386/pc/vga_text.c (grub_console_cls): Use
43077 grub_console_gotoxy() to go back to beginning of the screen.
43078 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43079
43080 2008-07-29 Christian Franke <franke@computer.org>
43081
43082 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43083 Add conversion of emulated mount points on Cygwin.
43084
43085 2008-07-29 Christian Franke <franke@computer.org>
43086
43087 * util/update-grub.in: Add a check for admin
43088 group on Cygwin.
43089 Remove old `grub.cfg.new' before creation.
43090 Add `-f' to `mv' to handle the different filesystem
43091 semantics of Windows.
43092
43093 2008-07-29 Bean <bean123ch@gmail.com>
43094
43095 * normal/main.c (get_line): Fix buffer overflow bug.
43096
43097 2008-07-28 Robert Millan <rmh@aybabtu.com>
43098
43099 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43100 (struct grub_apple_header): New struct. Describes the layout of
43101 the partmap header.
43102 (apple_partition_map_iterate): Check the header magic as well as the
43103 partition magic (which was already being checked).
43104
43105 2008-07-28 Pavel Roskin <proski@gnu.org>
43106
43107 * genmk.rb: Add a warning to the beginning of the output that
43108 it's a generated file and should not be edited.
43109
43110 2008-07-28 Robert Millan <rmh@aybabtu.com>
43111
43112 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43113 with the same number are found, just use issue a warning with
43114 grub_dprintf(), as this error has been reported to be non-fatal.
43115
43116 2008-07-27 Robert Millan <rmh@aybabtu.com>
43117
43118 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43119 information.
43120
43121 2008-07-27 Bean <bean123ch@gmail.com>
43122
43123 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43124 (grub_fat_find_dir): Ignore case when comparing filename.
43125
43126 2008-07-27 Bean <bean123ch@gmail.com>
43127
43128 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43129 smallino, as it's more descriptive, and i8count can be confused with
43130 the other field count.
43131 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43132 inode type.
43133
43134 2008-07-27 Bean <bean123ch@gmail.com>
43135
43136 * commands/crc.c: New file.
43137
43138 * lib/crc.c: Likewise.
43139
43140 * include/grub/lib/crc.h: Likewise.
43141
43142 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43143
43144 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43145 (hexdump): Move this function to ...
43146
43147 * lib/hexdump.c: ... here.
43148
43149 * include/grub/hexdump.h: Renamed to ...
43150
43151 * include/grub/lib/hexdump.h: ... this.
43152
43153 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43154
43155 * util/grub-editenv.c: Likewise.
43156
43157 * include/envblk.h: Renamed to ...
43158
43159 * include/lib/envblk.h: ... this.
43160
43161 * util/envblk.c: Renamed to ...
43162
43163 * lib/envblk.c: ... this.
43164
43165 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43166 lib/hexdump.c.
43167 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43168 (pkglib_MODULES): Add crc.mod.
43169 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43170 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43171 (crc_mod_SOURCES): New macro.
43172 (crc_mod_CFLAGS): Likewise.
43173 (crc_mod_LDFLAGS): Likewise.
43174
43175 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43176
43177 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43178
43179 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43180
43181 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43182
43183 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43184
43185 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43186
43187 * commands/help.c: Include <grub/term.h>.
43188 (TERM_WIDTH): Removed. Updated all users.
43189
43190 2008-07-27 Pavel Roskin <proski@gnu.org>
43191
43192 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43193 spurious warnings about a comment within a comment.
43194
43195 2008-07-25 Robert Millan <rmh@aybabtu.com>
43196
43197 * util/getroot.c (find_root_device): Skip devices that match
43198 /dev/dm-[0-9]. This lets the real device be found for any type of
43199 abstraction (LVM, EVMS, RAID..).
43200 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43201 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43202 device is found first, find_root_device() will now skip it.
43203
43204 2008-07-24 Pavel Roskin <proski@gnu.org>
43205
43206 * include/grub/types.h: Use __builtin_bswap32() and
43207 __builtin_bswap64() with gcc 4.3 and newer.
43208
43209 2008-07-24 Christian Franke <franke@computer.org>
43210
43211 * util/i386/pc/grub-install.in: If `--debug' is specified,
43212 pass `--verbose' to grub-setup.
43213 Abort script if make_system_path_relative_to_its_root() fails.
43214
43215 2008-07-24 Bean <bean123ch@gmail.com>
43216
43217 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43218 variable `target_platform' should be `platform'.
43219
43220 2008-07-24 Bean <bean123ch@gmail.com>
43221
43222 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43223 (grub_png_init_fixed_block): New function.
43224 (grub_png_decode_image_data): Handle fixed huffman code compression.
43225
43226 2008-07-24 Bean <bean123ch@gmail.com>
43227
43228 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43229 (grub_pe2elf_SOURCES): New macro.
43230 (CLEANFILES): Add grub-pe2elf.
43231
43232 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43233 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43234 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43235 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43236 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43237 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43238 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43239 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43240 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43241 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43242 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43243 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43244 (GRUB_PE32_DT_FUNCTION): Likewise.
43245 (GRUB_PE32_REL_I386_DIR32): Likewise.
43246 (GRUB_PE32_REL_I386_REL32): Likewise.
43247 (grub_pe32_symbol): New structure.
43248 (grub_pe32_reloc): Likewise.
43249
43250 * util/grub-pe2elf.c: New file.
43251
43252 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43253 start symbol in non pc platform.
43254
43255 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43256
43257 The following patches are from Christian Franke.
43258
43259 * include/grub/dl.h: Remove .previous, gas supports this only
43260 for ELF format.
43261
43262 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43263 Remove .type, gas supports this only for ELF format.
43264
43265 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43266 nullbytes in symbol table. This fixes an infinite loop if table is
43267 zero filled.
43268
43269 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43270 TARGET_IMG_LDFLAGS and EXEEXT.
43271
43272 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43273 TARGET_IMG_LDFLAGS_AC.
43274 (grub_CHECK_STACK_ARG_PROBE): New function.
43275
43276 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43277
43278 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43279
43280 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43281 to set TARGET_IMG_LD* accordingly.
43282 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43283 Add call to grub_CHECK_STACK_ARG_PROBE.
43284 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43285
43286 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43287
43288 * genmk.rb: Add EXEEXT to CLEANFILES.
43289
43290 2008-07-23 Robert Millan <rmh@aybabtu.com>
43291
43292 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43293 define the codes for arrows and lines used for the menu).
43294 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43295 as well.
43296
43297 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43298 fonts, because the latter are too slow.
43299
43300 2008-07-21 Bean <bean123ch@gmail.com>
43301
43302 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43303 a20. Run keyboard test last, as it will cause macbook to halt.
43304
43305 2008-07-18 Pavel Roskin <proski@gnu.org>
43306
43307 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43308 load foreign architecture modules correctly anyway. Keep
43309 support for loading host architecture modules, whether we
43310 compile them or not.
43311
43312 2008-07-17 Pavel Roskin <proski@gnu.org>
43313
43314 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43315 change target_cpu. The compiler default can mismatch target_cpu
43316 in any case.
43317
43318 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43319 * kern/efi/efi.c: Likewise.
43320
43321 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43322 target compiler is functional.
43323 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43324 are set up.
43325
43326 * configure.ac: Default to efi platform for x86_64-apple. Allow
43327 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43328 adjustments from the rest, only do them if target is not
43329 explicitly given. Merge other adjustments with the final sanity
43330 check. Remove an extraneous check for supported CPU. Be
43331 specific which CPU and which platform is not supported.
43332
43333 * configure.ac: Default to pc platform for x86_64.
43334
43335 2008-07-17 Robert Millan <rmh@aybabtu.com>
43336
43337 Partial LinuxBIOS -> Coreboot rename.
43338
43339 * conf/i386-linuxbios.rmk: Renamed to ...
43340 * conf/i386-coreboot.rmk: ... this.
43341 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43342 * configure.ac: Accept "coreboot" as input platform (but maintain
43343 compatibility with "linuxbios").
43344 * include/grub/i386/linuxbios: Renamed to ...
43345 * include/grub/i386/coreboot: ... this.
43346
43347 2008-07-17 Bean <bean123ch@gmail.com>
43348
43349 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43350 (appleldr_mod_SOURCE): New variable.
43351 (appleldr_mod_CFLAGS): Likewise.
43352 (appleldr_mod_LDFLAGS): Likewise.
43353 (pci_mod_SOURCES): Likewise.
43354 (pci_mod_CFLAGS): Likewise.
43355 (pci_mod_LDFLAGS): Likewise.
43356 (lspci_mod_SOURCES): Likewise.
43357 (lspci_mod_CFLAGS): Likewise.
43358 (lspci_mod_LDFLAGS): Likewise.
43359
43360 * conf/x86_64-efi.rmk: New file.
43361
43362 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43363 macro.
43364 (grub_efidisk_write): Likewise.
43365
43366 * include/efi/api.h (efi_call_0): New macro.
43367 (efi_call_1): Likewise.
43368 (efi_call_2): Likewise.
43369 (efi_call_3): Likewise.
43370 (efi_call_4): Likewise.
43371 (efi_call_5): Likewise.
43372 (efi_call_6): Likewise.
43373
43374 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43375 grub_rescue_cmd_chainloader.
43376
43377 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43378 (grub_pe32_optional_header): Change some fields based on i386 or
43379 x86_64 platform.
43380 (GRUB_PE32_PE32_MAGIC): Likewise.
43381
43382 * include/grub/efi/uga_draw.h: New file.
43383
43384 * include/grub/elf.h (STN_ABS): New constant.
43385 (R_X86_64_NONE): Relocation constant for x86_64.
43386 (R_X86_64_64): Likewise.
43387 (R_X86_64_PC32): Likewise.
43388 (R_X86_64_GOT32): Likewise.
43389 (R_X86_64_PLT32): Likewise.
43390 (R_X86_64_COPY): Likewise.
43391 (R_X86_64_GLOB_DAT): Likewise.
43392 (R_X86_64_JUMP_SLOT): Likewise.
43393 (R_X86_64_RELATIVE): Likewise.
43394 (R_X86_64_GOTPCREL): Likewise.
43395 (R_X86_64_32): Likewise.
43396 (R_X86_64_32S): Likewise.
43397 (R_X86_64_16): Likewise.
43398 (R_X86_64_PC16): Likewise.
43399 (R_X86_64_8): Likewise.
43400 (R_X86_64_PC8): Likewise.
43401
43402 * include/grub/i386/efi/pci.h: New file.
43403
43404 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43405 Change it value based on platform.
43406 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43407 (GRUB_E820_RAM): Likewise.
43408 (GRUB_E820_RESERVED): Likewise.
43409 (GRUB_E820_ACPI): Likewise.
43410 (GRUB_E820_NVS): Likewise.
43411 (GRUB_E820_EXEC_CODE): Likewise.
43412 (GRUB_E820_MAX_ENTRY): Likewise.
43413 (grub_e820_mmap): New structure.
43414 (linux_kernel_header): Change the efi field according to different
43415 kernel version, also field from linux_kernel_header.
43416
43417 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43418
43419 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43420 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43421 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43422 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43423 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43424 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43425 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43426 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43427 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43428 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43429
43430 * include/grub/x86_64/efi/kernel.h: New file.
43431
43432 * include/grub/x86_64/efi/loader.h: Likewise.
43433
43434 * include/grub/x86_64/efi/machine.h: Likewise.
43435
43436 * include/grub/x86_64/efi/pci.h: Likewise.
43437
43438 * include/grub/x86_64/efi/time.h: Likewise.
43439
43440 * include/grub/x86_64/linux.h: Likewise.
43441
43442 * include/grub/x86_64/setjmp.h: Likewise.
43443
43444 * include/grub/x86_64/time.h: Likewise.
43445
43446 * include/grub/x86_64/types.h: Likewise.
43447
43448 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43449 GRUB_TARGET_SIZEOF_VOID_P.
43450
43451 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43452 (grub_efi_locate_handle): Likewise.
43453 (grub_efi_open_protocol): Likewise.
43454 (grub_efi_set_text_mode): Likewise.
43455 (grub_efi_stall): Likewise.
43456 (grub_exit): Likewise.
43457 (grub_reboot): Likewise.
43458 (grub_halt): Likewise.
43459 (grub_efi_exit_boot_services): Likewise.
43460 (grub_get_rtc): Likewise.
43461
43462 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43463 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43464 (grub_efi_allocate_pages): Wrap efi calls.
43465 (grub_efi_free_pages): Wrap efi calls.
43466 (grub_efi_get_memory_map): Wrap efi calls.
43467
43468 * kern/x86_64/dl.c: New file.
43469
43470 * kern/x86_64/efi/callwrap.S: Likewise.
43471
43472 * kern/x86_64/efi/startup.S: Likewise.
43473
43474 * loader/efi/appleloader.c: Likewise.
43475
43476 * loader/efi/chainloader.c (cmdline): New variable.
43477 (grub_chainloader_unload): Wrap efi calls.
43478 (grub_chainloader_boot): Likewise.
43479 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43480 command line.
43481
43482 * loader/efi/chainloader_normal.c (chainloader_command):
43483 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43484 command line.
43485
43486 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43487 method.
43488 (grub_e820_add_region): New function.
43489 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43490 booting.
43491 (grub_find_video_card): New function.
43492 (grub_linux_setup_video): New function.
43493 (grub_rescue_cmd_linux): Probe for video information.
43494
43495 * normal/x86_64/setjmp.S: New file.
43496
43497 * term/efi/console.c (map_char): New function.
43498 (grub_console_putchar): Map unicode char.
43499 (grub_console_checkkey): Wrap efi calls.
43500 (grub_console_getkey): Likewise.
43501 (grub_console_getwh): Likewise.
43502 (grub_console_gotoxy): Likewise.
43503 (grub_console_cls): Likewise.
43504 (grub_console_setcolorstate): Likewise.
43505 (grub_console_setcursor): Likewise.
43506
43507 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43508
43509 2008-07-16 Pavel Roskin <proski@gnu.org>
43510
43511 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43512 format strings.
43513
43514 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43515 pointer, not an integer. This fixes a warning and prevents
43516 precision loss on 64-bit systems.
43517 (relocate_addresses): Remove unneeded cast.
43518
43519 2008-07-15 Pavel Roskin <proski@gnu.org>
43520
43521 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43522
43523 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43524
43525 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43526 Fix comparison between signed and unsigned.
43527
43528 * include/grub/i386/ieee1275/console.h: Declare
43529 grub_console_init() and grub_console_fini().
43530
43531 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43532 It's empty and unused.
43533
43534 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43535 beginning to avoid warnings with some compilers.
43536
43537 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43538 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43539
43540 2008-07-14 Pavel Roskin <proski@gnu.org>
43541
43542 * kern/env.c (grub_register_variable_hook): Don't copy empty
43543 string, it leaks memory. Pass "" to grub_env_set(), it should
43544 handle constant strings.
43545
43546 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43547 * commands/cmp.c (grub_cmd_cmp): Likewise.
43548 * kern/dl.c (grub_dl_flush_cache): Likewise.
43549 (grub_dl_load_core): Likewise.
43550 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43551 (grub_elf64_load_phdrs): Likewise.
43552
43553 2008-07-13 Pavel Roskin <proski@gnu.org>
43554
43555 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43556 between signed and unsigned.
43557 (LzmaEnc_Finish): Fix warning about an unused parameter.
43558
43559 2008-07-13 Bean <bean123ch@gmail.com>
43560
43561 * Makefile.in (enable_lzo): New rule.
43562
43563 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43564
43565 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43566
43567 * boot/i386/pc/lnxboot.S: #include <config.h>.
43568
43569 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43570 its value according to the compression algorithm used, lzo or lzma.
43571
43572 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43573 compression algorithm according to configure macro.
43574
43575 * kern/i386/pc/startup.S (codestart): Likewise.
43576
43577 * kern/i386/pc/lzma_decode.S: New file.
43578
43579 * include/grub/lib/LzFind.h: Likewise.
43580
43581 * include/grub/lib/LzHash.h: Likewise.
43582
43583 * include/grub/lib/LzmaDec.h: Likewise.
43584
43585 * include/grub/lib/LzmaEnc.h: Likewise.
43586
43587 * include/grub/lib/LzmaTypes.h: Likewise.
43588
43589 * lib/LzFind.c: Likewise.
43590
43591 * lib/LzmaDec.c: Likewise.
43592
43593 * lib/LzmaEnc.c: Likewise.
43594
43595 2008-07-13 Bean <bean123ch@gmail.com>
43596
43597 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43598 (grub_ext4_extent_header): New structure.
43599 (grub_ext4_extent): Likewise.
43600 (grub_ext4_extent_idx): Likewise.
43601 (grub_ext4_find_leaf): New function.
43602 (grub_ext2_read_block): Handle extents.
43603
43604 2008-07-12 Robert Millan <rmh@aybabtu.com>
43605
43606 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43607
43608 2008-07-11 Robert Millan <rmh@aybabtu.com>
43609
43610 * util/grub.d/40_custom.in: New file. Example on how to add custom
43611 entries to /etc/grub.d.
43612 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43613 40_custom (implicitly, by merging all the grub.d rules).
43614
43615 2008-07-11 Pavel Roskin <proski@gnu.org>
43616
43617 * commands/read.c (grub_getline): Fix invalid memory access.
43618 Don't add newline to the variable value.
43619
43620 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43621 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43622 (serial_hw_get_port): Check validity of the port number.
43623 (grub_cmd_serial): Check return value of serial_hw_get_port().
43624
43625 2008-07-07 Pavel Roskin <proski@gnu.org>
43626
43627 * boot/i386/pc/diskboot.S (notification_string): Replace
43628 "Loading kernel" with just "loading". This is shorter, less
43629 confusing and saves a few bytes for possible future changes.
43630
43631 2008-07-05 Pavel Roskin <proski@gnu.org>
43632
43633 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43634 size for ATAPI devices, they are undefined. Output sector
43635 number in decimal form.
43636
43637 * disk/ata.c: Use named constants for status bits.
43638
43639 2008-07-04 Pavel Roskin <proski@gnu.org>
43640
43641 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43642 grub_addr_t before casting it to the void pointer to fix a
43643 warning. Non-addressable regions are discarded earlier.
43644 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43645 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43646 (check_signature): Don't shadow table_header.
43647 (grub_linuxbios_table_iterate): Cast numeric constants to
43648 grub_linuxbios_table_header_t.
43649 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43650 grub_stop().
43651
43652 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43653 prevent warnings.
43654
43655 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43656 pointer, which can cause warnings. Support 64-bit addresses.
43657
43658 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43659 of sizeof(long). This fixes PowerPC image generation on x86_64.
43660
43661 2008-07-04 Robert Millan <rmh@aybabtu.com>
43662
43663 This fixes a performance issue when pc & gpt partmap iterators
43664 didn't abort iteration even after our hook found what it was
43665 looking for (often causing expensive probes of non-existent drives).
43666
43667 Some callers relied on previous buggy behaviour, since they would
43668 raise an error when their own hooks caused early abortion of its
43669 iteration.
43670
43671 * kern/device.c (grub_device_open): Improve error message.
43672 * disk/lvm.c (grub_lvm_open): Likewise.
43673 * disk/raid.c (grub_raid_open): Likewise.
43674
43675 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43676 when hook requests it, independently of grub_errno.
43677 (pc_partition_map_probe): Do not fail when find_func() caused
43678 early abortion of pc_partition_map_iterate().
43679
43680 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43681 when hook requests it, independently of grub_errno.
43682 (gpt_partition_map_probe): Do not fail when find_func() caused
43683 early abortion of gpt_partition_map_iterate().
43684
43685 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43686 when hook requests it, independently of grub_errno. Do not fail when
43687 part_map_iterate_hook() caused early abortion of p->iterate().
43688
43689 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43690 when grub_partition_iterate() returned with non-zero.
43691
43692 2008-07-03 Pavel Roskin <proski@gnu.org>
43693
43694 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43695 like we do in grub_ata_pio_read().
43696 (grub_ata_readwrite): Always write individual sectors. Fix the
43697 sector count for the remainder.
43698 (grub_ata_write): Enable writing to ATA devices. Correctly
43699 report error for ATAPI devices.
43700
43701 2008-07-02 Pavel Roskin <proski@gnu.org>
43702
43703 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43704 warning.
43705
43706 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43707 for every read sector, we already increment it for the whole
43708 batch. This fixes reading more than 256 sectors at once.
43709
43710 * util/grub-editenv.c (cmd_info): Cast argument to long
43711 explicitly. ptrdiff_t reduces to int on i386.
43712
43713 * util/grub-editenv.c (main): Be specific which parameter is
43714 missing.
43715
43716 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43717 (memdisk): Make memdisk_orig_addr a pointer.
43718
43719 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43720 for file offsets, use grub_off_t instead. Fix printf format
43721 warnings.
43722
43723 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43724 there. Real unexpected warnings should not drown in the noise
43725 about known problems.
43726
43727 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43728 grub_disk_addr_t for memory addresses.
43729
43730 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43731 explicitly to fix a warning.
43732
43733 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43734
43735 * Makefile.in (MODULE_LDFLAGS): New variable.
43736 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43737 the linker accepts --build-id=none.
43738 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43739 MODULE_LDFLAGS.
43740 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43741
43742 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43743 those in Linux XFS code. Provide a way to access 64-bit parent
43744 inode.
43745 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43746 the end of struct grub_xfs_dir_header.
43747
43748 2008-07-02 Bean <bean123ch@gmail.com>
43749
43750 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43751 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43752 and GRUB_IEEE1275_FLAG_NO_ANSI.
43753
43754 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43755 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43756 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43757
43758 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43759 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43760
43761 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43762 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43763
43764 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43765 esc sequence on non ANSI terminal.
43766 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43767
43768 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43769 beginning of file.
43770
43771 2008-07-02 Bean <bean123ch@gmail.com>
43772
43773 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43774 (grub_editenv_SOURCES): New variable.
43775 (pkglib_MODULES): Add loadenv.mod.
43776 (loadenv_mod_SOURCES): New variable.
43777 (loadenv_mod_CFLAGS): Likewise.
43778 (loadenv_mod_LDFLAGS): Likewise.
43779
43780 * include/grub/envblk.h: New file.
43781
43782 * util/envblk.c: New file.
43783
43784 * util/grub-editenv.c: New file.
43785
43786 * commands/loadenv.c: New file.
43787
43788 2008-07-01 Pavel Roskin <proski@gnu.org>
43789
43790 * include/multiboot2.h (struct multiboot_tag_module): Use char,
43791 not unsigned char. This fixes warnings and is consistent with
43792 other tags.
43793
43794 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
43795
43796 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
43797
43798 * term/tparm.c (analyze): Always set *popcount.
43799
43800 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43801 cast to fix a warning.
43802
43803 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43804 cast to suppress a warning.
43805
43806 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43807 grub_fshelp_read_file() expects.
43808
43809 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43810 write uuid as a 32-bit value in CPU byte order, so declare and
43811 use it as such.
43812
43813 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43814 long if the format specifier expects it.
43815 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43816 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43817 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43818 long to fix a warning.
43819 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43820 grub_dprintf() arguments to fix warnings.
43821
43822 2008-06-30 Pavel Roskin <proski@gnu.org>
43823
43824 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43825 install_bsd_part immediately before core.img is embedded or
43826 modified on disk. This fixes core.img verification if core.img
43827 cannot be embedded.
43828
43829 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43830 core_path to calculate the blocklist.
43831 Patch from Javier Martín <lordhabbit@gmail.com>
43832
43833 2008-06-29 Robert Millan <rmh@aybabtu.com>
43834
43835 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43836 block to disk block.
43837 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43838 Patch from Niels Böhm <bitbucket@arcor.de>
43839
43840 2008-06-29 Robert Millan <rmh@aybabtu.com>
43841
43842 * util/update-grub_lib.in (font_path): Search for fonts in
43843 /boot/grub first, which is more likely to be readable (we aren't
43844 deciding where fonts live, just looking for them).
43845
43846 2008-06-26 Pavel Roskin <proski@gnu.org>
43847
43848 * util/biosdisk.c (read_device_map): Don't leave dead map
43849 entries for devices failing stat() check.
43850
43851 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43852 core_path_dev for the core.img path on the target device.
43853
43854 2008-06-26 Robert Millan <rmh@aybabtu.com>
43855
43856 * disk/fs_uuid.c: New file.
43857 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43858 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43859 (fs_uuid_mod_LDFLAGS): New variables.
43860 * include/grub/disk.h (grub_disk_dev_id): Add
43861 `GRUB_DISK_DEVICE_UUID_ID'.
43862 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43863 implement iterate().
43864
43865 2008-06-26 Robert Millan <rmh@aybabtu.com>
43866
43867 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43868 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43869 Linux image includes no initrd.
43870
43871 2008-06-21 Javier Martín <lordhabbit@gmail.com>
43872
43873 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43874 call to resolve the core image location that effectively appended the
43875 name twice.
43876
43877 2008-06-21 Robert Millan <rmh@aybabtu.com>
43878
43879 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43880 call from here ...
43881
43882 * util/grub.d/10_hurd.in: ... to here ...
43883 * util/grub.d/10_linux.in: ... and here.
43884
43885 2008-06-19 Robert Millan <rmh@aybabtu.com>
43886
43887 * kern/main.c (grub_main): Export `prefix' variable immediately
43888 after it has been set by grub_machine_set_prefix().
43889
43890 2008-06-19 Robert Millan <rmh@aybabtu.com>
43891
43892 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43893 search result when not saving to variable, not the other way around.
43894 When saving to variable, abort iteration as soon as a match is found.
43895
43896 2008-06-19 Robert Millan <rmh@aybabtu.com>
43897
43898 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43899 check for partition that provides /boot/grub. Its logic is flawed,
43900 as it prevents prepare_grub_to_access_device() from being called
43901 multiple times.
43902
43903 2008-06-19 Robert Millan <rmh@aybabtu.com>
43904
43905 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43906 "insmod" command directly when abstraction modules are needed,
43907 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
43908 since it had already been processed).
43909
43910 2008-06-19 Pavel Roskin <proski@gnu.org>
43911
43912 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43913 changed. This is needed in case GRUB_LIBDIR changes.
43914 * conf/i386-ieee1275.rmk: Likewise.
43915 * conf/i386-linuxbios.rmk: Likewise.
43916 * conf/i386-pc.rmk: Likewise.
43917 * conf/powerpc-ieee1275.rmk: Likewise.
43918
43919 2008-06-18 Pavel Roskin <proski@gnu.org>
43920
43921 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43922 kernel_elf_symlist.c to symlist.c for consistency with other
43923 architectures. Update all users.
43924 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43925
43926 2008-06-18 Robert Millan <rmh@aybabtu.com>
43927
43928 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43929 it in prefix.
43930
43931 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43932 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43933 a RAID device, run setup() for all members independently on whether
43934 LVM abstraction is being used.
43935 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43936 If grub-mkimage has set `*install_dos_part == -2', don't override this
43937 value.
43938 Perform *install_dos_part adjustments independently on whether
43939 we're embedding or not.
43940 Clarify error message when image is too big for embedding.
43941 Remove duplicate *install_dos_part stanza.
43942
43943 2008-06-17 Robert Millan <rmh@aybabtu.com>
43944
43945 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43946 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43947 variables.
43948 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43949 values in grub_ofconsole_normal_color and
43950 grub_ofconsole_highlight_color (they're not directly related to
43951 background and foreground).
43952 (grub_ofconsole_setcolorstate): Extract background and foreground
43953 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43954
43955 2008-06-17 Robert Millan <rmh@aybabtu.com>
43956
43957 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43958 /boot/grub for the check in last commit, not /boot (they could be
43959 different partitions).
43960
43961 2008-06-16 Robert Millan <rmh@aybabtu.com>
43962
43963 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43964 asked to setup access for the same partition that provides /boot,
43965 don't bother using UUIDs since our root already has the value we
43966 want.
43967
43968 2008-06-16 Robert Millan <rmh@aybabtu.com>
43969
43970 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43971 I2O devices.
43972 Patch from Sven Mueller <sven@debian.org>.
43973
43974 2008-06-16 Robert Millan <rmh@aybabtu.com>
43975
43976 * util/update-grub.in: Check for $EUID instead of $UID.
43977 Reported by Vincent Zweije.
43978
43979 2008-06-16 Bean <bean123ch@gmail.com>
43980
43981 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
43982 (grub_ext2_read_block): Likewise.
43983 (grub_ext2_read_inode): Likewise.
43984 (grub_ext2_mount): Likewise.
43985 (grub_ext2_close): Likewise.
43986 (grub_ext3_get_journal): Removed.
43987
43988 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
43989 (grub_reiserfs_read_symlink): Likewise.
43990 (grub_reiserfs_mount): Likewise.
43991 (grub_reiserfs_open): Likewise.
43992 (grub_reiserfs_read): Likewise.
43993 (grub_reiserfs_close): Likewise.
43994 (grub_reiserfs_get_journal): Removed.
43995
43996 * fs/fshelp.c (grub_fshelp_read): Removed.
43997 (grub_fshelp_map_block): Likewise.
43998
43999 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44000 (grub_fshelp_journal): Likewise.
44001 (grub_fshelp_read): Likewise.
44002 (grub_fshelp_map_block): Likewise.
44003
44004 2008-06-16 Pavel Roskin <proski@gnu.org>
44005
44006 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44007 floating point anymore.
44008 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44009
44010 2008-06-15 Pavel Roskin <proski@gnu.org>
44011
44012 * commands/ls.c (grub_ls_list_files): Use integer calculations
44013 for human readable format, avoid floating point use.
44014 * kern/misc.c (grub_ftoa): Remove.
44015 (grub_vsprintf): Remove floating point support.
44016
44017 2008-06-15 Robert Millan <rmh@aybabtu.com>
44018
44019 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44020 devices.
44021 Reported by Max Vozeler.
44022
44023 2008-06-15 Robert Millan <rmh@aybabtu.com>
44024
44025 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44026 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44027 skipped later.
44028 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44029 the beginning of the prefix.
44030
44031 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44032 It is assumed that if we have a memdisk, grub-mkimage has set
44033 grub_prefix to include the "(memdisk)" drive in it.
44034
44035 2008-06-15 Robert Millan <rmh@aybabtu.com>
44036
44037 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44038 Initialize keyboard controller after registering the terminal, so that
44039 grub_printf() can be called from grub_keyboard_controller_init().
44040
44041 2008-06-15 Robert Millan <rmh@aybabtu.com>
44042
44043 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44044 extent-btree which is written as big endian on disk.
44045 Reported by Alain Greppin <al@chilibi.org>.
44046
44047 2008-06-14 Robert Millan <rmh@aybabtu.com>
44048
44049 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44050 * util/i386/pc/grub-install.in (modules): Likewise.
44051
44052 2008-06-13 Pavel Roskin <proski@gnu.org>
44053
44054 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44055
44056 2008-06-13 Bean <bean123ch@gmail.com>
44057
44058 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44059
44060 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44061
44062 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44063 to indicate sparse block.
44064
44065 2008-06-12 Pavel Roskin <proski@gnu.org>
44066
44067 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44068 number, grub_fshelp_read() does it for us.
44069
44070 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44071 linear disk read with journal translation.
44072 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44073 * include/grub/fshelp.h: Declare grub_fshelp_read().
44074
44075 2008-06-09 Pavel Roskin <proski@gnu.org>
44076
44077 * fs/minix.c (grub_minix_mount): Handle error reading
44078 superblock.
44079
44080 2008-06-08 Robert Millan <rmh@aybabtu.com>
44081
44082 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44083 don't append the RAID prefix afterwards.
44084 Reported by Clint Adams.
44085
44086 2008-06-08 Robert Millan <rmh@aybabtu.com>
44087
44088 Based on description from Pavel:
44089 * kern/disk.c (grub_disk_check_range): Rename to ...
44090 (grub_disk_adjust_range): ... this. Add a comment explaining the
44091 tasks performed by this function.
44092
44093 2008-06-08 Robert Millan <rmh@aybabtu.com>
44094
44095 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44096 `num_serial' (for consistency with other variables).
44097 (struct grub_ntfs_data): Add `uuid' member.
44098 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44099 (grub_ntfs_uuid): New function.
44100 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44101
44102 2008-06-07 Pavel Roskin <proski@gnu.org>
44103
44104 * util/biosdisk.c (open_device): Revert last change to the
44105 function, it broke installation. The sector needs to be
44106 different dependent on which device is opened.
44107
44108 2008-06-06 Robert Millan <rmh@aybabtu.com>
44109
44110 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44111 rest of GRUB, and breakage doesn't happen if its value were modified.
44112
44113 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44114 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44115 a constant (same value).
44116 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44117 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44118
44119 2008-06-06 Robert Millan <rmh@aybabtu.com>
44120
44121 * util/biosdisk.c (open_device): Do not modify sector offset when
44122 accessing a partition. kern/disk.c already handles this for us.
44123
44124 2008-06-06 Robert Millan <rmh@aybabtu.com>
44125
44126 * util/grub-emu.c (grub_machine_init): Move code in this function from
44127 here ...
44128 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44129 segfault in case grub_printf() is called).
44130
44131 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44132 grub_probe. Update all users not to explicitly add it again.
44133 (grub_device): New variable; contains corresponding device for grubdir.
44134 (fs_module, partmap_module, devabstraction_module): Pass
44135 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44136 every time.
44137
44138 2008-06-05 Robert Millan <rmh@aybabtu.com>
44139
44140 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44141 is found, print it (same layout as with labels).
44142
44143 2008-06-04 Robert Millan <rmh@aybabtu.com>
44144
44145 * util/biosdisk.c (get_drive): Rename to ...
44146 (find_grub_drive): ... this. Update all users.
44147
44148 (get_os_disk): Rename to ...
44149 (convert_system_partition_to_system_disk): ... this. Update all users.
44150
44151 (find_drive): Rename to ...
44152 (find_system_device): ... this. Update all users.
44153
44154 2008-06-04 Robert Millan <rmh@aybabtu.com>
44155
44156 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44157 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44158 (make_device_map): Likewise.
44159
44160 2008-06-01 Robert Millan <rmh@aybabtu.com>
44161
44162 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44163 before dereferencing it.
44164
44165 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44166 union with fat12/fat16-specific ones. Add some new fields, including
44167 `num_serial' for both versions.
44168 (struct grub_fat_data): Add `uuid' member.
44169 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44170 names. Initialize `data->uuid' using `num_serial'.
44171 (grub_fat_uuid): New function.
44172 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44173
44174 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44175 (grub_reiserfs_uuid): New function.
44176 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44177 member.
44178
44179 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44180 (grub_xfs_uuid): New function.
44181 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44182
44183 2008-06-01 Robert Millan <rmh@aybabtu.com>
44184
44185 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44186 code that is backward compatible with pre-uuid search command.
44187
44188 2008-05-31 Robert Millan <rmh@aybabtu.com>
44189
44190 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44191 floppies after everything else, to ensure floppy drive isn't accessed
44192 unnecessarily (patch from Bean).
44193
44194 2008-05-31 Robert Millan <rmh@aybabtu.com>
44195
44196 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44197 not print device names when we were asked to set a variable.
44198
44199 2008-05-31 Robert Millan <rmh@aybabtu.com>
44200
44201 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44202 using "cursor-on" and "cursor-off" commands (understood at least by
44203 the Open Firmware flavour on OLPC).
44204
44205 2008-05-31 Michael Gorven <michael@gorven.za.net>
44206
44207 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44208 on and off sequences.
44209
44210 2008-05-31 Robert Millan <rmh@aybabtu.com>
44211
44212 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44213 * util/update-grub.in: Likewise.
44214
44215 2008-05-30 Pavel Roskin <proski@gnu.org>
44216
44217 * util/biosdisk.c (linux_find_partition): Simplify logic and
44218 make the code more universal. Keep special processing for
44219 devfs, but use a simple rule for all other devices. If the
44220 device ends with a number, append 'p' and the partition number.
44221 Otherwise, append only the partition number.
44222
44223 2008-05-30 Robert Millan <rmh@aybabtu.com>
44224
44225 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44226 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44227 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44228 the `root' parameter to Linux.
44229
44230 2008-05-30 Robert Millan <rmh@aybabtu.com>
44231
44232 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44233 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44234 --fs_uuid with --fs-uuid.
44235 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44236 all filesystems support them).
44237
44238 2008-05-30 Robert Millan <rmh@aybabtu.com>
44239
44240 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44241 grub_printf() flags, since we're printing in units of 2 bytes.
44242
44243 2008-05-30 Robert Millan <rmh@aybabtu.com>
44244
44245 * util/grub.d/00_header.in: Remove obsolete comment referencing
44246 convert_system_path_to_grub_path().
44247 * util/update-grub.in: Likewise.
44248 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44249 (convert_system_path_to_grub_path): Add a warning message explaining
44250 that this function is deprecated. Rely on is_path_readable_by_grub()
44251 for the readability checks.
44252 (font_path): Use is_path_readable_by_grub() for the readability
44253 check rather than convert_system_path_to_grub_path().
44254
44255 2008-05-30 Robert Millan <rmh@aybabtu.com>
44256
44257 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44258 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44259 converting it first.
44260 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44261 grub.cfg for access to font file, and afterwards call it again to set
44262 the root device.
44263
44264 2008-05-30 Robert Millan <rmh@aybabtu.com>
44265
44266 * commands/search.c (options): Add --fs_uuid option.
44267 (search_fs_uuid): New function.
44268 (grub_cmd_search): Fix --set argument passing.
44269 Use search_fs_uuid() when requested via --fs_uuid.
44270 (grub_search_init): Update help message.
44271 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44272 and redeclare it as an array of 16-bit words.
44273 (grub_ext2_uuid): New function.
44274 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44275 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44276 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44277 (GRUB_DEVICE_BOOT_UUID): New variables.
44278 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44279 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44280 whenever possible.
44281 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44282 just assume `root' variable has the right value.
44283 * util/grub.d/10_linux.in: Likewise.
44284 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44285 via PRINT_FS_UUID.
44286 (main): Recognise `-t fs_uuid' argument.
44287
44288 2008-05-30 Robert Millan <rmh@aybabtu.com>
44289
44290 * util/biosdisk.c (map): Redefine structure to hold information
44291 about GRUB drive name.
44292 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44293 drive names.
44294 (call_hook): Remove.
44295 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44296 member. Assume drive has partitions.
44297 (grub_util_biosdisk_open): Access device names via `.device' struct
44298 member.
44299 (open_device): Likewise.
44300 (find_drive): Likewise.
44301 (read_device_map): Adjust map[] usage to match the new struct
44302 definition. Don't check for duplicates (still possible, but not cheap
44303 anymore).
44304 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44305 (make_device_name): Remove assumption of BIOS-like drive names.
44306
44307 2008-05-30 Pavel Roskin <proski@gnu.org>
44308
44309 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44310 compiling execute.c doesn't need grub_script.tab.h anymore.
44311 (normal/command.c_DEPENDENCIES): Likewise.
44312 (normal/function.c_DEPENDENCIES): Likewise.
44313 * conf/i386-ieee1275.rmk: Likewise.
44314 * conf/i386-linuxbios.rmk: Likewise.
44315 * conf/i386-pc.rmk: Likewise.
44316 * conf/powerpc-ieee1275.rmk: Likewise.
44317 * conf/sparc64-ieee1275.rmk: Likewise.
44318
44319 2008-05-29 Pavel Roskin <proski@gnu.org>
44320
44321 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44322 when scanning metadata for volume group name.
44323
44324 * include/grub/script.h: Don't include grub_script.tab.h. It's
44325 a generated file, which may only be included from the files with
44326 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44327 use union YYSTYPE, as the later allows forward declaration.
44328 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44329
44330 2008-05-29 Robert Millan <rmh@aybabtu.com>
44331
44332 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44333 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44334 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44335 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44336 scan codes.
44337
44338 2008-05-29 Robert Millan <rmh@aybabtu.com>
44339
44340 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44341 control key combinations.
44342
44343 2008-05-29 Robert Millan <rmh@aybabtu.com>
44344
44345 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44346 * util/ieee1275/grub-install.in: ... to here.
44347 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44348 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44349 (grub_install_SOURCES): Likewise.
44350
44351 2008-05-29 Robert Millan <rmh@aybabtu.com>
44352
44353 * fs/affs.c: Update copyright year.
44354 * fs/ext2.c: Likewise.
44355 * fs/fshelp.c: Likewise.
44356 * fs/hfsplus.c: Likewise.
44357 * fs/ntfs.c: Likewise.
44358 * fs/xfs.c: Likewise.
44359 * include/grub/fshelp.h: Likewise.
44360 * util/grub-mkdevicemap.c: Likewise.
44361
44362 2008-05-28 Robert Millan <rmh@aybabtu.com>
44363
44364 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44365 might need to be fatfs to support some firmware implementations
44366 (e.g. OFW or EFI).
44367
44368 2008-05-28 Robert Millan <rmh@aybabtu.com>
44369
44370 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44371 devices.
44372 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44373 (make_device_map): Likewise.
44374
44375 2008-05-20 Bean <bean123ch@gmail.com>
44376
44377 * fs/fshelp.c (grub_fshelp_map_block): New function.
44378 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44379 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44380
44381 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44382 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44383 (grub_fshelp_journal): New structure.
44384 (grub_fshelp_map_block): New function prototype.
44385 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44386 (grub_fshelp_map_block): Likewise.
44387
44388 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44389 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44390 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44391 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44392 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44393 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44394 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44395 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44396 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44397 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44398 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44399 (grub_ext2_sblock): New members for journal support.
44400 (grub_ext3_journal_header): New structure.
44401 (grub_ext3_journal_revoke_header): Likewise.
44402 (grub_ext3_journal_block_tag): Likewise.
44403 (grub_ext3_journal_sblock): Likewise.
44404 (grub_fshelp_node): New members logfile and journal.
44405 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44406 grub_fshelp_map_block to get real block number.
44407 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44408 number.
44409 (grub_ext2_read_inode): Likewise.
44410 (grub_ext3_get_journal): New function.
44411 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44412 (grub_ext2_close): Release memory used by journal.
44413
44414 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44415 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44416 (grub_reiserfs_transaction_header): Renamed to
44417 grub_reiserfs_description_block, replace field data with real_blocks.
44418 (grub_reiserfs_commit_block): New structure.
44419 (grub_reiserfs_data): New member journal.
44420 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44421 number.
44422 (grub_reiserfs_read_symlink): Likewise.
44423 (grub_reiserfs_iterate_dir): Likewise.
44424 (grub_reiserfs_open): Likewise.
44425 (grub_reiserfs_read): Likewise.
44426 (grub_reiserfs_get_journal): New function.
44427 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44428 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44429 using grub_reiserfs_get_journal.
44430 (grub_reiserfs_close): Release memory used by journal.
44431
44432 * fs/affs.c (grub_affs_read_block): Change block type to
44433 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44434
44435 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44436
44437 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44438
44439 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44440
44441 * fs/udf.c (grub_udf_read_block): Change block type to
44442 grub_disk_addr_t. Use type cast to avoid warning.
44443
44444 * fs/xfs.c (grub_xfs_read_block): Likewise.
44445
44446 2008-05-16 Christian Franke <franke@computer.org>
44447
44448 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44449 to ensure that break with ESC will always work.
44450 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44451 Remove ESC from keyboard queue.
44452
44453 2008-05-16 Christian Franke <franke@computer.org>
44454
44455 * util/biosdisk.c: [__CYGWIN__] Add includes.
44456 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44457 (get_os_disk): Move variable declarations to OS specific
44458 parts to avoid warning.
44459 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44460 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44461 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44462 Cygwin.
44463 * util/getroot.c: [__CYGWIN__] Add includes.
44464 (strip_extra_slashes): Fix "/" case.
44465 [__CYGWIN__] (get_win32_path): New function.
44466 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44467 [__CYGWIN__] (find_root_device): Disable.
44468 [__CYGWIN__] (get_bootsec_serial): New function.
44469 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44470 [__linux__] (grub_guess_root_device): Add early returns to simplify
44471 structure.
44472 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44473 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44474 check for Linux only.
44475
44476 2008-05-15 Bean <bean123ch@gmail.com>
44477
44478 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44479 keyboard hang problem in apple's intel mac.
44480
44481 2008-05-09 Robert Millan <rmh@aybabtu.com>
44482
44483 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44484 devices.
44485 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44486 (make_device_map): Likewise.
44487 Reported by Aurelien Jarno <aurel32@debian.org>
44488
44489 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44490
44491 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44492 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44493 (make_device_map): Output entries for xvd type disks.
44494
44495 2008-05-07 Robert Millan <rmh@aybabtu.com>
44496
44497 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44498 devices.
44499 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44500 (make_device_map): Likewise.
44501 Reported by Roland Dreier <rdreier@cisco.com>
44502
44503 2008-05-07 Robert Millan <rmh@aybabtu.com>
44504
44505 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44506 grub_strstr() call. Correct a few mistakes in failure path handling.
44507
44508 2008-05-06 Robert Millan <rmh@aybabtu.com>
44509
44510 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44511 Do not print a trailing slash (therefore, the root directory is an
44512 empty string).
44513 (convert_system_path_to_grub_path): Do not remove trailing slash
44514 from make_system_path_relative_to_its_root() output.
44515
44516 * util/i386/pc/grub-install.in: Add trailing slash to output from
44517 make_system_path_relative_to_its_root().
44518
44519 2008-05-06 Robert Millan <rmh@aybabtu.com>
44520
44521 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44522 ensures that output lines aren't intermangled with those sent to
44523 stderr (via grub_util_info()).
44524 * util/grub-probe.c (grub_refresh): Likewise.
44525 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44526
44527 2008-05-05 Christian Franke <franke@computer.org>
44528
44529 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44530 Add Cygwin device names.
44531 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44532 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44533 (check_device): Return error instead of success on empty name.
44534 (make_device_map): Move label inside linux specific code to
44535 prevent compiler warning.
44536
44537 2008-04-30 Robert Millan <rmh@aybabtu.com>
44538
44539 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44540 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44541 first boot option.
44542 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44543
44544 2008-04-29 Robert Millan <rmh@aybabtu.com>
44545
44546 * docs/grub.cfg: New file (example GRUB configuration).
44547
44548 2008-04-26 Robert Millan <rmh@aybabtu.com>
44549
44550 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44551 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44552 and `disk/ieee1275/nand.c'.
44553
44554 2008-04-25 Bean <bean123ch@gmail.com>
44555
44556 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44557 i386-linuxbios.
44558
44559 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44560 change the buffer size to 4096 for cdrom device.
44561
44562 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44563 and nand.mod.
44564 (_linux_mod_SOURCES): New variable.
44565 (_linux_mod_CFLAGS): Likewise.
44566 (_linux_mod_LDFLAGS): Likewise.
44567 (linux_mod_SOURCES): Likewise.
44568 (linux_mod_CFLAGS): Likewise.
44569 (linux_mod_LDFLAGS): Likewise.
44570 (nand_mod_SOURCES): Likewise.
44571 (nand_mod_CFLAGS): Likewise.
44572 (nand_mod_LDFLAGS): Likewise.
44573
44574 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44575 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44576 type property. (nand device in olpc don't have this property)
44577
44578 * include/grub/disk.h (grub_disk_dev_id): New macro
44579 GRUB_DISK_DEVICE_NAND_ID.
44580
44581 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44582 function prototype.
44583 (grub_rescue_cmd_initrd): Likewise.
44584
44585 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44586 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44587 ofw_cif_handler and ofw_idt, adjust padding number.
44588
44589 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44590 GRUB_MACHINE_IEEE1275 is defined.
44591
44592 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44593 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44594
44595 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44596 on nested function heap_init.
44597 (grub_upper_mem): New variable for i386-ieee1275.
44598 (grub_get_extended_memory): New function for i386-ieee1275.
44599 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44600
44601 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44602 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44603 property.
44604
44605 * loader/i386/ieee1275/linux.c: New file.
44606
44607 * loader/i386/ieee1275/linux_normal.c: New file.
44608
44609 * disk/ieee1275/nand.c: New file.
44610
44611 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44612
44613 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44614 value.
44615 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44616
44617 2008-04-18 Robert Millan <rmh@aybabtu.com>
44618
44619 Restructures early code path on ieee1275 to unify grub_main() as
44620 the first C function that is executed in every platform.
44621
44622 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44623 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44624 cmain().
44625 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44626 * kern/ieee1275/cmain.c (cmain): Rename to ...
44627 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44628 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44629 at the beginning.
44630
44631 2008-04-18 Robert Millan <rmh@aybabtu.com>
44632
44633 * util/update-grub.in: Fix syntax error when setting
44634 `GRUB_PRELOAD_MODULES'.
44635 Reported by Stephane Chazelas <stephane@artesyncp.com>
44636
44637 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44638
44639 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44640 section into account, newer toolchains generate unique build ids
44641 * configure.ac: remove the test for --build-id=none acceptance,
44642 we want build ids to be preserved
44643 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44644 far from other sections don't cause the raw binary images grow
44645 size
44646
44647 2008-04-15 Robert Millan <rmh@aybabtu.com>
44648
44649 * disk/lvm.c: Update copyright year.
44650 * kern/misc.c: Likewise.
44651
44652 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44653
44654 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44655 there is no memory left for physical volume name.
44656
44657 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44658
44659 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44660 volume name mapping to support bigger than 9 character names properly.
44661
44662 2008-04-13 Robert Millan <rmh@aybabtu.com>
44663
44664 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44665 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44666
44667 2008-04-13 Christian Franke <franke@computer.org>
44668
44669 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44670 to create a floppy emulation boot CD when non emulation mode
44671 does not work.
44672 Enable Joliet CD filesystem extension.
44673
44674 2008-04-13 Robert Millan <rmh@aybabtu.com>
44675
44676 * kern/misc.c (grub_strncat): Fix off-by-one error.
44677 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44678
44679 * kern/env.c (grub_env_context_close): Clear current context, not
44680 previous one.
44681 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44682
44683 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44684
44685 2008-04-13 Robert Millan <rmh@aybabtu.com>
44686
44687 Improve robustness when handling LVM.
44688
44689 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44690 (and leave `*p' unmodified).
44691 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44692 through it.
44693 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44694 iterating through it.
44695 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44696 through it.
44697 (grub_lvm_scan_device): Check the return value (and fail gracefully
44698 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44699 Don't assume `vg->pvs != NULL' when iterating through it.
44700
44701 2008-04-13 Robert Millan <rmh@aybabtu.com>
44702
44703 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44704 * genmk.rb (partmap): New variable.
44705 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44706 (#{partmap}): New target rule.
44707 * genpartmaplist.sh: New file.
44708 * Makefile.in (pkglib_DATA): Add partmap.lst.
44709 (partmap.lst): New target rule.
44710 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44711 modules (including all partition maps), instead of preloading them.
44712
44713 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44714
44715 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44716 `linux-boot-prober' (if installed) to detect other operating
44717 systems which are installed on the computer and add them to
44718 the boot menu.
44719 * conf/common.rmk: Build and install 30_os-prober.
44720
44721 2008-04-12 Robert Millan <rmh@aybabtu.com>
44722
44723 * kern/powerpc/ieee1275/init.c: Move from here ...
44724 * kern/ieee1275/init.c: ... to here. Update all users.
44725
44726 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44727 * kern/ieee1275/cmain.c: ... to here. Update all users.
44728
44729 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44730 * kern/ieee1275/openfw.c: ... to here. Update all users.
44731
44732 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44733 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44734
44735 2008-04-10 Pavel Roskin <proski@gnu.org>
44736
44737 * configure.ac: Always use "_cv_" in cache variables for
44738 compatibility with Autoconf 2.62.
44739
44740 2008-04-07 Robert Millan <rmh@aybabtu.com>
44741
44742 Revert grub/machine/init.h addition by Pavel (since it breaks on
44743 i386-ieee1275 and others):
44744 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44745 * util/powerpc/ieee1275/misc.c: Likewise.
44746
44747 2008-04-07 Robert Millan <rmh@aybabtu.com>
44748
44749 * util/grub-probe.c (probe): Improve error message.
44750
44751 2008-04-07 Robert Millan <rmh@aybabtu.com>
44752
44753 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44754 (this prevents the presence of a bogus entry from ruining the whole
44755 thing).
44756
44757 2008-04-06 Pavel Roskin <proski@gnu.org>
44758
44759 * util/biosdisk.c: Include grub/util/biosdisk.h.
44760 * util/grub-fstest.c (execute_command): Make static.
44761 * util/grub-mkdevicemap.c (check_device): Likewise.
44762 * util/i386/pc/misc.c: Include grub/machine/init.h.
44763 * util/powerpc/ieee1275/misc.c: Likewise.
44764 * util/lvm.c: Include grub/util/lvm.h.
44765 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44766 grub/cache.h.
44767 * util/raid.c: Include grub/util/raid.h.
44768 (grub_util_getdiskname): Make static.
44769
44770 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44771 grub_hostfs_fini(), as they are called from grub_init_all() and
44772 grub_fini_all() respectively. This fixes an infinite loop in
44773 grub-fstest due to double registration of hostfs.
44774 Reported by Christian Franke <Christian.Franke@t-online.de>
44775
44776 2008-04-05 Pavel Roskin <proski@gnu.org>
44777
44778 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44779 all 8 functions. Otherwise, probe function 0 only.
44780
44781 2008-04-04 Pavel Roskin <proski@gnu.org>
44782
44783 * commands/lspci.c (grub_lspci_iter): Print the bus number
44784 correctly.
44785
44786 * commands/lspci.c (grub_pci_classes): Fix typos.
44787 (grub_lspci_iter): Don't print func twice. Print vendor ID
44788 before device ID, as it's normally done.
44789
44790 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44791 Fix signedness warnings.
44792 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
44793 Likewise.
44794 * util/ieee1275/get_disk_name.c: Include config.h so that
44795 _GNU_SOURCE is defined and getline() is declared. Mark an
44796 unused argument as such. Fix a signedness warning.
44797
44798 2008-04-02 Pavel Roskin <proski@gnu.org>
44799
44800 * genkernsyms.sh.in: Use more robust assignments for CC and
44801 srcdir. Quote srcdir.
44802 * gensymlist.sh.in: Likewise. Assert at the compile time that
44803 the symbol table is not empty.
44804
44805 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44806 * fs/cpio.c (grub_cpio_read): Likewise.
44807
44808 2008-04-01 Pavel Roskin <proski@gnu.org>
44809
44810 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44811 * disk/host.c (grub_host_open): Likewise.
44812 * disk/loopback.c (grub_loopback_open): Likewise.
44813 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44814 disk->id as in disk/host.c, not a multi-character constant.
44815
44816 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44817 later is obsolete, potentially dangerous and sets a bad example.
44818 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44819 * util/misc.c (grub_util_get_image_size): Likewise.
44820
44821 * disk/loopback.c (options): Improve help for "--partitions".
44822
44823 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44824 options to align them with the short options, e.g. "echo -e".
44825
44826 2008-03-31 Bean <bean123ch@gmail.com>
44827
44828 * video/reader/png.c (grub_png_data): New member is_16bit and
44829 image_data.
44830 (grub_png_decode_image_header): Detect 16 bit png image.
44831 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44832 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44833 (grub_video_reader_png): Release memory occupied by image_data.
44834
44835 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44836 4096 bytes.
44837 (grub_nfs_mount): Skip the test for sector per cluster.
44838
44839 * include/grub/ntfs.h (MAX_SPC): Removed.
44840
44841 2008-03-31 Bean <bean123ch@gmail.com>
44842
44843 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44844 (grub_probe_SOURCES): Add fs/afs.c.
44845 (grub_fstest_SOURCES): Likewise.
44846 (afs_mod_SOURCES): New variable.
44847 (afs_mod_CFLAGS): Likewise.
44848 (afs_mod_LDFLAGS): Likewise.
44849
44850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44851 (grub_emu_SOURCES): Likewise.
44852
44853 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44854
44855 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44856
44857 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44858
44859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44860
44861 * fs/afs.c: New file.
44862
44863 2008-03-30 Pavel Roskin <proski@gnu.org>
44864
44865 * disk/host.c: Include grub/misc.h to fix a warning.
44866 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44867 warnings about implicit declarations.
44868
44869 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44870 variable.
44871 * include/grub/i386/loader.h: Change declaration of
44872 grub_linux_boot() to match what grub_loader_set() expects.
44873 * util/getroot.c (grub_guess_root_device): Return const char* to
44874 fix a warning.
44875 * util/grub-probe.c (probe): Fix a warning about uninitialized
44876 abstraction_name variable.
44877 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44878 second argument as unused to fix a warning.
44879
44880 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44881 missing grub_error() call.
44882
44883 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44884 2.60 and newer uses it to define datadir.
44885
44886 * commands/sleep.c: Fix warning about implicit declaration.
44887 * disk/memdisk.c: Likewise.
44888 * loader/aout.c: Likewise.
44889 * loader/i386/bsd_normal.c: Likewise.
44890 * util/grub-probe.c: Likewise.
44891
44892 * commands/i386/cpuid.c (has_longmode): Make static.
44893 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44894 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44895
44896 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44897 GDT. This is more robust, as %ds can change.
44898 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44899 calling real_to_prot().
44900 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44901
44902 2008-03-28 Pavel Roskin <proski@gnu.org>
44903
44904 * kern/i386/pc/startup.S: Assert that uncompressed functions
44905 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44906 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44907 code, as they push parts of the code (error handlers) beyond
44908 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44909 code as correctness and size.
44910
44911 2008-03-28 Pavel Roskin <proski@gnu.org>
44912
44913 * kern/i386/pc/startup.S
44914 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44915 data block address to the real mode, keep offset minimal. This
44916 works around a bug in AWARD BIOS on old Athlon systems, which
44917 makes CD detection hang.
44918
44919 2008-03-26 Pavel Roskin <proski@gnu.org>
44920
44921 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44922 const.
44923 * include/grub/normal.h: Add grub_parse_color_name_pair()
44924 declaration.
44925
44926 2008-03-24 Bean <bean123ch@gmail.com>
44927
44928 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44929 (cd_count): Removed.
44930 (cd_drive): New variable.
44931 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44932 (grub_biosdisk_call_hook): Likewise.
44933 (grub_biosdisk_iterate): Change cdrom detection method.
44934 (grub_biosdisk_open): Replace cd_start with cd_drive.
44935 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44936 detect cdrom device.
44937
44938 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44939 Removed.
44940 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44941 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44942 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44943 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44944 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44945 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44946 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44947 (grub_biosdisk_cdrp): New structure.
44948 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44949
44950 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44951
44952 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44953 device.
44954
44955 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44956 New function.
44957
44958 2008-03-20 Robert Millan <rmh@aybabtu.com>
44959
44960 Remove 2 TiB limit in ata.mod.
44961 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44962 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44963 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44964 grub_uint64_t instead of grub_uint32_t.
44965
44966 2008-03-05 Bean <bean123ch@gmail.com>
44967
44968 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44969 (grub_multiboot): Set boot device.
44970
44971 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44972
44973 2008-03-02 Bean <bean123ch@gmail.com>
44974
44975 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44976 symlink_buffer.
44977
44978 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44979
44980 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44981 texinfo.tex.
44982
44983 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44984 modified.
44985
44986 * docs/fdl.texi: New file.
44987
44988 * docs/mdate-sh: New file. Copied from gnulib.
44989 * docs/texinfo.tex: Likewise.
44990
44991 * config.guess: Updated from gnulib.
44992 * install-sh: Likewise.
44993
44994 2008-02-28 Robert Millan <rmh@aybabtu.com>
44995
44996 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44997 (aout_mod_SOURCES): New variable.
44998 (aout_mod_CFLAGS): Likewise.
44999 (aout_mod_LDFLAGS): Likewise.
45000
45001 * conf/i386-ieee1275.rmk: Likewise.
45002
45003 2008-02-28 Robert Millan <rmh@aybabtu.com>
45004
45005 * util/update-grub.in: Reorganise terminal validity check. Accept
45006 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45007 Based on suggestion by Franklin PIAT.
45008
45009 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45010
45011 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45012 function.
45013 * util/getroot.c (grub_util_check_block_device): New function that
45014 returns the given argument if it is a block device and returns NULL else.
45015 * util/grub-probe.c (argument_is_device): New variable.
45016 (probe): Promote device_name from a variable to an argument. Receive
45017 device_name from grub_util_check_block_device() if path is NULL and from
45018 grub_guess_root_device() else. Do not free() device_name anymore.
45019 (options): Introduce new parameter '-d, --device'.
45020 (main): Add description of the new parameter to the help screen.
45021 Rename path variable to argument. Set argument_is_device if the '-d'
45022 option is given. Pass argument to probe() depending on
45023 argument_is_device.
45024
45025 2008-02-24 Bean <bean123ch@gmail.com>
45026
45027 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45028 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45029 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45030 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45031 (GRUB_ISO9660_VOLDESC_END): Likewise.
45032 (grub_iso9660_primary_voldesc): New member escape.
45033 (grub_iso9660_data): New member joliet.
45034 (grub_iso9660_convert_string): New function.
45035 (grub_iso9660_mount): Detect joliet extension.
45036 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45037 (grub_iso9660_iso9660_label): Likewise.
45038
45039 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45040 (grub_setup_SOURCES): Add fs/udf.c.
45041 (grub_fstest_SOURCES): Likewise.
45042 (udf_mod_SOURCES): New variable.
45043 (udf_mod_CFLAGS): Likewise.
45044 (udf_mod_LDFLAGS): Likewise.
45045
45046 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45047 (grub_emu_SOURCES): Likewise.
45048
45049 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45050
45051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45052
45053 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45054
45055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45056
45057 * fs/udf.c: New file.
45058
45059 2008-02-24 Robert Millan <rmh@aybabtu.com>
45060
45061 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45062 (normal/lexer.c_DEPENDENCIES): New variables.
45063 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45064 (normal/lexer.c_DEPENDENCIES): Likewise.
45065 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45066 (normal/lexer.c_DEPENDENCIES): Likewise.
45067 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45068 (normal/lexer.c_DEPENDENCIES): Likewise.
45069 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45070 (normal/lexer.c_DEPENDENCIES): Likewise.
45071 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45072 (normal/lexer.c_DEPENDENCIES): Likewise.
45073
45074 2008-02-23 Robert Millan <rmh@aybabtu.com>
45075
45076 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45077 since they were intended to be in hex. This didn't break previously
45078 because of a bug in gpt_partition_map_iterate() (see below).
45079
45080 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45081 when checking the validity of GPT header.
45082 Remove `partno', since it always provides the same information as `i'.
45083
45084 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45085
45086 * include/grub/efi/time.h: Fix a wrong comment.
45087
45088 2008-02-19 Pavel Roskin <proski@gnu.org>
45089
45090 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45091 message.
45092
45093 2008-02-19 Bean <bean123ch@gmail.com>
45094
45095 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45096 (aout_mod_SOURCES): New variable.
45097 (aout_mod_CFLAGS): Likewise.
45098 (aout_mod_LDFLAGS): Likewise.
45099 (_bsd_mod_SOURCES): New variable.
45100 (_bsd_mod_CFLAGS): Likewise.
45101 (_bsd_mod_LDFLAGS): Likewise.
45102 (bsd_mod_SOURCES): New variable.
45103 (bsd_mod_CFLAGS): Likewise.
45104 (bsd_mod_LDFLAGS): Likewise.
45105
45106 * include/grub/aout.h: New file.
45107
45108 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45109
45110 * include/grub/i386/bsd.h: New file.
45111
45112 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45113 to make it public.
45114
45115 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45116 function is called, so that it's possible to change it inside the hook.
45117 (grub_elf64_load): Likewise.
45118 (grub_elf_file): Don't close the file if elf header is not found.
45119 (grub_elf_close): Close the file if grub_elf_file fails (The new
45120 grub_elf_file won't close it).
45121 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45122 (grub_elf64_size): Likewise.
45123
45124 * kern/i386/loader.S (grub_unix_real_boot): New function.
45125
45126 * loader/aout.c: New file.
45127
45128 * loader/i386/bsd.c: New file.
45129
45130 * loader/i386/bsd_normal.c: New file.
45131
45132 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45133
45134 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45135 can test other formats.
45136
45137 2008-02-19 Robert Millan <rmh@aybabtu.com>
45138
45139 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45140 (grub_gpt_partition_type_empty): Redefine with macro from
45141 `<grub/gpt_partition.h>'.
45142 (gpt_partition_map_iterate): Adjust partition type comparison.
45143
45144 Export `entry' as partmap-specific `part.data' struct.
45145 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45146
45147 * include/grub/gpt_partition.h (grub_gpt_header)
45148 (grub_gpt_partentry): ... to here (new file).
45149
45150 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45151
45152 (grub_gpt_partition_type_bios_boot): New const variable, defined
45153 with macro from `<grub/gpt_partition.h>'.
45154
45155 (setup): Replace `first_start' with `embed_region', which keeps
45156 track of the embed region (and is partmap-agnostic).
45157
45158 Replace find_first_partition_start() with find_usable_region(),
45159 which finds a usable region for embedding using partmap-specific
45160 knowledge (supports PC/MSDOS and GPT).
45161
45162 Fix all assumptions that the embed region start at sector 1, using
45163 `embed_region.start' from now on. Similarly, use `embed_region.end'
45164 rather than `first_start' to calculate available size.
45165
45166 In grub_util_info() message, replace "into after the MBR" with an
45167 indication of the specific sector our embed region starts at.
45168
45169 2008-02-19 Robert Millan <rmh@aybabtu.com>
45170
45171 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45172 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45173 `commands/reboot.c'.
45174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45175 (halt_mod_SOURCES): Likewise.
45176 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45177 (halt_mod_SOURCES): Likewise.
45178
45179 2008-02-17 Christian Franke <franke@computer.org>
45180
45181 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45182
45183 2008-02-17 Robert Millan <rmh@aybabtu.com>
45184
45185 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45186 set `first_start' to 0 for non-PC/MSDOS partition maps.
45187
45188 2008-02-16 Robert Millan <rmh@aybabtu.com>
45189
45190 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45191 do not assume partition map is PC/MSDOS before performing checks that
45192 are specific to that layout.
45193
45194 2008-02-13 Robert Millan <rmh@aybabtu.com>
45195
45196 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45197 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45198 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45199
45200 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45201
45202 * configure.ac: Only a cosmetic change on the handling of
45203 -fno-stack-protector.
45204
45205 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45206
45207 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45208 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45209 reboot.c.
45210 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45211 (halt_mod_SOURCES): New variable.
45212 (halt_mod_CFLAGS): Likewise.
45213 (halt_mod_LDFLAGS): Likewise.
45214 (reboot_mod_SOURCES): Likewise.
45215 (reboot_mod_CFLAGS): Likewise.
45216 (reboot_mod_LDFLAGS): Likewise.
45217
45218 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45219 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45220 reboot.c.
45221 (halt_mod_SOURCES): Likewise.
45222 (reboot_mod_SOURCES): Likewise.
45223
45224 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45225 commands/i386/pc/reboot.c by commands/reboot.c.
45226 (reboot_mod_SOURCES): Likewise.
45227
45228 * commands/i386/pc/reboot.c: merge this file ...
45229
45230 * commands/ieee1275/reboot.c: ... and this file ...
45231
45232 * commands/reboot.c: ... to this file.
45233 Add some precompiler directive to include the correct header for
45234 each machine.
45235
45236 * commands/ieee1275/halt.c: move this file ...
45237
45238 * commands/halt.c: ... to here.
45239 Add some precompiler directive to include the correct header for
45240 each machine.
45241
45242 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45243 (grub_halt): Likewise.
45244
45245 * kern/efi/efi.c (grub_reboot): New function.
45246 (grub_halt): Likewise.
45247
45248 2008-02-12 Robert Millan <rmh@aybabtu.com>
45249
45250 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45251 /dev (like it is done for /dev/mapper). This doesn't provide support
45252 for EVMS, but at least it is now easy to identify the problem when it
45253 arises.
45254
45255 2008-02-11 Robert Millan <rmh@aybabtu.com>
45256
45257 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45258 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45259 comparing it with -1, not 0.
45260
45261 2008-02-10 Robert Millan <rmh@aybabtu.com>
45262
45263 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45264 `disk/lvm.c'.
45265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45266 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45267
45268 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45269 `disk/lvm.c' to the end of the list.
45270 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45271 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45272
45273 2008-02-10 Robert Millan <rmh@aybabtu.com>
45274
45275 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45276 grub_print_error() instead. This will let user know why we're entering
45277 rescue mode.
45278 Based on suggestions from Sam Morris.
45279
45280 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45281
45282 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45283 on remaining N args, instead of "--" arg N times.
45284
45285 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45286
45287 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45288 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45289 pattern for unknown glyphs.
45290
45291 2008-02-09 Robert Millan <rmh@aybabtu.com>
45292
45293 * configure.ac: Probe for `help2man'.
45294 * Makefile.in (builddir): New variable.
45295 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45296 or otherwise add a few flags/options to it.
45297 (install-local): For every executable utility or script that is
45298 installed, invoke $(HELP2MAN) to install a manpage based on --help
45299 output.
45300
45301 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45302 that it doesn't prevent --help from working in build tree.
45303
45304 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45305 with `bug-grub@gnu.org'.
45306 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45307 * util/update-grub.in (usage): New function.
45308 Implement proper argument check, with support for --help and --version
45309 (as well as existing -y).
45310
45311 2008-02-09 Christian Franke <franke@computer.org>
45312
45313 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45314 avoid overwriting previous output.
45315 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45316
45317 2008-02-09 Robert Millan <rmh@aybabtu.com>
45318
45319 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45320 drawing the menu.
45321
45322 2008-02-09 Robert Millan <rmh@aybabtu.com>
45323
45324 * commands/sleep.c: New file.
45325 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45326 (sleep_mod_SOURCES): New variable.
45327 (sleep_mod_CFLAGS): Likewise.
45328 (sleep_mod_LDFLAGS): Likewise.
45329
45330 2008-02-09 Robert Millan <rmh@aybabtu.com>
45331
45332 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45333 situations in which we can deduce the RAID size and the superblock
45334 doesn't match it.
45335
45336 2008-02-09 Robert Millan <rmh@aybabtu.com>
45337
45338 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45339 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45340 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45341
45342 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45343 and return a grub_diskmemberlist_t composed of physical array members.
45344 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45345
45346 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45347 prototype.
45348 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45349 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45350 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45351
45352 * util/grub-probe.c (probe): Move partmap probing code from here ...
45353 (probe_partmap): ... to here.
45354 (probe): Use probe_partmap() once for the disk we're probing, and
45355 additionally, when such disk contains a memberlist() struct member,
45356 once for each disk that is contained in the structure returned by
45357 memberlist().
45358
45359 2008-02-09 Robert Millan <rmh@aybabtu.com>
45360
45361 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45362 environment variable to 'all' in order to obtain debug output from
45363 non-util/ code.
45364 * util/i386/pc/grub-setup.c (main): Likewise.
45365
45366 2008-02-08 Robert Millan <rmh@aybabtu.com>
45367
45368 * disk/raid.c (grub_raid_scan_device): Check for
45369 `array->device[sb.this_disk.number]' rather than for
45370 `array->device[sb.this_disk.number]->name', since the latter is not
45371 guaranteed to be accessible.
45372
45373 2008-02-08 Robert Millan <rmh@aybabtu.com>
45374
45375 * disk/raid.c: Update copyright.
45376 * fs/cpio.c: Likewise.
45377 * include/grub/raid.h: Likewise.
45378 * loader/i386/pc/multiboot.c: Likewise.
45379 * util/hostfs.c: Likewise.
45380
45381 2008-02-08 Robert Millan <rmh@aybabtu.com>
45382
45383 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45384 to a grub_disk_t array.
45385 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45386 `device[x]'.
45387 (grub_raid_scan_device): Replace `device[x].name' accesses with
45388 `device[x]->name'. Simplify initialization of `array->device[x]'.
45389
45390 2008-02-08 Robert Millan <rmh@aybabtu.com>
45391
45392 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45393 grub_dprintf() calls.
45394 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45395 error message.
45396
45397 2008-02-07 Christian Franke <franke@computer.org>
45398
45399 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45400 instead of fseek and ftell to support large files.
45401 (grub_hostfs_read): Likewise.
45402
45403 2008-02-07 Robert Millan <rmh@aybabtu.com>
45404
45405 Patch from Jeroen Dekkers.
45406 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45407 failure, since successfully reading all array members might not be
45408 required.
45409
45410 2008-02-06 Robert Millan <rmh@aybabtu.com>
45411
45412 * util/grub-probe.c (probe): Simplify partmap probing (with the
45413 assumption that the first word up to the underscore equals to
45414 the module name).
45415
45416 2008-02-06 Christian Franke <franke@computer.org>
45417
45418 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45419 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45420 last block of a cpio or tar stream.
45421 Check for "TRAILER!!!" instead of any empty data
45422 block to detect last block of a cpio stream.
45423 (grub_cpio_dir): Fix constness of variable np.
45424 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45425 cpio or tar trailer is detected. This fixes a crash
45426 on open of a non existing file.
45427
45428 2008-02-05 Bean <bean123ch@gmail.com>
45429
45430 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45431 address of entry.
45432 (grub_multiboot_load_elf64): Likewise.
45433 (grub_multiboot): Initialize mbi structure.
45434
45435 * util/grub-fstest.c: Don't include unused header file script.h.
45436
45437 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45438 of file.
45439 (grub_fstest_SOURCES): Likewise.
45440
45441 2008-02-05 Robert Millan <rmh@aybabtu.com>
45442
45443 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45444 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45445 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45446 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45447
45448 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45449 (translation_table): Replace hardcoded values with macros
45450 provided by `<grub/term.h>'.
45451
45452 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45453 (keyboard_map): Correct/add a few values, with macros provided
45454 by `<grub/term.h>'.
45455 (keyboard_map_shift): Zero values that don't differ from their
45456 `keyboard_map' equivalents.
45457 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45458 Discard the second scan code that is always sent by Caps lock.
45459 Only use `keyboard_map_shift' when it provides a non-zero value,
45460 otherwise fallback to `keyboard_map'.
45461
45462 2008-02-04 Bean <bean123ch@gmail.com>
45463
45464 * Makefile.in (enable_grub_fstest): New variable.
45465
45466 * conf/common.rmk (grub_fstest_init.lst): New rule.
45467 (grub_fstest_init.h): Likewise.
45468 (grub_fstest_init.c): Likewise.
45469 (util/grub-fstest.c_DEPENDENCIES): New variable.
45470 (grub_fstest_SOURCES): Likewise.
45471
45472 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45473
45474 * util/grub-fstest.c: New file.
45475
45476 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45477
45478 Make grub-setup handle a separate root device.
45479
45480 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45481 so that the root device can be compared with the destination
45482 device.
45483 When embedding the core image, if the root and destination devices
45484 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45485 0xFF.
45486 When not embedding, set ROOT_DRIVE to 0xFF.
45487
45488 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45489
45490 Add support for having a grub directory in a different drive. This
45491 is still only the data handling part.
45492
45493 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45494 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45495 (grub_root_drive): New variable.
45496
45497 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45498 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45499 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45500 as it was.
45501
45502 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45503
45504 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45505 macro.
45506 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45507
45508 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45509 is bogus, because PXE booting does not specify any drive
45510 correctly.
45511
45512 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45513 am not sure if this is really correct.
45514
45515 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45516 is always identical to the boot drive when booting from a CD.
45517
45518 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45519 longer.
45520 (root_drive): New variable.
45521 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45522 (setup_sectors): Push %dx right after popping it, because %dh will
45523 be modified later.
45524 (copy_buffer): Restore %dx.
45525
45526 2008-02-03 Robert Millan <rmh@aybabtu.com>
45527
45528 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45529 use `cdboot.img' for cdrom images.
45530
45531 2008-02-03 Robert Millan <rmh@aybabtu.com>
45532
45533 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45534 only setup gfxterm when `font' command has succeeded.
45535
45536 2008-02-03 Robert Millan <rmh@aybabtu.com>
45537
45538 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45539 (grub_rescue_cmd_multiboot_loader)
45540 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45541
45542 2008-02-03 Pavel Roskin <proski@gnu.org>
45543
45544 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45545 %edx and %esi from stack only after grub_gate_a20() is called.
45546 grub_gate_a20() clobbers %edx.
45547
45548 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45549
45550 * configure.ac (AC_INIT): Bumped to 1.96.
45551
45552 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45553 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45554 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45555 video/readers/png.c.
45556
45557 2008-02-03 Bean <bean123ch@gmail.com>
45558
45559 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45560 (cdboot_img_SOURCES): New variable.
45561 (cdboot_img_ASFLAGS): New variable.
45562 (cdboot_img_LDFLAGS): New variable.
45563
45564 * boot/i386/pc/cdboot.S: New file.
45565
45566 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45567 (cd_count): Likewise.
45568 (grub_biosdisk_get_drive): Add support for cd device.
45569 (grub_biosdisk_call_hook): Likewise.
45570 (grub_biosdisk_iterate): Likewise.
45571 (grub_biosdisk_open): Likewise.
45572 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45573 (grub_biosdisk_rw): Support reading from cd device.
45574 (GRUB_MOD_INIT): Iterate cd devices.
45575
45576 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45577 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45578 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45579
45580 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45581
45582 2008-02-02 Robert Millan <rmh@aybabtu.com>
45583
45584 * commands/read.c: New file.
45585 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45586 (read_mod_SOURCES): New variable.
45587 (read_mod_CFLAGS): Likewise.
45588 (read_mod_LDFLAGS): Likewise.
45589
45590 2008-02-02 Robert Millan <rmh@aybabtu.com>
45591
45592 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45593 determining whether menu has to be displayed.
45594
45595 2008-02-02 Marco Gerards <marco@gnu.org>
45596
45597 * bus/pci.c: New file.
45598
45599 * include/grub/pci.h: Likewise.
45600
45601 * include/grub/i386/pc/pci.h: Likewise.
45602
45603 * commands/lspci.c: Likewise.
45604
45605 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45606 `lspci.mod'.
45607 (pci_mod_SOURCES): New variable.
45608 (pci_mod_CFLAGS): Likewise.
45609 (pci_mod_LDFLAGS): Likewise.
45610 (lspci_mod_SOURCES): Likewise.
45611 (lspci_mod_CFLAGS): Likewise.
45612 (lspci_mod_LDFLAGS): Likewise.
45613
45614 2008-02-02 Bean <bean123ch@gmail.com>
45615
45616 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45617 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45618
45619 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45620 (grub_xfs_btree_node): New structure.
45621 (grub_xfs_btree_root): New structure.
45622 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45623 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45624 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45625 (GRUB_XFS_EXTENT_SIZE): Likewise.
45626 (grub_xfs_read_block): Support btree format type.
45627 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45628 Use directory block as basic unit.
45629
45630 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45631
45632 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45633 __attribute__ ((__regparm__ (1))).
45634
45635 2008-02-01 Robert Millan <rmh@aybabtu.com>
45636
45637 Correct a mistake in previous commit.
45638
45639 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45640 top.
45641 (normal/command.c_DEPENDENCIES): New variable.
45642
45643 2008-02-01 Robert Millan <rmh@aybabtu.com>
45644
45645 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45646 top.
45647 (normal/command.c_DEPENDENCIES): New variable.
45648 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45649 * conf/i386-ieee1275.rmk: Likewise.
45650 * conf/i386-linuxbios.rmk: Likewise.
45651 * conf/i386-pc.rmk: Likewise.
45652 * conf/sparc64-ieee1275.rmk: Likewise.
45653 * conf/powerpc-ieee1275.rmk: Likewise.
45654 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45655
45656 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45657
45658 2008-02-01 Robert Millan <rmh@aybabtu.com>
45659
45660 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45661 call at beginning of function.
45662
45663 2008-01-31 Pavel Roskin <proski@gnu.org>
45664
45665 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45666 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45667 (grub_mkrescue_SOURCES): Likewise.
45668 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45669
45670 2008-01-30 Robert Millan <rmh@aybabtu.com>
45671
45672 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45673 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45674 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45675 (grub_probe_SOURCES): ... to here.
45676
45677 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45678 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45679 * conf/i386-ieee1275.rmk: Likewise.
45680 * conf/i386-linuxbios.rmk: Likewise.
45681 * conf/powerpc-ieee1275.rmk: Likewise.
45682
45683 2008-01-30 Tristan Gingold <gingold@free.fr>
45684
45685 * kern/rescue.c: Silently accept empty lines.
45686
45687 2008-01-29 Bean <bean123ch@gmail.com>
45688
45689 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45690 (real_code_2): Code cleanup and change comment style.
45691 (move_memory): Avoid using 32-bit address mode.
45692
45693 2008-01-29 Bean <bean123ch@gmail.com>
45694
45695 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45696 (png_mod_SOURCES): New variable.
45697 (png_mod_CFLAGS): Likewise.
45698 (png_mod_LDFLAGS): Likewise.
45699
45700 * video/readers/png.c: New file.
45701
45702 2008-01-28 Robert Millan <rmh@aybabtu.com>
45703
45704 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45705 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45706 `ifndef GRUB_MOD_GAP' hack.
45707 * util/elf/grub-mkimage.c (add_segments): Likewise.
45708
45709 2008-01-27 Robert Millan <rmh@aybabtu.com>
45710
45711 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45712 `GRUB_MOD_GAP' for platforms in which it's not defined.
45713 * util/elf/grub-mkimage.c (add_segments): Likewise.
45714
45715 2008-01-27 Robert Millan <rmh@aybabtu.com>
45716
45717 Get grub-emu to build again (including parallel builds).
45718
45719 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45720 Split into ...
45721 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45722 (normal/execute.c_DEPENDENCIES): ... this, ...
45723 (grub-emu_DEPENDENCIES): ... and this.
45724
45725 * conf/i386-efi.rmk: Likewise.
45726 * conf/i386-linuxbios.rmk: Likewise.
45727 * conf/i386-ieee1275.rmk: Likewise.
45728 * conf/powerpc-ieee1275.rmk: Likewise.
45729 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45730
45731 2008-01-27 Robert Millan <rmh@aybabtu.com>
45732
45733 * NEWS: Add a few items.
45734
45735 2008-01-27 Robert Millan <rmh@aybabtu.com>
45736
45737 Fix parallel builds with grub-emu. Based on earlier commit for
45738 grub-probe and grub-setup.
45739
45740 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45741 (util/grub-emu.c_DEPENDENCIES): ... this.
45742 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45743 (util/grub-emu.c_DEPENDENCIES): ... this.
45744 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45745 (util/grub-emu.c_DEPENDENCIES): ... this.
45746 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45747 (util/grub-emu.c_DEPENDENCIES): ... this.
45748 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45749 (util/grub-emu.c_DEPENDENCIES): ... this.
45750
45751 2008-01-27 Pavel Roskin <proski@gnu.org>
45752
45753 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45754 to create a gap between _end and the modules added to the image
45755 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45756 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45757 * util/elf/grub-mkimage.c (add_segments): Likewise.
45758
45759 2008-01-26 Pavel Roskin <proski@gnu.org>
45760
45761 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45762 just return an error.
45763
45764 2008-01-26 Bean <bean123ch@gmail.com>
45765
45766 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45767 (grub_reiserfs_get_item): Save offset of the next item.
45768 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45769
45770 2008-01-25 Robert Millan <rmh@aybabtu.com>
45771
45772 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45773 make all filesystem sources appear together (possibly fixing omissions
45774 while at it).
45775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45777 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45779
45780 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45781 add `kern/file.c'.
45782 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45783 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45784 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45785 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45786
45787 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45788 (probe): Add a sanity check to make sure of our ability to read
45789 requested files when probing for filesystem type.
45790
45791 * genmk.rb: Update copyright year (2007).
45792
45793 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
45794 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
45795 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
45796 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
45797 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
45798 : Remove function prototypes.
45799
45800 2008-01-25 Robert Millan <rmh@aybabtu.com>
45801
45802 Revert my previous commits (based on wrong assumption of how grub_errno
45803 works).
45804
45805 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
45806 * kern/file.c (grub_file_open): Likewise.
45807
45808 2008-01-24 Pavel Roskin <proski@gnu.org>
45809
45810 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45811 that hang if GRUB tries to setup colors.
45812 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45813 colors for firmwares that don't support it.
45814 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45815 Recognize Open Hack'Ware, set flags to work around its
45816 limitations.
45817
45818 2008-01-24 Robert Millan <rmh@aybabtu.com>
45819
45820 * kern/file.c (grub_file_open): Do not account previous failures of
45821 unrelated functions when grub_errno is checked for.
45822 Reported by Oleg Strikov.
45823
45824 2008-01-24 Bean <bean123ch@gmail.com>
45825
45826 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45827 (grub_ufs_sblock): New member volume name.
45828 (grub_ufs_find_file): Fix string copy bug.
45829 (grub_ufs_label): Implement this function properly.
45830
45831 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45832 (grub_hfs_iterate_records): Use the correct file number for extents
45833 and catalog file. Fix problem in next index calculation.
45834 (grub_hfs_find_node): Replace recursive function call with loop.
45835 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45836
45837 2008-01-23 Robert Millan <rmh@aybabtu.com>
45838
45839 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45840 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45841 (grub_multiboot2_real_boot): New function prototype.
45842
45843 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45844 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45845
45846 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45847 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45848
45849 2008-01-23 Robert Millan <rmh@aybabtu.com>
45850
45851 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45852 #ifdef'ed out grub_printf().
45853
45854 2008-01-23 Robert Millan <rmh@aybabtu.com>
45855
45856 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45857 grub_dprintf calls, since they make "debug=all" mode unusable.
45858 (grub_console_checkkey): Likewise.
45859
45860 2008-01-23 Robert Millan <rmh@aybabtu.com>
45861
45862 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45863 `term/i386/pc/at_keyboard.c'.
45864 (pkglib_MODULES): Add `serial.mod'.
45865 (serial_mod_SOURCES): New variable.
45866 (serial_mod_CFLAGS): Likewise.
45867 (serial_mod_LDFLAGS): Likewise.
45868
45869 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45870 `<grub/powerpc/ieee1275/console.h>'.
45871 (grub_keyboard_controller_init): New function prototype.
45872 (grub_console_checkkey): Likewise.
45873 (grub_console_getkey): Likewise.
45874
45875 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45876 keyboard on i386.
45877
45878 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45879 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45880
45881 2008-01-23 Robert Millan <rmh@aybabtu.com>
45882
45883 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45884 present, "(memdisk)/boot/grub" becomes the default prefix.
45885
45886 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45887 a memdisk tarball with all the modules. Add --overlay=DIR option that
45888 allows users to overlay additional files into the image.
45889
45890 2008-01-23 Robert Millan <rmh@aybabtu.com>
45891
45892 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45893 and `machine/memory.h'.
45894 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45895 (_multiboot_mod_SOURCES): New variable.
45896 (_multiboot_mod_CFLAGS): Likewise.
45897 (_multiboot_mod_LDFLAGS): Likewise.
45898 (multiboot_mod_SOURCES): Likewise.
45899 (multiboot_mod_CFLAGS): Likewise.
45900 (multiboot_mod_LDFLAGS): Likewise.
45901
45902 * include/grub/i386/ieee1275/loader.h: New file.
45903
45904 * include/grub/i386/ieee1275/machine.h: Likewise.
45905
45906 * include/grub/i386/ieee1275/memory.h: Likewise.
45907
45908 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45909 variable declaration.
45910 (grub_os_area_size): Likewise.
45911
45912 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45913 (grub_lower_mem, grub_upper_mem): New variables.
45914 (grub_stop_floppy): New function (just to make
45915 grub_multiboot2_real_boot() happy).
45916
45917 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45918 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45919 (grub_stop): New function.
45920 Include `"../realmode.S"' and `"../loader.S"'.
45921
45922 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45923 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45924
45925 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45926 rely on grub_multiboot2_real_boot() for final boot.
45927
45928 2008-01-22 Robert Millan <rmh@aybabtu.com>
45929
45930 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45931 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45932 device that doesn't look like an SD card.
45933 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45934 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45935 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45936 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45937 found.
45938
45939 2008-01-22 Robert Millan <rmh@aybabtu.com>
45940
45941 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45942 avoid claiming over our own code.
45943
45944 2008-01-22 Bean <bean123ch@gmail.com>
45945
45946 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45947 (jpeg_mod_SOURCES): New variable.
45948 (jpeg_mod_CFLAGS): Likewise.
45949 (jpeg_mod_LDFLAGS): Likewise.
45950
45951 * video/readers/jpeg.c : New file.
45952
45953 2008-01-22 Bean <bean123ch@gmail.com>
45954
45955 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45956 there are no more items.
45957
45958 2008-01-21 Robert Millan <rmh@aybabtu.com>
45959
45960 * kern/mm.c (grub_mm_init_region): Improve debug message.
45961
45962 2008-01-21 Robert Millan <rmh@aybabtu.com>
45963
45964 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45965 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45966 address.
45967 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45968 a C macro.
45969 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45970 Indicates start of upper memory.
45971 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45972 (generate_image): Abort when image size is big enough to corrupt
45973 upper memory.
45974
45975 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45976 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45977 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45978 instead of hardcoding 0xA0000.
45979 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45980 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45981 instead of hardcoding 0xA0000.
45982
45983 2008-01-21 Robert Millan <rmh@aybabtu.com>
45984
45985 * disk/memdisk.c (memdisk_size): New variable.
45986 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45987 `memdisk_size'.
45988 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45989 image to dynamic memory.
45990 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45991 `memdisk_size'. Free memdisk block.
45992
45993 2008-01-21 Robert Millan <rmh@aybabtu.com>
45994
45995 Fix detection of very small filesystems (like tar).
45996
45997 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45998 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45999 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46000 a problem with this disk).
46001
46002 2008-01-21 Robert Millan <rmh@aybabtu.com>
46003
46004 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46005 on grub_biosdisk_rw_standard() error.
46006
46007 2008-01-21 Robert Millan <rmh@aybabtu.com>
46008
46009 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46010 recent changes.
46011 * kern/elf.c: Likewise.
46012 * kern/ieee1275/ieee1275.c: Likewise.
46013 * kern/powerpc/ieee1275/openfw.c: Likewise.
46014 * term/ieee1275/ofconsole.c: Likewise.
46015
46016 2008-01-21 Robert Millan <rmh@aybabtu.com>
46017
46018 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46019
46020 * include/grub/kernel.h (grub_arch_memdisk_addr)
46021 (grub_arch_memdisk_size): Moved from here ...
46022
46023 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46024 (grub_arch_memdisk_size): ... to here.
46025
46026 2008-01-21 Robert Millan <rmh@aybabtu.com>
46027
46028 Mostly based on bugfix from Bean.
46029
46030 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46031 attribute with hook() parameter.
46032 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46033 declaration.
46034 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46035 attribute with hook() parameter.
46036 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46037 declaration.
46038
46039 2008-01-21 Robert Millan <rmh@aybabtu.com>
46040
46041 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46042 (pkglib_MODULES): Add `memdisk.mod'.
46043 (memdisk_mod_SOURCES): New variable.
46044 (memdisk_mod_CFLAGS): Likewise.
46045 (memdisk_mod_LDFLAGS): Likewise.
46046
46047 * disk/memdisk.c: New file.
46048
46049 * include/grub/disk.h (grub_disk_dev_id): Add
46050 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46051
46052 * include/grub/i386/pc/kernel.h
46053 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46054 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46055 (grub_kernel_image_size): New variable declaration.
46056 (grub_total_module_size): Likewise.
46057 (grub_memdisk_image_size): Likewise.
46058
46059 * include/grub/i386/pc/memory.h
46060 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46061
46062 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46063 (grub_arch_memdisk_addr): New variable declaration.
46064 (grub_arch_memdisk_size): Likewise.
46065
46066 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46067 (grub_arch_memdisk_size): Likewise.
46068
46069 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46070 (codestart): Replace hardcoded `0x100000' with
46071 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46072
46073 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46074 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46075 not NULL, append the contents of the file it refers to, at the end of
46076 the compressed kernel image. Initialize `grub_memdisk_image_size'
46077 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46078 (options): Add "memdisk"|'m' option.
46079 (main): Parse --memdisk|-m option, and pass user-provided path as
46080 parameter to generate_image().
46081
46082 2008-01-20 Robert Millan <rmh@aybabtu.com>
46083
46084 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46085 grub_dprintf() calls from here ...
46086 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46087
46088 2008-01-20 Robert Millan <rmh@aybabtu.com>
46089
46090 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46091
46092 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46093 declaration.
46094 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46095 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46096 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46097 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46098 property).
46099 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46100 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46101
46102 2008-01-19 Robert Millan <rmh@aybabtu.com>
46103
46104 Get rid of confusing function (superseded by
46105 `grub_ieee1275_get_integer_property')
46106 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46107 prototype.
46108 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46109 function.
46110 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46111 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46112 in native endianness from grub_ieee1275_get_integer_property().
46113
46114 2008-01-19 Robert Millan <rmh@aybabtu.com>
46115
46116 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46117 command after "shut-down", since implementations differ on which
46118 the command for halt is.
46119
46120 2008-01-19 Robert Millan <rmh@aybabtu.com>
46121
46122 * include/grub/i386/linuxbios/console.h: Add header protection.
46123 (grub_keyboard_controller_init): New function prototype.
46124 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46125 (KEYBOARD_COMMAND_READ): Likewise.
46126 (KEYBOARD_COMMAND_WRITE): Likewise.
46127 (KEYBOARD_SCANCODE_SET1): Likewise.
46128 (grub_keyboard_controller_write): New function.
46129 (grub_keyboard_controller_read): Likewise.
46130 (grub_keyboard_controller_init): Likewise.
46131
46132 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46133 (grub_console_init): On coreboot/LinuxBIOS, call
46134 grub_keyboard_controller_init().
46135
46136 2008-01-19 Robert Millan <rmh@aybabtu.com>
46137
46138 PowerPC changes provided by Pavel Roskin.
46139
46140 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46141 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46142 don't rely on cmain() doing it.
46143 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46144 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46145
46146 2008-01-16 Robert Millan <rmh@aybabtu.com>
46147
46148 * include/grub/i386/linuxbios/memory.h
46149 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46150 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46151 receive `table_header' as argument. Instead, probe for it in the
46152 known memory ranges where it can be present.
46153 (grub_available_iterate): Do not pass a fixed `table_header' address
46154 to grub_linuxbios_table_iterate().
46155
46156 2008-01-15 Robert Millan <rmh@aybabtu.com>
46157
46158 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46159 * conf/i386-ieee1275.rmk: New file.
46160 * include/grub/i386/ieee1275/console.h: Likewise.
46161 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46162 * include/grub/i386/ieee1275/kernel.h: Likewise.
46163 * include/grub/i386/ieee1275/time.h: Likewise.
46164 * kern/i386/ieee1275/init.c: Likewise.
46165 * kern/i386/ieee1275/startup.S: Likewise.
46166
46167 2008-01-15 Robert Millan <rmh@aybabtu.com>
46168
46169 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46170 when pointers are 32-bit (but still do set it to one when they are
46171 64-bit).
46172
46173 2008-01-15 Robert Millan <rmh@aybabtu.com>
46174
46175 * include/grub/ieee1275/ieee1275.h
46176 (grub_ieee1275_get_integer_property): New function prototype.
46177
46178 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46179 (grub_ieee1275_get_integer_property): New function. Wraps around
46180 grub_ieee1275_get_property() to handle endianness.
46181
46182 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46183 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46184 where appropriate.
46185 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46186 (grub_map): Likewise.
46187 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46188
46189 2008-01-15 Bean <bean123ch@gmail.com>
46190
46191 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46192 (grub_script_execute_cmdline): Reset grub_errno.
46193
46194 * normal/main.c (read_config_file): Reset grub_errno.
46195
46196 * normal/parse.y (script_init): New.
46197 (script): Move function and menuentry here.
46198 (delimiter): New.
46199 (command): Add delimiter at the end of command.
46200 (commands): Adjust to match the new command.
46201 (commandblock): Remove grub_script_lexer_record_start.
46202 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46203 (if): Use the new commands.
46204
46205 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46206
46207 2008-01-15 Robert Millan <rmh@aybabtu.com>
46208
46209 * normal/menu.c (run_menu): Move timeout message from here ...
46210 (print_timeout): ... to here.
46211 (run_menu): Use print_timeout() once during initial draw to print
46212 the whole message, and again in every clock tick to update only
46213 the number of seconds.
46214
46215 2008-01-15 Robert Millan <rmh@aybabtu.com>
46216
46217 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46218 actual size of `available' from grub_ieee1275_get_property(), and
46219 restrict parsing to that bound.
46220
46221 2008-01-15 Christian Franke <franke@computer.org>
46222
46223 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46224 (argp_program_version): Remove variable.
46225 (argp_program_bug_address): Likewise.
46226 (options): Convert from struct argp_option to struct option.
46227 (struct arguments): Remove.
46228 (parse_opt): Remove.
46229 (usage): New function.
46230 (main): Replace struct args members by simple variables.
46231 Replace argp_parse() by getopt_long().
46232 Add switch to evaluate options.
46233 Add missing "(...)" around root_dev in prefix string.
46234
46235 2008-01-14 Robert Millan <rmh@aybabtu.com>
46236
46237 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46238 for grub_ieee1275_exit(), in order to improve portability.
46239
46240 2008-01-14 Robert Millan <rmh@aybabtu.com>
46241
46242 * util/grub.d/10_linux.in (prefix): Define.
46243 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46244
46245 2008-01-13 Pavel Roskin <proski@gnu.org>
46246
46247 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46248 grub_errno if no errors have been detected.
46249
46250 2008-01-12 Robert Millan <rmh@aybabtu.com>
46251
46252 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46253 (grub_util_get_dev_abstraction): New function prototype.
46254
46255 * util/getroot.c: Include `<grub/util/getroot.h>'
46256 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46257 (grub_util_get_dev_abstraction): ... here (new function).
46258
46259 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46260 `PRINT_ABSTRACTION'.
46261 (probe): Probe for abstraction type when requested.
46262 (main): Understand `--target=abstraction'.
46263
46264 * util/i386/efi/grub-install.in: Add abstraction module to core
46265 image when it is found to be necessary.
46266 * util/i386/pc/grub-install.in: Likewise.
46267 * util/powerpc/ieee1275/grub-install.in: Likewise.
46268
46269 * util/update-grub_lib.in (font_path): Return system path without
46270 converting to GRUB path.
46271 * util/update-grub.in: Convert system path returned by font_path()
46272 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46273 abstraction module is needed for loading fonts (if any). Export
46274 that as `GRUB_PRELOAD_MODULES'.
46275 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46276 insmod commands).
46277
46278 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46279
46280 Remove some unused code from reiserfs.
46281
46282 * fs/reiserfs.c (struct grub_reiserfs_key)
46283 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46284 (struct grub_reiserfs_node_body): Removed.
46285 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46286 Likewise.
46287 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46288 Likewise.
46289 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46290 Likewise.
46291 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46292 Likewise.
46293 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46294 Likewise.
46295 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46296 Likewise.
46297 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46298 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46299 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46300
46301 2008-01-10 Robert Millan <rmh@aybabtu.com>
46302
46303 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46304 Determines if a file is garbage left by packaging systems, etc.
46305 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46306 for processing /etc/grub.d scripts.
46307 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46308 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46309 as a condition for processing Linux images.
46310
46311 2008-01-10 Pavel Roskin <proski@gnu.org>
46312
46313 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46314 to compile reiserfs.c on PowerPC.
46315
46316 2008-01-10 Robert Millan <rmh@aybabtu.com>
46317
46318 * kern/device.c (grub_device_iterate): Do not abort device iteration
46319 when one of the devices cannot be opened.
46320 * kern/disk.c (grub_disk_open): Do not account previous failures of
46321 unrelated functions when grub_errno is checked for.
46322
46323 2008-01-08 Robert Millan <rmh@aybabtu.com>
46324
46325 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46326 `! grub_linux_is_bzimage', change order of address comparison to make
46327 it more intuitive, and improve "too big zImage" error message.
46328
46329 2008-01-08 Robert Millan <rmh@aybabtu.com>
46330
46331 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46332 `$(update-grub_DATA)'.
46333 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46334 targets.
46335
46336 2008-01-07 Robert Millan <rmh@aybabtu.com>
46337
46338 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46339 which instruction is modified by grub-setup during installation
46340 (since it wasn't obvious by only looking at this file).
46341
46342 2008-01-07 Robert Millan <rmh@aybabtu.com>
46343
46344 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46345 listing actual TODO items.
46346
46347 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46348
46349 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46350 correctly.
46351 (grub_reiserfs_get_key_offset): Likewise.
46352 (grub_reiserfs_set_key_offset): Likewise.
46353 (grub_reiserfs_set_key_type): Likewise.
46354 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46355
46356 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46357 better to remove the bitfield version completely.
46358
46359 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46360
46361 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46362 allocated from the heap, due to the fshelp implementation.
46363 (grub_reiserfs_dir): Free NODE, due to the same reason.
46364
46365 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46366
46367 Mostly from Vincent Pelletier:
46368
46369 * fs/reiserfs.c: New file.
46370
46371 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46372 (reiserfs_mod_SOURCES): New variable.
46373 (reiserfs_mod_CFLAGS): Likewise.
46374 (reiserfs_mod_LDFLAGS): Likewise.
46375
46376 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46377 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46378 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46379 normal/color.c.
46380
46381 2008-01-06 Robert Millan <rmh@aybabtu.com>
46382
46383 * normal/color.c: Remove `<grub/env.h>'.
46384
46385 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46386
46387 * include/grub/normal.h: Include <grub/env.h>.
46388
46389 2008-01-05 Robert Millan <rmh@aybabtu.com>
46390
46391 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46392 usage example with `(hd0,1)'.
46393 Reported by Samuel Thibault.
46394
46395 2008-01-05 Robert Millan <rmh@aybabtu.com>
46396
46397 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46398 (grub_linux_boot_zimage): Rename to ...
46399 (grub_linux_boot): ... this.
46400 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46401 (grub_linux_boot_zimage): Conditionalize zImage copy.
46402
46403 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46404 (grub_linux_boot_bzimage): Remove prototype.
46405 (grub_linux_boot_zimage): Rename to ...
46406 (grub_linux_boot): ... this.
46407
46408 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46409 (grub_linux_boot): Remove function.
46410
46411 2008-01-05 Robert Millan <rmh@aybabtu.com>
46412
46413 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46414 (grub_env_write_color_highlight): Likewise.
46415 (grub_wait_after_message): Likewise.
46416
46417 * normal/color.c: New file.
46418
46419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46420 (normal_mod_DEPENDENCIES): Likewise.
46421
46422 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46423 (normal_mod_DEPENDENCIES): Likewise.
46424
46425 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46426 (normal_mod_DEPENDENCIES): Likewise.
46427
46428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46429 (normal_mod_DEPENDENCIES): Likewise.
46430
46431 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46432 for waiting after a message is printed.
46433 * normal/main.c (read_config_file): Likewise.
46434 (grub_normal_init): Register grub_env_write_color_normal() and
46435 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46436 `color_highlight' variables as global.
46437
46438 * normal/menu.c (grub_wait_after_message): New function.
46439 (grub_color_menu_normal): New variable. Replaces ...
46440 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46441 (grub_color_menu_highlight): New variable. Replaces ...
46442 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46443 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46444 `GRUB_TERM_COLOR_STANDARD'.
46445 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46446 `normal_code' and `highlight_code' to `old_color_normal' and
46447 `old_color_highlight', respectively.
46448 (grub_menu_init_page): Update colors when drawing the menu, based on
46449 `menu_color_normal' and `menu_color_highlight' variables.
46450 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46451 a message is printed.
46452
46453 2008-01-05 Robert Millan <rmh@aybabtu.com>
46454
46455 * kern/env.c (grub_env_context_open): Propagate hooks for global
46456 variables to new context.
46457
46458 * kern/main.c (grub_set_root_dev): Export `root' variable.
46459
46460 2008-01-05 Robert Millan <rmh@aybabtu.com>
46461
46462 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46463 discs unconditionally, since udev and others have options to provide
46464 them.
46465
46466 2008-01-05 Robert Millan <rmh@aybabtu.com>
46467
46468 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46469
46470 2008-01-04 Christian Franke <franke@computer.org>
46471
46472 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46473 of eisa_mmap.
46474
46475 2008-01-03 Pavel Roskin <proski@gnu.org>
46476
46477 * kern/i386/linuxbios/init.c: Put "void" to all function
46478 declarations with no arguments.
46479 * kern/powerpc/ieee1275/init.c: Likewise.
46480 * term/i386/pc/at_keyboard.c: Likewise.
46481 * term/i386/pc/vga_text.c: Likewise.
46482 * util/grub-mkdevicemap.c: Likewise.
46483
46484 2008-01-02 Robert Millan <rmh@aybabtu.com>
46485
46486 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46487 message when loaded image is out of bounds.
46488 (grub_multiboot_load_elf64): Likewise.
46489
46490 2008-01-02 Pavel Roskin <proski@gnu.org>
46491
46492 * util/grub.d/10_linux.in: Try version without ".old" when
46493 looking for initrd. It's better to use initrd from the newer
46494 kernel of the same version than no initrd at all.
46495
46496 2008-01-01 Robert Millan <rmh@aybabtu.com>
46497
46498 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46499
46500 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46501
46502 * include/grub/video.h: Added grub_video_unmap_color and
46503 grub_video_get_active_render_target.
46504 (grub_video_adapter): Added unmap_color and get_active_render_target.
46505
46506 * video/video.c: Added grub_video_unmap_color and
46507 grub_video_get_active_render_target.
46508 (grub_video_get_info): Changed method to accept NULL pointer as an
46509 argument to allow detection of active video adapter.
46510
46511 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46512 grub_video_vbe_unmap_color_int.
46513 Added grub_video_vbe_unmap_color and
46514 grub_video_vbe_get_active_render_target.
46515 (grub_video_vbe_adapter): Added unmap_color and
46516 get_active_render_target.
46517
46518 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46519 with grub_video_vbe_unmap_color_int.
46520
46521 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46522 (DEFAULT_NORMAL_COLOR): Likewise.
46523 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46524 (DEFAULT_FG_COLOR): Removed.
46525 (DEFAULT_BG_COLOR): Likewise.
46526 (DEFAULT_CURSOR_COLOR): Changed value.
46527 (grub_virtual_screen): Added standard_color_setting,
46528 normal_color_setting, highlight_color_setting and term_color.
46529 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46530 (bitmap_width): Added.
46531 (bitmap_height): Likewise.
46532 (bitmap): Likewise.
46533 (set_term_color): Likewise.
46534 (grub_virtual_screen_setup): Changed to use new terminal coloring
46535 settings.
46536 (grub_gfxterm_init): Added init for bitmap.
46537 (grub_gfxterm_fini): Added destroy for bitmap.
46538 (redraw_screen_rect): Updated to use background bitmap and new
46539 terminal coloring.
46540 (scroll_up): Added optimization for case when there is no bitmap.
46541 (grub_gfxterm_cls): Fixed to use correct background color.
46542 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46543 coloring.
46544 (grub_virtual_screen_setcolor): Likewise.
46545 (grub_virtual_screen_getcolor): Added.
46546 (grub_gfxterm_background_image_cmd): Likewise.
46547 (grub_video_term): Added setcolor and getcolor.
46548 (MOD_INIT): Added registration of background_image command.
46549 (MOD_TERM): Added unregistration for background_image command.
46550
46551 2007-12-30 Pavel Roskin <proski@gnu.org>
46552
46553 * loader/multiboot_loader.c: Fix multiboot command
46554 unregistration. Fix all typos in the word "multiboot".
46555
46556 2007-12-29 Pavel Roskin <proski@gnu.org>
46557
46558 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46559 support for initrd names used in Fedora.
46560
46561 2007-12-26 Bean <bean123ch@gmail.com>
46562
46563 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46564 (cpio_mod_SOURCES): New variable.
46565 (cpio_mod_CFLAGS): Likewise.
46566 (cpio_mod_LDFLAGS): Likewise.
46567
46568 * fs/cpio.c: New file.
46569
46570 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46571
46572 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46573
46574 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46575
46576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46577
46578 2007-12-25 Robert Millan <rmh@aybabtu.com>
46579
46580 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46581 (grub_getcolor): New function.
46582
46583 * kern/term.c (grub_getcolor): New function.
46584 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46585 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46586 (print_entry): Set normal and highlight colors to
46587 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46588 respectively, before printing and restore them to old
46589 values afterwards.
46590 (grub_menu_init_page): Likewise. Fill an additional colored space
46591 that would otherwise be left blank.
46592
46593 * term/efi/console.c (grub_console_getcolor): New function.
46594 (struct grub_console_term.getcolor): New variable.
46595 * term/i386/pc/console.c (grub_console_getcolor): New function.
46596 (struct grub_console_term.getcolor): New variable.
46597 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46598 (struct grub_console_term.getcolor): New variable.
46599
46600 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46601 (struct grub_console_term.setcolor): Remove variable.
46602 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46603 (struct grub_console_term.setcolor): Remove variable.
46604 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46605 (struct grub_console_term.setcolor): Remove variable.
46606 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46607 (struct grub_console_term.setcolor): Remove variable.
46608
46609 2007-12-25 Robert Millan <rmh@aybabtu.com>
46610
46611 * configure.ac: Search for possible unifont.hex locations, and
46612 define UNIFONT_HEX if found.
46613
46614 * Makefile.in (UNIFONT_HEX): Define variable.
46615 (DATA): Rename to ...
46616 (PKGLIB): ... this. Update all users.
46617 (PKGDATA): New variable.
46618 (pkgdata_IMAGES): Rename to ...
46619 (pkglib_IMAGES): ... this. Update all users.
46620 (pkgdata_MODULES): Rename to ...
46621 (pkglib_MODULES): ... this. Update all users.
46622 (pkgdata_PROGRAMS): Rename to ...
46623 (pkglib_PROGRAMS): ... this. Update all users.
46624 (pkgdata_DATA): Rename to ...
46625 (pkglib_DATA): ... this. Update all users.
46626 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46627 (unicode.pff, ascii.pff): New rules.
46628 (all-local): Add `$(PKGDATA)' dependency.
46629 (install-local): Process `$(PKGDATA)'.
46630
46631 * util/update-grub_lib.in (font_path): Search for *.pff files in
46632 a few more locations, including `${pkgdata}'.
46633
46634 2007-12-23 Robert Millan <rmh@aybabtu.com>
46635
46636 Patch from Bean <bean123ch@gmail.com>:
46637 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46638 `size'.
46639
46640 2007-12-21 Bean <bean123ch@gmail.com>
46641
46642 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46643 (ntfscomp_mod_SOURCES): New variable.
46644 (ntfscomp_mod_CFLAGS): Likewise.
46645 (ntfscomp_mod_LDFLAGS): Likewise.
46646
46647 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46648 (grub_probe_SOURCES): Likewise.
46649 (grub_emu_SOURCES): Likewise.
46650
46651 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46652 (grub_emu_SOURCES): Likewise.
46653
46654 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46655 (grub_emu_SOURCES): Likewise.
46656
46657 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46658 (grub_emu_SOURCES): Likewise.
46659
46660 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46661 (read_run_list): Renamed to grub_ntfs_read_run_list.
46662 (decomp_nextvcn): Moved to ntfscomp.c.
46663 (decomp_getch): Likewise.
46664 (decomp_get16): Likewise.
46665 (decomp_block): Likewise.
46666 (read_block): Likewise.
46667 (read_data): Partially moved to ntfscomp.c.
46668 (fixup): Change unsigned to grub_uint16_t.
46669 (read_mft): Change unsigned long to grub_uint32_t.
46670 (read_attr): Likewise.
46671 (read_data): Likewise.
46672 (read_run_data): Likewise.
46673 (read_run_list): Likewise.
46674 (read_mft): Likewise.
46675
46676 * fs/ntfscomp.c: New file.
46677
46678 * include/grub/ntfs.h: New file.
46679
46680 2007-12-16 Robert Millan <rmh@aybabtu.com>
46681
46682 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46683 IDE disk check, since Linux is known to support 20 IDE disks.
46684 Reported by Colin Watson.
46685
46686 2007-12-15 Bean <bean123ch@gmail.com>
46687
46688 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46689 (lnxboot_img_SOURCES): New variable.
46690 (lnxboot_img_ASFLAGS): Likewise.
46691 (lnxboot_img_LDFLAGS): Likewise.
46692
46693 * boot/i386/pc/lnxboot.S: New file.
46694
46695 2007-11-24 Pavel Roskin <proski@gnu.org>
46696
46697 * configure.ac: Test if '--build-id=none' is supported by the
46698 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46699 objcopy to generate incorrect binary files (binutils
46700 2.17.50.0.18-1 as shipped by Fedora 8).
46701 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46702 linking, so that build ID doesn't break the test.
46703
46704 2007-11-24 Pavel Roskin <proski@gnu.org>
46705
46706 * include/grub/i386/time.h: use "void" in the argument list
46707 of grub_cpu_idle().
46708 * include/grub/powerpc/time.h: Likewise.
46709 * include/grub/sparc64/time.h: Likewise.
46710
46711 2007-11-18 Christian Franke <franke@computer.org>
46712
46713 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46714 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46715 This fixes the problem that function keys did not work in grub-emu.
46716
46717 2007-11-18 Christian Franke <franke@computer.org>
46718
46719 * disk/host.c (grub_host_open): Remove attribute unused from
46720 name parameter. Add check for "host". This fixes the problem
46721 that grub-emu does not find partitions.
46722
46723 2007-11-18 Christian Franke <franke@computer.org>
46724
46725 * util/hostfs.c (is_dir): New function.
46726 (grub_hostfs_dir): Handle missing dirent.d_type case.
46727 (grub_hostfs_read): Add missing fseek().
46728 (grub_hostfs_label): Clear label pointer. This fixes a crash
46729 of grub-emu on "ls (host)".
46730
46731 2007-11-18 Christian Franke <franke@computer.org>
46732
46733 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46734 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46735 to 64 bit boundary by default.
46736
46737 2007-11-18 Bean <bean123ch@gmail.com>
46738
46739 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46740 (hexdump_mod_SOURCES): New variable.
46741 (hexdump_mod_CFLAGS): Likewise.
46742 (hexdump_mod_LDFLAGS): Likewise.
46743
46744 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46745
46746 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46747
46748 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46749
46750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46751
46752 * include/grub/hexdump.h: New file.
46753
46754 * commands/hexdump.c: New file.
46755
46756 2007-11-10 Robert Millan <rmh@aybabtu.com>
46757
46758 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46759 in grub_outb() calls.
46760 (beep_on): Likewise.
46761
46762 2007-11-10 Christian Franke <franke@computer.org>
46763
46764 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46765 (grub_menu_run): Likewise.
46766
46767 2007-11-10 Robert Millan <rmh@aybabtu.com>
46768
46769 * include/grub/i386/efi/machine.h: New file.
46770 * include/grub/i386/linuxbios/machine.h: Likewise.
46771 * include/grub/i386/pc/machine.h: Likewise.
46772 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46773 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46774
46775 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46776 (serial_hw_io_addr): New variable.
46777 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46778 instead of `(unsigned short *) 0x400'.
46779
46780 2007-11-10 Bean <bean123ch@gmail.com>
46781
46782 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46783
46784 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46785
46786 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46787 (vga_mod_SOURCES): Added.
46788 (vga_mod_CFLAGS): Likewise.
46789 (vga_mod_LDFLAGS): Likewise.
46790
46791 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
46792 grub_outb() calls.
46793 (set_map_mask): Likewise.
46794 (set_read_map): Likewise.
46795 (set_read_address): Likewise.
46796 (vga_font): Removed variable.
46797 (get_vga_glyph): Removed function.
46798 (invalidate_char): Likewise.
46799 (write_char): Changed to use grub_font_get_glyph() for font
46800 information.
46801 (grub_vga_putchar): Likewise.
46802 (grub_vga_getcharwidth): Likewise.
46803
46804 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46805
46806 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46807 flags.
46808 (pxeboot_img_LDFLAGS): Likewise.
46809 (diskboot_img_LDFLAGS): Likewise.
46810 (kernel_img_LDFLAGS): Likewise.
46811
46812 2007-11-06 Robert Millan <rmh@aybabtu.com>
46813
46814 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46815 in grub_outb() calls.
46816 (serial_hw_init): Likewise.
46817
46818 2007-11-05 Robert Millan <rmh@aybabtu.com>
46819
46820 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46821 spaces. Skip non-regular files.
46822
46823 2007-11-05 Robert Millan <rmh@aybabtu.com>
46824
46825 * kern/disk.c (grub_disk_firmware_fini)
46826 (grub_disk_firmware_is_tainted): New variables.
46827
46828 * include/grub/disk.h (grub_disk_firmware_fini)
46829 (grub_disk_firmware_is_tainted): Likewise.
46830
46831 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46832 (grub_disk_biosdisk_fini): ... to here.
46833 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46834 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46835 is set. Register grub_disk_biosdisk_fini() in
46836 `grub_disk_firmware_fini'.
46837
46838 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46839 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46840 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46841 to finish existing firmware disk interface.
46842
46843 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46844 (ata_mod_SOURCES): New variable.
46845 (ata_mod_CFLAGS): Likewise.
46846 (ata_mod_LDFLAGS): Likewise.
46847
46848 2007-11-05 Robert Millan <rmh@aybabtu.com>
46849
46850 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46851 (grub_ata_wait): Reimplement using grub_millisleep().
46852
46853 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46854 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46855
46856 2007-11-03 Marco Gerards <marco@gnu.org>
46857
46858 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46859 (CRTC_ADDR_PORT): New macro.
46860 (CRTC_DATA_PORT): Likewise.
46861 (CRTC_CURSOR): Likewise.
46862 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46863 (CRTC_CURSOR_ADDR_LOW): Likewise.
46864 (update_cursor): New function.
46865 (grub_console_real_putchar): Call `update_cursor'.
46866 (grub_console_gotoxy): Likewise.
46867 (grub_console_cls): Set the default color when clearing the
46868 screen.
46869 (grub_console_setcursor): Implemented.
46870
46871 2007-11-03 Marco Gerards <marco@gnu.org>
46872
46873 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46874 become activate.
46875 (grub_ata_pio_write): Likewise.
46876
46877 (grub_atapi_identify): Wait after issuing an ATA command.
46878 (grub_atapi_packet): Likewise.
46879 (grub_ata_identify): Likewise.
46880 (grub_ata_readwrite): Likewise.
46881
46882 2007-11-03 Marco Gerards <marco@gnu.org>
46883
46884 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46885 (grub_ata_pio_write): Likewise.
46886 (grub_ata_readwrite): Use `grub_error', instead of
46887 returning `grub_errno'.
46888
46889 2007-11-03 Marco Gerards <marco@gnu.org>
46890
46891 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46892 grub_ata_pio_write once for every single sector, instead of for
46893 multiple sectors.
46894
46895 2007-10-31 Robert Millan <rmh@aybabtu.com>
46896
46897 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46898
46899 * conf/i386-linuxbios.rmk: New file.
46900
46901 * kern/i386/pc/hardware.c: Likewise.
46902 * term/i386/pc/at_keyboard.c: Likewise.
46903 * term/i386/pc/vga_text.c: Likewise.
46904
46905 * include/grub/i386/linuxbios/boot.h: Likewise.
46906 * include/grub/i386/linuxbios/console.h: Likewise.
46907 * include/grub/i386/linuxbios/init.h: Likewise.
46908 * include/grub/i386/linuxbios/kernel.h: Likewise.
46909 * include/grub/i386/linuxbios/loader.h: Likewise.
46910 * include/grub/i386/linuxbios/memory.h: Likewise.
46911 * include/grub/i386/linuxbios/serial.h: Likewise.
46912 * include/grub/i386/linuxbios/time.h: Likewise.
46913
46914 * kern/i386/linuxbios/init.c: Likewise.
46915 * kern/i386/linuxbios/startup.S: Likewise.
46916 * kern/i386/linuxbios/table.c: Likewise.
46917
46918 2007-10-31 Marco Gerards <marco@gnu.org>
46919
46920 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46921 (ata_mod_SOURCES): New variable.
46922 (ata_mod_CFLAGS): Likewise.
46923 (ata_mod_LDFLAGS): Likewise.
46924
46925 * disk/ata.c: New file.
46926
46927 * include/grub/disk.h (grub_disk_dev_id): Add
46928 `GRUB_DISK_DEV_ATA_ID'.
46929
46930 2007-10-31 Robert Millan <rmh@aybabtu.com>
46931
46932 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46933 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46934
46935 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46936 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46937
46938 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46939 `<grub/types.h>'.
46940
46941 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46942
46943 2007-10-27 Robert Millan <rmh@aybabtu.com>
46944
46945 * include/grub/types.h (ULONG_MAX): Define macro.
46946
46947 2007-10-22 Robert Millan <rmh@aybabtu.com>
46948
46949 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46950 `"../realmode.S"'.
46951 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46952
46953 2007-10-22 Robert Millan <rmh@aybabtu.com>
46954
46955 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46956 (pkgdata_MODULES): Add `biosdisk.mod'.
46957 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46958 variables.
46959
46960 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46961 (grub_biosdisk_init): Replace with ...
46962 (GRUB_MOD_INIT(biosdisk)): ... this.
46963 (grub_biosdisk_fini): Replace with ...
46964 (GRUB_MOD_FINI(biosdisk)): ... this.
46965
46966 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46967 (grub_machine_init): Remove call to grub_biosdisk_init().
46968 (grub_machine_fini): Remove call to grub_machine_fini().
46969
46970 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46971
46972 2007-10-22 Robert Millan <rmh@aybabtu.com>
46973
46974 * include/grub/time.h: New file.
46975 * include/grub/i386/time.h: Likewise.
46976 * include/grub/powerpc/time.h: Likewise.
46977 * include/grub/sparc64/time.h: Likewise.
46978
46979 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46980 instances to ...
46981 (KERNEL_MACHINE_TIME_HEADER): ... this.
46982 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46983 instances to ...
46984 (KERNEL_MACHINE_TIME_HEADER): ... this.
46985 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46986 instances to ...
46987 (KERNEL_MACHINE_TIME_HEADER): ... this.
46988
46989 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46990 (grub_millisleep): New function.
46991 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46992 (grub_millisleep): New function.
46993 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46994 Remove `grub/machine/time.h' include.
46995 (grub_millisleep): New function.
46996 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46997 Remove `grub/machine/time.h' include.
46998 (grub_millisleep): New function.
46999
47000 * include/grub/misc.h (grub_div_roundup): New function.
47001
47002 * kern/misc.c: Include `<grub/time.h>'.
47003 (grub_millisleep_generic): New function.
47004
47005 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47006 Add `time.h'.
47007 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47008 Add `time.h'.
47009 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47010 `machine/time.h'. Add `time.h'.
47011 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47012
47013 2007-10-21 Robert Millan <rmh@aybabtu.com>
47014
47015 * include/grub/misc.h (grub_max): New function.
47016
47017 2007-10-21 Robert Millan <rmh@aybabtu.com>
47018
47019 * util/misc.c (grub_util_info): Call fflush() before returning.
47020
47021 2007-10-20 Robert Millan <rmh@aybabtu.com>
47022
47023 * genmk.rb (Image): Copy `extra_flags' from here ...
47024 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47025
47026 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47027 to `argc' and `args' arguments.
47028
47029 2007-10-17 Robert Millan <rmh@aybabtu.com>
47030
47031 * kern/i386/loader.S: New file.
47032
47033 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47034 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47035 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47036 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47037 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47038 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47039 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47040 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47041 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47042 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47043 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47044 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47045 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47046 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47047
47048 * kern/i386/realmode.S: New file.
47049
47050 * kern/i386/pc/startup.S (protstack): Moved from here ...
47051 * kern/i386/realmode.S (protstack)... to here.
47052 * kern/i386/pc/startup.S (gdt): Moved from here ...
47053 * kern/i386/realmode.S (gdt)... to here.
47054 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47055 * kern/i386/realmode.S (prot_to_real)... to here.
47056
47057 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47058 `kern/i386/realmode.S'.
47059
47060 2007-10-17 Robert Millan <rmh@aybabtu.com>
47061
47062 * include/grub/i386/loader.h: New file.
47063
47064 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47065 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47066 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47067 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47068 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47069 * include/grub/i386/loader.h (grub_linux_prot_size)
47070 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47071 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47072 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47073 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47074
47075 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47076
47077 2007-10-15 Robert Millan <rmh@aybabtu.com>
47078
47079 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47080 filesystem when dev->disk is unset.
47081 Do probe for filesystem even when dev->disk->has_partitions is set.
47082 In case a filesystem is found, always report it.
47083 In case it isn't, if dev->disk->has_partitions is set, report that
47084 a partition table was found instead of reporting that no filesystem
47085 could be identified.
47086
47087 2007-10-12 Robert Millan <rmh@aybabtu.com>
47088
47089 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47090 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47091
47092 * include/grub/types.h (grub_host_to_target16): New macro.
47093 (grub_host_to_target32): Likewise.
47094 (grub_host_to_target64): Likewise.
47095 (grub_target_to_host16): Likewise.
47096 (grub_target_to_host32): Likewise.
47097 (grub_target_to_host64): Likewise.
47098
47099 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47100 Renamed from to ...
47101 (GRUB_MOD_ALIGN): ...this. Update all users.
47102
47103 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47104 grub_host_to_target32.
47105 Replace grub_be_to_cpu32 with grub_target_to_host32.
47106 (load_modules): Likewise.
47107 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47108 Replace grub_be_to_cpu32 with grub_target_to_host32.
47109 Replace grub_cpu_to_be16 with grub_host_to_target16.
47110 Replace grub_cpu_to_be32 grub_host_to_target32.
47111
47112 2007-10-12 Robert Millan <rmh@aybabtu.com>
47113
47114 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47115 * util/elf/grub-mkimage.c: ... here.
47116
47117 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47118 `util/powerpc/ieee1275/grub-mkimage.c'.
47119
47120 2007-10-07 Robert Millan <rmh@aybabtu.com>
47121
47122 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47123 and make it easier to figure out.
47124 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47125 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47126 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47127 leave us with less than HEAP_MIN_SIZE total heap.
47128 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47129
47130 2007-10-03 Robert Millan <rmh@aybabtu.com>
47131
47132 * include/grub/i386/io.h: New file.
47133 * commands/i386/pc/play.c (inb): Removed.
47134 (outb): Removed.
47135 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47136 with grub_outb().
47137 * term/i386/pc/serial.c (inb): Removed.
47138 (outb): Removed.
47139 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47140 with grub_outb().
47141 * term/i386/pc/vga.c (inb): Removed.
47142 (outb): Removed.
47143 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47144 with grub_outb().
47145
47146 2007-10-02 Robert Millan <rmh@aybabtu.com>
47147
47148 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47149 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47150 Reported by Marcin Kurek.
47151
47152 2007-09-07 Robert Millan <rmh@aybabtu.com>
47153
47154 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47155 SmartFirmware version updates (as released by Sven Luther), and avoid
47156 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47157 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47158 known broken.
47159
47160 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47161
47162 From Hitoshi Ozeki:
47163 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47164 when merging two regions.
47165
47166 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47167
47168 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47169 * normal/completion.c (grub_normal_do_completion): Likewise.
47170 Reported by Hitoshi Ozeki.
47171
47172 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47173
47174 Do not use devices at boot in chainloading.
47175
47176 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47177 (boot_part_addr): Likewise.
47178 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47179 with BOOT_DRIVE and BOOT_PART_ADDR.
47180 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47181 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47182
47183 2007-08-29 Robert Millan <rmh@aybabtu.com>
47184
47185 Patch from Simon Peter <dn.tlp@gmx.net>:
47186 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47187 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47188 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47189 util/i386/pc/grub-setup.c_DEPENDENCIES.
47190 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47191 util/grub-probe.c_DEPENDENCIES.
47192 * conf/powerpc-ieee1275.rmk: Likewise.
47193
47194 2007-08-28 Robert Millan <rmh@aybabtu.com>
47195
47196 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47197 to tell grub-mkdevicemap how to name devices.
47198 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47199 feature).
47200
47201 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47202 util/i386/get_disk_name.c.
47203 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47204 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47205 util/ieee1275/get_disk_name.c.
47206
47207 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47208
47209 * DISTLIST: Add util/i386/get_disk_name.c and
47210 util/ieee1275/get_disk_name.c.
47211
47212 * util/grub-mkdevicemap.c: Replace device naming logic with
47213 grub_util_get_disk_name() calls.
47214
47215 2007-08-20 Robert Millan <rmh@aybabtu.com>
47216
47217 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47218 (so that it works for both plural and singular quantities).
47219
47220 2007-08-05 Robert Millan <rmh@aybabtu.com>
47221
47222 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47223 so that [xz] isn't taken into account when determining order.
47224
47225 2007-08-02 Marco Gerards <marco@gnu.org>
47226
47227 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47228 `include/multiboot2.h', `include/grub/elfload.h',
47229 `include/multiboot.h', `include/grub/multiboot.h',
47230 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47231 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47232 `kern/elf.c', `loader/multiboot_loader.c',
47233 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47234 `loader/i386/pc/multiboot2.c',
47235 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47236 `util/i386/pc/grub-mkrescue.in'. Remove
47237 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47238 `include/grub/i386/pc/util/biosdisk.h' and
47239 `include/grub/powerpc/ieee1275/multiboot.h'.
47240
47241 2007-08-02 Bean <bean123ch@gmail.com>
47242
47243 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47244 (ntfs_mod_SOURCES): New variable.
47245 (ntfs_mod_CFLAGS): Likewise.
47246 (ntfs_mod_LDFLAGS): Likewise.
47247
47248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47249 (grub_probe_SOURCES): Likewise.
47250 (grub_emu_SOURCES): Likewise.
47251
47252 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47253 (grub_emu_SOURCES): Likewise.
47254
47255 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47256 (grub_emu_SOURCES): Likewise.
47257
47258 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47259
47260 * fs/ntfs.c: New file.
47261
47262 2007-08-02 Bean <bean123ch@gmail.com>
47263
47264 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47265
47266 * file.h (grub_file): Likewise.
47267
47268 * fshelp.h (grub_fshelp_read_file): Likewise.
47269
47270 * util/i386/pc/grub-setup.c (setup): Likewise.
47271 (save_first_sector): Likewise.
47272 (save_blocklists): Likewise.
47273
47274 * fs/affs.c (grub_affs_read_file): Likewise.
47275
47276 * fs/ext2.c (grub_ext2_read_file): Likewise.
47277
47278 * fs/fat.c (grub_fat_read_data): Likewise.
47279
47280 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47281
47282 * fs/hfs.c (grub_hfs_read_file): Likewise.
47283
47284 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47285
47286 * fs/jfs.c (grub_jfs_read_file): Likewise.
47287
47288 * fs/minix.c (grub_minix_read_file): Likewise.
47289
47290 * fs/sfs.c (grub_sfs_read_file): Likewise.
47291
47292 * fs/ufs.c (grub_ufs_read_file): Likewise.
47293
47294 * fs/xfs.c (grub_xfs_read_file): Likewise.
47295
47296 * command/blocklist.c (read_blocklist): Likewise.
47297 (print_blocklist): Likewise.
47298
47299 2007-08-02 Marco Gerards <marco@gnu.org>
47300
47301 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47302 `util/hostfs.c'.
47303
47304 * disk/host.c: New file.
47305
47306 * util/hostfs.c: Likewise.
47307
47308 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47309 return `GRUB_ERR_BAD_FS'.
47310 * fs/sfs.c (grub_sfs_mount): Likewise.
47311 * fs/xfs.c (grub_xfs_mount): Likewise.
47312
47313 * include/grub/disk.h (enum grub_disk_dev_id): Add
47314 `GRUB_DISK_DEVICE_HOST_ID'.
47315
47316 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47317
47318 2007-07-24 Jerone Young <jerone@gmail.com>
47319
47320 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47321 modules for compilation.
47322 * conf/powerpc-ieee1275.rmk: Likewise.
47323
47324 * include/multiboot.h: Move multiboot definitions to one file. Rename
47325 many definitions to not get grub specific.
47326 * include/multiboot2.h: Create header with multiboot 2 definitions.
47327 * include/grub/multiboot.h: Header for grub specific function
47328 prototypes and definitions.
47329 * include/grub/multiboot2.h: Likewise.
47330 * include/grub/multiboot_loader.h: Likewise.
47331 * include/grub/i386/pc/multiboot.h: Removed.
47332 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47333
47334 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47335 and 2 to allow for one multiboot and module commands.
47336 * loader/multiboot2.c: Add multiboot2 functionality.
47337 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47338 and definition names.
47339 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47340 2 functions.
47341 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47342 ieee1275 specific multiboot2 code.
47343
47344 * kern/i386/pc/startup.S: Change headers and definition names for
47345 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47346
47347 2007-07-22 Robert Millan <rmh@aybabtu.com>
47348
47349 * geninitheader.sh: Process file specified in first parameter rather
47350 than hardcoding grub_modules_init.lst.
47351 * geninit.sh: Likewise. Also, construct header name dynamically rather
47352 than hardcoding grub_modules_init.h.
47353
47354 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47355 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47356 grub_probe_init.[ch] and grub_setup_init.[ch].
47357
47358 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47359 grub_modules_init.h with grub_emu_init.h.
47360 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47361 grub_probe_init.[ch] files.
47362 * conf/i386-efi.rmk: Likewise.
47363 * conf/i386-pc.rmk: Likewise.
47364 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47365 grub_setup_init.[ch] files.
47366
47367 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47368 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47369 to initialize modules rather than a list of hardcoded functions.
47370 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47371 grub_init_all() to initialize modules rather than a list of hardcoded
47372 functions.
47373
47374 2007-07-22 Robert Millan <rmh@aybabtu.com>
47375
47376 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47377 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47378
47379 2007-07-22 Robert Millan <rmh@aybabtu.com>
47380
47381 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47382 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47383 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47384 flag when running on SmartFirmware.
47385 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47386 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47387 was set.
47388
47389 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47390 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47391 rather than decreasing it.
47392
47393 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47394 there's not enough space to do it, fail in the same way as when it
47395 can't be done because there are no partitions.
47396
47397 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47398 when nvsetenv failed.
47399
47400 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47401
47402 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47403 because this rule is automatically generated.
47404 (grub-mkrescue): Removed for the same reason as above.
47405
47406 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47407
47408 Migrate to GNU General Public License Version 3.
47409
47410 * COPYING: Replaced with the plain text version of GPLv3.
47411
47412 * config.guess: Updated from gnulib.
47413 * config.sub: Likewise.
47414
47415 * geninit.sh: Output a GPLv3 copyright notice.
47416 * geninitheader.sh: Likewise.
47417 * genmodsrc.sh: Likewise.
47418 * gensymlist.sh.in: Likewise.
47419
47420 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47421 * boot/i386/pc/diskboot.S: Likewise.
47422 * boot/i386/pc/pxeboot.S: Likewise.
47423 * commands/blocklist.c: Likewise.
47424 * commands/boot.c: Likewise.
47425 * commands/cat.c: Likewise.
47426 * commands/cmp.c: Likewise.
47427 * commands/configfile.c: Likewise.
47428 * commands/echo.c: Likewise.
47429 * commands/help.c: Likewise.
47430 * commands/ls.c: Likewise.
47431 * commands/search.c: Likewise.
47432 * commands/terminal.c: Likewise.
47433 * commands/test.c: Likewise.
47434 * commands/videotest.c: Likewise.
47435 * commands/i386/cpuid.c: Likewise.
47436 * commands/i386/pc/halt.c: Likewise.
47437 * commands/i386/pc/play.c: Likewise.
47438 * commands/i386/pc/reboot.c: Likewise.
47439 * commands/i386/pc/vbeinfo.c: Likewise.
47440 * commands/i386/pc/vbetest.c: Likewise.
47441 * commands/ieee1275/halt.c: Likewise.
47442 * commands/ieee1275/reboot.c: Likewise.
47443 * commands/ieee1275/suspend.c: Likewise.
47444 * disk/loopback.c: Likewise.
47445 * disk/lvm.c: Likewise.
47446 * disk/raid.c: Likewise.
47447 * disk/efi/efidisk.c: Likewise.
47448 * disk/i386/pc/biosdisk.c: Likewise.
47449 * disk/ieee1275/ofdisk.c: Likewise.
47450 * font/manager.c: Likewise.
47451 * fs/affs.c: Likewise.
47452 * fs/ext2.c: Likewise.
47453 * fs/fat.c: Likewise.
47454 * fs/fshelp.c: Likewise.
47455 * fs/hfs.c: Likewise.
47456 * fs/hfsplus.c: Likewise.
47457 * fs/iso9660.c: Likewise.
47458 * fs/jfs.c: Likewise.
47459 * fs/minix.c: Likewise.
47460 * fs/sfs.c: Likewise.
47461 * fs/ufs.c: Likewise.
47462 * fs/xfs.c: Likewise.
47463 * hello/hello.c: Likewise.
47464 * include/grub/acorn_filecore.h: Likewise.
47465 * include/grub/arg.h: Likewise.
47466 * include/grub/bitmap.h: Likewise.
47467 * include/grub/boot.h: Likewise.
47468 * include/grub/cache.h: Likewise.
47469 * include/grub/device.h: Likewise.
47470 * include/grub/disk.h: Likewise.
47471 * include/grub/dl.h: Likewise.
47472 * include/grub/elfload.h: Likewise.
47473 * include/grub/env.h: Likewise.
47474 * include/grub/err.h: Likewise.
47475 * include/grub/file.h: Likewise.
47476 * include/grub/font.h: Likewise.
47477 * include/grub/fs.h: Likewise.
47478 * include/grub/fshelp.h: Likewise.
47479 * include/grub/gzio.h: Likewise.
47480 * include/grub/hfs.h: Likewise.
47481 * include/grub/kernel.h: Likewise.
47482 * include/grub/loader.h: Likewise.
47483 * include/grub/lvm.h: Likewise.
47484 * include/grub/misc.h: Likewise.
47485 * include/grub/mm.h: Likewise.
47486 * include/grub/net.h: Likewise.
47487 * include/grub/normal.h: Likewise.
47488 * include/grub/parser.h: Likewise.
47489 * include/grub/partition.h: Likewise.
47490 * include/grub/pc_partition.h: Likewise.
47491 * include/grub/raid.h: Likewise.
47492 * include/grub/rescue.h: Likewise.
47493 * include/grub/script.h: Likewise.
47494 * include/grub/setjmp.h: Likewise.
47495 * include/grub/symbol.h: Likewise.
47496 * include/grub/term.h: Likewise.
47497 * include/grub/terminfo.h: Likewise.
47498 * include/grub/tparm.h: Likewise.
47499 * include/grub/types.h: Likewise.
47500 * include/grub/video.h: Likewise.
47501 * include/grub/efi/api.h: Likewise.
47502 * include/grub/efi/chainloader.h: Likewise.
47503 * include/grub/efi/console.h: Likewise.
47504 * include/grub/efi/console_control.h: Likewise.
47505 * include/grub/efi/disk.h: Likewise.
47506 * include/grub/efi/efi.h: Likewise.
47507 * include/grub/efi/pe32.h: Likewise.
47508 * include/grub/efi/time.h: Likewise.
47509 * include/grub/i386/linux.h: Likewise.
47510 * include/grub/i386/setjmp.h: Likewise.
47511 * include/grub/i386/types.h: Likewise.
47512 * include/grub/i386/efi/kernel.h: Likewise.
47513 * include/grub/i386/efi/loader.h: Likewise.
47514 * include/grub/i386/efi/time.h: Likewise.
47515 * include/grub/i386/pc/biosdisk.h: Likewise.
47516 * include/grub/i386/pc/boot.h: Likewise.
47517 * include/grub/i386/pc/chainloader.h: Likewise.
47518 * include/grub/i386/pc/console.h: Likewise.
47519 * include/grub/i386/pc/init.h: Likewise.
47520 * include/grub/i386/pc/kernel.h: Likewise.
47521 * include/grub/i386/pc/loader.h: Likewise.
47522 * include/grub/i386/pc/memory.h: Likewise.
47523 * include/grub/i386/pc/multiboot.h: Likewise.
47524 * include/grub/i386/pc/serial.h: Likewise.
47525 * include/grub/i386/pc/time.h: Likewise.
47526 * include/grub/i386/pc/vbe.h: Likewise.
47527 * include/grub/i386/pc/vbeblit.h: Likewise.
47528 * include/grub/i386/pc/vbefill.h: Likewise.
47529 * include/grub/i386/pc/vbeutil.h: Likewise.
47530 * include/grub/i386/pc/vga.h: Likewise.
47531 * include/grub/ieee1275/ieee1275.h: Likewise.
47532 * include/grub/ieee1275/ofdisk.h: Likewise.
47533 * include/grub/powerpc/libgcc.h: Likewise.
47534 * include/grub/powerpc/setjmp.h: Likewise.
47535 * include/grub/powerpc/types.h: Likewise.
47536 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47537 * include/grub/powerpc/ieee1275/console.h: Likewise.
47538 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47539 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47540 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47541 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47542 * include/grub/powerpc/ieee1275/time.h: Likewise.
47543 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47544 * include/grub/sparc64/libgcc.h: Likewise.
47545 * include/grub/sparc64/setjmp.h: Likewise.
47546 * include/grub/sparc64/types.h: Likewise.
47547 * include/grub/sparc64/ieee1275/console.h: Likewise.
47548 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47549 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47550 * include/grub/sparc64/ieee1275/time.h: Likewise.
47551 * include/grub/util/biosdisk.h: Likewise.
47552 * include/grub/util/getroot.h: Likewise.
47553 * include/grub/util/lvm.h: Likewise.
47554 * include/grub/util/misc.h: Likewise.
47555 * include/grub/util/raid.h: Likewise.
47556 * include/grub/util/resolve.h: Likewise.
47557 * io/gzio.c: Likewise.
47558 * kern/device.c: Likewise.
47559 * kern/disk.c: Likewise.
47560 * kern/dl.c: Likewise.
47561 * kern/elf.c: Likewise.
47562 * kern/env.c: Likewise.
47563 * kern/err.c: Likewise.
47564 * kern/file.c: Likewise.
47565 * kern/fs.c: Likewise.
47566 * kern/loader.c: Likewise.
47567 * kern/main.c: Likewise.
47568 * kern/misc.c: Likewise.
47569 * kern/mm.c: Likewise.
47570 * kern/parser.c: Likewise.
47571 * kern/partition.c: Likewise.
47572 * kern/rescue.c: Likewise.
47573 * kern/term.c: Likewise.
47574 * kern/efi/efi.c: Likewise.
47575 * kern/efi/init.c: Likewise.
47576 * kern/efi/mm.c: Likewise.
47577 * kern/i386/dl.c: Likewise.
47578 * kern/i386/efi/init.c: Likewise.
47579 * kern/i386/efi/startup.S: Likewise.
47580 * kern/i386/pc/init.c: Likewise.
47581 * kern/i386/pc/lzo1x.S: Likewise.
47582 * kern/i386/pc/startup.S: Likewise.
47583 * kern/ieee1275/ieee1275.c: Likewise.
47584 * kern/powerpc/cache.S: Likewise.
47585 * kern/powerpc/dl.c: Likewise.
47586 * kern/powerpc/ieee1275/cmain.c: Likewise.
47587 * kern/powerpc/ieee1275/crt0.S: Likewise.
47588 * kern/powerpc/ieee1275/init.c: Likewise.
47589 * kern/powerpc/ieee1275/openfw.c: Likewise.
47590 * kern/sparc64/cache.S: Likewise.
47591 * kern/sparc64/dl.c: Likewise.
47592 * kern/sparc64/ieee1275/init.c: Likewise.
47593 * kern/sparc64/ieee1275/openfw.c: Likewise.
47594 * loader/efi/chainloader.c: Likewise.
47595 * loader/efi/chainloader_normal.c: Likewise.
47596 * loader/i386/efi/linux.c: Likewise.
47597 * loader/i386/efi/linux_normal.c: Likewise.
47598 * loader/i386/pc/chainloader.c: Likewise.
47599 * loader/i386/pc/chainloader_normal.c: Likewise.
47600 * loader/i386/pc/linux.c: Likewise.
47601 * loader/i386/pc/linux_normal.c: Likewise.
47602 * loader/i386/pc/multiboot.c: Likewise.
47603 * loader/i386/pc/multiboot_normal.c: Likewise.
47604 * loader/powerpc/ieee1275/linux.c: Likewise.
47605 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47606 * normal/arg.c: Likewise.
47607 * normal/cmdline.c: Likewise.
47608 * normal/command.c: Likewise.
47609 * normal/completion.c: Likewise.
47610 * normal/execute.c: Likewise.
47611 * normal/function.c: Likewise.
47612 * normal/lexer.c: Likewise.
47613 * normal/main.c: Likewise.
47614 * normal/menu.c: Likewise.
47615 * normal/menu_entry.c: Likewise.
47616 * normal/misc.c: Likewise.
47617 * normal/parser.y: Likewise.
47618 * normal/script.c: Likewise.
47619 * normal/i386/setjmp.S: Likewise.
47620 * normal/powerpc/setjmp.S: Likewise.
47621 * normal/sparc64/setjmp.S: Likewise.
47622 * partmap/acorn.c: Likewise.
47623 * partmap/amiga.c: Likewise.
47624 * partmap/apple.c: Likewise.
47625 * partmap/gpt.c: Likewise.
47626 * partmap/pc.c: Likewise.
47627 * partmap/sun.c: Likewise.
47628 * term/gfxterm.c: Likewise.
47629 * term/terminfo.c: Likewise.
47630 * term/efi/console.c: Likewise.
47631 * term/i386/pc/console.c: Likewise.
47632 * term/i386/pc/serial.c: Likewise.
47633 * term/i386/pc/vesafb.c: Likewise.
47634 * term/i386/pc/vga.c: Likewise.
47635 * term/ieee1275/ofconsole.c: Likewise.
47636 * util/biosdisk.c: Likewise.
47637 * util/console.c: Likewise.
47638 * util/genmoddep.c: Likewise.
47639 * util/getroot.c: Likewise.
47640 * util/grub-emu.c: Likewise.
47641 * util/grub-mkdevicemap.c: Likewise.
47642 * util/grub-probe.c: Likewise.
47643 * util/lvm.c: Likewise.
47644 * util/misc.c: Likewise.
47645 * util/raid.c: Likewise.
47646 * util/resolve.c: Likewise.
47647 * util/update-grub.in: Likewise.
47648 * util/update-grub_lib.in: Likewise.
47649 * util/grub.d/00_header.in: Likewise.
47650 * util/grub.d/10_hurd.in: Likewise.
47651 * util/grub.d/10_linux.in: Likewise.
47652 * util/i386/efi/grub-install.in: Likewise.
47653 * util/i386/efi/grub-mkimage.c: Likewise.
47654 * util/i386/pc/grub-install.in: Likewise.
47655 * util/i386/pc/grub-mkimage.c: Likewise.
47656 * util/i386/pc/grub-mkrescue.in: Likewise.
47657 * util/i386/pc/grub-setup.c: Likewise.
47658 * util/i386/pc/misc.c: Likewise.
47659 * util/powerpc/ieee1275/grub-install.in: Likewise.
47660 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47661 * util/powerpc/ieee1275/misc.c: Likewise.
47662 * video/bitmap.c: Likewise.
47663 * video/video.c: Likewise.
47664 * video/i386/pc/vbe.c: Likewise.
47665 * video/i386/pc/vbeblit.c: Likewise.
47666 * video/i386/pc/vbefill.c: Likewise.
47667 * video/i386/pc/vbeutil.c: Likewise.
47668 * video/readers/tga.c: Likewise.
47669
47670 2007-07-02 Robert Millan <rmh@aybabtu.com>
47671
47672 * conf/i386-efi.rmk: Replace obsolete reference to
47673 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47674 with util/getroot.c.
47675 * conf/powerpc-ieee1275.rmk: Likewise.
47676 * conf/sparc64-ieee1275.rmk: Likewise.
47677
47678 * util/grub-emu.c (main): Fix unchecked pointer handling.
47679
47680 2007-07-02 Robert Millan <rmh@aybabtu.com>
47681
47682 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47683 invocation to fail, in order to support partition-less media.
47684
47685 * util/i386/pc/grub-install.in: Likewise.
47686
47687 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47688 which fs or partmap modules are needed (akin to its sister scripts).
47689
47690 Also use grub-probe to get rid of unportable /proc/mounts check.
47691
47692 Print the same informational message that the other scripts do, before
47693 exiting.
47694
47695 2007-06-23 Robert Millan <rmh@aybabtu.com>
47696
47697 * util/update-grub_lib.in (font_path): New function. Determine whether
47698 a font file can be found and, if so, echo the GRUB path to it.
47699
47700 * util/update-grub.in: Handle multiple terminals depending on user
47701 input, platform availability and font file presence. Propagate
47702 variables of our findings to /etc/grub.d/ children.
47703
47704 * util/grub.d/00_header.in: Handle multiple terminals, based on
47705 environment setup by update-grub.
47706
47707 2007-06-23 Robert Millan <rmh@aybabtu.com>
47708
47709 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47710
47711 2007-06-21 Robert Millan <rmh@aybabtu.com>
47712
47713 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47714 indicate end of data section in kernel image.
47715 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47716 GRUB_KERNEL_MACHINE_DATA_END.
47717
47718 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47719 space for it.
47720 * kern/i386/efi/startup.S: Likewise.
47721
47722 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47723 during image generation. Implement --prefix option to override this
47724 patch.
47725 * util/i386/efi/grub-mkimage.c: Likewise.
47726
47727 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47728 code to make path relative to its root into a separate function.
47729
47730 * util/i386/pc/grub-install.in: Use newly provided
47731 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47732 pass the result to grub-install --prefix.
47733
47734 2007-06-13 Robert Millan <rmh@aybabtu.com>
47735
47736 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47737 DEFAULT_DEVICE_MAP.
47738 * util/grub-emu.c: Use above definitions from misc.h instead of
47739 defining them.
47740 * util/grub-mkdevicemap.c: Likewise.
47741 * util/i386/pc/grub-setup.c: Likewise.
47742 * util/grub-probe.c: Likewise.
47743 (probe): Abort with grub_util_error() when either
47744 grub_guess_root_device or grub_util_get_grub_dev fails.
47745
47746 2007-06-12 Robert Millan <rmh@aybabtu.com>
47747
47748 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47749 "pager" assignment.
47750 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47751 "pcdata".
47752 * util/grub-probe.c (probe): Likewise for "drive_name".
47753
47754 2007-06-11 Robert Millan <rmh@aybabtu.com>
47755
47756 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47757 not just the cdrom one.
47758
47759 2007-06-11 Robert Millan <rmh@aybabtu.com>
47760
47761 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47762 Add --pkglibdir=DIR option to override pkglibdir.
47763 Mention --image-type=TYPE in help output.
47764 Fix --grub-mkimage (it was a no-op).
47765 Abort gracefully when no parameter is given.
47766
47767 2007-06-11 Robert Millan <rmh@aybabtu.com>
47768
47769 * util/i386/pc/grub-mkrescue.in: New file.
47770 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47771 * Makefile.in: Handle bin_SCRIPTS.
47772
47773 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47774
47775 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47776 list of video modes.
47777
47778 2007-06-06 Robert Millan <rmh@aybabtu.com>
47779
47780 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47781 file doesn't exist, or if it is in a filesystem grub can't read.
47782
47783 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47784 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47785 header comment to fit in 80 columns when the variables are resolved.
47786
47787 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47788 could be identified by update-grub. Remove redundant check for
47789 unifont.pff existence (since convert_system_path_to_grub_path now
47790 handles that).
47791
47792 2007-06-04 Robert Millan <rmh@aybabtu.com>
47793
47794 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
47795
47796 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
47797
47798 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
47799
47800 2007-06-04 Robert Millan <rmh@aybabtu.com>
47801
47802 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47803
47804 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47805 grub_apple_partition_map_fini.
47806
47807 * util/biosdisk.c
47808 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47809 to access >2 TiB disks).
47810
47811 Print disk->total_sectors with %llu instead of %lu, since this
47812 variable is always 64-bit (prevents wrong disk size from being displayed
47813 on either >2 TiB disk or big-endian CPU).
47814
47815 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47816 into a generic case that supports all (sane) partition maps.
47817
47818 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47819 breaks big-endian.
47820
47821 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47822 and grub_apple_partition_map_fini() after that.
47823
47824 2007-06-01 Robert Millan <rmh@aybabtu.com>
47825
47826 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47827
47828 * util/grub.d/00_header.in: Only enable gfxterm when
47829 convert_system_path_to_grub_path() succeeds.
47830
47831 2007-05-20 Robert Millan <rmh@aybabtu.com>
47832
47833 * util/update-grub_lib.in: New file.
47834 * DISTLIST: Add update-grub_lib.in.
47835 * conf/common.rmk: Generate update-grub_lib and install it in
47836 $(lib_DATA).
47837 * Makefile.in: Add install routine for $(lib_DATA).
47838
47839 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47840 function provided by update-grub_lib to support arbitrary paths of
47841 unifont.pff.
47842 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47843 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47844
47845 2007-05-19 Robert Millan <rmh@aybabtu.com>
47846
47847 * commands/i386/cpuid.c: New module.
47848 * DISTLIST: Add it.
47849 * conf/i386-efi.rmk: Enable cpuid.mod.
47850 * conf/i386-pc.rmk: Likewise.
47851
47852 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47853
47854 * kern/disk.c (grub_disk_read): Check return value of
47855 grub_realloc().
47856
47857 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47858
47859 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47860 arrays.
47861 * disk/raid.c (grub_raid_open): Likewise.
47862
47863 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47864
47865 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47866 stack instead of on the heap.
47867
47868 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47869 before doing a read on it.
47870
47871 * configure.ac: Only use -fno-stack-protector for the target
47872 environment.
47873
47874 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47875
47876 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47877 __attribute_ ((unused)) to mode_type argument.
47878
47879 * util/getroot.c (grub_guess_root_device): Fix #endif.
47880
47881 * kern/misc.c (memcmp): Fix prototype.
47882
47883 * include/grub/partition.h [GRUB_UTIL]
47884 (grub_gpt_partition_map_init): Add prototype.
47885 (grub_gpt_partition_map_fini): Likewise.
47886
47887 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47888 at the right place.
47889
47890 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47891 (grub_fat_read_data): Likewise.
47892 (grub_fat_find_dir): Likewise.
47893
47894 * font/manager.c (find_glyph): Make table a const.
47895 (grub_font_get_glyph): Remove bitmap from if statement.
47896
47897 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47898
47899 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47900 code, first search for device in /dev/mapper, then in /dev.
47901 (grub_util_get_grub_dev): New function.
47902 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47903 prototype.
47904 * util/grub-probe.c (probe): Remove check for RAID, call
47905 grub_util_get_grub_dev() instead of
47906 grub_util_biosdisk_get_grub_dev().
47907 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47908 grub_util_biosdisk_get_grub_dev().
47909 * util/i386/pc/grub-setup.c (main): Likewise.
47910
47911 2007-05-16 Robert Millan <rmh@aybabtu.com>
47912
47913 * DISTLIST: Update for the latest changes.
47914 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47915 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47916 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47917 grub/util/biosdisk.h.
47918 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47919 grub/util/biosdisk.h.
47920
47921 2007-05-16 Robert Millan <rmh@aybabtu.com>
47922
47923 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47924
47925 2007-05-16 Robert Millan <rmh@aybabtu.com>
47926
47927 * util/i386/efi/grub-install.in: New.
47928 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47929 newly added grub-install.
47930 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47931 include.
47932 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47933 grub/util/biosdisk.h.
47934 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47935 grub/util/biosdisk.h.
47936
47937 2007-05-16 Robert Millan <rmh@aybabtu.com>
47938
47939 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47940 * include/grub/util/biosdisk.h: ... here.
47941 * util/i386/pc/biosdisk.c: Moved to ...
47942 * util/biosdisk.c: ... here.
47943 * util/i386/pc/getroot.c: Moved to ...
47944 * util/getroot.c: ... here.
47945 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47946 * util/grub-mkdevicemap.c: ... here.
47947 * util/i386/pc/grub-probe.c: Moved to ...
47948 * util/grub-probe.c: ... here.
47949
47950 2007-05-15 Robert Millan <rmh@aybabtu.com>
47951
47952 * util/update-grub.in: Remove duplicated line in grub.cfg header
47953 message.
47954
47955 2007-05-13 Robert Millan <rmh@aybabtu.com>
47956
47957 * util/update-grub.in: Fix a few assumptions about the devices holding
47958 /, /boot and /boot/grub being the same.
47959 * util/grub.d/00_header.in: Likewise.
47960 * util/grub.d/10_hurd.in: Likewise.
47961 * util/grub.d/10_linux.in: Likewise.
47962
47963 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47964 patterns. Use that to define the `.old' suffix as older than `'.
47965
47966 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47967
47968 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47969 the grub.cfg header message.
47970
47971 2007-05-11 Robert Millan <rmh@aybabtu.com>
47972
47973 * util/update-grub.in: Create device.map if it doesn't already exist,
47974 before attempting to run grub-probe.
47975 Check for grub-probe and grub-mkdevicemap with the same code
47976 grub-install is using.
47977 Remove test mode.
47978
47979 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47980
47981 * Makefile.in: Add the datarootdir autoconf variable.
47982
47983 2007-05-09 Robert Millan <rmh@aybabtu.com>
47984
47985 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
47986 fail gracefully if dev->disk->partition == NULL.
47987
47988 2007-05-07 Robert Millan <rmh@aybabtu.com>
47989
47990 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47991 determine partition map module.
47992 * util/i386/pc/grub-install.in: Use this feature to decide which
47993 partition module to load, instead of hardcoding pc and gpt.
47994
47995 2007-05-07 Robert Millan <rmh@aybabtu.com>
47996
47997 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47998 source directory differs from build directory.
47999
48000 2007-05-05 Robert Millan <rmh@aybabtu.com>
48001
48002 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48003 initialisation.
48004
48005 2007-05-05 Robert Millan <rmh@aybabtu.com>
48006
48007 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48008
48009 2007-05-05 Robert Millan <rmh@aybabtu.com>
48010
48011 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48012 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48013
48014 2007-05-05 Robert Millan <rmh@aybabtu.com>
48015
48016 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48017 (grub_probe_SOURCES): Likewise.
48018 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48019 GPT and initialize dos_part and bsd_part accordingly.
48020 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48021 install_bsd_part.
48022 (main): Activate gpt module for use during partition identification,
48023 and deactivate it afterwards.
48024 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48025 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48026 partition identification, and deactivate it afterwards.
48027
48028 2007-05-05 Robert Millan <rmh@aybabtu.com>
48029
48030 * term/i386/pc/console.c (grub_console_fini): Call
48031 grub_term_set_current() before grub_term_unregister().
48032
48033 2007-05-04 Robert Millan <rmh@aybabtu.com>
48034
48035 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48036 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48037 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48038 and update-grub_DATA.
48039 * conf/common.rmk: Build and install update-grub components.
48040 * conf/common.mk: Regenerate.
48041 * util/update-grub.in: New. Core of update-grub.
48042 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48043 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48044 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48045 * util/grub.d/README: New. Document grub.d directory layout.
48046
48047 2007-05-01 Robert Millan <rmh@aybabtu.com>
48048
48049 * util/grub-emu.c: Move initialization functions
48050 grub_util_biosdisk_init() and grub_init_all() before
48051 grub_util_biosdisk_get_grub_dev(), which relies on them.
48052
48053 2007-04-19 Robert Millan <rmh@aybabtu.com>
48054
48055 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48056 it is used later.
48057
48058 2007-04-18 Jerone Young <jerone@gmail.com>
48059
48060 * kernel/elf.c: Add missing parenthesis for conditional statement
48061 stanza.
48062
48063 2007-04-10 Jerone Young <jerone@gmail.com>
48064
48065 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48066 continue on and look for device node with real device name.
48067
48068 2007-04-10 Jerone Young <jerone@gmail.com>
48069
48070 * configure.ac: Add argument for autoconf to use transformation
48071 ability.
48072 * Makefile.in: Add autoconf package transformation code.
48073 * util/i386/pc/grub-install.in: Likewise.
48074 * util/powerpc/ieee1275/grub-install.in: Likewise.
48075
48076 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48077
48078 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48079 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48080 (EXT2_REVISION): Likewise.
48081 (EXT2_INODE_SIZE): Likewise.
48082 (struct grub_ext2_block_group): Added a missing member
48083 "used_dirs".
48084 (grub_ext2_read_inode): Divide by the inode size in a superblock
48085 instead of 128 to obtain INODES_PER_BLOCK.
48086 Use the macro EXT2_INODE_SIZE instead of directly using
48087 SBLOCK->INODE_SIZE.
48088
48089 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48090
48091 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48092 superblock instead of the structure size to compute an
48093 offset. This fixes the problem that GRUB could not read a
48094 filesystem when inode size is different from 128-byte.
48095
48096 2007-03-05 Marco Gerards <marco@gnu.org>
48097
48098 * normal/main.c (read_config_file): When "menu" is not set, create
48099 an initial context.
48100
48101 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48102
48103 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48104 (HEAP_LIMIT): New macro.
48105 (grub_claim_heap): Claim memory up to `heaplimit'.
48106
48107 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48108
48109 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48110 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48111 (_start): Likewise.
48112 (grub_arch_modules_addr): Return address after `_end'.
48113 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48114 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48115 (add_segments): Calculate `_end' from phdr size and location.
48116 (ALIGN_UP): Moved to ...
48117 * include/grub/misc.h: here.
48118 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48119 New macro.
48120 (GRUB_IEEE1275_MODULE_BASE): Removed.
48121
48122 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48123
48124 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48125 loop boundary.
48126
48127 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48128
48129 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48130 All users updated.
48131 (grub_elf64_load_hook_t): Likewise.
48132 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48133 debug output.
48134
48135 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48136
48137 * kern/mm.c: Update copyright.
48138 (grub_mm_debug): Correct syntax error.
48139 (grub_mm_dump_free): New function.
48140 (grub_debug_free): Call `grub_free'.
48141 * include/grub/mm.h: Update copyright.
48142 (grub_mm_dump_free): Add declaration.
48143
48144 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48145
48146 * include/grub/ieee1275/ieee1275.h: Update copyright.
48147 * kern/powerpc/ieee1275/init.c: Likewise.
48148 * kern/powerpc/ieee1275/openfw.c: Likewise.
48149
48150 * loader/powerpc/ieee1275/linux.c: Likewise.
48151 * include/grub/elfload.h: Likewise.
48152 * kern/elf.c: Likewise.
48153 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48154 callers.
48155 (grub_elf64_load): Likewise.
48156 (grub_elf32_load_segment): Move to a nested function.
48157 (grub_elf64_load_segment): Likewise.
48158
48159 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48160
48161 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48162 prototype.
48163 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48164 (grub_heap_len): Likewise.
48165 (HEAP_SIZE): New macro.
48166 (grub_claim_heap): New function.
48167 (grub_machine_init): Don't claim heap directly. Call
48168 `grub_claim_heap'.
48169 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48170 (grub_available_iterate): New function.
48171
48172 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48173
48174 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48175 * configure.ac: Use it for testing the HOST and TARGET compilers.
48176
48177 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48178
48179 * Makefile.in (enable_grub_emu): New variable.
48180 * configure.ac (--enable-grub-emu): New option.
48181 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48182 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48183 * conf/i386-pc.rmk: Likewise.
48184 * conf/powerpc-ieee1275.rmk: Likewise.
48185 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48186
48187 2006-12-12 Marco Gerards <marco@gnu.org>
48188
48189 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48190
48191 * kern/env.c (grub_env_unset): Don't free the member `value' when
48192 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48193 pointer.
48194
48195 * normal/main.c (current_menu): Removed.
48196 (free_menu): Unset the `menu' environment variable.
48197 (grub_normal_menu_addentry): Make use of the environment variable
48198 `menu', instead of using the global `current_menu'. Allocate
48199 memory for the sourcecode of this entry.
48200 (read_config_file): New argument `nested', changed all callers.
48201 Only in the case of a new context, initialize a new menu. Set the
48202 `menu' environment variable.
48203 (grub_normal_execute): Don't set and unset the environment
48204 variable `menu' here anymore. Only free the menu when leaving the
48205 context.
48206
48207 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48208 leak.
48209
48210 2006-12-11 Marco Gerards <marco@gnu.org>
48211
48212 * normal/menu_entry.c (run): Fix off by one bug so the last line
48213 is executed. Move the loader check to outside the loop.
48214
48215 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48216
48217 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48218
48219 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48220
48221 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48222 the number of sectors. Reported by Andrey Shuvikov
48223 <mr_hyro@yahoo.com>.
48224
48225 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48226
48227 * kern/disk.c (grub_disk_read): When there is a read error, always
48228 try to read only the necessary data.
48229
48230 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48231 disk/raid.c.
48232 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48233 prototype.
48234 [GRUB_UTIL] (grub_raid_fini): Likewise.
48235 [GRUB_UTIL] (grub_lvm_init): Likewise.
48236 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48237 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48238 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48239 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48240 and grub_raid_fini().
48241
48242 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48243
48244 * include/grub/types.h (__unused): Rename to UNUSED.
48245 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48246 (grub_elf64_size): Likewise.
48247
48248 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48249
48250 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48251 grub_error_push and grub_error_pop in the error-handling path.
48252 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48253 length.
48254
48255 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48256
48257 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48258 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48260 (kernel_elf_SOURCES): Likewise.
48261 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48262 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48263 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48264 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48265 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48266 (elf_mod_SOURCES): New variable.
48267 (elf_mod_CFLAGS): Likewise.
48268 (elf_mod_LDFLAGS): Likewise.
48269 * include/grub/types.h (__unused): New macro.
48270 * include/grub/elfload.h: New file.
48271 * kern/elf.c: Likewise.
48272 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48273 (ELF32_LOADMASK): New macro.
48274 (ELF64_LOADMASK): Likewise.
48275 (vmlinux): Removed.
48276 (grub_linux_load32): New function.
48277 (grub_linux_load64): Likewise.
48278 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48279 Use grub_elf_t instead of grub_file_t.
48280
48281 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48282
48283 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48284 `catch_result' to struct set_color_args.
48285
48286 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48287
48288 * normal/menu.c: Include grub/script.h.
48289 * normal/menu_entry.c: Likewise.
48290 * include/grub/normal.h: Do not include grub/script.h.
48291
48292 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48293
48294 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48295
48296 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48297
48298 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48299 disk.
48300 (grub_disk_close): Print debug messages when closing a disk.
48301 (grub_disk_read): Print debug messages when disk read fails.
48302 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48303 filesystem type.
48304 * kern/partition.c: Include misc.h.
48305 (grub_partition_iterate): Print debug messages when detecting
48306 partition type.
48307
48308 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48309
48310 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48311 is negative.
48312 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48313
48314 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48315
48316 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48317 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48318
48319 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48320
48321 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48322 instead of sizeof(lv). Patch by Michael Guntsche.
48323
48324 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48325
48326 * disk/lvm.c: Rename VGS to VG_LIST.
48327 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48328 (grub_lvm_open): Likewise.
48329 Thanks to Michael Guntsche for finding this bug.
48330
48331 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48332
48333 * configure.ac (AC_INIT): Bumped to 1.95.
48334
48335 2006-10-14 Robert Millan <rmh@aybabtu.com>
48336
48337 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48338 with "/dev/.static/dev/md".
48339
48340 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48341
48342 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48343 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48344 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48345 DRIVE_NAME are always freed.
48346
48347 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48348 DOS_PART, as a DOS partition is counted from one instead of zero
48349 now. Reported by Robert Millan.
48350
48351 2006-10-14 Robert Millan <rmh@aybabtu.com>
48352
48353 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48354 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48355 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48356 string returned by grub_guess_root_device.
48357 * util/i386/pc/grub-setup.c: Likewise.
48358 * util/i386/pc/grub-probefs.c: Likewise.
48359
48360 * util/i386/pc/grub-probefs.c: Rename to ...
48361 * util/i386/pc/grub-probe.c: ... this.
48362 * DISTLIST: Remove grub-probefs, add grub-probe.
48363 * conf/i386-efi.rmk: Likewise.
48364 * conf/i386-pc.rmk: Likewise.
48365 * util/i386/pc/grub-install.in: Likewise.
48366
48367 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48368 choose which information we want to print.
48369
48370 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48371
48372 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48373 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48374 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48375 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48376 video/readers/tga.c and video/i386/pc/vbeutil.c.
48377
48378 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48379
48380 Added support for RAID and LVM.
48381
48382 * disk/lvm.c: New file.
48383 * disk/raid.c: Likewise.
48384 * include/grub/lvm.h: Likewise.
48385 * include/grub/raid.h: Likewise.
48386 * include/grub/util/lvm.h: Likewise.
48387 * include/grub/util/raid.h: Likewise.
48388 * util/lvm.c: Likewise.
48389 * util/raid.c: Likewise.
48390
48391 * include/grub/disk.h (grub_disk_dev_id): Add
48392 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48393 (grub_disk_get_size): New prototype.
48394 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48395 returns a partition.
48396 (grub_disk_get_size): New function.
48397
48398 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48399 verbatim if grub_install_dos_part is -2.
48400
48401 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48402 and LVM devices.
48403
48404 * util/i386/pc/grub-setup.c (setup): New argument
48405 MUST_EMBED. Force embedding of GRUB when the argument is
48406 true. Close FILE before returning.
48407 (main): Add support for RAID and LVM.
48408
48409 * conf/common.rmk: Add RAID and LVM modules.
48410 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48411 util/lvm.c.
48412 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48413
48414 * kern/misc.c (grub_strstr): New function.
48415 * include/grub/misc.h (grub_strstr): New prototype.
48416
48417 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48418
48419 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48420
48421 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48422
48423 * kern/misc.c (grub_strtoull): Guess the base only if not
48424 specified.
48425
48426 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48427
48428 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48429 PowerMac support.
48430
48431 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48432
48433 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48434
48435 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48436 Remove `flags' argument. All callers changed.
48437 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48438 (IEEE1275_IHANDLE_INVALID): New variable.
48439 (IEEE1275_CELL_INVALID): New variable.
48440 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48441 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48442 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48443 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48444 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48445 codes from Open Firmware. All callers updated.
48446 (grub_ieee1275_next_property): Directly return Open Firmware return
48447 code.
48448 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48449 Standardize error checking from `grub_ieee1275_get_property'.
48450 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48451 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48452
48453 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48454
48455 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48456 `instance_to_package_args' to `instance_to_path_args'.
48457
48458 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48459 `grub_ieee1275_chosen'.
48460
48461 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48462 `grub_ieee1275_interpret'.
48463
48464 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48465
48466 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48467
48468 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48469
48470 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48471 (__cmpdi): Likewise.
48472
48473 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48474 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48475 `grub_ssize_t'.
48476
48477 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48478
48479 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48480 to type `grub_ssize_t'.
48481 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48482
48483 2006-09-22 Marco Gerards <marco@gnu.org>
48484
48485 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48486 newlines.
48487
48488 2006-09-22 Marco Gerards <marco@gnu.org>
48489
48490 * commands/echo.c: New file.
48491
48492 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48493
48494 * conf/common.rmk (echo_mod_SOURCES): New variable.
48495 (echo_mod_CFLAGS): Likewise.
48496 (echo_mod_LDFLAGS): Likewise.
48497
48498 2006-09-22 Marco Gerards <marco@gnu.org>
48499
48500 * normal/main.c (get_line): Malloc memory instead of using
48501 preallocated memory. Removed the arguments `cmdline' and
48502 `max_len'. Updated all callers.
48503
48504 2006-09-22 Marco Gerards <marco@gnu.org>
48505
48506 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48507 (normal_mod_DEPENDENCIES): Likewise.
48508
48509 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48510 (normal_mod_DEPENDENCIES): Likewise.
48511
48512 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48513
48514 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48515
48516 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48517 programs.
48518 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48519 (normal_mod_DEPENDENCIES): Likewise.
48520 * conf/i386-pc.mk: Regenerate.
48521 * conf/i386-efi.mk: Likewise
48522 * conf/common.mk: Likewise.
48523 * conf/powerpc-ieee1275.mk: Likewise.
48524 * conf/sparc64-ieee1275.mk: Likewise.
48525
48526 2006-09-22 Robert Millan <rmh@aybabtu.com>
48527
48528 Sync with i386 version.
48529 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48530 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48531
48532 2006-09-21 Robert Millan <rmh@aybabtu.com>
48533
48534 Import from GRUB Legacy (lib/device.c):
48535 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48536 (init_device_map) [__linux__]: Add support for I2O devices.
48537
48538 2006-09-14 Marco Gerards <marco@gnu.org>
48539
48540 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48541 `-melf_i386'.
48542
48543 2006-09-14 Robert Millan <rmh@aybabtu.com>
48544
48545 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48546 /boot/grub/*.lst.
48547
48548 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48549
48550 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48551 before adding it to device.map.
48552
48553 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48554
48555 * genmk.rb: Let GCC generate dependencies the first time it
48556 compiles a file; using the -MD option.
48557 * conf/common.mk: Regenerate.
48558 * conf/i386-pc.mk: Likewise.
48559 * conf/i386-efi.mk: Likewise.
48560 * conf/powerpc-ieee1275.mk: Likewise.
48561 * conf/sparc64-ieee1275.mk: Likewise.
48562
48563 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48564
48565 Move the prototypes of grub_setjmp and grub_longjmp to
48566 cpu/setjmp.h, so that each architecture may specify different
48567 attributes.
48568
48569 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48570 (grub_longjmp): Likewise.
48571 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48572 (grub_longjmp): Likewise.
48573 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48574 (grub_longjmp): Likewise.
48575
48576 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48577 [!GRUB_UTIL] (grub_longjmp): Removed.
48578
48579 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48580
48581 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48582 "color!" method does not return any value.
48583
48584 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48585
48586 * include/grub/bitmap.h: New file.
48587
48588 * include/grub/i386/pc/vbeutil.h: Likewise.
48589
48590 * video/bitmap.c: Likewise.
48591
48592 * video/readers/tga.c: Likewise.
48593
48594 * video/i386/pc/vbeutil.c: Likewise.
48595
48596 * commands/videotest.c: Code cleanup and updated to reflect to new
48597 video API.
48598
48599 * term/gfxterm.c: Likewise.
48600
48601 * video/video.c: Likewise.
48602
48603 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48604 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48605 (bitmap_mod_SOURCES): New entry.
48606 (bitmap_mod_CFLAGS): Likewise.
48607 (bitmap_mod_LDFLAGS): Likewise.
48608 (tga_mod_SOURCES): Likewise.
48609 (tga_mod_CFLAGS): Likewise.
48610 (tga_mod_LDFLAGS): Likewise.
48611
48612 * include/grub/video.h (grub_video_blit_operators): New enum type.
48613 (grub_video_render_target): Changed as forward declaration and moved
48614 actual definition to be video driver specific.
48615 (grub_video_adapter.blit_bitmap): Added blitting operator.
48616 (grub_video_adapter.blit_render_target): Likewise.
48617 (grub_video_blit_bitmap): Likewise.
48618 (grub_video_blit_render_target): Likewise.
48619
48620 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48621 driver specific render target definition.
48622 (grub_video_vbe_map_rgba): Added driver internal helper.
48623 (grub_video_vbe_unmap_color): Updated to use
48624 grub_video_i386_vbeblit_info.
48625 (grub_video_vbe_get_video_ptr): Likewise.
48626
48627 * include/grub/i386/pc/vbeblit.h
48628 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48629 grub_video_i386_vbeblit_info.
48630 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48631 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48632 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48633 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48634 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48635 (grub_video_i386_vbeblit_index_index): Likewise.
48636 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48637 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48638 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48639 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48640 operator.
48641 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48642 operator.
48643
48644 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48645 include/grub/i386/pc/vbeblit.h.
48646
48647 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48648 Updated to use grub_video_i386_vbeblit_info.
48649 (grub_video_i386_vbefill_R8G8B8): Likewise.
48650 (grub_video_i386_vbefill_index): Likewise.
48651 (grub_video_i386_vbefill): Added generic filler.
48652
48653 * video/i386/pc/vbefill.c: Updated to reflect changes on
48654 include/grub/i386/pc/vbefill.h.
48655
48656 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48657 grub_video_i386_vbeblit_info.
48658 (grub_video_vbe_unmap_color): Likewise.
48659 (grub_video_vbe_blit_glyph): Likewise.
48660 (grub_video_vbe_scroll): Likewise.
48661 (grub_video_vbe_draw_pixel): Removed function.
48662 (grub_video_vbe_get_pixel): Likewise.
48663 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48664 updated code to use it.
48665 (common_blitter): Added common blitter for render target and bitmap.
48666 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48667 (grub_video_vbe_blit_render_target): Likewise.
48668
48669 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48670
48671 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48672 is in text mode if there is no console control protocol instance
48673 available.
48674
48675 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48676
48677 * include/grub/video.h: Code cleanup.
48678
48679 * include/grub/i386/pc/vbe.h: Likewise.
48680
48681 * video/i386/pc/vbe.c: Likewise.
48682
48683 * video/i386/pc/vbeblit.c: Likewise.
48684
48685 * video/i386/pc/vbefill.c: Likewise.
48686
48687 * video/video.c: Likewise. Also added more comments.
48688
48689 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48690
48691 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48692 (struct grub_biosdisk_dap): Likewise.
48693
48694 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48695 linkage settings for all functions.
48696
48697 2006-07-12 Marco Gerards <marco@gnu.org>
48698
48699 * configure.ac (--enable-mm-debug): Fix typo.
48700
48701 * genkernsyms.sh.in: Use proper quoting for `CC'.
48702
48703 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48704
48705 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48706 (normal_mod_ASFLAGS): Remove "-m32".
48707
48708 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48709
48710 * util/misc.c: Include config.h.
48711 [!HAVE_MEMALIGN]: Do not include malloc.h.
48712 (grub_memalign): Use posix_memalign, if present. Then, use
48713 memalign, if present. Otherwise, emit an error.
48714
48715 * util/grub-emu.c: Do not include malloc.h.
48716
48717 * include/grub/util/misc.h: Include unistd.h. This is required for
48718 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48719 D. Eades III <hde@foobar-qux.org>.
48720
48721 * configure.ac (AC_GNU_SOURCE): Added.
48722 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48723 type.
48724
48725 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48726
48727 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48728 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48729
48730 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48731
48732 * include/grub/types.h (grub_host_addr_t): Rename to
48733 grub_target_addr_t.
48734 (grub_host_off_t): Rename to grub_target_off_t.
48735 (grub_host_size_t): Rename to grub_target_size_t.
48736 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48737 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48738
48739 * include/grub/kernel.h (struct grub_module_header): Change type
48740 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48741 (grub_module_info): Likewise.
48742
48743 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48744
48745 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48746 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48747 Velazquez <jesus.velazquez@gmail.com>.
48748
48749 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48750
48751 Count partitions from 1 instead of 0 in the string representation
48752 of partitions. Still use 0-based internally.
48753
48754 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48755 (sun_partition_map_iterate): Use grub_partition_t instead of
48756 struct grub_partition *. Cast DESC->START_CYLINDER to
48757 grub_uint64_t after converting the endian.
48758 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48759 (sun_partition_map_get_name): Add 1 to P->INDEX.
48760
48761 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48762 PCDATA->DOS_PART.
48763 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48764
48765 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48766 zero instead of one.
48767 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48768 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48769
48770 * partmap/apple.c (apple_partition_map_iterate): Change the type
48771 of POS to unsigned.
48772 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48773 (apple_partition_map_get_name): Add 1 into P->INDEX.
48774
48775 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48776 of POS to unsigned.
48777 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48778 calculate the offset of a partition.
48779 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48780 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48781
48782 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48783 SECTOR to grub_disk_addr_t.
48784 (acorn_partition_map_iterate): Likewise.
48785 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48786 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48787 top.
48788 (acorn_partition_map_get_name): Add 1 into P->INDEX.
48789
48790 * kern/i386/pc/init.c (make_install_device): Add 1 into
48791 GRUB_INSTALL_DOS_PART.
48792
48793 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
48794 conditional.
48795
48796 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48797
48798 Clean up the code to support 64-bit addressing in disks and
48799 files. This change is not enough for filesystems yet.
48800
48801 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48802 type of "start" to grub_uint64_t.
48803 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48804 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48805 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48806 convert addresses.
48807
48808 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48809 to grub_disk_addr_t.
48810
48811 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48812 string.
48813
48814 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48815
48816 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48817 to char *.
48818
48819 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48820
48821 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48822
48823 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48824
48825 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48826 to grub_off_t, to detect an error from grub_file_seek.
48827 (grub_multiboot_load_elf32): Likewise.
48828
48829 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48830 maximum unsigned long value when an overflow is detected.
48831 (grub_strtoull): New function.
48832 (grub_divmod64): Likewise.
48833 (grub_lltoa): use grub_divmod64.
48834
48835 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48836 grub_disk_addr_t.
48837 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48838 the pointer to next character. Use grub_strtoull instead of
48839 grub_strtoul.
48840 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48841 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48842 respectively.
48843
48844 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
48845 return value is signed.
48846 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48847 test if OFFSET is less than zero, as OFFSET is unsigned now.
48848
48849 * kern/disk.c (struct grub_disk_cache): Change the type of
48850 "sector" to grub_disk_addr_t.
48851 (grub_disk_cache_get_index): Change the type of SECTOR to
48852 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48853 unsigned after shifting.
48854 (grub_disk_cache_invalidate): Change the type of SECTOR to
48855 grub_disk_addr_t.
48856 (grub_disk_cache_unlock): Likewise.
48857 (grub_disk_cache_store): Likewise.
48858 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48859 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48860 grub_disk_addr_t and grub_uint64_t, respectively.
48861 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48862 body, as the value of OFFSET is tweaked by
48863 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48864 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48865 respectively.
48866 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48867 body, as the value of OFFSET is tweaked by
48868 grub_disk_check_range. Change the types of LEN and N to
48869 grub_size_t.
48870
48871 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48872 and "saved_offset" to grub_off_t.
48873 (test_header): Cast BUF to char *.
48874 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48875 to char *.
48876 (grub_gzio_read): Change the types of OFFSET and SIZE to
48877 grub_off_t and grub_size_t, respectively.
48878
48879 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48880 Removed.
48881 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48882 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48883 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48884 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48885 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48886
48887 * include/grub/types.h (grub_off_t): Unconditionally set to
48888 grub_uint64_t.
48889 (grub_disk_addr_t): Changed to grub_uint64_t.
48890
48891 * include/grub/partition.h (struct grub_partition): Change the
48892 types of "start", "len" and "offset" to grub_disk_addr_t,
48893 grub_uint64_t and grub_disk_addr_t, respectively.
48894 (grub_partition_get_start): Return grub_disk_addr_t.
48895 (grub_partition_get_len): Return grub_uint64_t.
48896
48897 * include/grub/misc.h (grub_strtoull): New prototype.
48898 (grub_divmod64): Likewise.
48899
48900 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48901 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48902 grub_off_t, respectively.
48903 All callers and references changed.
48904
48905 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48906 grub_size_t in "read".
48907 All callers and references changed.
48908
48909 * include/grub/file.h (struct grub_file): Change the types of
48910 "offset" and "size" to grub_off_t and grub_off_t,
48911 respectively. Change the type of SECTOR to grub_disk_addr_t in
48912 "read_hook".
48913 (grub_file_read): Change the type of LEN to grub_size_t.
48914 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48915 grub_off_t.
48916 (grub_file_size): Return grub_off_t.
48917 (grub_file_tell): Likewise.
48918 All callers and references changed.
48919
48920 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48921 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48922 "write".
48923 (struct grub_disk): Change the type of "total_sectors" to
48924 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
48925 "read_hook".
48926 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48927 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48928 (grub_disk_write): Likewise.
48929 All callers and references changed.
48930
48931 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48932 char * for grub_strncmp to silence gcc.
48933 (grub_iso9660_mount): Likewise.
48934 (grub_iso9660_mount): Likewise.
48935 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48936 return statement.
48937 (grub_iso9660_iterate_dir): Likewise.
48938 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48939
48940 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48941 LEN to grub_disk_addr_t and grub_size_t, respectively.
48942
48943 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48944
48945 * fs/jfs.c (grub_jfs_read_file): Likewise.
48946
48947 * fs/minix.c (grub_jfs_read_file): Likewise.
48948
48949 * fs/sfs.c (grub_jfs_read_file): Likewise.
48950
48951 * fs/ufs.c (grub_jfs_read_file): Likewise.
48952
48953 * fs/xfs.c (grub_jfs_read_file): Likewise.
48954
48955 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48956 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48957 respectively.
48958
48959 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48960 BLKNR to -1 instead of returning GRUB_ERRNO.
48961 (grub_ext2_read_file): Change the types of SECTOR and
48962 LEN to grub_disk_addr_t and grub_size_t, respectively.
48963
48964 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48965 LEN to grub_disk_addr_t and grub_size_t, respectively.
48966
48967 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48968 grub_file_read.
48969
48970 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48971 string. Do not cast SECTOR explicitly.
48972
48973 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48974 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48975 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48976 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48977 over 2TB and LBA mode is not supported, raise an error.
48978 (get_safe_sectors): New function.
48979 (grub_biosdisk_read): Use get_safe_sectors.
48980 (grub_biosdisk_write): Likewise.
48981
48982 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48983 (grub_efidisk_write): Likewise.
48984
48985 * disk/loopback.c (delete_loopback): Cosmetic changes.
48986 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48987 correctly.
48988 (grub_loopback_open): Likewise.
48989 (grub_loopback_read): Likewise. Also, change the type of POS to
48990 grub_off_t, and fix the usage of grub_memset.
48991
48992 * commands/i386/pc/play.c: Include grub/machine/time.h.
48993
48994 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48995 print FILE->SIZE.
48996
48997 * commands/configfile.c: Include grub/env.h.
48998
48999 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49000 GRUB_ERRNO directly instead. Change the type of POS to
49001 grub_off_t. Follow the coding standard.
49002
49003 * commands/blocklist.c: Include grub/partition.h.
49004 (grub_cmd_blocklist): Return an error if the underlying device is
49005 not a disk. Take the starting sector of a partition into account,
49006 if a partition is used.
49007
49008 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49009 a length field.
49010 (lba_mode): Support 64-bit addresses.
49011 (chs_mode): Likewise.
49012 (copy_buffer): Adapted to the new offsets of a length field and a
49013 segment field.
49014 (blocklist_default_start): Allocate 64-bit space.
49015
49016 * boot/i386/pc/boot.S (force_lba): Removed.
49017 (boot_drive): Moved to under KERNEL_SECTOR.
49018 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49019 space.
49020 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49021 is useless.
49022 (lba_mode): Refactored to support a 64-bit address. More size
49023 optimization.
49024 (setup_sectors): Likewise.
49025
49026 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49027
49028 * DISTLIST: Added include/grub/i386/linux.h. Removed
49029 include/grub/i386/pc/linux.h
49030
49031 * configure.ac (AC_INIT): Bumped to 1.94.
49032
49033 * config.guess: Updated from gnulib.
49034 * config.sub: Likewise.
49035 * install-sh: Likewise.
49036 * mkinstalldirs: Likewise.
49037
49038 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49039
49040 * conf/common.rmk (grub_modules_init.lst): Depended on
49041 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49042 MODSRCFILES.
49043
49044 * genmk.rb (PModule::rule): Reverted the previous change.
49045
49046 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49047
49048 * conf/common.rmk (grub_modules_init.lst): Depends on
49049 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49050 that the target does not exist before producing.
49051 (grub_modules_init.h): Remove the target before generating.
49052 (grub_emu_init.c): Likewise.
49053
49054 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49055
49056 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49057
49058 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49059 for the target-specific tests. Make sure that we also have the
49060 up-to-date target variables for those tests.
49061
49062 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49063
49064 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49065 (PModule::rule): Likewise.
49066
49067 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49068
49069 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49070 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49071 target-specific flags should be prefixed.
49072 (PModule::rule): Likewise.
49073
49074 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49075
49076 * configure.ac (CMP): Check if cmp is available explicitly.
49077
49078 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49079
49080 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49081 (target_cpu): New variable.
49082 (pkglibdir): Use target_cpu instead of host_cpu.
49083
49084 * util/i386/pc/grub-install.in (host_cpu): Removed.
49085 (target_cpu): New variable.
49086 (pkglibdir): Use target_cpu instead of host_cpu.
49087
49088 * util/genmoddep.c: Removed.
49089
49090 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49091 instead of GRUB_HOST_SIZEOF_VOID_P.
49092 * kern/dl.c: Likewise.
49093
49094 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49095 ...
49096 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49097 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49098 (GRUB_TARGET_SIZEOF_LONG): ... this.
49099 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49100 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49101 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49102 to ...
49103 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49104 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49105 (GRUB_TARGET_SIZEOF_LONG): ... this.
49106 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49107 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49108 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49109 to ...
49110 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49111 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49112 (GRUB_TARGET_SIZEOF_LONG): ... this.
49113 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49114 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49115
49116 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49117 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49118 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49119 instead of GRUB_HOST_SIZEOF_LONG.
49120 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49121 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49122 GRUB_CPU_WORDS_BIGENDIAN.
49123 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49124 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49125 grub_host_ssize_t.
49126
49127 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49128 (genmoddep_SOURCES): Likewise.
49129 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49130 (genmoddep_SOURCES): Likewise.
49131 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49132 (genmoddep_SOURCES): Likewise.
49133 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49134 Likewise.
49135 (genmoddep_SOURCES): Likewise.
49136
49137 * genmoddep.awk: New file.
49138
49139 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49140 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49141 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49142 (PModule::rule): Likewise.
49143 (Program::rule): Likewise.
49144 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49145 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49146 respectively.
49147
49148 * configure.ac: Rewritten intensively to use host and target
49149 instead of build and host, respectively.
49150
49151 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49152 (host_cpu): Removed.
49153 (target_cpu): New variable.
49154 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49155 (BUILD_CC): Removed.
49156 (BUILD_CFLAGS): Likewise.
49157 (BUILD_CPPFLAGS): Likewise.
49158 (TARGET_CC): New variable.
49159 (TARGET_CFLAGS): Likewise.
49160 (TARGET_CPPFLAGS): Likewise.
49161 (TARGET_LDFLAGS): Likewise.
49162 (AWK): Likewise.
49163 (include): Use target_cpu instead of host_cpu.
49164 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49165
49166 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49167
49168 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49169
49170 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49171 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49172 field 'false' to 'exec_on_false'.
49173 (grub_script_create_cmdif): Renamed argument names to reflect above
49174 changes.
49175
49176 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49177
49178 * normal/script.c (grub_script_create_cmdif): Likewise.
49179
49180 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49181
49182 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49183 top.
49184 (grub_hfsplus_btree_recptr): Likewise.
49185 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49186 FILEBLOCK both to pass a block number and store next block
49187 number.
49188 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49189 overflow file correctly. Specify errors appropriately, because
49190 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49191 grub_hfsplus_btree_recptr to get the pointer to a found key.
49192 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49193 is found.
49194
49195 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49196 linux.mod.
49197 (_linux_mod_SOURCES): New variable.
49198 (_linux_mod_CFLAGS): Likewise.
49199 (_linux_mod_LDFLAGS): Likewise.
49200 (linux_mod_SOURCES): Likewise.
49201 (linux_mod_CFLAGS): Likewise.
49202 (linux_mod_LDFLAGS): Likewise.
49203
49204 * DISTLIST: Added loader/i386/efi/linux.c,
49205 loader/i386/efi/linux_normal.c and
49206 include/grub/i386/efi/loader.h.
49207
49208 * loader/i386/efi/linux.c: New file.
49209 * loader/i386/efi/linux_normal.c: Likewise.
49210 * include/grub/i386/efi/loader.h: Likewise.
49211
49212 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49213
49214 * commands/blocklist.c: New file.
49215
49216 * DISTLIST: Added commands/blocklist.c.
49217
49218 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49219 color for the background, and a darker color for the foreground.
49220 (grub_console_checkkey): Return READ_KEY.
49221 (grub_console_cls): Set the background to
49222 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49223
49224 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49225
49226 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49227 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49228
49229 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49230 prototype.
49231
49232 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49233 BG. The spec is wrong again.
49234
49235 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49236 prototype.
49237 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49238
49239 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49240 commands/blocklist.c.
49241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49242
49243 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49244 (blocklist_mod_SOURCES): New variable.
49245 (blocklist_mod_CFLAGS): Likewise.
49246 (blocklist_mod_LDFLAGS): Likewise.
49247
49248 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49249
49250 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49251 duplication.
49252 (lba_mode): Use %eax more intensively to reduce the code size.
49253
49254 2006-05-20 Marco Gerards <marco@gnu.org>
49255
49256 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49257
49258 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49259 for `menuentry'.
49260 (script): Accept leading newlines.
49261 (newlines): New rule to describe 0 or more newlines.
49262 (commands): Accept `command' with trailing newline. Fixed the
49263 order in which arguments were passed to `grub_script_add_cmd'.
49264 Accept commands separated by newlines.
49265 (function): Changed to accept newlines.
49266 (menuentry) Rewritten.
49267
49268 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49269 front of the list, instead of to the end.
49270
49271 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49272
49273 * util/i386/pc/grub-install.in (bindir): New variable.
49274 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49275 Shaver <lbgwjl@gmail.com>.
49276
49277 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49278
49279 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49280 grub/machine/linux.h
49281 * loader/i386/pc/linux.c: Likewise.
49282
49283 * include/grub/i386/pc/linux.h: Moved to ...
49284 * include/grub/i386/linux.h: ... here.
49285
49286 * include/grub/i386/linux.h (struct linux_kernel_params): New
49287 struct.
49288
49289 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49290
49291 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49292 checking.
49293 (grub_video_vbe_blit_glyph): Likewise.
49294 (grub_video_vbe_blit_bitmap): Likewise.
49295 (grub_video_vbe_blit_render_target): Likewise.
49296
49297 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49298
49299 * configure.ac (--with-platform): Properly quote the square
49300 brackets.
49301
49302 2006-05-08 Marco Gerards <marco@gnu.org>
49303
49304 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49305 this...
49306 (kernel_elf_HEADERS): ...to this. Updated all users.
49307 (grubof_symlist.c): Renamed from this...
49308 (kernel_elf_symlist.c): ...to this. Updated all users.
49309 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49310 (grubof_SOURCES): Renamed from this...
49311 (kernel_elf_SOURCES): ...to this.
49312 (grubof_HEADERS): Renamed from this...
49313 (kernel_elf_HEADERS): ...to this.
49314 (grubof_CFLAGS): Renamed from this...
49315 (kernel_elf_CFLAGS): ...to this.
49316 (grubof_ASFLAGS): Renamed from this...
49317 (kernel_elf_ASFLAGS): ...to this.
49318 (grubof_LDFLAGS): Renamed from this...
49319 (kernel_elf_LDFLAGS): ...to this.
49320
49321 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49322 this...
49323 (kernel_elf_HEADERS): ...to this. Updated all users.
49324 (grubof_symlist.c): Renamed from this...
49325 (kernel_elf_symlist.c): ...to this. Updated all users.
49326 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49327 (grubof_SOURCES): Renamed from this...
49328 (kernel_elf_SOURCES): ...to this.
49329 (grubof_HEADERS): Renamed from this...
49330 (kernel_elf_HEADERS): ...to this.
49331 (grubof_CFLAGS): Renamed from this...
49332 (kernel_elf_CFLAGS): ...to this.
49333 (grubof_ASFLAGS): Renamed from this...
49334 (kernel_elf_ASFLAGS): ...to this.
49335 (grubof_LDFLAGS): Renamed from this...
49336 (kernel_elf_LDFLAGS): ...to this.
49337
49338 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49339 `kernel.elf' instead of `grubof'.
49340
49341 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49342
49343 Add --with-platform to configure. Use pkglibdir instead of
49344 pkgdatadir. This is reported by Roger Leigh.
49345
49346 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49347 (host_vendor): Likewise.
49348 (host_os): Likewise.
49349 (pkgdatadir): Likewise.
49350 (platform): New variable.
49351 (pkglibdir): Likewise.
49352 Use PKGLIBDIR instead of PKGDATADIR.
49353
49354 * util/i386/pc/grub-install.in (datadir): Removed.
49355 (host_vendor): Likewise.
49356 (host_os): Likewise.
49357 (pkgdatadir): Likewise.
49358 (platform): New variable.
49359 (pkglibdir): Likewise.
49360 Use PKGLIBDIR instead of PKGDATADIR.
49361
49362 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49363 instead of GRUB_DATADIR.
49364 (main): Likewise.
49365 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49366 (main): Likewise.
49367 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49368 (main): Likewise.
49369
49370 * configure.ac (--with-platform): New option.
49371 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49372
49373 * Makefile.in: Include a makefile based on PLATFORM instead of
49374 HOST_VENDOR.
49375 (pkgdatadir): Not appended by the machine type.
49376 (pkglibdir): Appended by the machine type.
49377 (host_vendor): Removed.
49378 (platform): New variable.
49379 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49380 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49381 (uninstall): Likewise.
49382
49383 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49384
49385 Use the environment context in the menu. Remove the commands
49386 "default" and "timeout", and use variables instead.
49387
49388 * normal/menu.c: Include grub/env.h.
49389 (print_entry): Cast TITLE to silence gcc.
49390 (get_timeout): New function.
49391 (set_timeout): Likewise.
49392 (get_entry_number): Likewise.
49393 (run_menu): Use a default entry, a fallback entry and a timeout
49394 in the environment variables "default", "fallback" and
49395 "timeout". Also, tweak the default entry if it is not within the
49396 current menu entries.
49397 (grub_menu_run): Use a fallback entry in the environment variable
49398 "fallback".
49399
49400 * normal/main.c (read_config_file): Do not initialize
49401 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49402 NEWMENU->TIMEOUT.
49403 (grub_normal_execute): Use a data slot to store the menu.
49404
49405 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49406 fallback_entry and timeout.
49407 (struct grub_menu_list): Removed.
49408 (grub_menu_list_t): Likewise.
49409 (struct grub_context): Likewise.
49410 (grub_context_t): Likewise.
49411 (grub_context_get): Likewise.
49412 (grub_context_get_current_menu): Likewise.
49413 (grub_context_push_menu): Likewise.
49414 (grub_context_pop_menu): Likewise.
49415 (grub_default_init): Likewise.
49416 (grub_default_fini): Likewise.
49417 (grub_timeout_init): Likewise.
49418 (grub_timeout_fini): Likewise.
49419
49420 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49421 and timeout.mod.
49422 (normal_mod_SOURCES): Removed normal/context.c.
49423
49424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49425 commands/default.c, commands/timeout.c and normal/context.c.
49426 (normal_mod_SOURCES): Removed normal/context.c.
49427
49428 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49429 commands/timeout.c and normal/context.c.
49430 (normal_mod_SOURCES): Removed normal/context.c.
49431
49432 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49433 commands/default.c, commands/timeout.c and normal/context.c.
49434 (normal_mod_SOURCES): Removed normal/context.c.
49435
49436 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49437 timeout.mod.
49438 (default_mod_SOURCES): Removed.
49439 (default_mod_CFLAGS): Likewise.
49440 (default_mod_LDFLAGS): Likewise.
49441 (timeout_mod_SOURCES): Removed.
49442 (timeout_mod_CFLAGS): Likewise.
49443 (timeout_mod_LDFLAGS): Likewise.
49444
49445 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49446 normal/context.c.
49447
49448 * commands/default.c: Removed.
49449 * commands/timeout.c: Likewise.
49450 * normal/context.c: Likewise.
49451
49452 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49453
49454 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49455
49456 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49457
49458 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49459 "next" to "prev" for readability.
49460 (struct grub_env_sorted_var): New struct.
49461 (grub_env_context): Renamed to ...
49462 (initial_context): ... this.
49463 (grub_env_var_context): Renamed to ...
49464 (current_context): ... this.
49465 (grub_env_find): Look only at CURRENT_CONTEXT.
49466 (grub_env_context_open): Rewritten to copy exported variables from
49467 previous context.
49468 (grub_env_context_close): Rewritten according to the new
49469 scheme. Also, add an assertion to prevent the initial context from
49470 removed.
49471 (grub_env_insert): Removed the code for the sorted list.
49472 (grub_env_remove): Likewise.
49473 (grub_env_export): Simply mark the variable with
49474 GRUB_ENV_VAR_GLOBAL.
49475 (grub_env_set): A cosmetic change for naming consistency.
49476 (grub_env_get): Likewise.
49477 (grub_env_unset): Likewise.
49478 (grub_env_iterate): Rewritten to sort variables within this
49479 function.
49480 (grub_register_variable_hook): Fixed for naming consistency. Call
49481 grub_env_find again, only if NAME is not found at the first time.
49482 (mangle_data_slot_name): New function.
49483 (grub_env_set_data_slot): Likewise.
49484 (grub_env_get_data_slot): Likewise.
49485 (grub_env_unset_data_slot): Likewise.
49486
49487 * include/grub/env.h (grub_env_var_type): New enum.
49488 (GRUB_ENV_VAR_LOCAL): New constant.
49489 (GRUB_ENV_VAR_GLOBAL): Likewise.
49490 (GRUB_ENV_VAR_DATA): Likewise.
49491 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49492 "type".
49493 (grub_env_set): Replace VAR with NAME for consistency.
49494 (grub_register_variable_hook): Likewise.
49495 (grub_env_export): Specify the name of the argument.
49496 (grub_env_set_data_slot): New prototype.
49497 (grub_env_get_data_slot): Likewise.
49498 (grub_env_unset_data_slot): Likewise.
49499
49500 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49501
49502 Extend the loader so that GRUB can accept a loader which comes
49503 back to GRUB when a loaded image exits. Also, this change adds
49504 support for a chainloader on EFI.
49505
49506 * term/efi/console.c: Include grub/misc.h.
49507 (grub_console_checkkey): Display a scan code on the top for
49508 debugging. This will be removed once the EFI port gets stable.
49509 Correct the scan code mapping.
49510
49511 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49512 allocate memory from larger regions, in order to reduce the number
49513 of allocated regions. Otherwise, the MacOSX loader panics.
49514 (filter_memory_map): Avoid less than 1MB for compatibility with
49515 other loaders.
49516 (add_memory_regions): Allocate from the tail of a region, if
49517 possible, to avoid allocating a region near to 1MB, for the MacOSX
49518 loader.
49519
49520 * kern/efi/init.c (grub_efi_set_prefix): Specify
49521 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49522
49523 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49524 argument IMAGE_HANDLE and specify it to get a loaded image.
49525 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49526 grub_efi_get_loaded_image.
49527 (grub_efi_get_filename): Divide the length by the size of
49528 grub_efi_char16_t.
49529 (grub_efi_get_device_path): New function.
49530 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49531 the length by the size of grub_efi_char16_t for a file path device
49532 path node.
49533
49534 * kern/loader.c (grub_loader_noreturn): New variable.
49535 (grub_loader_set): Accept a new argument NORETURN. Set
49536 GRUB_LOADER_NORETURN to NORETURN.
49537 All callers changed.
49538 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49539 grub_machine_fini.
49540
49541 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49542 prototype.
49543 (grub_efi_get_loaded_image): Take an argument to specify an image
49544 handle.
49545
49546 * include/grub/loader.h (grub_loader_set): Added one more argument
49547 NORETURN.
49548
49549 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49550 instead of grub_efi_open_protocol.
49551 (grub_efidisk_get_device_name): Likewise.
49552 (grub_efidisk_close): Print a newline.
49553 (grub_efidisk_get_device_handle): Fixed to use
49554 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49555 GRUB_EFI_DEVICE_PATH_TYPE.
49556
49557 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49558 * kern/efi/efi.c (device_path_guid): ... here.
49559
49560 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49561 chain.mod.
49562 (kernel_mod_HEADERS): Added efi/disk.h.
49563 (_chain_mod_SOURCES): New variable.
49564 (_chain_mod_CFLAGS): Likewise.
49565 (_chain_mod_LDFLAGS): Likewise.
49566 (chain_mod_SOURCES): Likewise.
49567 (chain_mod_CFLAGS): Likewise.
49568 (chain_mod_LDFLAGS): Likewise.
49569
49570 * DISTLIST: Added include/grub/efi/chainloader.h,
49571 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49572
49573 * include/grub/efi/chainloader.h: New file.
49574 * loader/efi/chainloader.c: Likewise.
49575 * loader/efi/chainloader_normal.c: Likewise.
49576
49577 2006-04-30 Marco Gerards <marco@gnu.org>
49578
49579 * commands/configfile.c (grub_cmd_source): New function.
49580 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49581 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49582
49583 2006-04-30 Marco Gerards <marco@gnu.org>
49584
49585 * normal/execute.c (grub_script_execute_cmd): Change the return
49586 type to `grub_err_t'. Correctly return the error.
49587 (grub_script_execute_cmdline): In case a command line is not a
49588 command or a function, try to interpret it as an assignment.
49589
49590 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49591
49592 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49593 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49594 skip a node whose name is obviously invalid as UTF-16,
49595 i.e. contains a NUL character. Stop the iteration when the last
49596 directory entry is found. Instead of using the return value of
49597 grub_hfsplus_btree_iterate_node, store the value in RET and use
49598 it, because the iterator can be stopped by the last directory
49599 entry.
49600
49601 2006-04-30 Marco Gerards <marco@gnu.org>
49602
49603 * include/grub/env.h (grub_env_export): New prototype. Reported
49604 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49605
49606 2006-04-30 Marco Gerards <marco@gnu.org>
49607
49608 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49609 size of the extents in a catalog file record.
49610
49611 2006-04-29 Marco Gerards <marco@gnu.org>
49612
49613 * commands/configfile.c (grub_cmd_configfile): Execute the
49614 configfile within its own context.
49615
49616 * include/grub/env.h (grub_env_context_open): New prototype.
49617 (grub_env_context_close): Likewise.
49618
49619 * kern/env.c (grub_env): Removed.
49620 (grub_env_sorted): Likewise.
49621 (grub_env_context): New variable.
49622 (grub_env_var_context): Likewise.
49623 (grub_env_find): Search both the active context and the global
49624 context.
49625 (grub_env_context_open): New function.
49626 (grub_env_context_close): Likewise.
49627 (grub_env_insert): Likewise.
49628 (grub_env_remove): Likewise.
49629 (grub_env_export): Likewise.
49630 (grub_env_set): Changed to use helper functions to avoid code
49631 duplication.
49632 (grub_env_iterate): Rewritten so both the current context and the
49633 global context are being used.
49634
49635 * normal/command.c (export_command): New function.
49636 (grub_command_init): Register the `export' function.
49637
49638 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49639
49640 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49641 explicitly to suppress gcc's warnings.
49642 * fs/fat.c (grub_fat_find_dir): Likewise.
49643 (grub_fat_label): Likewise.
49644 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49645 (grub_xfs_mount): Likewise.
49646 (grub_xfs_label): Likewise.
49647 * fs/affs.c (grub_affs_mount): Likewise.
49648 (grub_affs_label): Likewise.
49649 (grub_affs_iterate_dir): Likewise.
49650 * fs/sfs.c (grub_sfs_mount): Likewise.
49651 (grub_sfs_iterate_dir): Likewise.
49652 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49653 * fs/hfs.c (grub_hfs_mount): Likewise.
49654 (grub_hfs_cmp_catkeys): Likewise.
49655 (grub_hfs_find_dir): Likewise.
49656 (grub_hfs_dir): Likewise.
49657 (grub_hfs_label): Likewise.
49658 * fs/jfs.c (grub_jfs_mount): Likewise.
49659 (grub_jfs_opendir): Likewise.
49660 (grub_jfs_getent): Likewise.
49661 (grub_jfs_lookup_symlink): Likewise.
49662 (grub_jfs_label): Likewise.
49663 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49664 (grub_hfsplus_iterate_dir): Likewise.
49665 (grub_hfsplus_btree_iterate_node): Made static.
49666
49667 * util/grub-emu.c (prefix): New variable.
49668 (grub_machine_set_prefix): New function.
49669 (main): Do not set the environment variable "prefix" here. Only
49670 set PREFIX, which is used later by grub_machine_set_prefix.
49671
49672 * include/grub/video.h: Do not include grub/symbol.h.
49673 (grub_video_register): Not exported. This symbol is not defined in
49674 the kernel.
49675 (grub_video_unregister): Likewise.
49676 (grub_video_iterate): Likewise.
49677 (grub_video_setup): Likewise.
49678 (grub_video_restore): Likewise.
49679 (grub_video_get_info): Likewise.
49680 (grub_video_get_blit_format): Likewise.
49681 (grub_video_set_palette): Likewise.
49682 (grub_video_get_palette): Likewise.
49683 (grub_video_set_viewport): Likewise.
49684 (grub_video_get_viewport): Likewise.
49685 (grub_video_map_color): Likewise.
49686 (grub_video_map_rgb): Likewise.
49687 (grub_video_map_rgba): Likewise.
49688 (grub_video_fill_rect): Likewise.
49689 (grub_video_blit_glyph): Likewise.
49690 (grub_video_blit_bitmap): Likewise.
49691 (grub_video_blit_render_target): Likewise.
49692 (grub_video_scroll): Likewise.
49693 (grub_video_swap_buffers): Likewise.
49694 (grub_video_create_render_target): Likewise.
49695 (grub_video_delete_render_target): Likewise.
49696 (grub_video_set_active_render_target): Likewise.
49697
49698 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49699 Undefined.
49700 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49701
49702 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49703 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49704 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49705 instead of $(srcdir)/genkernsyms.sh.
49706
49707 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49708 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49709 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49710 instead of $(srcdir)/genkernsyms.sh.
49711
49712 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49713 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49714 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49715 instead of $(srcdir)/genkernsyms.sh.
49716
49717 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49718 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49719 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49720 instead of $(srcdir)/genkernsyms.sh.
49721
49722 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49723 genkernsyms.sh.
49724
49725 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49726 genkernsyms.sh.
49727 (gensymlist.sh): New target.
49728 (genkernsyms.sh): Likewise.
49729
49730 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49731 genkernsyms.sh.in and gensymlist.sh.in.
49732
49733 * genkernsyms.sh: Removed.
49734 * gensymlist.sh: Likewise.
49735
49736 * genkernsyms.sh.in: New file.
49737 * gensymlist.sh.in: Likewise.
49738
49739 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49740
49741 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49742 clobber "prefix", since we may have already set it manually.
49743
49744 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49745
49746 * kern/misc.c (abort): New alias for grub_abort.
49747
49748 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49749
49750 A new machine-specific function "grub_machine_set_prefix" is
49751 defined. This is called after loading modules, so that a prefix
49752 initialization can use modules. Also, this change adds an
49753 intensive debugging feature for the memory manager via the
49754 configure option "--enable-mm-debug".
49755
49756 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49757 PART.LEN.
49758
49759 * kern/sparc64/ieee1275/init.c (abort): Removed.
49760 (grub_stop): Likewise.
49761 (grub_exit): New function.
49762 (grub_set_prefix): Renamed to ...
49763 (grub_machine_set_prefix): ... this.
49764 (grub_machine_init): Do not call grub_set_prefix.
49765
49766 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49767 (grub_machine_set_prefix): ... this.
49768 (grub_machine_init): Do not call grub_set_prefix.
49769
49770 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49771 (grub_machine_init): Do not set the prefix here.
49772
49773 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49774
49775 * kern/efi/init.c: Include grub/mm.h.
49776 (grub_efi_set_prefix): New function.
49777
49778 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49779 (grub_efi_get_filename): New function.
49780 (grub_print_device_path): Renamed to ...
49781 (grub_efi_print_device_path): ... this.
49782
49783 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49784 [MM_DEBUG] (grub_realloc): Likewise.
49785 [MM_DEBUG] (grub_free): Likewise.
49786 [MM_DEBUG] (grub_memalign): Likewise.
49787 [MM_DEBUG] (grub_mm_debug): New variable.
49788 [MM_DEBUG] (grub_debug_malloc): New function.
49789 [MM_DEBUG] (grub_debug_free): New function.
49790 [MM_DEBUG] (grub_debug_realloc): New function.
49791 [MM_DEBUG] (grub_debug_memalign): New function.
49792
49793 * kern/misc.c (grub_abort): Print a newline to distinguish
49794 the message.
49795
49796 * kern/main.c (grub_main): Call grub_machine_set_prefix and
49797 grub_set_root_dev after loading modules. This is necessary when
49798 setting a prefix depends on modules.
49799
49800 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49801 (grub_efi_print_device_path): ... this.
49802 (grub_efi_get_filename): New prototype.
49803 (grub_efi_set_prefix): Likewise.
49804
49805 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49806 and grub/disk.h.
49807 (grub_efidisk_get_device_handle): New prototype.
49808 (grub_efidisk_get_device_name): Likewise.
49809
49810 * include/grub/mm.h: Include config.h.
49811 (MM_DEBUG): Removed.
49812 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49813 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49814 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49815 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49816 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49817 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49818 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49819 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49820 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49821
49822 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49823
49824 * disk/efi/efidisk.c: Include grub/partition.h.
49825 (iterate_child_devices): New function.
49826 (add_device): First, compare only last device path nodes, so that
49827 devices are sorted by the types.
49828 (grub_efidisk_get_device_handle): New function.
49829 (grub_efidisk_get_device_name): Likewise.
49830
49831 * configure.ac (--enable-mm-debug): New option to enable the
49832 memory manager debugging feature. This makes the binary much
49833 bigger, so is disabled by default.
49834
49835 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49836
49837 Use grub_abort instead of grub_stop, and grub_exit must be
49838 define in each architecture now. Also, this change adds support
49839 for EFI disks.
49840
49841 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49842 (grub_getkey): New function.
49843 (grub_term_get_current): Likewise.
49844
49845 * util/i386/pc/grub-setup.c: Include grub/term.h.
49846 (grub_getkey): New function.
49847 (grub_term_get_current): Likewise.
49848
49849 * util/misc.c (grub_stop): Renamed to ...
49850 (grub_exit): ... this.
49851
49852 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49853 (grub_exit): ... this.
49854 (grub_machine_init): Use grub_abort instead of abort.
49855 (grub_stop): Removed.
49856
49857 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49858 abort.
49859
49860 * kern/i386/pc/startup.S (grub_exit): New function.
49861 (cold_reboot): New label.
49862
49863 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49864 (grub_efi_init): Call grub_efidisk_init.
49865 (grub_efi_fini): Call grub_efidisk_fini.
49866
49867 * kern/efi/efi.c: Include grub/mm.h.
49868 (grub_efi_console_control_guid): Renamed to ...
49869 (console_control_guid): ... this.
49870 (grub_efi_loaded_image_guid): Renamed to ...
49871 (loaded_image_guid): ... this.
49872 (grub_efi_locate_handle): New function.
49873 (grub_efi_open_protocol): Likewise.
49874 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49875 GRUB_EFI_CONSOLE_CONTROL_GUID.
49876 (grub_efi_exit): Removed.
49877 (grub_stop): Likewise.
49878 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49879 (grub_exit): New function.
49880 (grub_print_device_path): Likewise.
49881
49882 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49883 (grub_enter_rescue_mode): Register "exit".
49884
49885 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49886 (grub_abort): New function.
49887
49888 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49889
49890 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49891
49892 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49893
49894 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49895 (grub_print_device_path): New prototype.
49896 (grub_efi_locate_handle): Likewise.
49897 (grub_efi_open_protocol): Likewise.
49898
49899 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49900 * disk/efi/efidisk.c: Likewise.
49901
49902 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49903
49904 * include/grub/efi/console_control.h
49905 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49906
49907 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49908 last 8 bytes as an array.
49909 (GRUB_EFI_DISK_IO_GUID): New macro.
49910 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49911 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49912 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49913 grub_uint8_t.
49914 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49915 (struct grub_efi_device_path): Rename the member "sub_type" to
49916 "subtype".
49917 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49918 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49919 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49920 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49921 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49922 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49923 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49924 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49925 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49926 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49927 (struct grub_efi_pci_device_path): New structure.
49928 (grub_efi_pci_device_path_t): New type.
49929 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49930 (struct grub_efi_pccard_device_path): New structure.
49931 (grub_efi_pccard_device_path_t): New type.
49932 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49933 (struct grub_efi_memory_mapped_device_path): New structure.
49934 (grub_efi_memory_mapped_device_path_t): New type.
49935 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49936 (struct grub_efi_vendor_device_path): New structure.
49937 (grub_efi_vendor_device_path_t): New type.
49938 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49939 (struct grub_efi_controller_device_path): New structure.
49940 (grub_efi_controller_device_path_t): New type.
49941 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49942 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49943 (struct grub_efi_acpi_device_path): New structure.
49944 (grub_efi_acpi_device_path_t): New type.
49945 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49946 (struct grub_efi_expanded_acpi_device_path): New structure.
49947 (grub_efi_expanded_acpi_device_path_t): New type.
49948 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49949 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49950 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49951 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49952 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49953 (struct grub_efi_atapi_device_path): New structure.
49954 (grub_efi_atapi_device_path_t): New type.
49955 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49956 (struct grub_efi_fibre_channel_device_path): New structure.
49957 (grub_efi_fibre_channel_device_path_t): New type.
49958 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49959 (struct grub_efi_1394_device_path): New structure.
49960 (grub_efi_1394_device_path_t): New type.
49961 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49962 (struct grub_efi_usb_device_path): New structure.
49963 (grub_efi_usb_device_path_t): New type.
49964 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49965 (struct grub_efi_usb_class_device_path): New structure.
49966 (grub_efi_usb_class_device_path_t): New type.
49967 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49968 (struct grub_efi_i2o_device_path): New structure.
49969 (grub_efi_i2o_device_path_t): New type.
49970 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49971 (struct grub_efi_mac_address_device_path): New structure.
49972 (grub_efi_mac_address_device_path_t): New type.
49973 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49974 (struct grub_efi_ipv4_device_path): New structure.
49975 (grub_efi_ipv4_device_path_t): New type.
49976 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49977 (struct grub_efi_ipv6_device_path): New structure.
49978 (grub_efi_ipv6_device_path_t): New type.
49979 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49980 (struct grub_efi_infiniband_device_path): New structure.
49981 (grub_efi_infiniband_device_path_t): New type.
49982 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49983 (struct grub_efi_uart_device_path): New structure.
49984 (grub_efi_uart_device_path_t): New type.
49985 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49986 (struct grub_efi_vendor_messaging_device_path): New structure.
49987 (grub_efi_vendor_messaging_device_path_t): New type.
49988 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49989 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49990 (struct grub_efi_hard_drive_device_path): New structure.
49991 (grub_efi_hard_drive_device_path_t): New type.
49992 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49993 (struct grub_efi_cdrom_device_path): New structure.
49994 (grub_efi_cdrom_device_path_t): New type.
49995 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49996 (struct grub_efi_vendor_media_device_path): New structure.
49997 (grub_efi_vendor_media_device_path_t): New type.
49998 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49999 (struct grub_efi_file_path_device_path): New structure.
50000 (grub_efi_file_path_device_path_t): New type.
50001 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50002 (struct grub_efi_protocol_device_path): New structure.
50003 (grub_efi_protocol_device_path_t): New type.
50004 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50005 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50006 (struct grub_efi_bios_device_path): New structure.
50007 (grub_efi_bios_device_path_t): New type.
50008 (struct grub_efi_disk_io): New structure.
50009 (grub_efi_disk_io_t): New type.
50010 (struct grub_efi_block_io_media): New structure.
50011 (grub_efi_block_io_media_t): New type.
50012 (struct grub_efi_block_io): New structure.
50013 (grub_efi_block_io_t): New type.
50014
50015 * include/grub/misc.h (grub_stop): Removed.
50016 (grub_exit): New prototype.
50017 (grub_abort): Likewise.
50018
50019 * include/grub/disk.h (enum grub_disk_dev_id): Added
50020 GRUB_DISK_DEVICE_EFIDISK_ID.
50021
50022 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50023 disk/efi/efidisk.c.
50024 (kernel_syms.lst): Remove the target if an error occurs.
50025
50026 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50027
50028 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50029 as it was simply too buggy.
50030
50031 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50032
50033 * kern/misc.c (grub_lltoa): New function.
50034 (grub_vsprintf): Added support for the long long suffix,
50035 i.e. "ll".
50036
50037 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50038
50039 * Makefile.in (LDFLAGS): Add variable.
50040 (LD): Remove variable.
50041 * configure.ac: Add -m32 to LDFLAGS.
50042 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50043 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50044 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50045 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50046 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50047 variables.
50048 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50049 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50050 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50051
50052 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50053
50054 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50055 length for unknown glyph.
50056
50057 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50058
50059 Add support for pre-loaded modules into the EFI port.
50060
50061 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50062 completely. Accept one more argument DIR. The caller has changed.
50063
50064 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50065
50066 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50067 (grub_efi_loaded_image_guid): New variable.
50068 (grub_efi_get_loaded_image): New function.
50069 (grub_arch_modules_addr): Likewise.
50070
50071 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50072 prototype.
50073
50074 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50075 (struct grub_efi_loaded_image): New structure.
50076 (grub_efi_loaded_image_t): New type.
50077
50078 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50079
50080 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50081 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50082 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50083
50084 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50085
50086 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50087
50088 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50089
50090 * DISTLIST: Added include/grub/efi/console.h,
50091 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50092 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50093
50094 * include/grub/efi/console.h: New file.
50095 * include/grub/efi/time.h: Likewise.
50096 * include/grub/i386/efi/kernel.h: Likewise.
50097 * kern/efi/init.c: Likewise.
50098 * kern/efi/mm.c: Likewise.
50099 * term/efi/console.c: Likewise.
50100
50101 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50102 (grub_stop): Removed.
50103 (grub_get_rtc): Likewise.
50104 (grub_machine_init): Simply call grub_efi_init.
50105 (grub_machine_fini): Call grub_efi_fini.
50106
50107 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50108 (grub_efi_output_string): Removed.
50109 (grub_efi_stall): New function.
50110 (grub_stop): Likewise.
50111 (grub_get_rtc): Likewise.
50112
50113 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50114 (grub_efi_stall): New prototype.
50115 (grub_efi_allocate_pages): Likewise.
50116 (grub_efi_free_pages): Likewise.
50117 (grub_efi_get_memory_map): Likewise.
50118 (grub_efi_mm_init): Likewise.
50119 (grub_efi_mm_fini): Likewise.
50120 (grub_efi_init): Likewise.
50121 (grub_efi_fini): Likewise.
50122
50123 * include/grub/i386/efi/time.h: Do not include
50124 grub/symbol.h. Include grub/efi/time.h.
50125 (GRUB_TICKS_PER_SECOND): Removed.
50126 (grub_get_rtc): Likewise.
50127
50128 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50129 Added padding. The EFI spec is buggy.
50130 (GRUB_EFI_BLACK): New macro.
50131 (GRUB_EFI_BLUE): Likewise.
50132 (GRUB_EFI_GREEN): Likewise.
50133 (GRUB_EFI_CYAN): Likewise.
50134 (GRUB_EFI_RED): Likewise.
50135 (GRUB_EFI_MAGENTA): Likewise.
50136 (GRUB_EFI_BROWN): Likewise.
50137 (GRUB_EFI_LIGHTGRAY): Likewise.
50138 (GRUB_EFI_BRIGHT): Likewise.
50139 (GRUB_EFI_DARKGRAY): Likewise.
50140 (GRUB_EFI_LIGHTBLUE): Likewise.
50141 (GRUB_EFI_LIGHTGREEN): Likewise.
50142 (GRUB_EFI_LIGHTCYAN): Likewise.
50143 (GRUB_EFI_LIGHTRED): Likewise.
50144 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50145 (GRUB_EFI_YELLOW): Likewise.
50146 (GRUB_EFI_WHITE): Likewise.
50147 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50148 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50149 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50150 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50151 (GRUB_EFI_BACKGROUND_RED): Likewise.
50152 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50153 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50154 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50155 (GRUB_EFI_TEXT_ATTR): Likewise.
50156
50157 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50158 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50159 (kernel_mod_HEADERS): Added efi/time.h.
50160
50161 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50162
50163 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50164 include/grub/efi/api.h, include/grub/efi/console_control.h,
50165 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50166 include/grub/i386/efi/time.h, kern/efi/efi.c,
50167 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50168 and util/i386/efi/grub-mkimage.c.
50169
50170 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50171
50172 * genmk.rb (PModule#rule): Do not export symbols if
50173 #{prefix}_EXPORTS is set to "no".
50174
50175 * conf/i386-efi.mk: New file.
50176 * conf/i386-efi.rmk: Likewise.
50177 * include/grub/efi/api.h: Likewise.
50178 * include/grub/efi/console_control.h: Likewise.
50179 * include/grub/efi/efi.h: Likewise.
50180 * include/grub/efi/pe32.h: Likewise.
50181 * include/grub/i386/efi/time.h: Likewise.
50182 * kern/efi/efi.c: Likewise.
50183 * kern/i386/efi/init.c: Likewise.
50184 * kern/i386/efi/startup.S: Likewise.
50185 * util/i386/efi/grub-mkimage.c: Likewise.
50186
50187 2006-04-17 Marco Gerards <marco@gnu.org>
50188
50189 * include/grub/script.h: Include <grub/parser.h> and
50190 "grub_script.tab.h".
50191 (struct grub_lexer_param): New struct.
50192 (struct grub_parser_param): Likewise.
50193 (grub_script_create_arglist): Pass the state in an argument.
50194 (grub_script_add_arglist): Likewise.
50195 (grub_script_create_cmdline): Likewise.
50196 (grub_script_create_cmdblock): Likewise.
50197 (grub_script_create_cmdif): Likewise.
50198 (grub_script_create_cmdmenu): Likewise.
50199 (grub_script_add_cmd): Likewise.
50200 (grub_script_arg_add): Likewise.
50201 (grub_script_lexer_ref): Likewise.
50202 (grub_script_lexer_deref): Likewise.
50203 (grub_script_lexer_record_start): Likewise.
50204 (grub_script_lexer_record_stop): Likewise.
50205 (grub_script_mem_record): Likewise.
50206 (grub_script_mem_record_stop): Likewise.
50207 (grub_script_malloc): Likewise.
50208 (grub_script_yylex): Likewise.
50209 (grub_script_yyparse): Likewise.
50210 (grub_script_yyerror): Likewise.
50211 (grub_script_yylex): Likewise.
50212 (grub_script_lexer_init): Return the state.
50213
50214 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50215 (grub_script_lexer_done): Likewise.
50216 (grub_script_lexer_getline): Likewise.
50217 (grub_script_lexer_refs): Likewise.
50218 (script): Likewise.
50219 (newscript): Likewise.
50220 (record): Likewise.
50221 (recording): Likewise.
50222 (recordpos): Likewise.
50223 (recordlen): Likewise.
50224 (grub_script_lexer_init): Return the state instead of setting
50225 global variables.
50226 (grub_script_lexer_ref): Use the newly added argument for state
50227 instead of globals.
50228 (grub_script_lexer_deref): Likewise.
50229 (grub_script_lexer_record_start): Likewise.
50230 (grub_script_lexer_record_stop): Likewise.
50231 (recordchar): Likewise.
50232 (nextchar): Likewise.
50233 (grub_script_yylex2): Likewise.
50234 (grub_script_yylex): Likewise.
50235 (grub_script_yyerror): Likewise.
50236
50237 * normal/parser.y (func_mem): Removed variable.
50238 (menu_entry): Likewise.
50239 (err): Likewise.
50240 (%lex-param): New parser option.
50241 (%parse-param): Likewise.
50242 (script): Always return the AST.
50243 (argument): Pass the state around.
50244 (arguments): Likewise.
50245 (grubcmd): Likewise.
50246 (commands): Likewise.
50247 (function): Likewise.
50248 (menuentry): Likewise.
50249 (if_statement): Likewise.
50250 (if): Likewise.
50251
50252 * normal/script.c (grub_script_memused): Removed variable.
50253 (grub_script_parsed): Likewise.
50254 (grub_script_malloc): Added a state argument. Use that instead of
50255 global variables.
50256 (grub_script_mem_record): Likewise.
50257 (grub_script_mem_record_stop): Likewise.
50258 (grub_script_arg_add): Likewise.
50259 (grub_script_add_arglist): Likewise.
50260 (grub_script_create_cmdline): Likewise.
50261 (grub_script_create_cmdif): Likewise.
50262 (grub_script_create_cmdmenu): Likewise.
50263 (grub_script_add_cmd): Likewise.
50264 (grub_script_parse): Setup the state before calling the parser.
50265
50266 2006-04-16 Marco Gerards <marco@gnu.org>
50267
50268 * normal/command.c (grub_command_init): Remove the title command.
50269
50270 * normal/lexer.c (grub_script_yylex): Renamed from this...
50271 (grub_script_yylex2): ... to this.
50272 (grub_script_yylex): New function. Temporary
50273 introduced to filter some tokens.
50274 (grub_script_yyerror): Print a newline.
50275
50276 * normal/main.c (read_config_file): Output information about the
50277 lines that contain errors. Wait for a key after all lines have
50278 been processed. Don't return an empty menu.
50279
50280 * normal/parser.y (func_mem): Don't initialize.
50281 (menu_entry): Likewise.
50282 (err): New variable.
50283 (script): Don't return anything when an error was encountered.
50284 (ws, returns): Removed rules.
50285 (argument): Disabled concatenated variable support.
50286 (arguments): Remove explicit separators.
50287 (grubcmd): Likewise.
50288 (function): Likewise.
50289 (menuentry): Likewise.
50290 (if): Likewise.
50291 (commands): Likewise. Add error handling.
50292
50293 * normal/script.c (grub_script_create_cmdline): If
50294 `grub_script_parsed' is 0, assume the parser encountered an error.
50295
50296 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50297
50298 * configure.ac: Add support for EFI. Fix the typo
50299 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50300
50301 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50302
50303 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50304 foreign multibyte characters should be shown correctly.
50305
50306 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50307
50308 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50309 calculation.
50310 (read_config_file): Made it to close file before returning.
50311
50312 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50313
50314 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50315 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50316 video/i386/pc/vbefill.c.
50317
50318 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50319 video/i386/pc/vbefill.c.
50320
50321 * include/grub/video.h (grub_video_blit_format): New enum.
50322 (grub_video_mode_info): Added new member blit_format.
50323 (grub_video_get_blit_format): New function prototype.
50324
50325 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50326 function prototype.
50327 (grub_video_vbe_map_rgb): Likewise.
50328 (grub_video_vbe_unmap_color): Likewise.
50329
50330 * include/grub/i386/pc/vbeblit.h: New file.
50331
50332 * include/grub/i386/pc/vbefill.h: New file.
50333
50334 * video/video.c (grub_video_get_blit_format): New function.
50335 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50336 (grub_video_vbe_map_rgb): Likewise.
50337 (grub_video_vbe_unmap_color): Likewise.
50338
50339 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50340 optimized fills.
50341 (grub_video_vbe_blit_render_target): Changed to use more optimized
50342 blits.
50343 (grub_video_vbe_setup): Added detection for optimized settings.
50344 (grub_video_vbe_create_render_target): Likewise.
50345
50346 * video/i386/pc/vbeblit.c: New file.
50347
50348 * video/i386/pc/vbefill.c: New file.
50349
50350 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50351
50352 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50353 here...
50354
50355 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50356 parsing to support both hex and dec ranges. If filename was missing
50357 show usage information.
50358
50359 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50360
50361 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50362 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50363
50364 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50365 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50366 (video_mod_SOURCES): Added.
50367 (video_mod_CFLAGS): Likewise.
50368 (video_mod_LDFLAGS): Likewise.
50369 (gfxterm_mod_SOURCES): Likewise.
50370 (gfxterm_mod_CFLAGS): Likewise.
50371 (gfxterm_mod_LDFLAGS): Likewise.
50372 (videotest_mod_SOURCES): Likewise.
50373 (videotest_mod_CFLAGS): Likewise.
50374 (videotest_mod_LDFLAGS): Likewise.
50375 (vesafb_mod_SOURCES): Removed.
50376 (vesafb_mod_CFLAGS): Likewise.
50377 (vesafb_mod_LDFLAGS): Likewise.
50378 (vga_mod_SOURCES): Likewise.
50379 (vga_mod_CFLAGS): Likewise.
50380 (vga_mod_LDFLAGS): Likewise.
50381
50382 * commands/videotest.c: New file.
50383
50384 * font/manager.c (fill_with_default_glyph): Modified to use
50385 grub_font_glyph.
50386 (grub_font_get_glyph): Likewise.
50387 (fontmanager): Renamed from this...
50388 (font_manager): ... to this.
50389
50390 * include/grub/font.h (grub_font_glyph): Added new structure.
50391 (grub_font_get_glyph): Modified to use grub_font_glyph.
50392
50393 * include/grub/misc.h (grub_abs): Added as inline function.
50394
50395 * include/grub/video.h: New file.
50396
50397 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50398 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50399 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50400 (grub_vbe_get_controller_info): Renamed from this...
50401 (grub_vbe_bios_get_controller_info): ... to this.
50402 (grub_vbe_get_mode_info): Renamed from this...
50403 (grub_vbe_bios_get_mode_info): ... to this.
50404 (grub_vbe_set_mode): Renamed from this...
50405 (grub_vbe_bios_set_mode): ... to this.
50406 (grub_vbe_get_mode): Renamed from this...
50407 (grub_vbe_bios_get_mode): ... to this.
50408 (grub_vbe_set_memory_window): Renamed from this...
50409 (grub_vbe_bios_set_memory_window): ... to this.
50410 (grub_vbe_get_memory_window): Renamed from this...
50411 (grub_vbe_bios_get_memory_window): ... to this.
50412 (grub_vbe_set_scanline_length): Renamed from this...
50413 (grub_vbe_set_scanline_length): ... to this.
50414 (grub_vbe_get_scanline_length): Renamed from this...
50415 (grub_vbe_bios_get_scanline_length): ... to this.
50416 (grub_vbe_set_display_start): Renamed from this...
50417 (grub_vbe_bios_set_display_start): ... to this.
50418 (grub_vbe_get_display_start): Renamed from this...
50419 (grub_vbe_bios_get_display_start): ... to this.
50420 (grub_vbe_set_palette_data): Renamed from this...
50421 (grub_vbe_bios_set_palette_data): ... to this.
50422 (grub_vbe_set_pixel_rgb): Removed.
50423 (grub_vbe_set_pixel_index): Likewise.
50424
50425 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50426 from this...
50427 (grub_vbe_bios_get_controller_info): ... to this.
50428 (grub_vbe_get_mode_info): Renamed from this...
50429 (grub_vbe_bios_get_mode_info): ... to this.
50430 (grub_vbe_set_mode): Renamed from this...
50431 (grub_vbe_bios_set_mode): ... to this.
50432 (grub_vbe_get_mode): Renamed from this...
50433 (grub_vbe_bios_get_mode): ... to this.
50434 (grub_vbe_set_memory_window): Renamed from this...
50435 (grub_vbe_bios_set_memory_window): ... to this.
50436 (grub_vbe_get_memory_window): Renamed from this...
50437 (grub_vbe_bios_get_memory_window): ... to this.
50438 (grub_vbe_set_scanline_length): Renamed from this...
50439 (grub_vbe_set_scanline_length): ... to this.
50440 (grub_vbe_get_scanline_length): Renamed from this...
50441 (grub_vbe_bios_get_scanline_length): ... to this.
50442 (grub_vbe_set_display_start): Renamed from this...
50443 (grub_vbe_bios_set_display_start): ... to this.
50444 (grub_vbe_get_display_start): Renamed from this...
50445 (grub_vbe_bios_get_display_start): ... to this.
50446 (grub_vbe_set_palette_data): Renamed from this...
50447 (grub_vbe_bios_set_palette_data): ... to this.
50448 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50449 getting corrupted after calling it. Added more pushes and pops.
50450 (grub_vbe_bios_set_mode): Likewise.
50451 (grub_vbe_bios_get_mode): Likewise.
50452 (grub_vbe_bios_get_memory_window): Likewise.
50453 (grub_vbe_bios_set_scanline_length): Likewise.
50454 (grub_vbe_bios_get_scanline_length): Likewise.
50455 (grub_vbe_bios_get_display_start): Likewise.
50456 (grub_vbe_bios_set_palette_data): Likewise.
50457
50458 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50459 (cl_insert): Likewise.
50460 (cl_delete): Likewise.
50461
50462 * term/gfxterm.c: New file.
50463
50464 * term/i386/pc/vesafb.c: Removed file.
50465
50466 * video/video.c: New file.
50467
50468 * video/i386/pc/vbe.c (real2pm): Added new function.
50469 (grub_video_vbe_draw_pixel): Likewise.
50470 (grub_video_vbe_get_video_ptr): Likewise.
50471 (grub_video_vbe_get_pixel): Likewise
50472 (grub_video_vbe_init): Likewise.
50473 (grub_video_vbe_fini): Likewise.
50474 (grub_video_vbe_setup): Likewise.
50475 (grub_video_vbe_get_info): Likewise.
50476 (grub_video_vbe_set_palette): Likewise.
50477 (grub_video_vbe_get_palette): Likewise.
50478 (grub_video_vbe_set_viewport): Likewise.
50479 (grub_video_vbe_get_viewport): Likewise.
50480 (grub_video_vbe_map_color): Likewise.
50481 (grub_video_vbe_map_rgb): Likewise.
50482 (grub_video_vbe_map_rgba): Likewise.
50483 (grub_video_vbe_unmap_color): Likewise.
50484 (grub_video_vbe_fill_rect): Likewise.
50485 (grub_video_vbe_blit_glyph): Likewise.
50486 (grub_video_vbe_blit_bitmap): Likewise.
50487 (grub_video_vbe_blit_render_target): Likewise.
50488 (grub_video_vbe_scroll): Likewise.
50489 (grub_video_vbe_swap_buffers): Likewise.
50490 (grub_video_vbe_create_render_target): Likewise.
50491 (grub_video_vbe_delete_render_target): Likewise.
50492 (grub_video_vbe_set_active_render_target): Likewise.
50493 (grub_vbe_set_pixel_rgb): Remove function.
50494 (grub_vbe_set_pixel_index): Likewise.
50495 (index_color_mode): Remove static variable.
50496 (active_mode): Likewise.
50497 (framebuffer): Likewise.
50498 (bytes_per_scan_line): Likewise.
50499 (grub_video_vbe_adapter): Added new static variable.
50500 (framebuffer): Likewise.
50501 (render_target): Likewise.
50502 (initial_mode): Likewise.
50503 (mode_in_use): Likewise.
50504 (mode_list): Likewise.
50505
50506 2006-03-10 Marco Gerards <marco@gnu.org>
50507
50508 * configure.ac (AC_INIT): Bumped to 1.93.
50509
50510 * DISTLIST: Added `include/grub/hfs.h'.
50511
50512 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50513
50514 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50515 18H, which might help the BIOS falling back to next boot media.
50516
50517 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50518
50519 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50520 Poe Chen <poe.poechen@gmail.com>.
50521
50522 2006-01-17 Marco Gerards <marco@gnu.org>
50523
50524 * include/grub/normal.h: Include <grub/script.h>.
50525 (grub_command_list): Removed struct.
50526 (grub_command_list_t): Removed type.
50527 (grub_menu_entry): Remove members `num' and `command_list'. Add
50528 members `commands' and `sourcecode'.
50529 * include/grub/script.h: Add inclusion guards.
50530 (grub_script_cmd_menuentry): New struct.
50531 (grub_script_execute_menuentry): New prototype.
50532 (grub_script_lexer_record_start): Likewise.
50533 (grub_script_lexer_record_stop): Likewise.
50534 * normal/execute.c (grub_script_execute_menuentry): New function.
50535 * normal/lexer.c (record, recording, recordpos, recordlen): New
50536 variables.
50537 (grub_script_lexer_record_start): New function.
50538 (grub_script_lexer_record_stop): Likewise.
50539 (recordchar): Likewise.
50540 (nextchar): Likewise.
50541 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50542 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50543 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50544 (current_menu): New variable.
50545 (free_menu): Mainly rewritten.
50546 (grub_normal_menu_addentry): New function.
50547 (read_config_file): Rewritten.
50548 * normal/menu.c (run_menu_entry): Mainly rewritten.
50549 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50550 the menu entry.
50551 (run): Mainly rewritten.
50552 * normal/parser.y (menu_entry): New variable.
50553 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50554 (menuentry): New rule.
50555 (command): Add `menuentry'.
50556 (if_statement): Allow additional returns before `fi'.
50557 * normal/script.c (grub_script_create_cmdmenu): New function.
50558
50559 2006-01-03 Marco Gerards <marco@gnu.org>
50560
50561 * INSTALL: GNU Bison is required.
50562 * configure.ac: Rewritten the test to detect Bison.
50563 * Makefile.in (YACC): New variable. Reported by Xun Sun
50564 <xun.sun.cn@gmail.com>.
50565
50566 2006-01-03 Marco Gerards <marco@gnu.org>
50567
50568 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50569 the HFS+ filesystem to filesystem blocks.
50570 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50571 GCC warning is silenced.
50572
50573 2006-01-03 Marco Gerards <marco@gnu.org>
50574
50575 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50576 read from disk from big endian to host byte order.
50577
50578 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50579
50580 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50581 documentation.
50582 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50583 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50584 embedded HFS+ filesystem.
50585 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50586 (grub_hfs_sblock): Move from here...
50587 * include/grub/hfs.h: To here... New file.
50588 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50589 documentation.
50590 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50591 New macros.
50592 (grub_hfsplus_volheader): Change type of member `magic' to
50593 `grub_uint16_t'.
50594 (grub_hfsplus_data): Add new member `embedded_offset'.
50595 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50596 returned block.
50597 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50598 Calculate the offset.
50599
50600 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50601
50602 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50603 Removed.
50604 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50605
50606 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50607
50608 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50609 ENV->NAME is NULL after allocating ENV->VALUE.
50610
50611 2005-12-25 Marco Gerards <marco@gnu.org>
50612
50613 * kern/env.c (grub_env_set): Rewritten the error handling code.
50614
50615 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50616
50617 * geninit.sh: Made more robust, and more portable.
50618
50619 2005-12-25 Marco Gerards <marco@gnu.org>
50620
50621 Add support for Apple HFS+ filesystems.
50622
50623 * fs/hfsplus.c: New file.
50624
50625 * DISTLIST: Added `fs/hfsplus.c'.
50626
50627 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50628 (hfsplus_mod_SOURCES): New variable.
50629 (hfsplus_mod_CFLAGS): Likewise.
50630 (hfsplus_mod_LDFLAGS): Likewise.
50631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50632 (grub_setup_SOURCES): Likewise.
50633 (grub_mkdevicemap_SOURCES): Likewise.
50634 (grub_emu_SOURCES): Likewise.
50635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50636
50637 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50638
50639 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50640
50641 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50642
50643 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50644 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50645 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50646 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50647 normal/lexer.c, normal/parser.y, normal/script.c, and
50648 partmap/gpt.c.
50649 Removed kern/sparc64/cache.c.
50650
50651 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50652 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50653 grub_emu_init.c.
50654
50655 * configure.ac (AC_INIT): Bumped to 1.92.
50656
50657 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50658
50659 * kern/err.c (grub_error_push): Added new function to support error
50660 stacks.
50661 (grub_error_pop): Likewise.
50662 (grub_error_stack_items): New local variable to support error stacks.
50663 (grub_error_stack_pos): Likewise.
50664 (grub_error_stack_assert): Likewise.
50665 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50666 stack depth.
50667 (grub_print_error): Added support to print errors from error stack.
50668
50669 * include/grub/err.h (grub_error_push): Added function prototype.
50670 (grub_error_pop): Likewise.
50671
50672 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50673
50674 * configure.ac: Accept `powerpc64' as host_cpu.
50675 (amd64): Rename to `biarch32'.
50676
50677 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50678 non-cacheline-aligned addresses.
50679
50680 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50681 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50682 if `size' is non-zero.
50683
50684 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50685
50686 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50687 and `cd' to make sure the filename is not prefixed with a
50688 directory name.
50689 (pkgdata_MODULES): Add `gpt.mod'.
50690 (gpt_mod_SOURCES): New variable.
50691 (gpt_mod_CFLAGS): Likewise.
50692 (gpt_mod_LDFLAGS): Likewise.
50693
50694 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50695
50696 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50697 New macro.
50698
50699 * partmap/gpt.c: New file.
50700
50701 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50702 GPT partition map is detected.
50703
50704 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50705
50706 * commands/i386/pc/play.c: New file.
50707 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50708 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50709 macros.
50710
50711 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50712
50713 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50714 ((unused))' to silence gcc warning.
50715
50716 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50717
50718 * configure.ac: Correct `AC_PROG_YACC' test.
50719
50720 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50721
50722 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50723 check before installing files.
50724
50725 2005-11-22 Mike Small <smallm@panix.com>
50726
50727 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50728 number regex so multidigit numbers are recognized correctly.
50729
50730 2005-11-22 Mike Small <smallm@panix.com>
50731
50732 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50733 debugging message before attempting to claim memory.
50734 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50735 multiple addresses in case of failure.
50736
50737 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50738
50739 * term/tparm.c (get_space): Remove empty `if' statement.
50740
50741 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50742
50743 * kern/parser.c (check_varstate): Rename `state' to 's'.
50744
50745 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50746
50747 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50748 variable definitions to the beginning of each function. Sort stack
50749 variables by size.
50750 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50751 `buf' argument to `char *'.
50752
50753 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50754
50755 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50756 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50757 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50758 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50759 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50760 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50761 configfile.mod, search.mod, gzio.mod and test.mod.
50762 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50763 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50764 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50765 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50766 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50767 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50768 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50769 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50770 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50771 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50772 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50773 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50774 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50775 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50776 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50777 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50778 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50779 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50780 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50781 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50782 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50783 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50784 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50785
50786 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50787 `grep --include'.
50788 (pkgdata_MODULES): Add test.mod.
50789
50790 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50791
50792 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
50793 appending to variables with "+=".
50794 (PModule): Use full pathname to generate *.lst filenames.
50795
50796 * Makefile.in: Fixed list rules moved from genmk.rb.
50797 (.DELETE_ON_ERROR): New special target.
50798 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
50799
50800 * conf/i386-pc.rmk: Include conf/common.mk.
50801 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50802 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50803 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50804 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50805 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50806 configfile.mod, search.mod, gzio.mod and test.mod.
50807 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50808 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50809 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50810 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50811 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50812 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50813 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50814 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50815 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50816 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50817 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50818 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50819 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50820 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50821 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50822 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50823 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50824 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50825 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50826 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50827 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50828 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50829 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50830 here...
50831 * conf/common.rmk: ... to here. New file.
50832
50833 * conf/common.mk: New file.
50834
50835 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50836
50837 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50838 (grub_script.tab.c): ... here.
50839
50840 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50841 (grub_script.tab.c): ... here.
50842
50843 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50844 (grub_script.tab.c): ... here.
50845
50846 * normal/command.c (grub_command_find): Fixed a memory leak of
50847 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50848
50849 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50850
50851 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50852 "@" which marks the start of a comment on ARM.
50853 (VARIABLE): Likewise.
50854
50855 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50856
50857 Add support for Linux/ADFS partition tables.
50858
50859 * partmap/acorn.c: New file.
50860
50861 * include/grub/acorn_filecore.h: Likewise.
50862
50863 * DISTLIST: Added `partmap/acorn.c' and
50864 `include/grub/acorn_filecore.h'.
50865
50866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50867 `partmap/acorn.c'.
50868 (pkgdata_MODULES): Add `acorn.mod'.
50869 (acorn_mod_SOURCES): New variable.
50870 (acorn_mod_CFLAGS): Likewise.
50871
50872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50873 `partmap/acorn.c'.
50874 (pkgdata_MODULES): Add `acorn.mod'.
50875 (acorn_mod_SOURCES): New variable.
50876 (acorn_mod_CFLAGS): Likewise.
50877
50878 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50879 (pkgdata_MODULES): Add `acorn.mod'.
50880 (acorn_mod_SOURCES): New variable.
50881 (acorn_mod_CFLAGS): Likewise.
50882 (acorn_mod_LDFLAGS): Likewise.
50883
50884 * include/types.h (grub_disk_addr_t): New typedef.
50885
50886 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
50887
50888 * geninit.sh: New file.
50889
50890 * geninitheader.sh: Likewise.
50891
50892 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50893 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50894 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50895 * commands/configfile.c (grub_configfile_init)
50896 (grub_configfile_fini): Likewise.
50897 * commands/default.c (grub_default_init, grub_default_fini):
50898 Likewise.
50899 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50900 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50901 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50902 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50903 Likewise.
50904 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50905 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50906 Likewise.
50907 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
50908 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
50909 Likewise.
50910 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50911 Likewise.
50912 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
50913 Likewise.
50914 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50915 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50916 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50917 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50918 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50919 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50920 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50921 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50922 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50923 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50924 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50925 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50926 * partmap/amiga.c (grub_amiga_partition_map_init)
50927 (grub_amiga_partition_map_fini): Likewise.
50928 * partmap/apple.c (grub_apple_partition_map_init)
50929 (grub_apple_partition_map_fini): Likewise.
50930 * partmap/pc.c (grub_pc_partition_map_init)
50931 (grub_pc_partition_map_fini): Likewise.
50932 * partmap/sun.c (grub_sun_partition_map_init,
50933 grub_sun_partition_map_fini): Likewise.
50934 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50935 Likewise.
50936
50937 * util/grub-emu.c: Include <grub_modules_init.h>.
50938 (main): Don't initialize and de-initialize any modules directly,
50939 use `grub_init_all' and `grub_fini_all' instead.
50940
50941 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50942 `grub_vesafb_mod_init'.
50943 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50944 all users.
50945 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50946 `grub_vga_mod_init'. Updated all users.
50947 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
50948
50949 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50950 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50951 rules.
50952
50953 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50954 Generate a function to initialize the module in utilities.
50955 Updated all callers.
50956 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50957 initialize the module in utilities. Updated all callers.
50958
50959 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50960
50961 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50962 escape sequence and a literal ^L to clear the screen.
50963
50964 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50965 when returning from Open Firmware.
50966
50967 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50968
50969 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50970 (grub_ofconsole_height): Likewise.
50971 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50972 manually insert a '\n'.
50973 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50974 `grub_ofconsole_height'. Return early if these are already set.
50975
50976 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50977
50978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50979 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50980 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50981 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50982 and `normal/script.c'.
50983 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50984 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50985 (test_mod_SOURCES): New variable.
50986 (test_mod_CFLAGS): Likewise.
50987 (test_mod_LDFLAGS): Likewise.
50988 (pkgdata_MODULES): Add `test.mod'.
50989 (grub_script.tab.c): New rule.
50990 (grub_script.tab.h): Likewise.
50991
50992 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
50993
50994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50995 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50996 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50997 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50998 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50999 (test_mod_SOURCES): New variable.
51000 (test_mod_CFLAGS): Likewise.
51001 (pkgdata_MODULES): Add `test.mod'.
51002 (grub_script.tab.c): New rule.
51003 (grub_script.tab.h): Likewise.
51004
51005 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51006
51007 Add initial scripting support.
51008
51009 * commands/test.c: New file.
51010 * include/grub/script.h: Likewise.
51011 * normal/execute.c: Likewise.
51012 * normal/function.c: Likewise.
51013 * normal/lexer.c: Likewise.
51014 * normal/parser.y: Likewise.
51015 * normal/script.c: Likewise.
51016
51017 * configure.ac: Add `AC_PROG_YACC' test.
51018
51019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51020 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51021 `normal/function.c' and `normal/script.c'.
51022 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51023 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51024 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51025 variables.
51026 (pkgdata_MODULES): Add `test.mod'.
51027 (grub_script.tab.c): New rule.
51028 (grub_script.tab.h): Likewise.
51029
51030 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51031
51032 * include/grub/normal.h (grub_test_init): New prototype.
51033 (grub_test_fini): Likewise.
51034
51035 * normal/command.c: Include <grub/script.h>.
51036 (grub_command_execute): Rewritten.
51037
51038 * util/grub-emu.c (main): Call `grub_test_init' and
51039 `grub_test_fini'.
51040
51041 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51042
51043 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51044 to 0.
51045 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51046 there are no pending characters.
51047
51048 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51049
51050 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51051 `grub_strndup' to drop device arguments. Replace unnecessary
51052 `grub_strndup' with `grub_strdup'.
51053
51054 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51055
51056 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51057 `debug' environment variable has been set.
51058
51059 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51060
51061 * Makefile.in (install-local): Use $(DATA).
51062 (uninstall): Likewise.
51063 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51064 (sbin_UTILITIES): ... to here.
51065 (sbin_SCRIPTS): New variable.
51066 (grub_install_SOURCES): New variable.
51067 * util/powerpc/ieee1275/grub-install.in: New file.
51068 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51069 variable.
51070 (add_segments): Call `grub_util_get_path'.
51071
51072 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51073
51074 From Timothy Baldwin:
51075 * commands/ls.c (grub_ls_list_files): Close FILE with
51076 grub_file_close.
51077 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51078
51079 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51080
51081 * include/grub/parser.h: New file.
51082
51083 * kern/parser.c: Likewise.
51084
51085 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51086 (grub_setup_SOURCES): Likewise.
51087 (grub_probefs_SOURCES): Likewise.
51088 (grub_emu_SOURCES): Likewise.
51089 (kernel_img_HEADERS): Add `parser.h'.
51090
51091 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51092 (grub_emu_SOURCES): Add `kern/parser.c'.
51093 (grubof_SOURCES): Likewise.
51094
51095 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51096 (grubof_SOURCES): Add `kern/parser.c'.
51097
51098 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51099
51100 * kern/misc.c (grub_split_cmdline): Removed function.
51101
51102 * kern/rescue.c: Include <grub/parser.h>.
51103 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51104 of `grub_split_cmdline'.
51105
51106 * normal/command.c: Include <grub/parser.h>.
51107 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51108 of `grub_split_cmdline'.
51109
51110 * normal/completion.c: Include <grub/parser.h>.
51111 (cmdline_state): New variable.
51112 (iterate_dir): End the filename with a quote depending on the
51113 command line state.
51114 (get_state): new function.
51115 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51116 split the arguments and determine the current argument. When the
51117 argument string is not quoted, escape all spaces.
51118
51119 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51120
51121 * normal/sparc64/setjmp.S: New file.
51122
51123 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51124
51125 * include/grub/sparc64/libgcc.h: New file.
51126 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51127 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51128 normal/sparc64/setjmp.c.
51129
51130 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51131
51132 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51133 * kern/sparc64/cache.S: New file.
51134 * kern/sparc64/cache.c: Removed.
51135 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51136 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51137 -mtune=ultrasparc.
51138 (COMMON_LDFLAGS): Add -melf64_sparc.
51139 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51140 (grubof_SOURCES): Use cache.S instead of cache.c.
51141 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51142 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51143 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51144 commented though.
51145 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51146 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51147 (linux_mod_CFLAGS): Commented out.
51148 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51149 out because module isn't built.
51150 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51151 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51152 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51153 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51154 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51155 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51156 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51157 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51158 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51159 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51160 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51161 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51162 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51163 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51164
51165 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51166
51167 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51168 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51169 longer, because HFS should not be used on PC.
51170
51171 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51172
51173 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51174 consistently within the loop.
51175
51176 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51177
51178 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51179 directory can not be read.
51180
51181 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51182
51183 * configure.ac (AC_INIT): Increase the version number to 1.91.
51184
51185 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51186 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51187 term/i386/pc/serial.c.
51188
51189 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51190
51191 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51192 file size must be permitted.
51193
51194 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51195 between %ah and %al.
51196
51197 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51198
51199 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51200 grub_uint64_t.
51201 Call the hook with a NUL-terminated filename.
51202 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51203 grub_cpu_to_be32.
51204
51205 * kern/term.c (cursor_state): New variable.
51206 (grub_term_set_current): Reset the cursor state on a new
51207 terminal.
51208 (grub_setcursor): Rewritten to use CURSOR_STATE.
51209 (grub_getcursor): New function.
51210
51211 * include/grub/term.h (grub_getcursor): New prototype.
51212
51213 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51214 integers on ARM. Reported by Timothy Baldwin
51215 <T.E.Baldwin99@members.leeds.ac.uk>.
51216
51217 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51218
51219 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51220 allocated.
51221 (grub_sfs_dir): Likewise.
51222
51223 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51224
51225 Add support for the SFS filesystem.
51226
51227 * fs/sfs.c: New file.
51228
51229 * DISTLIST: Added `fs/sfs.c'.
51230
51231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51232 (grub_probefs_SOURCES): Likewise.
51233 (grub_emu_SOURCES): Likewise.
51234 (pkgdata_MODULES): Add `sfs.mod'.
51235 (sfs_mod_SOURCES): New variable.
51236 (sfs_mod_CFLAGS): Likewise.
51237 (sfs_mod_LDFLAGS): Likewise.
51238
51239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51240 (pkgdata_MODULES): Add `sfs.mod'.
51241 (sfs_mod_SOURCES): New variable.
51242 (sfs_mod_CFLAGS): Likewise.
51243
51244 * util/grub-emu.c (main): Call `grub_sfs_init' and
51245 `grub_sfs_fini'.
51246
51247 * include/grub/fs.h (grub_sfs_init): New prototype.
51248 (grub_sfs_fini): Likewise.
51249
51250 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51251
51252 Add support for the AFFS filesystem.
51253
51254 * fs/affs.c: New file.
51255
51256 * DISTLIST: Added `fs/affs.c'.
51257
51258 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51259 (grub_probefs_SOURCES): Likewise.
51260 (grub_emu_SOURCES): Likewise.
51261 (pkgdata_MODULES): Add `affs.mod'.
51262 (affs_mod_SOURCES): New variable.
51263 (affs_mod_CFLAGS): Likewise.
51264 (affs_mod_LDFLAGS): Likewise.
51265
51266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51267 (pkgdata_MODULES): Add `affs.mod'.
51268 (affs_mod_SOURCES): New variable.
51269 (affs_mod_CFLAGS): Likewise.
51270
51271 * util/grub-emu.c (main): Call `grub_affs_init' and
51272 `grub_affs_fini'.
51273
51274 * include/grub/fs.h (grub_affs_init): New prototype.
51275 (grub_affs_fini): Likewise.
51276
51277 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51278
51279 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51280
51281 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51282
51283 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51284 `-m32' to CFLAGS.
51285
51286 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51287 linking.
51288
51289 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51290 (COMMON_LDFLAGS): New variable.
51291 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51292 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51293 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51294 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51295 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51296 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51297 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51298 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51299 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51300 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51301 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51302 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51303 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51304 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51305 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51306 variables.
51307 (normal_mod_ASFLAGS): Add `-m32'.
51308
51309 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51310 (grub_host_size_t, grub_host_ssize_t): New types.
51311 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51312 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51313 `GRUB_HOST_SIZEOF_VOID_P'.
51314
51315 * include/grub/kernel.h (struct grub_module_header): Type of
51316 member offset changed to `grub_host_off_t'. Type of member size
51317 changed to `grub_host_size_t'.
51318 (struct grub_module_info): Type of member offset changed to
51319 `grub_host_off_t'. Type of member size changed to
51320 `grub_host_size_t'.
51321
51322 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51323
51324 Make GRUB's kernel compliant to Multiboot Specification.
51325
51326 * kern/i386/pc/startup.S (multiboot_header): New label.
51327 (multiboot_entry): Likewise.
51328 (multiboot_trampoline): Likewise.
51329
51330 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51331 Increased to 0x4A0.
51332
51333 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51334 put parentheses after a question mark.
51335 [!GRUB_UTIL] (my_mod): New variable.
51336
51337 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51338
51339 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51340
51341 Adds support for the XFS filesystem. Btrees are not supported
51342 yet.
51343
51344 * fs/xfs.c: New file.
51345
51346 * DISTLIST: Added `fs/xfs.c'.
51347
51348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51349 (grub_probefs_SOURCES): Likewise.
51350 (grub_emu_SOURCES): Likewise.
51351 (pkgdata_MODULES): Add `xfs.mod'.
51352 (xfs_mod_SOURCES): New variable.
51353 (xfs_mod_CFLAGS): Likewise.
51354
51355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51356 (pkgdata_MODULES): Add `xfs.mod'.
51357 (xfs_mod_SOURCES): New variable.
51358 (xfs_mod_CFLAGS): Likewise.
51359
51360 * util/grub-emu.c (main): Call `grub_xfs_init' and
51361 `grub_xfs_fini'.
51362
51363 * include/grub/fs.h (grub_xfs_init): New prototype.
51364 (grub_xfs_fini): Likewise.
51365
51366
51367 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51368
51369 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51370 color modes, allow greater than 16 colors to be configured as
51371 a default palette.
51372
51373 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51374
51375 * normal/completion.c (complete_arguments): Add the qualifier
51376 const into OPTIONS.
51377
51378 From Omniflux <omniflux+lists@omniflux.com>:
51379 * include/grub/terminfo.h: New file.
51380 * include/grub/tparm.h: Likewise.
51381 * include/grub/i386/pc/serial.h: Likewise.
51382 * term/terminfo.c: Likewise.
51383 * term/tparm.c: Likewise.
51384 * term/i386/pc/serial.c: Likewise.
51385 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51386 serial.mod.
51387 (terminfo_mod_SOURCES): New variable.
51388 (terminfo_mod_CFLAGS): Likewise.
51389 (serial_mod_SOURCES): Likewise.
51390 (serial_mod_CFLAGS): Likewise.
51391
51392 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51393
51394 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51395 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51396 and kern/powerpc/ieee1275/cmain.c, respectively.
51397
51398 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51399 * kern/powerpc/ieee1275/crt0.S: ... here.
51400
51401 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51402 * kern/powerpc/ieee1275/cmain.c: ... here.
51403
51404 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51405 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51406 instead of boot/powerpc/ieee1275/crt0.S and
51407 boot/powerpc/ieee1275/cmain.c, respectively.
51408
51409 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51410 sectors. It was not used anyway.
51411
51412 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51413
51414 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51415 `unused parameter' warning.
51416
51417 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51418
51419 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51420 function.
51421 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51422 getcharwidth.
51423
51424 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51425
51426 * include/grub/normal.h (enum grub_completion_type): Added
51427 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51428
51429 * normal/cmdline.c (print_completion): Handle
51430 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51431 * normal/menu_entry.c (store_completion): Likewise.
51432
51433 * normal/completion.c (complete_arguments): New function.
51434 (grub_normal_do_completion): Call `complete_arguments' when the
51435 current words start with a dash.
51436
51437 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51438
51439 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51440 `gzio.mod' instead of `io.mod').
51441
51442 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51443
51444 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51445 (DISTDIRS): Added io and video.
51446 Rewrite the search routine to make an output consistently.
51447
51448 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51449 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51450 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51451 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51452 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51453 util/powerpc/ieee1275/misc.c.
51454
51455 * include/grub/gzio.h: New file.
51456 * io/gzio.c: Likewise.
51457
51458 * kern/file.c (grub_file_close): Call grub_device_close only if
51459 FILE->DEVICE is not NULL.
51460
51461 * include/grub/mm.h [!NULL] (NULL): New macro.
51462
51463 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51464
51465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51466 (pkgdata_MODULES): Added gzio.mod.
51467 (gzio_mod_SOURCES): New variable.
51468 (gzio_mod_CFLAGS): Likewise.
51469
51470 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51471 (pkgdata_MODULES): Added gzio.mod.
51472 (gzio_mod_SOURCES): New variable.
51473 (gzio_mod_CFLAGS): Likewise.
51474
51475 * commands/cat.c: Include grub/gzio.h.
51476 (grub_cmd_cat): Use grub_gzfile_open instead of
51477 grub_file_open.
51478
51479 * commands/cmp.c: Include grub/gzio.h.
51480 (grub_cmd_cmp): Use grub_gzfile_open instead of
51481 grub_file_open.
51482
51483 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51484 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51485 grub_file_open.
51486 (grub_rescue_cmd_module): Likewise.
51487
51488 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51489
51490 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51491 kern/sparc64/ieee1275/init.c because it contains _start.
51492 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51493
51494 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51495
51496 * configure.ac: Add support for sparc64 host with ieee1275
51497 firmware.
51498 * configure: Generated from configure.ac.
51499 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51500 instead of int.
51501 (grub_ofdisk_read): Likewise.
51502 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51503 pointers as (void *) to remove a warning.
51504 (grub_ofdisk_close): Likewise.
51505 (grub_ofdisk_read): Likewise.
51506 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51507 returns, so make it return void to remove a warning.
51508 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51509 Corresponding prototype change.
51510 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51511 values, and cast the pointers as (void *) to remove a warning.
51512 (grub_mm_dump): Likewise.
51513 * conf/sparc64-ieee1275.mk: New file.
51514 * conf/sparc64-ieee1275.rmk: Likewise.
51515 * include/grub/sparc64/setjmp.h: Likewise.
51516 * include/grub/sparc64/types.h: Likewise.
51517 * include/grub/sparc64/ieee1275/console.h: Likewise.
51518 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51519 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51520 * include/grub/sparc64/ieee1275/time.h: Likewise.
51521 * kern/sparc64/cache.c: Likewise.
51522 * kern/sparc64/dl.c: Likewise.
51523 * kern/sparc64/ieee1275/init.c: Likewise.
51524 * kern/sparc64/ieee1275/openfw.c: Likewise.
51525
51526 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51527
51528 * util/console.c (grub_ncurses_putchar): If C is greater than
51529 0x7f, set C to a question mark.
51530 (grub_ncurses_getcharwidth): New function.
51531 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51532 getcharwidth.
51533
51534 * normal/menu.c (print_entry): Made aware of Unicode. First,
51535 convert TITLE to UCS-4, and predict the cursor position by
51536 grub_getcharwidth.
51537
51538 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51539 const to SRC.
51540 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51541
51542 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51543
51544 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51545 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51546 grub_strcat.
51547
51548 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51549 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51550 grub_strcpy and grub_strlen. Take it into account that a space
51551 character is inserted as a delimiter.
51552
51553 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51554
51555 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51556 invalid magic in the error.
51557
51558 * commands/search.c: New file.
51559
51560 * util/grub-emu.c (main): Call grub_search_init and
51561 grub_search_fini.
51562
51563 * kern/rescue.c (grub_rescue_print_disks): Removed.
51564 (grub_rescue_print_devices): New function.
51565 (grub_rescue_cmd_ls): Use grub_device_iterate with
51566 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51567 grub_rescue_print_disks.
51568
51569 * kern/partition.c (grub_partition_iterate): Return the result of
51570 PARTMAP->ITERATE instead of GRUB_ERRNO.
51571
51572 * kern/device.c: Include grub/partition.h.
51573 (grub_device_iterate): New function.
51574
51575 * include/grub/partition.h (grub_partition_iterate): Return int
51576 instead of grub_err_t.
51577
51578 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51579 prototype.
51580 [GRUB_UTIL] (grub_search_fini): Likewise.
51581
51582 * include/grub/device.h (grub_device_iterate): New prototype.
51583
51584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51585 commands/search.c.
51586 (pkgdata_MODULES): Added search.mod.
51587 (search_mod_SOURCES): New variable.
51588 (search_mod_CFLAGS): Likewise.
51589
51590 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51591 (pkgdata_MODULES): Added search.mod.
51592 (search_mod_SOURCES): New variable.
51593 (search_mod_CFLAGS): Likewise.
51594
51595 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51596 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51597 All callers changed.
51598
51599 * DISTLIST: Added commands/search.c.
51600
51601 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51602
51603 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51604 conversion.
51605 (grub_getcharwidth): New function.
51606
51607 * kern/misc.c (grub_utf8_to_ucs4): New function.
51608
51609 * include/grub/term.h (struct grub_term): Added a new member
51610 "getcharwidth".
51611 (grub_getcharwidth): New prototype.
51612
51613 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51614
51615 * term/i386/pc/console.c (map_char): New function. Segregated from
51616 grub_console_putchar.
51617 (grub_console_putchar): Use map_char.
51618 (grub_console_getcharwidth): New function.
51619 (grub_console_term): Specified grub_console_getcharwidth as
51620 getcharwidth.
51621
51622 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51623 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51624
51625 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51626 GRUB_ERRNO.
51627 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51628 on grub_strtoul completely.
51629 (write_char): Declare local variables in the beginning of the
51630 function.
51631 (grub_vesafb_getcharwidth): New function.
51632 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51633 getcharwidth.
51634
51635 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51636
51637 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51638 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51639 commands/i386/pc/vbetest.c.
51640
51641 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51642 call grub_vbe_get_controller_info again, because the returned
51643 information is volatile.
51644 (grub_vbe_set_video_mode): Mostly rewritten.
51645 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51646 grub_vbe_status_t correctly.
51647 (grub_vbe_get_video_mode_info): Likewise.
51648 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51649 several if statements.
51650
51651 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51652 * commands/i386/pc/vbeinfo.c: ... this.
51653
51654 * commands/i386/pc/vbe_test.c: Renamed to ...
51655 * commands/i386/pc/vbetest.c: ... this.
51656
51657 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51658 ...
51659 (grub_cmd_vbeinfo): ... this. Save video modes before
51660 iterating. Skip a video mode, if it is not available, not enough
51661 information is given or it is monochrome. Show the memory
51662 model. Leave the interpretation of MODEVAR to grub_strtoul
51663 completely.
51664 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51665 (GRUB_MOD_FINI): Likewise.
51666
51667 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51668 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51669 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51670 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51671 grub_strtoul completely.
51672 (real2pm): Removed.
51673 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51674 (GRUB_MOD_FINI): Likewise.
51675
51676 * normal/misc.c: Include grub/mm.h.
51677
51678 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51679 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51680 (vbe_list_modes_mod_SOURCES): Removed.
51681 (vbe_list_modes_mod_CFLAGS): Likewise.
51682 (vbe_test_mod_SOURCES): Likewise.
51683 (vbe_test_mod_CFLAGS): Likewise.
51684 (vbeinfo_mod_SOURCES): New variable.
51685 (vbeinfo_mod_CFLAGS): Likewise.
51686 (vbetest_mod_SOURCES): Likewise.
51687 (vbetest_mod_CFLAGS): Likewise.
51688
51689 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51690
51691 * normal/misc.c: New file.
51692
51693 * DISTLIST: Added normal/misc.c.
51694
51695 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51696 DISK to HOOK. Call HOOK with DISK.
51697 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51698 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51699 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51700
51701 * normal/menu_entry.c (struct screen): Added a new member
51702 "completion_shown".
51703 (completion_buffer): New global variable.
51704 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51705 (store_completion): New function.
51706 (complete): Likewise.
51707 (clear_completions): Likewise.
51708 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51709 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51710 a tab, call complete.
51711
51712 * normal/completion.c (disk_dev): Removed.
51713 (print_simple_completion): Likewise.
51714 (print_partition_completion): Likewise.
51715 (print_func): New global variable.
51716 (add_completion): Do not take the arguments WHAT or PRINT any
51717 longer. Added a new argument TYPE. Instead of printing directly,
51718 call PRINT_FUNC if not NULL.
51719 All callers changed.
51720 (complete_device): Use a local variable DEV instead of
51721 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51722 (grub_normal_do_completion): Take a new argument HOOK. Do not
51723 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51724 empty string, return NULL instead.
51725 All callers changed.
51726
51727 * normal/cmdline.c (print_completion): New function.
51728
51729 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51730 to HOOK.
51731 All callers changed.
51732
51733 * kern/disk.c (grub_print_partinfo): Removed.
51734
51735 * include/grub/partition.h (struct grub_partition_map): Add a new
51736 argument DISK into HOOK of ITERATE.
51737 (grub_partition_iterate): Add a new argument DISK to HOOK.
51738
51739 * include/grub/normal.h (enum grub_completion_type): New enum.
51740 (grub_completion_type_t): New type.
51741 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51742 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51743 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51744 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51745 (grub_normal_do_completion): Added a new argument HOOK.
51746 (grub_normal_print_device_info): New prototype.
51747
51748 * include/grub/disk.h (grub_print_partinfo): Removed.
51749
51750 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51751 (normal_mod_SOURCES): Likewise.
51752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51753 (normal_mod_SOURCES): Likewise.
51754
51755 * commands/ls.c (grub_ls_list_disks): Use
51756 grub_normal_print_device_info instead of grub_print_partinfo. Free
51757 PNAME.
51758 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51759 duplicating the code.
51760
51761 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51762
51763 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51764 follow GCS more precisely.
51765 * commands/i386/pc/vbe_test.c: Likewise.
51766 * include/grub/i386/pc/vbe.h: Likewise.
51767 * term/i386/pc/vesafb.c: Likewise.
51768 * video/i386/pc/vbe.c: Likewise.
51769
51770 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51771
51772 * DISTLIST: Added term/i386/pc/vesafb.c
51773 DISTLIST: Added video/i386/pc/vbe.c
51774 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51775 DISTLIST: Added commands/i386/pc/vbe_test.c.
51776 * commands/i386/pc/vbe_list_modes.c: New file.
51777 * commands/i386/pc/vbe_test.c: Likewise.
51778 * term/i386/pc/vesafb.c: Likewise.
51779 * video/i386/pc/vbe.c: Likewise.
51780 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51781 (grub_vbe_probe) Added prototype.
51782 (grub_vbe_set_video_mode) Likewise.
51783 (grub_vbe_get_video_mode) Likewise.
51784 (grub_vbe_get_video_mode_info) Likewise.
51785 (grub_vbe_set_pixel_rgb) Likewise.
51786 (grub_vbe_set_pixel_index) Likewise.
51787 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51788 (pkgdata_MODULES): Added vesafb.mod.
51789 (pkgdata_MODULES): Added vbe_list_modes.mod.
51790 (pkgdata_MODULES): Added vbe_test.mod.
51791 (vbe_mod_SOURCES): Added.
51792 (vbe_mod_CFLAGS): Likewise.
51793 (vesafb_mod_SOURCES): Likewise.
51794 (vesafb_mod_CFLAGS): Likewise.
51795 (vbe_list_modes_mod_SOURCES): Likewise.
51796 (vbe_list_modes_mod_CFLAGS): Likewise.
51797 (vbe_test_mod_SOURCES): Likewise.
51798 (vbe_test_mod_CFLAGS): Likewise.
51799
51800 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51801
51802 * normal/command.c (grub_command_execute): If INTERACTIVE is
51803 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51804 CMDLINE. Disable the pager if INTERACTIVE is true.
51805 All callers are changed.
51806
51807 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51808 before reading a config file.
51809 * normal/main.c (read_config_file): Even if a command is not
51810 found, register it if it is within an entry.
51811
51812 * util/grub-emu.c: Include sys/types.h and unistd.h.
51813 (options): Added --hold.
51814 (struct arguments): Added a new member "hold".
51815 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51816 missing.
51817 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51818 cleared by a debugger, if it is not zero.
51819
51820 * include/grub/normal.h (grub_command_execute): Add an argument
51821 INTERACTIVE.
51822
51823 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51824
51825 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51826
51827 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51828
51829 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51830 program with another one, because the old one didn't detect a bug
51831 in gcc-3.4. Always use regparm 2, because the new test is still
51832 not enough for gcc-4.0. Someone must investigate a simple test
51833 case which detects a bug in gcc-4.0.
51834
51835 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51836
51837 * DISTLIST: Added normal/completion.c.
51838
51839 * normal/completion.c: New file.
51840
51841 * term/i386/pc/console.c (grub_console_getwh): New function.
51842 (grub_console_term): Assign grub_console_getwh to getwh.
51843
51844 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51845 function is defined in normal/completion.c as
51846 grub_normal_do_completion.
51847 (grub_cmdline_get): Use grub_normal_do_completion instead of
51848 grub_tab_complete.
51849
51850 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51851 returns non-zero, otherwise return 0.
51852 (grub_partition_iterate): First, probe the partition map. Then,
51853 call ITERATE only for this partition map.
51854
51855 * kern/misc.c (grub_strncmp): Rewritten.
51856
51857 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51858 returns non-zero. Otherwise return 0.
51859
51860 * include/grub/partition.h (grub_partition_map_iterate): Return
51861 int instead of void.
51862
51863 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51864
51865 * include/grub/misc.h (grub_strncmp): Change the type of N to
51866 grub_size_t.
51867
51868 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51869 of void.
51870
51871 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
51872 unsigned explicitly before comparing it with I.
51873
51874 * kern/main.c (grub_env_write_root): Add the attribute unused into
51875 VAR.
51876
51877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51878 normal/completion.c.
51879 (normal_mod_SOURCES): Likewise.
51880 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51881 (normal_mod_SOURCES): Likewise.
51882
51883 * normal/command.c (grub_iterate_commands): If ITERATE returns
51884 non-zero, return one immediately.
51885
51886 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51887
51888 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51889 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51890 descriptions.
51891 (grub_vbe_get_controller_info): New function.
51892 (grub_vbe_get_mode_info): Likewise.
51893 (grub_vbe_set_mode): Likewise.
51894 (grub_vbe_get_mode): Likewise.
51895 (grub_vbe_set_memory_window): Likewise.
51896 (grub_vbe_get_memory_window): Likewise.
51897 (grub_vbe_set_scanline_length): Likewise.
51898 (grub_vbe_get_scanline_length): Likewise.
51899 (grub_vbe_set_display_start): Likewise.
51900 (grub_vbe_get_display_start): Likewise.
51901 (grub_vbe_set_palette_data): Likewise.
51902 * include/grub/i386/pc/vbe.h: New file.
51903
51904 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51905
51906 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51907 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51908 * DISTLIST: Likewise.
51909 * kern/ieee1275/of.c: Moved to ...
51910 * kern/ieee1275/ieee1275.c: ... here.
51911
51912 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51913
51914 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51915 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51916 Pass 0 as `end' parameter to grub_strtoul().
51917
51918 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51919
51920 * include/grub/powerpc/ieee1275/console.h: Do not include
51921 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51922 ifdef.
51923 (grub_console_cur_color): Remove i386-specific prototype.
51924 (grub_console_real_putchar): Likewise.
51925 (grub_console_checkkey): Likewise.
51926 (grub_console_getkey): Likewise.
51927 (grub_console_getxy): Likewise.
51928 (grub_console_gotoxy): Likewise.
51929 (grub_console_cls): Likewise.
51930 (grub_console_setcursor): Likewise.
51931 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51932 Include <grub/machine/console.h>.
51933 * term/ieee1275/ofconsole.c: Likewise.
51934
51935 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51936
51937 * Makefile.in (LIBLZO): New variable.
51938
51939 * configure.ac: Check for LZO version 2.
51940
51941 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51942 lzo/lzo1x.h instead of lzo1x.h.
51943
51944 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51945 of -llzo.
51946
51947 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51948 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51949
51950 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51951 copying the data from PARTITION to P.
51952
51953 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51954
51955 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51956 negative, unload the module.
51957
51958 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51959 map is "pc_partition_map" but not "pc".
51960 (usage): Fix the description. The options are --boot-image and
51961 --core-image but not --boot-file or --core-file.
51962 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51963 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51964 DEFAULT_DIRECTORY.
51965
51966 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51967 --core-file. Specify INSTALL_DEVICE as an argument.
51968
51969 * util/console.c: Include config.h.
51970 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51971 [HAVE_NCURSES_H]: Include ncurses.h.
51972 [HAVE_CURSES_H]: Include curses.h.
51973 [!A_NORMAL] (A_NORMAL): Defined as zero.
51974 [!A_STANDOUT] (A_STANDOUT): Likewise.
51975
51976 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51977 -lncurses.
51978 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51979
51980 * configure.ac: Check for curses libraries and headers.
51981
51982 * Makefile.in (LIBCURSES): New variable.
51983
51984 * genmk.rb (Script::rule): Set the executable bits.
51985
51986 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51987 name of the PC partition map is "pc_partition_map" but not "pc".
51988
51989 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51990
51991 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51992 (modules): Likewise.
51993 (usage): Added descriptions for --modules and --grub-probefs.
51994 Handle --modules and --grub-probefs. Save the arguments in MODULES
51995 and GRUB_PROBEFS, respectively.
51996 Auto-detect a filesystem module against GRUBDIR. If the result is
51997 empty and modules are not specified explicitly, abort the
51998 installation. Add the result to MODULES.
51999
52000 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52001 disk/powerpc/ieee1275/ofdisk.c,
52002 include/grub/powerpc/ieee1275/init.h and
52003 term/powerpc/ieee1275/ofconsole.c.
52004 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52005 term/ieee1275/ofconsole.c.
52006
52007 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52008
52009 * COPYING: Upgraded to the latest version. Only the address of the
52010 FSF office has changed.
52011
52012 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52013
52014 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52015 kern/ieee1275.c with kern/ieee1275/of.c.
52016
52017 * kern/ieee1275.c: Moved to ...
52018 * kern/ieee1275/of.c: ... here.
52019
52020 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52021
52022 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52023 readability.
52024
52025 * config.guess: Updated to the latest version from gnulib.
52026 * config.sub: Likewise.
52027 * install.sh: Likewise.
52028 * mkinstalldirs: Likewise.
52029
52030 * include/grub/console.h: Removed. This file is arch-specific. Do
52031 not put this in include/grub.
52032
52033 * include/grub/i386/pc/console.h: Resurrected.
52034
52035 * util/console.c: Include grub/machine/console.h instead of
52036 grub/console.h.
52037 * util/grub-emu.c: Likewise.
52038
52039 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52040
52041 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52042 hardcoded value.
52043
52044 From Vincent Pelletier <subdino2004@yahoo.fr>
52045 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52046 Redefined to use grub_getwh.
52047 (grub_term): New member named getwh.
52048 (grub_getwh): New prototype.
52049 * kern/term.c (grub_getwh): New function.
52050 * term/i386/pc/console.c (grub_console_getwh): New function.
52051 (grub_console_term): New member `getwh'.
52052 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52053 (grub_vga_term): New member `getwh'.
52054 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52055 grub_ssize_t.
52056 (grub_ofconsole_getw): New function.
52057 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52058 (grub_ofconsole_term): New field named getwh and new initial
52059 value.
52060
52061 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52062
52063 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52064 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52065 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52066 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52067 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52068 of <grub/machine/ieee1275.h>.
52069 * commands/ieee1275/reboot.c: Likewise.
52070 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52071 * kern/ieee1275.c: ... to here. All users updated. Change all
52072 parameter structs to use new type `grub_ieee1275_cell_t'.
52073 * term/powerpc/ieee1275/ofconsole.c: Move ...
52074 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52075 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52076 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52077 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52078 to return int.
52079 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52080 Remove unused prototypes. All users updated.
52081 * include/grub/powerpc/ieee1275/console.h: Removed.
52082 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52083 `grub_ieee1275_cell_t'.
52084 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52085 Cast comparisons with -1 to the correct type.
52086 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52087 type to match `grub_ieee1275_entry_fn'.
52088
52089 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52090
52091 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52092
52093 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52094 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52095 partmap/sun.c.
52096 (grub_probefs_SOURCES): New variable.
52097
52098 * util/i386/pc/grub-probefs.c: New file.
52099
52100 * util/i386/pc/grub-setup.c (main): Call
52101 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52102 grub_hfs_init and grub_jfs_init to initialize the system. Call
52103 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52104 grub_pc_partition_map_fini to finish the system.
52105
52106 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52107
52108 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52109 function.
52110 (grub_multiboot_load_elf32): Likewise.
52111 (grub_multiboot_is_elf64): Likewise.
52112 (grub_multiboot_load_elf64): Likewise.
52113 (grub_multiboot_load_elf): Likewise.
52114 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52115 an ELF32 or ELF64 file.
52116 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52117
52118 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52119 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52120 NULL before calling FS->LABEL.
52121 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52122 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52123 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52124 before calling FS->LABEL.
52125
52126 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52127
52128 * util/i386/pc/grub-install.in (datadir): New variable.
52129 (libdir): Removed.
52130 (pkgdatadir): New variable.
52131 (pkglibdir): Removed.
52132
52133 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52134
52135 * DISTLIST: Added util/i386/pc/grub-install.in.
52136
52137 * util/i386/pc/grub-install.in: New file.
52138
52139 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52140 (grub_install_SOURCES): Likewise.
52141
52142 * genmk.rb: Added support for scripts.
52143 (Script): New class.
52144 (scripts): New variable.
52145
52146 * Makefile.in (install-local): Install sbin_SCRIPTS by
52147 INSTALL_SCRIPT.
52148 (uninstall): Remove sbin_SCRIPTS.
52149
52150 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52151 device, try to get a GRUB device by
52152 grub_util_biosdisk_get_grub_dev.
52153 Free DEST_DEV.
52154
52155 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52156 description for --device-map.
52157
52158 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52159
52160 Change the semantics of variable hooks. They now return strings
52161 instead of error values.
52162
52163 * util/i386/pc/grub-setup.c: Include grub/env.h.
52164 (setup): Use grub_device_set_root instead of grub_env_set.
52165
52166 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52167 grub_env_get instead of grub_device_set_root and
52168 grub_device_get_root, respectively.
52169
52170 * kern/main.c (grub_env_write_root): New function.
52171 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52172 grub_env_set instead of grub_device_set_root.
52173
52174 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52175 many variables.
52176 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52177 rather than calling ENV->WRITE_HOOK afterwards.
52178 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52179 passing a pointer of a pointer.
52180 (grub_register_variable_hook): Change the types of "read_hook" and
52181 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52182 respectively.
52183 Allocate the default empty string on the heap, because this string
52184 may be freed later.
52185
52186 * kern/device.c: Include grub/env.h.
52187 (grub_device_set_root): Removed.
52188 (grub_device_get_root): Likewise.
52189 (grub_device_open): Use grub_env_get instead of
52190 grub_device_get_root.
52191
52192 * include/grub/env.h (grub_env_read_hook_t): New type.
52193 (grub_env_write_hook_t): Likewise.
52194 (grub_env_var): Change the types of "read_hook" and "write_hook"
52195 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52196 (grub_register_variable_hook): Likewise.
52197
52198 * include/grub/device.h (grub_device_set_root): Removed.
52199 (grub_device_set_root): Likewise.
52200
52201 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52202 make sure that DIRNAME terminates with '/', so that
52203 grub_fat_find_dir will fail if PATH is not a directory.
52204
52205 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52206 from DIRNAME.
52207 Use the qualifier auto for print_files and print_files_long.
52208 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52209 as a regular file.
52210 Put a newline only if there is no error.
52211 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52212 used.
52213
52214 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52215
52216 * kern/partition.c (grub_partition_probe): Initialize PART to
52217 NULL. Otherwise, when no partition map is registered, this returns
52218 a garbage.
52219
52220 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52221
52222 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52223 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52224 valid.
52225
52226 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52227
52228 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52229 information on each device, if it does not have partitions. Print
52230 "Device" instead of "Disk", because this function is not specific
52231 to disk devices.
52232
52233 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52234 static to ensure that it is put on the memory rather than a
52235 register.
52236
52237 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52238
52239 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52240 (grub_cat_init): Likewise.
52241 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52242 (options): Likewise.
52243 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52244 (grub_configfile_init): Likewise.
52245 * font/manager.c (GRUB_MOD_INIT): Likewise.
52246 * commands/help.c (GRUB_MOD_INIT): Likewise.
52247 (grub_help_init): Likewise.
52248 * normal/command.c (grub_command_init): Likewise.
52249 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52250 * disk/loopback.c (grub_loop_init): Likewise.
52251 (GRUB_MOD_INIT): Likewise.
52252 * commands/ls.c (grub_ls_init): Likewise.
52253 (GRUB_MOD_INIT): Likewise.
52254 (options): Likewise.
52255 * commands/boot.c (grub_boot_init): Likewise.
52256 (GRUB_MOD_INIT): Likewise.
52257 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52258 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52259 (GRUB_MOD_INIT): Likewise.
52260 * commands/cmp.c (grub_cmp_init): Likewise.
52261 (GRUB_MOD_INIT): Likewise.
52262
52263 * normal/arg.c: Use <> instead of "" to include header files.
52264 (SHORT_ARG_HELP): New macro.
52265 (SHORT_ARG_USAGE): Likewise.
52266 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52267 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52268 descriptions.
52269 (find_short): Check if C is 'h' or 'u' explicitly.
52270 (grub_arg_show_help): Use space characters instead of tabs. Treat
52271 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52272 are shown with --help and --usage only if they are not used for
52273 the command itself.
52274 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52275 'h' and 'u'.
52276
52277 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52278 const into "longarg". Change the type of "shortarg" to int.
52279
52280 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52281
52282 * boot/i386/pc/boot.S (boot_drive_check): New label.
52283
52284 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52285 macro.
52286
52287 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52288 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52289
52290 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52291
52292 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52293 When turning off Gate A20, skip the check and return immediately,
52294 because this is not fatal usually.
52295
52296 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52297
52298 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52299 be 0x7C00 instead of 0x8000.
52300
52301 * boot/i386/pc/pxeboot.S: Rewritten.
52302
52303 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52304 EXT_C.
52305 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52306 result.
52307
52308 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52309
52310 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52311 robustness. This routine now supports a BIOS call and System
52312 Control Port A to modify the gate A20.
52313
52314 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52315 Increased to 0x440.
52316
52317 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52318
52319 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52320 device path and resulting ihandle.
52321 (grub_ofdisk_close): dprintf the ihandle being closed.
52322 (grub_ofdisk_read): dprintf function parameters.
52323 * kern/mm.c (grub_mm_init_region): Likewise.
52324 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52325 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52326 size, and boot arguments.
52327 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52328 before loading into memory.
52329 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52330 before loading into memory.
52331
52332 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52333
52334 * kern/mm.c: Added much documentation.
52335 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52336 8, set to 5 instead of 8.
52337
52338 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52339
52340 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52341
52342 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52343 (grub_mkdevicemap_SOURCES): New variable.
52344
52345 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52346 lib/device.c of GRUB Legacy.
52347
52348 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52349
52350 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52351 instead of PATH is NULL.
52352
52353 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52354
52355 * commands/cmp.c (BUFFER_SIZE): New macro.
52356 (grub_cmd_cmp): Close the right file at the right time. Compare
52357 only data just read. Don't report files of different size as
52358 identical. Dynamically allocate buffers. Move variable
52359 declarations at the beginning of function.
52360
52361 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52362
52363 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52364 reverse.
52365
52366 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52367
52368 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52369 when backspace is pressed at beginning of line.
52370
52371 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52372
52373 * DISTLIST: Added genfslist.sh.
52374
52375 * normal/main.c (fs_module_list): New variable.
52376 (autoload_fs_module): New function.
52377 (read_fs_list): Likewise.
52378 (grub_normal_execute): Call read_fs_list.
52379
52380 * kern/fs.c (grub_fs_autoload_hook): New variable.
52381 (grub_fs_probe): Added support for auto-loading.
52382
52383 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52384 (grub_fs_module_list_t): New type.
52385
52386 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52387 (grub_fs_autoload_hook): New prototype.
52388
52389 * genfslist.sh: New file.
52390
52391 * genmk.rb: Added a rule to generate a filesystem list.
52392
52393 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52394
52395 * configure.ac: Fix the test for cross-compiling.
52396
52397 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52398 define GRUB_UTIL anymore.
52399
52400 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52401 so this function works on other systems than just big endian.
52402 (load_modules): Likewise.
52403 (add_segments): Likewise.
52404
52405 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52406
52407 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52408 contains `l' modifier, get a long from va_arg().
52409
52410 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52411
52412 * kern/mm.c (grub_free): If the next free block which is being
52413 merged is the first free block, set the first block to the block
52414 being freed.
52415 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52416
52417 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52418
52419 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52420 `grub_ieee1275_chosen'.
52421
52422 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52423
52424 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52425 (grub_ieee1275_chosen): New variable.
52426 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52427 `chosen'.
52428 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52429 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52430 Rename first argument to `phandle' for consistency.
52431 (grub_ieee1275_get_property_length): Likewise.
52432 (grub_ieee1275_next_property): Likewise. Change type of first argument
52433 to grub_ieee1275_phandle_t.
52434 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52435 Move export next to declaration.
52436 (grub_ieee1275_chosen): New variable.
52437 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52438 Correct cosmetic typo.
52439 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52440 `grub_ieee1275_chosen'.
52441 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52442 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52443 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52444 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52445 `grub_ieee1275_chosen'.
52446
52447 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52448
52449 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52450 /chosen/bootargs.
52451 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52452 /chosen/bootargs as "variable=value" pairs.
52453
52454 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52455
52456 * include/grub/misc.h (grub_dprintf): New macro.
52457 (grub_real_dprintf): New prototype.
52458 (grub_strword): Likewise.
52459 (grub_iswordseparator): Likewise.
52460 * kern/misc.c (grub_real_dprintf): New function.
52461 (grub_strword): Likewise.
52462 (grub_iswordseparator): Likewise.
52463
52464 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52465
52466 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52467 (roundup): Remove macro.
52468 (grub_ieee1275_flags): Make static.
52469 (grub_ieee1275_realmode): Remove.
52470 (grub_ieee1275_test_flag): New function.
52471 (grub_ieee1275_set_flag): Likewise.
52472 (find_options): Rename to `grub_ieee1275_find_options'; update
52473 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52474 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52475 (cmain): New prototype.
52476 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52477 `grub_ieee1275_flags' directly.
52478 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52479 machine/biosdisk.h.
52480 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52481 Don't include grub/machine/init.h.
52482 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52483 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52484 Remove prototype.
52485 (grub_ieee1275_realmode): Likewise.
52486 (grub_ieee1275_flag): New enum.
52487 (grub_ieee1275_test_flag): New prototype.
52488 (grub_ieee1275_set_flag): New prototype.
52489 * include/grub/powerpc/ieee1275/init.h: Remove file.
52490 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52491 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52492 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52493 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52494 comment.
52495 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52496 `grub_ieee1275_test_flag'.
52497 (grub_ieee1275_encode_devname): Likewise.
52498
52499 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52500
52501 * include/grub/powerpc/ieee1275/ieee1275.h
52502 (grub_ieee1275_encode_devname): New prototype.
52503 (grub_ieee1275_get_filename): Likewise.
52504 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52505 function.
52506 (grub_set_prefix): Likewise.
52507 (grub_machine_init): Call grub_set_prefix.
52508 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52509 (grub_parse_type): New enum.
52510 (grub_ieee1275_get_devargs): New function.
52511 (grub_ieee1275_get_devname): Likewise.
52512 (grub_ieee1275_parse_args): Likewise.
52513 (grub_ieee1275_get_filename): Likewise.
52514 (grub_ieee1275_encode_devname): Likewise.
52515
52516 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52517
52518 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52519 `grub_loader_unset'.
52520
52521 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52522
52523 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52524 instead of grub_ieee1275_interpret.
52525 (grub_halt_init): New function.
52526 (grub_halt_fini): Likewise.
52527 (GRUB_MOD_INIT): Correct message grammar.
52528 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52529 instead of grub_ieee1275_interpret.
52530 (grub_reboot_init): New function.
52531 (grub_reboot_fini): Likewise.
52532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52533 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52534 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52535 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52536 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52537 function.
52538 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52539 Add prototype.
52540 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52541 prototype.
52542 (grub_halt): Likewise.
52543 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52544 (cmain): Remove __attribute__((unused)).
52545 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52546 (grub_heap_len): Likewise.
52547 (grub_machine_fini): New function.
52548 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52549 (grub_halt): Likewise.
52550 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52551 function.
52552 * util/powerpc/ieee1275/misc.c: New file.
52553
52554 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52555
52556 * DISTLIST: New file.
52557 * gendistlist.sh: Likewise.
52558
52559 * Makefile.in (COMMON_DISTFILES): Removed.
52560 (BOOT_DISTFILES): Likewise.
52561 (CONF_DISTFILES): Likewise.
52562 (DISK_DISTFILES): Likewise.
52563 (FS_DISTFILES): Likewise.
52564 (INCLUDE_DISTFILES): Likewise.
52565 (KERN_DISTFILES): Likewise.
52566 (LOADER_DISTFILES): Likewise.
52567 (TERM_DISTFILES): Likewise.
52568 (UTIL_DISTFILES): Likewise.
52569 (DISTFILES): Likewise.
52570 (uninstall): Uninstall files in $(pkgdata_DATA).
52571 (DISTLIST): New target.
52572 (distdir): Use the contents of the file DISTLIST to get a list of
52573 distributed files.
52574
52575 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52576
52577 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52578 descriptor. This is ported from GRUB Legacy.
52579
52580 * gencmdlist.sh: Added an extra semicolon to make it work with
52581 old sed versions. Reported by Robert Bihlmeyer
52582 <robbe@orcus.priv.at>.
52583
52584 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52585
52586 Automatic loading of commands is supported.
52587
52588 * normal/main.c (read_command_list): New function.
52589 (grub_normal_execute): Call read_command_list.
52590
52591 * normal/command.c (grub_register_command): Return zero or CMD.
52592 Allocate CMD->NAME from the heap.
52593 Initialize CMD->MODULE_NAME to zero.
52594 Find the same name as well. If the same command is found and it is
52595 a dummy command, overwrite members. If it is not a dummy command,
52596 return zero.
52597 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52598 (grub_command_find): If a dummy command is found, load a module
52599 and retry to find a command only once.
52600
52601 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52602 make sure that each command is loaded.
52603
52604 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52605 macro.
52606 (struct grub_command): Remove const from the member `name'.
52607 Add a new member `module_name'.
52608 (grub_register_command): Return grub_command_t.
52609
52610 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52611 sure that each command is loaded.
52612
52613 * genmk.rb (PModule::rule): Specify a module name without the
52614 suffix ".mod" to gencmdlist.sh.
52615
52616 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52617
52618 * gencmdlist.sh: New file.
52619
52620 * genmk.rb (PModule::rule): Generate a rule for a command list.
52621 Clean command.lst.
52622 Generate command.lst from $(COMMANDFILES).
52623
52624 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52625 (DATA): Added $(pkgdata_DATA).
52626 (install-local): Install files in $(pkgdata_DATA).
52627
52628 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52629
52630 * term/i386/pc/vga.c (debug_command): Removed.
52631 (GRUB_MOD_INIT): Do not register the command "debug".
52632
52633 From Hollis Blanchard:
52634 * commands/configfile.c: New file.
52635 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52636 commands/configfile.c.
52637 (pkgdata_MODULES): Added configfile.mod.
52638 (configfile_mod_SOURCES): New variable.
52639 (configfile_mod_CFLAGS): Likewise.
52640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52641 commands/configfile.c.
52642 (pkgdata_MODULES): Added configfile.mod.
52643 (configfile_mod_SOURCES): New variable.
52644 (configfile_mod_CFLAGS): Likewise.
52645 * util/grub-emu.c (main): Call grub_configfile_init and
52646 grub_configfile_fini.
52647 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52648 prototype.
52649 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52650
52651 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52652
52653 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52654 address.
52655
52656 * commands/help.c (grub_cmd_help): Do not print newlines after
52657 the last command in print_command_help.
52658
52659 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52660
52661 * commands/default.h: New file.
52662 * commands/timeout.h: Likewise.
52663 * normal/context.c: Likewise.
52664
52665 * util/misc.c: Do not include sys/times.h.
52666 Include sys/time.h and grub/machine/time.h.
52667 (grub_get_rtc): Rewritten with gettimeofday.
52668
52669 * util/grub-emu.c (main): Call grub_default_init and
52670 grub_timeout_init before grub_normal_init, and call
52671 grub_timeout_fini and grub_default_fini after grub_main.
52672
52673 * util/console.c (grub_ncurses_checkkey): Return the read
52674 character or -1.
52675
52676 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52677 timeouts.
52678
52679 * normal/main.c (read_config_file): Push MENU. If this fails,
52680 print an error and wait for a user input.
52681 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52682 If a menu is empty or an error occurs, pop MENU.
52683 (grub_normal_execute): Pop and free MENU after grub_menu_run
52684 returns.
52685
52686 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52687
52688 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52689 include time.h.
52690 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52691 without GRUB_UTIL.
52692 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52693 time.h.
52694 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52695 without GRUB_UTIL.
52696
52697 * include/grub/normal.h (struct grub_menu_list): New struct.
52698 (grub_menu_list_t): New type.
52699 (struct grub_context): New struct.
52700 (grub_context_t): New type.
52701 (grub_register_command): Got rid of EXPORT_FUNC.
52702 (grub_unregister_command): Likewise.
52703 (grub_context_get): New prototype.
52704 (grub_context_get_current_menu): Likewise.
52705 (grub_context_push_menu): Likewise.
52706 (grub_context_pop_menu): Likewise.
52707 [GRUB_UTIL] (grub_default_init): Likewise.
52708 [GRUB_UTIL] (grub_default_fini): Likewise.
52709 [GRUB_UTIL] (grub_timeout_init): Likewise.
52710 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52711
52712 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52713 commands/timeout.c and normal/context.c.
52714 (pkgdata_MODULES): Added default.mod and timeout.mod.
52715 (normal_mod_SOURCES): Added normal/context.c.
52716 (default_mod_SOURCES): New variable.
52717 (default_mod_CFLAGS): Likewise.
52718 (timeout_mod_SOURCES): Likewise.
52719 (timeout_mod_CFLAGS): Likewise.
52720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52721 conf/i386-pc.rmk.
52722 (pkgdata_MODULES): Added default.mod and timeout.mod.
52723 (normal_mod_SOURCES): Added normal/context.c.
52724 (default_mod_SOURCES): New variable.
52725 (default_mod_CFLAGS): Likewise.
52726 (timeout_mod_SOURCES): Likewise.
52727 (timeout_mod_CFLAGS): Likewise.
52728
52729 * Makefile.in (all-local): Added $(MKFILES).
52730
52731 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52732
52733 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52734 (grub_emu_SOURCES): Likewise.
52735 (pkgdata_MODULES): Add `sun.mod'.
52736 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52738 `partmap/sun.c'.
52739 (pkgdata_MODULES): Add `sun.mod'.
52740 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52741 * include/grub/partition.h (grub_sun_partition_map_init): New
52742 prototype.
52743 (grub_sun_partition_map_fini): Likewise.
52744 * partmap/sun.c: New file.
52745 * util/grub-emu.c (main): Initialize and de-initialize the sun
52746 partitionmap support.
52747
52748 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52749
52750 This implements an Emacs-like menu entry editor.
52751
52752 * normal/menu_entry.c: New file.
52753
52754 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52755 characters to ASCII.
52756 (saved_char): New variable.
52757 (grub_ncurses_checkkey): Rewritten completely.
52758 (grub_ncurses_getkey): Likewise.
52759 (grub_ncurses_init): Call raw instead of cbreak.
52760
52761 * normal/menu.c (print_entry): Do not put a space.
52762 (init_page): Renamed to ...
52763 (grub_menu_init_page): ... this. All callers changed.
52764 (edit_menu_entry): Removed.
52765 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52766
52767 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52768
52769 * kern/misc.c (grub_vprintf): Call grub_refresh.
52770
52771 * normal/menu.c (DISP_LEFT): Renamed to ...
52772 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52773 * normal/menu.c (DISP_UP): Renamed to ...
52774 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52775 * normal/menu.c (DISP_RIGHT): Renamed to ...
52776 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52777 * normal/menu.c (DISP_DOWN): Renamed to ...
52778 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52779 * normal/menu.c (DISP_HLINE): Renamed to ...
52780 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52781 * normal/menu.c (DISP_VLINE): Renamed to ...
52782 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52783 * normal/menu.c (DISP_UL): Renamed to ...
52784 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52785 * normal/menu.c (DISP_UR): Renamed to ...
52786 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52787 * normal/menu.c (DISP_LL): Renamed to ...
52788 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
52789 * normal/menu.c (DISP_LR): Renamed to ...
52790 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
52791 * normal/menu.c (TERM_WIDTH): Renamed to ...
52792 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
52793 * normal/menu.c (TERM_HEIGHT): Renamed to ...
52794 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
52795 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
52796 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
52797 * normal/menu.c (TERM_MARGIN): Renamed to ...
52798 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
52799 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52800 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52801 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52802 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52803 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52804 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52805 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52806 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52807 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52808 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52809 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52810 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52811 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52812 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52813 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52814 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52815 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52816 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52817 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52818 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52819 All callers changed.
52820
52821 * include/grub/normal.h: New prototype.
52822
52823 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52824 normal/menu_entry.c.
52825 (normal_mod_SOURCES): Likewise.
52826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52827 (normal_mod_SOURCES): Likewise.
52828
52829 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52830
52831 * include/grub/normal.h (grub_halt_init): New prototype.
52832 (grub_halt_fini): Likewise.
52833 (grub_reboot_init): Likewise.
52834 (grub_reboot_fini): Likewise.
52835
52836 * util/grub-emu.c: Include signal.h.
52837 (main_env): New global variable.
52838 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52839 catch C-c.
52840 (grub_machine_fini): New function.
52841 (main): Call grub_halt_init and grub_reboot_init before
52842 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52843 Call setjmp with MAIN_ENV to go back afterwards.
52844 Call grub_machine_fini right before return.
52845
52846 * include/grub/util/misc.h: Include setjmp.h.
52847 (main_env): New prototype.
52848
52849 * include/grub/kernel.h (grub_machine_fini): New prototype.
52850 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52851 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52852
52853 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52854 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52855 * term/i386/pc/console.c (grub_console_fini): Likewise.
52856
52857 * util/i386/pc/misc.c: New file.
52858
52859 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52860 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52861 commands/i386/pc/reboot.c.
52862
52863 2005-02-14 Guillem Jover <guillem@hadrons.org>
52864
52865 * include/grub/dl.h (grub_dl_check_header): New prototype.
52866 (grub_arch_dl_check_header): Change return type to grub_err_t,
52867 remove size parameter and export function. Update all callers.
52868 * kern/dl.c (grub_dl_check_header): New function.
52869 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52870 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52871 are inside the core.
52872 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52873 independent ELF header checks.
52874 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52875 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52876 `grub_dl_check_header' instead of explicit checks. Check for the
52877 ELF type.
52878 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52879 `grub_dl_check_header' instead of explicit checks. Remove arch
52880 specific ELF header checks.
52881
52882 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52883 argument SIZE.
52884
52885 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52886
52887 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52888 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52889
52890 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52891
52892 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
52893 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
52894 (part_map_iterate): Clear `grub_errno' and return 0 if
52895 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
52896 * partmap/amiga.c (amiga_partition_map_iterate): Return
52897 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52898 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52899
52900 2005-02-01 Guillem Jover <guillem@hadrons.org>
52901
52902 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52903 help info.
52904
52905 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52906
52907 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52908 Removed prototype.
52909 (grub_rescue_cmd_linux): New prototype.
52910 (grub_rescue_cmd_initrd): Likewise.
52911 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52912 `bi_rec'.
52913 (grub_linux_release_mem): Release the memory for the initrd.
52914 (grub_load_linux): Renamed from this...
52915 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52916 Changed `entry' not to be static. Loop over memory regions to
52917 find another one when the default fails.
52918 (grub_rescue_cmd_initrd): New function.
52919 (grub_linux_init): Remove function.
52920 (grub_linux_fini): Likewise.
52921 (GRUB_MOD_INIT): Register `initrd'.
52922 (GRUB_MOD_FINI): Unregister `initrd'.
52923 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52924 Function removed.
52925 (grub_linux_normal_fini): Likewise.
52926 (GRUB_MOD_INIT): Register `initrd'.
52927 (GRUB_MOD_FINI): Unregister `initrd'.
52928
52929 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52930
52931 * commands/help.c: New file.
52932 * normal/arg.c (show_help): Renamed to...
52933 (grub_arg_show_help): ... this.
52934 * commands/i386/pc/halt.c: New file.
52935 * commands/i386/pc/reboot.c: Likewise.
52936 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52937 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52938 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52939 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52940 variables.
52941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52942 `commands/help.c'.
52943 (pkgdata_MODULES): Add `help.mod'.
52944 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52945 * grub/i386/pc/init.h (grub_reboot): New prototype.
52946 (grub_halt): Likewise.
52947 * include/grub/normal.h (grub_arg_show_help): New prototype.
52948 (grub_help_init): Likewise.
52949 (grub_help_fini): Likewise.
52950 * util/grub-emu.c (main): Initialize and deinitialize the help
52951 command.
52952
52953 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52954
52955 * normal/command.c (grub_command_init): Fixed the description of
52956 the `set' and `unset' commands.
52957
52958 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52959
52960 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52961 function.
52962 * commands/ieee1275/halt.c: New file.
52963 * commands/ieee1275/reboot.c: Likewise.
52964 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52965 `__attribute__ ((unused))'. Some GCS related fixed.
52966 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52967 (grub_suspend_fini): Likewise.
52968 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52969 and `halt.mod'.
52970 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52971 (halt_mod_CFLAGS): New variables.
52972 * include/grub/powerpc/ieee1275/ieee1275.h
52973 (grub_ieee1275_interpret): New prototype.
52974
52975 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52976
52977 * include/grub/misc.h (memmove): New prototype.
52978 (memcpy): Likewise.
52979
52980 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52981
52982 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52983 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52984
52985 2005-01-22 Marco Gerards <metgerards@student.han.nl>
52986
52987 * kern/misc.c (grub_strndup): Function rewritten.
52988
52989 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52990
52991 * normal/menu.c (TERM_WIDTH): Macro redefined.
52992 (TERM_TOP_BORDER_Y): Likewise.
52993 (draw_border): Replaced while-loop by a for-loop. Make the number
52994 of lines consistent with the number of lines displayed in
52995 print_entries. Added a margin below the rectangle.
52996 (print_entry): Make the entry fit in the rectangle.
52997 (print_entries): Display the scroll arrows next to the right
52998 border.
52999
53000 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53001
53002 * fs/minix.c (grub_minix_find_file): Reserve more space for
53003 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53004 `grub_strncpy' to copy `path' into it.
53005
53006 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53007
53008 Add the loopback device, a device via which files can be accessed
53009 as devices.
53010
53011 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53012 (pkgdata_MODULES): Add loopback.mod.
53013 (loopback_mod_SOURCES): New variable.
53014 (loopback_mod_CFLAGS): Likewise.
53015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53016 `disk/loopback.c'.
53017 (pkgdata_MODULES): Add loopback.mod.
53018 (loopback_mod_SOURCES): New variable.
53019 (loopback_mod_CFLAGS): Likewise.
53020 * disk/loopback.c: new file.
53021 * include/grub/normal.h (grub_loop_init): New prototype.
53022 (grub_loop_fini): New prototype.
53023 * util/grub-emu.c (main): Initialize and de-initialize loopback
53024 support.
53025 * include/grub/disk.h (grub_disk_dev_id): Add
53026 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53027
53028 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53029
53030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53031 function.
53032 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53033 (suspend_mod_SOURCES): New variable.
53034 (suspend_mod_CFLAGS): Likewise.
53035 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53036 New prototype.
53037 * commands/ieee1275/suspend.c: New file.
53038
53039 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53040
53041 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53042 ((unused))' to `__attribute__ ((used))'.
53043 (GRUB_MOD_FINI): Likewise.
53044 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53045 * genmk.rb (PModule): Assign space to common symbols when linking
53046 modules.
53047
53048 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53049
53050 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53051 `unsigned' arguments to `grub_size_t'.
53052 (grub_malloc): Likewise.
53053 (grub_realloc): Likewise.
53054 (grub_memalign): Likewise.
53055 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53056 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53057 * util/misc.c (grub_malloc): Likewise.
53058 (grub_realloc): Likewise.
53059 * kern/mm.c (get_header_from_pointer): Change the casts to
53060 `unsigned' into a cast to `grub_size_t'.
53061
53062 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53063 point to `currnode' when `currnode' is changed.
53064
53065 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53066 Schottelius <nico-linux@schottelius.org>.
53067
53068 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53069
53070 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53071 (note_path): Remove variable.
53072 (GRUB_IEEE1275_NOTE_NAME): New macro.
53073 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53074 (grub_ieee1275_note_hdr): New structure.
53075 (grub_ieee1275_note_desc): Likewise.
53076 (grub_ieee1275_note): Likewise.
53077 (load_note): Remove `dir' argument. All callers updated. Remove
53078 `note_img' and `path'. Do not load a file from `note_path'.
53079 Initialize a struct grub_ieee1275_note and write that to `out'.
53080 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53081
53082 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53083
53084 * util/misc.c (grub_util_read_image): Revert last change. It
53085 called `grub_util_read_at', which seeks from the beginning of the
53086 file.
53087
53088 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53089
53090 * TODO: Add note about endianness in grub-mkimage.
53091 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53092 section.
53093 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53094 (grub_mkimage_SOURCES): New target.
53095 * include/grub/kernel.h (grub_start_addr): Remove variable.
53096 (grub_end_addr): Likewise.
53097 (grub_total_module_size): Likewise.
53098 (grub_kernel_image_size): Likewise.
53099 (GRUB_MODULE_MAGIC): New constant.
53100 (grub_module_info): New structure.
53101 (grub_arch_modules_addr): New prototype.
53102 (grub_get_end_addr): Remove prototype.
53103 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53104 * include/grub/powerpc/ieee1275/kernel.h: New file.
53105 * include/grub/util/misc.h (grub_util_get_fp_size): New
53106 prototype.
53107 (grub_util_read_at): Likewise.
53108 (grub_util_write_image_at): Likewise.
53109 * kern/main.c (grub_get_end_addr): Remove function.
53110 (grub_load_modules): Call grub_arch_modules_addr instead of using
53111 grub_end_addr. Look for a grub_module_info struct in memory. Use
53112 the grub_module_info fields instead of calling grub_get_end_addr
53113 as loop conditions. Move grub_add_unused_region code here.
53114 (grub_add_unused_region): Remove function.
53115 * kern/i386/pc/init.c: Include grub/cache.h.
53116 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53117 one call to add_mem_region.
53118 (grub_arch_modules_addr): New function.
53119 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53120 (grub_total_module_size): Likewise.
53121 Include grub/machine/kernel.h.
53122 (grub_arch_modules_addr): New function.
53123 * util/grub-emu.c (grub_end_addr): Remove variable.
53124 (grub_total_module_size): Likewise.
53125 (grub_arch_modules_addr): New function.
53126 * util/misc.c: Include unistd.h.
53127 (grub_util_get_fp_size): New function.
53128 (grub_util_read_at): Likewise.
53129 (grub_util_write_image_at): Likewise.
53130 (grub_util_read_image): Call grub_util_read_at.
53131 (grub_util_write_image): Call grub_util_write_image_at.
53132 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53133 additional memory in kernel_img for a struct grub_module_info.
53134 Fill in that grub_module_info.
53135 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53136
53137 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53138
53139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53140 New function.
53141 * include/grub/powerpc/ieee1275/ieee1275.h
53142 (grub_ieee1275_milliseconds): New prototype.
53143 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53144 Change to 1000.
53145 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53146 grub_ieee1275_milliseconds.
53147
53148 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53149
53150 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53151 variable.
53152 (find_options): New function.
53153 (cmain): Call find_options.
53154 * include/grub/powerpc/ieee1275/ieee1275.h
53155 (grub_ieee1275_realmode): New extern variable.
53156 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53157 grub_map if grub_ieee1275_realmode is false.
53158
53159 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53160
53161 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53162 lines are inserted and make it work like readline. Reported by
53163 Vincent Pelletier <subdino2004@yahoo.fr>.
53164
53165 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53166
53167 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53168
53169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53170 `kern/powerpc/cache.S'.
53171
53172 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53173
53174 * genmk.rb: Handle the `Program' class in the main loop. Written
53175 by Johan Rydberg <jrydberg@gnu.org>.
53176 (Program): New class.
53177 (programs): New variable.
53178 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53179 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53180 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53181 (help_arch): Function removed.
53182 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53183 `powerpc/libgcc.h' and `loader.h'.
53184 (pkgdata_PROGRAMS): New variable.
53185 (sbin_UTILITIES): Variable removed.
53186 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53187 (grubof_SOURCES): Variable re-defined so it only includes the
53188 core functionality.
53189 (grubof_CFLAGS): Remove `-DGRUBOF'.
53190 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53191 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53192 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53193 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53194 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53195 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53196 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53197 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53198 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53199 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53200 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53201 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53202 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53203 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53204 (pc_mod_CFLAGS): New variables.
53205 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53206 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53207 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53208 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53209 Moved from here...
53210 * include/grub/i386/pc/init.h (grub_os_area_addr)
53211 (rub_os_area_size): ... to here.
53212 * include/grub/powerpc/ieee1275/ieee1275.h
53213 (grub_ieee1275_entry_fn): Export symbol.
53214 * include/grub/powerpc/ieee1275/init.h: New file.
53215 * include/grub/powerpc/libgcc.h: Likewise.
53216 * include/grub/cache.h: Likewise.
53217 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53218 <hollis@penguinppc.org>.
53219 * kern/dl.c: Include <grub/cache.h>.
53220 (grub_dl_flush_cache): New function.
53221 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53222 for this module.
53223 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53224 (grub_console_init): Removed prototypes.
53225 (grub_machine_init): Don't initialize the modules anymore.
53226 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53227 static.
53228 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53229 Macro undef removed.
53230 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53231 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53232 relocation `R_PPC_REL32'. Return an error when the relocation is
53233 unknown.
53234 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53235 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53236 * util/misc.c (grub_arch_sync_caches): Likewise.
53237
53238 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53239
53240 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53241 `symlist.c', add `grubof_symlist.c'.
53242 (symlist.c): Variable removed.
53243 (grubof_HEADERS): Variable added.
53244 (grubof_symlist.c): New target.
53245 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53246 `kernel_img_HEADERS'.
53247 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53248 * kern/powerpc/dl.c: New file.
53249 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53250 Function removed.
53251 (grub_arch_dl_relocate_symbols): Likewise.
53252 (grub_register_exported_symbols): Likewise.
53253
53254 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53255
53256 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53257 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53258 to fail instead. Reported by Vincent Pelletier
53259 <subdino2004@yahoo.fr>.
53260
53261 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53262 it is not allocated. Reported by Vincent Pelletier
53263 <subdino2004@yahoo.fr>.
53264
53265 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53266 output so the output looks better.
53267
53268 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53269
53270 Modulize the partition map support and add support for the amiga
53271 partition map.
53272
53273 * commands/ls.c: Include <grub/partition.h> instead of
53274 <grub/machine/partition.h>.
53275 * kern/disk.c: Likewise.
53276 * kern/rescue.c: Likewise.
53277 * loader/i386/pc/chainloader.c: Likewise.
53278 * normal/cmdline.c: Likewise.
53279 * kern/powerpc/ieee1275/init.c: Likewise.
53280 (grub_machine_init): Call `grub_pc_partition_map_init',
53281 `grub_amiga_partition_map_init' and
53282 `grub_apple_partition_map_init'.
53283 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53284 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53285 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53286 `partition.h' and `pc_partition.h'.
53287 (grub_setup_SOURCES): Remove
53288 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53289 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53290 (grub_emu_SOURCES): Likewise.
53291 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53292 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53293 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53295 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53296 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53297 (grubof_SOURCES): Likewise.
53298 * disk/i386/pc/partition.c: File removed.
53299 * disk/powerpc/ieee1275/partition.c: Likewise.
53300 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53301 * include/grub/i386/pc/partition.h: Likewise.
53302 * kern/partition.c: New file.
53303 * partmap/amiga.c: Likewise.
53304 * partmap/apple.c: Likewise.
53305 * partmap/pc.c: Likewise.
53306 * include/grub/partition.h: Likewise..
53307 * include/grub/pc_partition.h: Likewise.
53308 * util/grub-emu.c: Include <grub/partition.h> instead of
53309 <grub/machine/partition.h>.
53310 (main): Call `grub_pc_partition_map_init',
53311 `grub_amiga_partition_map_init' and
53312 `grub_apple_partition_map_init' and deinitialize afterwards.
53313 * util/i386/pc/biosdisk.c: Include `#include
53314 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53315 `<grub/machine/partition.h>'.
53316 * util/i386/pc/grub-setup.c: Likewise.
53317 * util/i386/pc/biosdisk.c: Likewise.
53318 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53319 partition information in case of a PC partition.
53320 * util/i386/pc/grub-setup.c: Include `#include
53321 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53322 `<grub/machine/partition.h>'.
53323 (setup): Only access the PC specific partition information in case
53324 of a PC partition.
53325
53326 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53327
53328 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53329 (grub_longjmp): Likewise.
53330 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53331 20.
53332 * normal/powerpc/setjmp.S: New file.
53333 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53334 `normal/powerpc/setjmp.S'.
53335 (grubof_CFLAGS): Add `-DGRUBOF'.
53336 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53337 [GRUB_UTIL && !GRUBOF].
53338
53339 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53340
53341 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53342 property named `name'. Correctly handle the error returned by
53343 `grub_ieee1275_finddevice' if a device can not be opened.
53344
53345 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53346
53347 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53348 `actual' for negativity.
53349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53350 kern/fshelp.c.
53351
53352 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53353
53354 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53355 (PAGE_OFFSET): New macro.
53356 (CRTC_ADDR_PORT): Likewise.
53357 (CRTC_DATA_PORT): Likewise.
53358 (START_ADDR_HIGH_REGISTER): Likewise.
53359 (START_ADDR_LOW_REGISTER): Likewise.
53360 (GRAPHICS_ADDR_PORT): Likewise.
53361 (GRAPHICS_DATA_PORT): Likewise.
53362 (READ_MAP_REGISTER): Likewise.
53363 (INPUT_STATUS1_REGISTER): Likewise.
53364 (INPUT_STATUS1_VERTR_BIT): Likewise.
53365 (page): New variable.
53366 (wait_vretrace): New function.
53367 (set_read_map): Likewise.
53368 (set_start_address): Likewise.
53369 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53370 the right page.
53371 (check_vga_mem): Take the page into account.
53372 (write_char): Likewise.
53373 (write_cursor): Likewise.
53374 (scroll_up): Likewise. Copy the page to the page that is not
53375 shown and switch between both pages.
53376 (grub_vga_putchar): Fix off by one error.
53377 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53378 account.
53379
53380 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53381
53382 Add support for iso9660 (including rockridge).
53383
53384 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53385 (iso9660_mod_SOURCES): New variable.
53386 (iso9660_mod_CFLAGS): Likewise.
53387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53388 * include/grub/fs.h (grub_iso9660_init): New prototype.
53389 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53390 * fs/iso9660.c: New file.
53391
53392 * include/grub/misc.h (grub_strncat): New prototype.
53393 * kern/misc.c (grub_strncat): New function.
53394
53395 * fs/hfs.c (grub_hfs_mount): Translate the error
53396 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53397 * fs/jfs.c (grub_jfs_mount): Likewise.
53398 * fs/ufs.c (grub_ufs_mount): Likewise.
53399
53400 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53401
53402 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53403 which initialized BAT registers.
53404 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53405 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53406 Move from here...
53407 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53408 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53409 ... to here.
53410 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53411 (grub_mapclaim): Likewise.
53412 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53413 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53414 hand.
53415
53416 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53417
53418 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53419 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53420 -ffreestanding and -msoft-float.
53421
53422 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53423
53424 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53425 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53426 set in grub_ieee1275_flags.
53427
53428 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53429
53430 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53431 prototype.
53432 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53433 grub_console_init first.
53434 Change the memory range used for grub_ieee1275_claim and
53435 grub_mm_init_region.
53436 Print an error message if the claim fails.
53437 Include <grub/misc.h>.
53438
53439 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53440
53441 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53442 Call grub_children_iterate for device nodes of type `scsi',
53443 `ide', or `ata'.
53444 (grub_ofdisk_open): Remove manual device alias resolution.
53445 Fix memory leak when device cannot be opened.
53446 * include/grub/powerpc/ieee1275/ieee1275.h
53447 (grub_children_iterate): New prototype.
53448 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53449 New function.
53450 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53451 Return -1 if args.size was -1.
53452
53453 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53454
53455 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53456 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53457 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53458 Open Firmware's memory for it; claim memory from _start to _end.
53459 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53460 (_end): New extern.
53461 (_start): Zero BSS from __bss_start to _end.
53462 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53463 New extern.
53464 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53465
53466 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53467
53468 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53469 -1 if args.base was -1.
53470
53471 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53472
53473 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53474 escape sequence instead of a literal ^L. Also call
53475 grub_ofconsole_gotoxy.
53476
53477 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53478
53479 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53480 void * arguments to grub_addr_t. All callers updated. Also make
53481 the `result' argument optional.
53482 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53483 All callers updated.
53484
53485 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53486
53487 * commands/ls.c (grub_ls_list_files): Use the string following the
53488 initial ')', if present, as the filesystem path.
53489 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53490
53491 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53492
53493 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53494
53495 Make the source code of the menu interface more readable.
53496
53497 * normal/menu.c: Include grub/mm.h.
53498 (TERM_WIDTH): New macro.
53499 (TERM_HEIGHT): Likewise.
53500 (TERM_INFO_HEIGHT): Likewise.
53501 (TERM_MARGIN): Likewise.
53502 (TERM_SCROLL_WIDTH): Likewise.
53503 (TERM_TOP_BORDER_Y): Likewise.
53504 (TERM_LEFT_BORDER_X): Likewise.
53505 (TERM_BORDER_WIDTH): Likewise.
53506 (TERM_MESSAGE_HEIGHT): Likewise.
53507 (TERM_BORDER_HEIGHT): Likewise.
53508 (TERM_NUM_ENTRIES): Likewise.
53509 (TERM_FIRST_ENTRY_Y): Likewise.
53510 (TERM_ENTRY_WIDTH): Likewise.
53511 (TERM_CURSOR_X): Likewise.
53512 (draw_border): Use macros instead of magic numbers.
53513 (print_entry): Likewise.
53514 (print_entries): Likewise.
53515 (run_menu): Likewise. Also, handle the key 'e'.
53516 (run_menu_entry): Ignore empty command lines.
53517 (print_message): Added a new argument EDIT. If EDIT is true,
53518 print a different message.
53519 (init_page): Likewise.
53520 (edit_menu_entry): New function. Not implemented yet.
53521
53522 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53523
53524 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53525 can be loaded from normal mode.
53526
53527 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53528 `multiboot.mod'.
53529 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53530 (multiboot_mod_CFLAGS): New variables.
53531 * loader/i386/pc/linux_normal.c: New file.
53532 * loader/i386/pc/multiboot_normal.c: Likewise.
53533
53534 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53535 attribute `unused'.
53536
53537 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53538 `fdiro' to read the mode information from instead of `diro'.
53539
53540 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53541 looking up a symlink.
53542
53543 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53544 macro.
53545 * normal/command.c (grub_command_execute): Don't parse the
53546 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53547 flags of the command.
53548
53549 * normal/menu.c (grub_menu_run): Fix typo.
53550
53551 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53552
53553 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53554
53555 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53556 `y + 1' instead of `y - 1'.
53557
53558 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53559
53560 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53561
53562 From Hollis Blanchard <hollis@penguinppc.org>:
53563 * kern/misc.c (memmove): New alias for grub_memmove.
53564 (memcmp): New alias for grub_memcmp.
53565 (memset): New alias for grub_memset.
53566 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53567 Change "int handle" to "grub_ieee1275_phandle_t handle".
53568 * include/grub/powerpc/ieee1275/ieee1275.h
53569 (grub_ieee1275_get_property): Likewise.
53570
53571 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53572
53573 Added normal mode command `chainloader' as module chain.mod, which
53574 depends on normal.mod and _chain.mod.
53575
53576 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53577 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53578 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53579 Deleted prototype.
53580 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53581 but arguments parsing moved to ...
53582 (grub_chainloader_cmd): ... here. New function.
53583 * include/grub/i386/pc/chainloader.h: New file.
53584 * loader/i386/pc/chainloader_normal.c: Likewise.
53585
53586 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53587
53588 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53589 (grub_mkimage_LDFLAGS): Likewise.
53590 (grub_emu_SOURCES): Likewise.
53591 (kernel_img_HEADERS): Added fshelp.h.
53592 * fs/ext2.c: Include <grub/fshelp.h>.
53593 (FILETYPE_REG): New macro.
53594 (FILETYPE_INO_REG): Likewise.
53595 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53596 Changed all users.
53597 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53598 all users.
53599 (grub_fshelp_node): New struct.
53600 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53601 to a pointer.
53602 (grub_ext2_get_file_block): Removed function.
53603 (grub_ext2_read_block): New function.
53604 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53605 This function was written.
53606 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53607 (grub_ext2_find_file): Removed function.
53608 (grub_ext2_read_symlink): New function.
53609 (grub_ext2_iterate_dir): Likewise.
53610 (grub_ext2_open): Rewritten.
53611 (grub_ext2_dir): Rewritten.
53612 * include/grub/fshelp.h: New file.
53613 * fs/fshelp.c: Likewise.
53614
53615 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53616
53617 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53618 (print_message): Add a missing newline.
53619 (run_menu): Added timeout support.
53620 (run_menu_entry): New local function.
53621 (grub_menu_run): Added support for booting.
53622
53623 * kern/loader.c (grub_loader_is_loaded): New function.
53624
53625 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53626 (grub_get_rtc): Exported.
53627
53628 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53629 (grub_get_rtc): Exported.
53630
53631 * include/grub/normal.h (struct grub_command_list): Remove
53632 constant from the member `command'.
53633
53634 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53635
53636 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53637
53638 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53639
53640 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53641
53642 Add support for the JFS filesystem.
53643
53644 * fs/jfs.c: New file.
53645 * include/grub/fs.h (grub_jfs_init): New prototype.
53646 (grub_jfs_fini): New prototype.
53647 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53648 (grub_emu_SOURCES): Likewise.
53649 (pkgdata_MODULES): Add jfs.mod.
53650 (jfs_mod_SOURCES): New variable.
53651 (jfs_mod_CFLAGS): Likewise.
53652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53653 (grubof_SOURCES): Likewise.
53654 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53655
53656 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53657 endian to the host endian.
53658 (grub_fat_utf16_to_utf8): Move function from there...
53659 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53660 the endianness of the source string anymore.
53661 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53662
53663 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53664
53665 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53666 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53667 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53668 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53669
53670 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53671 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53672 for `node_found' and `it_dir'.
53673 (grub_hfs_dir): Add prototype for `dir_hook'.
53674
53675 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53676 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53677 and `indir32' to silence a gcc warning.
53678
53679 * include/grub/fs.h (grub_hfs_init): New prototype.
53680 (grub_hfs_fini): Likewise.
53681
53682
53683 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53684
53685 Each disk device has its own id now. This is useful to make use
53686 of multiple disk devices.
53687
53688 * include/grub/disk.h (grub_disk_dev_id): New enum.
53689 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53690 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53691
53692 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53693 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53694
53695 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53696 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53697
53698 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53699 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53700
53701 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53702 "id" which is used by the cache manager.
53703
53704 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53705 of just "GRUB".
53706
53707 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53708
53709 * fs/hfs.c: New file.
53710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53711 (grub_emu_SOURCES): Likewise.
53712 (pkgdata_MODULES): Add hfs.mod.
53713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53714 (grubof_SOURCES): Likewise.
53715 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53716
53717 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53718 * kern/misc.c (grub_strncasecmp): Add function.
53719
53720 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53721
53722 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53723 with parentheses.
53724
53725 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53726 (grub_ext2_dir): In case the directory entry type is unknown, read
53727 it from the inode.
53728
53729 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53730
53731 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53732 grub_load_linux instead of grub_rescue_cmd_linux as second
53733 argument of grub_rescue_register_command.
53734
53735 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53736
53737 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53738
53739 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53740 function.
53741 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53742 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53743 `loader/powerpc/ieee1275/linux.c',
53744 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53745 * include/grub/powerpc/ieee1275/ieee1275.h
53746 (grub_ieee1275_release): New prototype.
53747 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53748 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53749 normal, boot, linux and linux_normal.
53750 * loader/powerpc/ieee1275/linux.c: New file.
53751 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53752
53753 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53754
53755 * normal/arg.c (grub_arg_parse): Correct error handling after
53756 reallocating the argumentlist (check if `argl' is not null instead
53757 of checking if `args' is not null).
53758 * kern/mm.c (grub_realloc): Return the same pointer when using the
53759 same region, instead of returning the header address.
53760
53761 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53762
53763 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53764 one block instead of two when looking for the initial partition.
53765 (grub_partition_probe): Initialize the local variable `p' with 0.
53766 Use base 10 for the grub_strtoul call.
53767 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53768 need for one local variable.
53769 (grub_strtoul): Don't add the new value to `num', instead of that
53770 just assign it.
53771
53772 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53773
53774 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53775 (pxeboot_img_SOURCES): New variable.
53776 (pxeboot_img_ASFLAGS): Likewise.
53777 (pxeboot_img_LDFLAGS): Likewise.
53778 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53779 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53780 <lode_leroy@hotmail.com>.
53781
53782 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53783
53784 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53785 there was no input.
53786
53787 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53788
53789 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
53790 the history buffer logic.
53791
53792 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53793
53794 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
53795 (FILETYPE_INO_SYMLINK): New macros.
53796 (grub_ext2_find_file): Check if the node is a directory using the
53797 inode stat information instead of using the filetype in the
53798 dirent. Exclude the first character of an absolute symlink.
53799 (grub_ext2_dir): Mask out the filetype part of the mode member of
53800 the inode.
53801
53802 2004-05-24 Marco Gerards <metgerards@student.han.nl>
53803
53804 Add support for UFS version 1 and 2. Add support for the minix
53805 filesystem version 1 and 2, both the variants with 14 and 30 long
53806 filenames.
53807
53808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53809 fs/minix.c.
53810 (grub_emu_SOURCES): Likewise.
53811 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53812 (ufs_mod_SOURCES): New variable.
53813 (ufs_mod_CFLAGS): Likewise.
53814 (minix_mod_SOURCES): Likewise.
53815 (minix_mod_CFLAGS): Likewise.
53816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53817 fs/minix.c.
53818 (grubof_SOURCES): Likewise.
53819 * fs/ufs.c: New file.
53820 * fs/minix.c: New file.
53821 * include/grub/fs.h (grub_ufs_init): New prototype.
53822 (grub_ufs_fini): Likewise.
53823 (grub_minix_init): Likewise.
53824 (grub_minix_fini): Likewise.
53825 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53826 minix fs.
53827
53828 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53829
53830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53831 commands/ls.c, commands/terminal.c, commands/boot.c,
53832 commands/cmp.c and commands/cat.c.
53833 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53834
53835 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53836 "env.h"
53837
53838 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53839
53840 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53841 and grub_, respectively. Because the conversion is trivial and
53842 mechanical, I omit the details here. Please refer to the CVS
53843 if you need more information.
53844
53845 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53846
53847 * include/pupa: Renamed to ...
53848 * include/grub: ... this.
53849 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53850 * util/i386/pc/grub-mkimage.c: ... this.
53851 * util/i386/pc/pupa-setup.c: Renamed to ...
53852 * util/i386/pc/grub-setup.c: ... this.
53853 * util/pupa-emu.c: Renamed to ...
53854 * util/grub-emu.c: ... this.
53855
53856 2004-03-29 Marco Gerards <metgerards@student.han.nl>
53857
53858 Add support for the newworld apple macintosh (PPC). This has been
53859 tested on the powerbook 2000 only. It only adds support for
53860 generic ieee1275 functions, console and disk support. This should
53861 be easy to port to other architectures with support for Open
53862 Firmware.
53863
53864 * configure.ac: Accept the powerpc as host_cpu. In the case of
53865 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53866 specific tests are only executed while building for the i386.
53867 Inverse test for crosscompile.
53868 * genmk.rb (Utility): Allow assembler files.
53869 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53870 * conf/powerpc-ieee1275.rmk: New file.
53871 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53872 * disk/powerpc/ieee1275/partition.c: Likewise.
53873 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53874 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53875 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53876 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53877 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53878 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53879 * include/pupa/powerpc/ieee1275/loader.h
53880 * include/pupa/powerpc/setjmp.h: Likewise.
53881 * include/pupa/powerpc/types.h: Likewise.
53882 * kern/powerpc/ieee1275/init.c: Likewise.
53883 * kern/powerpc/ieee1275/openfw.c: Likewise.
53884 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53885
53886 These files were written by Johan Rydberg
53887 (jrydberg@night.trouble.net) and I only modified them slightly.
53888
53889 * boot/powerpc/ieee1275/cmain.c: New file.
53890 * boot/powerpc/ieee1275/crt0.S: Likewise.
53891 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53892 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53893
53894 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53895
53896 * Makefile.in: Update copyright.
53897 * genmodsrc.sh: Likewise.
53898 * gensymlist.sh: Likewise.
53899 * term/i386/pc/vga.c: Indent correctly.
53900
53901 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53902 bugreporting address.
53903 * util/i386/pc/pupa-setup.c (usage): Likewise,
53904 (main): Call pupa_ext2_init and pupa_ext2_fini.
53905
53906 * fs/fat.c (log2): Renamed to ...
53907 (fat_log2): ... this.
53908 All callers changed.
53909 * kern/misc.c (memcpy): Alias to pupa_memmove.
53910 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53911 lvalue cast.
53912 * util/console.c (pupa_ncurses_fini): Return 0.
53913
53914 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53915 Move fail label here.
53916 [__GNU__]: Don't warn when using stat.
53917 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53918 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53919 long int. Use strtol instead of strtoul.
53920
53921 2004-03-14 Marco Gerards <metgerards@student.han.nl>
53922
53923 * commands/boot.c: New file.
53924 * commands/cat.c: Likewise.
53925 * commands/cmp.c: Likewise.
53926 * commands/ls.c: Likewise.
53927 * commands/terminal.c: Likewise.
53928 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53929 (pupa_register_command): Changed interface to match the new
53930 argument parser.
53931 (pupa_command_execute): Changed (almost rewritten) so it uses
53932 pupa_split_command. Added support for setting variables using the
53933 syntax `foo=bar'.
53934 (rescue_command): Changed to work with the new argument parser.
53935 (terminal_command): Moved from here to commands/terminal.c.
53936 (set_command): New function.
53937 (unset_command): New function.
53938 (insmod_command): New function.
53939 (rmmod_command): New function.
53940 (lsmod_command): New function.
53941 (pupa_command_init): Don't initialize the command terminal
53942 anymore. Initialize the commands set, unset, insmod, rmmod and
53943 lsmod.
53944 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53945 (kernel_img_HEADERS): Add arg.h and env.h.
53946 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53947 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53948 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53949 normal/arg.c.
53950 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53951 terminal.mod.
53952 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53953 (boot_mod_SOURCES): New variable.
53954 (terminal_mod_SOURCES): Likewise.
53955 (ls_mod_SOURCES): Likewise.
53956 (cmp_mod_SOURCES): Likewise.
53957 (cat_mod_SOURCES): Likewise.
53958
53959 * normal/arg.c: New file.
53960 * kern/env.c: Likewise.
53961 * include/pupa/arg.h: Likewise.
53962 * include/pupa/env.h: Likewise.
53963 * font/manager.c (font_command): Changed to match argument parsing
53964 interface changes.
53965 (PUPA_MOD_INIT): Likewise.
53966 * hello/hello.c (pupa_cmd_hello): Likewise.
53967 (PUPA_MOD_INIT): Likewise.
53968 * include/pupa/disk.h: Include <pupa/device.h>.
53969 (pupa_print_partinfo): New prototype.
53970 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53971 (pupa_dl_get_prefix): Likewise.
53972 * include/pupa/misc.h: Include <pupa/err.h>.
53973 (pupa_isgraph): New prototype.
53974 (pupa_isdigit): Likewise.
53975 (pupa_split_cmdline): Likewise.
53976 * include/pupa/normal.h: Include <pupa/arg.h>.
53977 (pupa_command): Changed the prototype of the member `func' to
53978 match the argument parsing interface. Added member `options'.
53979 (pupa_register_command): Updated to match function.
53980 (pupa_arg_parse): New prototype.
53981 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53982 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53983 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53984 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53985 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53986 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53987 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53988 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53989 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53990 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53991 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53992 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53993 * kern/disk.c: Include <pupa/file.h>.
53994 (pupa_print_partinfo): New function.
53995 * kern/dl.c: Include <pupa/env.h>.
53996 (pupa_dl_dir): Variable removed.
53997 (pupa_dl_load): Use the environment variable `prefix' instead of
53998 the variable pupa_dl_dir.
53999 (pupa_dl_set_prefix): Function removed.
54000 (pupa_dl_get_prefix): Likewise.
54001 * kern/i386/pc/init.c: Include <pupa/env.h>.
54002 (pupa_machine_init): Use the environment variable `prefix' instead of
54003 using pupa_dl_set_prefix to set the prefix.
54004 * kern/main.c: Include <pupa/env.h>.
54005 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54006 using pupa_dl_get_prefix to get the prefix.
54007 * kern/misc.c: Include <pupa/env.h>.
54008 (pupa_isdigit): New function.
54009 (pupa_isgraph): Likewise.
54010 (pupa_ftoa): Likewise.
54011 (pupa_vsprintf): Added support for printing values of the type
54012 `double'. Make it possible to format variable output when using
54013 formatting like `%1.2%f'.
54014 (pupa_split_cmdline): New function.
54015 * kern/rescue.c: Include <pupa/env.h>.
54016 (next_word): Removed function.
54017 (pupa_rescue_cmd_prefix): Likewise.
54018 (pupa_rescue_cmd_set): New function.
54019 (pupa_rescue_cmd_unset): New function.
54020 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54021 split the command line instead of splitting it here. Added
54022 support for setting variables using the syntax `foo=bar'. Don't
54023 initialize the prefix command anymore. Initialized the set and
54024 unset commands.
54025 * normal/cmdline.c: Include <pupa/env.h>.
54026 (pupa_tab_complete): Added prototypes for print_simple_completion,
54027 print_partition_completion, add_completion, iterate_commands,
54028 iterate_dev, iterate_part and iterate_dir. Moved code to print
54029 partition information from here to kern/disk.c.
54030 (pupa_cmdline_run): Don't check if the function exists anymore.
54031 * normal/main.c: Include <pupa/env.h>.
54032 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54033 instead of using pupa_dl_get_prefix to get the prefix.
54034 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54035 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54036 warning.
54037 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54038 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54039 ((unused))' to silence a gcc warning.
54040 (pupa_vga_setcolor): Likewise.
54041 (debug_command): Changed to match argument parsing
54042 interface changes.
54043 * util/pupa-emu.c: Include <pupa/env.h>.
54044 (options): Added 0's for unused fields to silence a gcc warning.
54045 (argp): Likewise.
54046 (main): Use the environment variable `prefix' instead of using
54047 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54048 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54049 and terminal.
54050
54051 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54052 * util/misc.c: Include <malloc.h>.
54053 (pupa_malloc): Rewritten so errors are correctly reported.
54054 (pupa_realloc): Likewise.
54055 (pupa_memalign): Likewise.
54056 (pupa_mm_init_region): Declare unused variables with
54057 `__attribute__ ((unused))' to silence a gcc warning.
54058 * normal/i386/setjmp.S: Remove tab at the end of the file to
54059 silence a gcc warning.
54060 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54061 variables with `__attribute__ ((unused))' to silence a gcc
54062 warning.
54063 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54064 local variable i unsigned to silence a gcc warning.
54065
54066 * kern/term.c: Include <pupa/misc.h>.
54067 (pupa_more_lines): New variable.
54068 (pupa_more): Likewise.
54069 (pupa_putcode): When the pager is active pause at the end of every
54070 screen.
54071 (pupa_set_more): New function.
54072 * include/pupa/term.h (pupa_set_more): New prototype.
54073
54074
54075 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54076
54077 Now this project is GRUB 2 rather than PUPA. The location of
54078 the CVS repository was moved to GRUB's.
54079
54080 * configure.ac: Use bug-grub as the reporting address.
54081 Use GRUB instead of PUPA.
54082 Change the version number to 1.90.
54083
54084 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54085
54086 * genkernsyms.sh: Updated copyright information.
54087 * genmk.rb: Likewise.
54088 * genmodsrc.sh: Likewise.
54089 * gensymlist.sh: Likewise.
54090 * boot/i386/pc/boot.S: Likewise.
54091 * boot/i386/pc/diskboot.S: Likewise.
54092 * disk/i386/pc/biosdisk.c: Likewise.
54093 * disk/i386/pc/partition.c: Likewise.
54094 * font/manager.c: Likewise.
54095 * fs/ext2.c: Likewise.
54096 * fs/fat.c: Likewise.
54097 * include/pupa/boot.h: Likewise.
54098 * include/pupa/device.h: Likewise.
54099 * include/pupa/disk.h: Likewise.
54100 * include/pupa/dl.h: Likewise.
54101 * include/pupa/elf.h: Likewise.
54102 * include/pupa/err.h: Likewise.
54103 * include/pupa/file.h: Likewise.
54104 * include/pupa/font.h: Likewise.
54105 * include/pupa/fs.h: Likewise.
54106 * include/pupa/kernel.h: Likewise.
54107 * include/pupa/loader.h: Likewise.
54108 * include/pupa/misc.h: Likewise.
54109 * include/pupa/mm.h: Likewise.
54110 * include/pupa/net.h: Likewise.
54111 * include/pupa/normal.h: Likewise.
54112 * include/pupa/rescue.h: Likewise.
54113 * include/pupa/setjmp.h: Likewise.
54114 * include/pupa/symbol.h: Likewise.
54115 * include/pupa/term.h: Likewise.
54116 * include/pupa/types.h: Likewise.
54117 * include/pupa/i386/setjmp.h: Likewise.
54118 * include/pupa/i386/types.h: Likewise.
54119 * include/pupa/i386/pc/biosdisk.h: Likewise.
54120 * include/pupa/i386/pc/boot.h: Likewise.
54121 * include/pupa/i386/pc/console.h: Likewise.
54122 * include/pupa/i386/pc/init.h: Likewise.
54123 * include/pupa/i386/pc/kernel.h: Likewise.
54124 * include/pupa/i386/pc/linux.h: Likewise.
54125 * include/pupa/i386/pc/loader.h: Likewise.
54126 * include/pupa/i386/pc/memory.h: Likewise.
54127 * include/pupa/i386/pc/multiboot.h: Likewise.
54128 * include/pupa/i386/pc/partition.h: Likewise.
54129 * include/pupa/i386/pc/time.h: Likewise.
54130 * include/pupa/i386/pc/vga.h: Likewise.
54131 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54132 * include/pupa/util/getroot.h: Likewise.
54133 * include/pupa/util/misc.h: Likewise.
54134 * include/pupa/util/resolve.h: Likewise.
54135 * kern/device.c: Likewise.
54136 * kern/disk.c: Likewise.
54137 * kern/dl.c: Likewise.
54138 * kern/err.c: Likewise.
54139 * kern/file.c: Likewise.
54140 * kern/fs.c: Likewise.
54141 * kern/loader.c: Likewise.
54142 * kern/main.c: Likewise.
54143 * kern/misc.c: Likewise.
54144 * kern/mm.c: Likewise.
54145 * kern/rescue.c: Likewise.
54146 * kern/term.c: Likewise.
54147 * kern/i386/dl.c: Likewise.
54148 * kern/i386/pc/init.c: Likewise.
54149 * kern/i386/pc/lzo1x.S: Likewise.
54150 * kern/i386/pc/startup.S: Likewise.
54151 * loader/i386/pc/chainloader.c: Likewise.
54152 * loader/i386/pc/linux.c: Likewise.
54153 * loader/i386/pc/multiboot.c: Likewise.
54154 * normal/cmdline.c: Likewise.
54155 * normal/command.c: Likewise.
54156 * normal/main.c: Likewise.
54157 * normal/menu.c: Likewise.
54158 * normal/i386/setjmp.S: Likewise.
54159 * term/i386/pc/console.c: Likewise.
54160 * term/i386/pc/vga.c: Likewise.
54161 * util/console.c: Likewise.
54162 * util/genmoddep.c: Likewise.
54163 * util/misc.c: Likewise.
54164 * util/pupa-emu.c: Likewise.
54165 * util/resolve.c: Likewise.
54166 * util/unifont2pff.rb: Likewise.
54167 * util/i386/pc/biosdisk.c: Likewise.
54168 * util/i386/pc/getroot.c: Likewise.
54169 * util/i386/pc/pupa-mkimage.c: Likewise.
54170 * util/i386/pc/pupa-setup.c: Likewise.
54171
54172 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54173
54174 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54175 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54176 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54177 reading and reset it after reading.
54178 (pupa_ext2_close): Return PUPA_ERR_NONE.
54179
54180 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54181 Correct value.
54182 (struct linux_kernel_header): Add kernel_version and
54183 initrd_addr_max.
54184 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54185 pupa_file_read succeeds.
54186 (pupa_rescue_cmd_initrd): Implement.
54187
54188 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54189
54190 * fs/ext2.c (pupa_ext2_label): New function.
54191 (pupa_ext2_fs): Added label.
54192 * fs/fat.c (pupa_fat_label): New function.
54193 (pupa_fat_fs): Added label.
54194 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54195
54196 * kern/misc.c (pupa_strndup): New function.
54197 * include/pupa/misc.h (pupa_strndup): New prototype.
54198
54199 * include/pupa/normal.h: Include <pupa/err.h>.
54200 (pupa_set_history): New prototype.
54201 (pupa_iterate_commands): New prototype.
54202 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54203 <pupa/disk.h>, <pupa/file.h>.
54204 (hist_size): New variable.
54205 (hist_lines): Likewise.
54206 (hist_end): Likewise.
54207 (hist_used): Likewise.
54208 (pupa_set_history): New function.
54209 (pupa_history_get): Likewise.
54210 (pupa_history_add): Likewise.
54211 (pupa_history_replace): Likewise.
54212 (pupa_tab_complete): Likewise.
54213 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54214 completion shows partitionnames while completing partitions, this
54215 feature was suggested by Jeff Bailey.
54216 * normal/command.c (pupa_iterate_commands): New function.
54217 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54218 (pupa_normal_init): Initialize history buffer.
54219 (PUPA_MOD_INIT): Likewise.
54220 (pupa_normal_fini): Free the history buffer.
54221 (PUPA_MOD_FINI): Likewise.
54222
54223 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54224 key.
54225
54226 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54227 * configure.ac [i386]: Check for regparam bug.
54228 (NESTED_FUNC_ATTR) [! i386]: Defined.
54229
54230 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54231
54232 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54233 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54234 (pupa_emu_SOURCES): New variable.
54235 (pupa_emu_LDFLAGS): Likewise.
54236 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54237 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54238 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54239 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54240 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54241 (pupa_jmp_buf): New typedef.
54242 (pupa_setjmp) [PUPA_UTIL]: New macro.
54243 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54244 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54245 (pupa_refresh): New prototype.
54246 * include/pupa/util/getroot.h: New file.
54247 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54248 it.
54249 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54250 (pupa_rescue_cmd_cat): Likewise.
54251 (pupa_rescue_cmd_ls): Likewise.
54252 (pupa_rescue_cmd_testload): Likewise.
54253 (pupa_rescue_cmd_lsmod): Likewise.
54254 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54255 * normal/menu.c (run_menu): Likewise.
54256 * kern/term.c (pupa_cls): Likewise.
54257 (pupa_refresh): New function.
54258 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54259 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54260 * util/console.c: New file.
54261
54262 * util/i386/pc/getroot.c: New file.
54263 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54264 (pupa_putchar): New function.
54265 (pupa_refresh): Likewise.
54266 (xgetcwd): Function moved to ...
54267 (strip_extra_slashes): Likewise.
54268 (get_prefix): Likewise.
54269 * util/i386/pc/getroot.c: ... here.
54270 (find_root_device): Function moved and renamed to...
54271 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54272 Changed all callers.
54273 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54274 and renamed to...
54275 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54276 Changed all callers.
54277 * util/misc.c (pupa_memalign): New function.
54278 (pupa_mm_init_region): Likewise.
54279 (pupa_register_exported_symbols): Likewise.
54280 (pupa_putchar): Function removed.
54281 * util/pupa-emu.c: New file.
54282
54283 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54284
54285 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54286 (_multiboot_mod_SOURCES): New variable.
54287 (_multiboot_mod_CFLAGS): Likewise.
54288 * loader/i386/pc/multiboot.c: New file.
54289 * include/pupa/i386/pc/multiboot.h: Likewise.
54290 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54291 (pupa_multiboot_real_boot): New function.
54292 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54293 (pupa_multiboot_real_boot): New prototype.
54294 (pupa_rescue_cmd_multiboot): Likewise
54295 (pupa_rescue_cmd_module): Likewise.
54296
54297 * kern/loader.c (pupa_loader_set): Continue when
54298 pupa_loader_unload_func() fails.
54299 (pupa_loader_unset): New function.
54300 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54301
54302 * kern/misc.c (pupa_stpcpy): New function.
54303 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54304
54305 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54306
54307 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54308 for available extensions.
54309
54310 * include/pupa/i386/pc/time.h: New file.
54311 * kern/disk.c: Include <pupa/machine/time.h>.
54312 (PUPA_CACHE_TIMEOUT): New macro.
54313 (pupa_last_time): New variable.
54314 (pupa_disk_open): Flush the cache when there was a timeout.
54315 (pupa_disk_close): Reset the timer.
54316 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54317 pupa_currticks.
54318 * util/misc.c: Include <sys/times.h>
54319 (pupa_get_rtc): New function.
54320
54321 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54322
54323 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54324 as blocks.
54325 (pupa_ext2_get_file_block): Use blocks member.
54326
54327 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54328 first block. Return -1 instead of pupa_errno on error.
54329
54330 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54331
54332 * README: In the pupa-mkimage example use _chain instead of chain
54333 and ext2 instead of fat.
54334 * TODO: Replace ext2fs with jfs as an example. Add an item for
54335 adding journal playback for ext2fs.
54336 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54337 (pkgdata_MODULES): Added ext2.mod.
54338 (ext2_mod_SOURCES): New variable.
54339 (ext2_mod_CFLAGS): Likewise.
54340 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54341 * include/pupa/misc.h (pupa_strncpy): New prototype.
54342 (pupa_strcat): Likewise.
54343 (pupa_strncmp): Likewise.
54344 * kern/misc.c (pupa_strcat): Enable function.
54345 (pupa_strncpy): New function.
54346 (pupa_strncmp): Likewise.
54347 * fs/ext2.c: New file.
54348
54349 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54350 when the read failed before retrying.
54351 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54352 (_FILE_OFFSET_BITS): Likewise.
54353 * configure.ac: Added AC_SYS_LARGEFILE.
54354
54355 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54356
54357 * genmk.rb (PModule#rule): Make sure to get only symbol names
54358 from the output of nm.
54359 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54360
54361 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54362
54363 I forgot to check in these changes for a long time. This adds
54364 incomplete support for VGA console, and this is still very
54365 buggy. Also, a lot of consideration is required for I18N,
54366 UNICODE, and VGA font issues. Therefore, assume that this is
54367 such that "better than nothing".
54368
54369 * font/manager.c: New file.
54370 * include/pupa/font.h: Likewise.
54371 * include/pupa/i386/pc/vga.h: Likewise.
54372 * term/i386/pc/vga.c: Likewise.
54373 * util/unifont2pff.rb: Likewise.
54374
54375 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54376 (pkgdata_MODULES): Added vga.mod and font.mod.
54377 (vga_mod_SOURCES): New variables.
54378 (vga_mod_CFLAGS): Likewise.
54379 (font_mod_SOURCES): Likewise.
54380 (font_mod_CFLAGS): Likewise.
54381
54382 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54383
54384 * include/pupa/term.h: Include pupa/err.h.
54385 (struct pupa_term): Added init and fini.
54386 Changed the argument of putchar to pupa_uint32_t.
54387
54388 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54389 (pupa_console_real_putchar): New prototype.
54390 (pupa_console_putchar): Removed.
54391 (pupa_console_checkkey): Exported.
54392 (pupa_console_getkey): Likewise.
54393
54394 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54395 characters.
54396
54397 * kern/term.c (pupa_term_set_current): Rewritten.
54398 (pupa_putchar): Likewise.
54399 (pupa_putcode): New function.
54400
54401 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54402 (pupa_console_real_putchar): ... this.
54403 (pupa_vga_set_mode): New function.
54404 (pupa_vga_get_font): Likewise.
54405
54406 * normal/command.c: Include pupa/term.h.
54407 (terminal_command): New function.
54408 (pupa_command_init): Register the command "terminal".
54409
54410 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54411 (DISP_UP): Likewise.
54412 (DISP_RIGHT): Likewise.
54413 (DISP_DOWN): Likewise.
54414 (DISP_HLINE): Likewise.
54415 (DISP_VLINE): Likewise.
54416 (DISP_UL): Likewise.
54417 (DISP_UR): Likewise.
54418 (DISP_LL): Likewise.
54419 (DISP_LR): Likewise.
54420
54421 * term/i386/pc/console.c (pupa_console_putchar): New function.
54422
54423 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54424
54425 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54426 FIX. Reverse the path_list.
54427
54428 * include/pupa/normal.h: Export pupa_register_command and
54429 pupa_unregister_command.
54430
54431 * hello/hello.c (pupa_cmd_hello): New module.
54432 * conf/i386-pc.rmk: Added hello.mod.
54433
54434 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54435
54436 * kern/i386/pc/lzo1x.S: New file.
54437
54438 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54439 (compress_kernel): New variable.
54440 (generate_image): Heavily modified to support compressing a
54441 large part of the core image.
54442
54443 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54444 leak.
54445 (pupa_util_load_image): New function.
54446
54447 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54448 (pupa_compressed_size): New variable.
54449 (codestart): Enable Gate A20 here.
54450 Decompress the compressed part of the core image.
54451 Rearrange the code to put functions and variables which are
54452 required for initialization in the non-compressed part.
54453 Include lzo1x.S.
54454
54455 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54456 here.
54457
54458 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54459
54460 * include/pupa/i386/pc/kernel.h
54461 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54462 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54463 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54464 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54465 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54466
54467 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54468
54469 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54470 (Utility#rule): Likewise.
54471
54472 * configure.ac: Check if LZO is available.
54473
54474 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54475
54476 * include/pupa/normal.h: New file.
54477 * include/pupa/setjmp.h: Likewise.
54478 * include/pupa/i386/setjmp.h: Likewise.
54479 * normal/cmdline.c: Likewise.
54480 * normal/command.c: Likewise.
54481 * normal/main.c: Likewise.
54482 * normal/menu.c: Likewise.
54483 * normal/i386/setjmp.S: Likewise.
54484
54485 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54486 (pupa_rescue_cmd_initrd): Likewise.
54487
54488 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54489 Likewise.
54490
54491 * kern/i386/pc/startup.S (translation_table): New variable.
54492 (translate_keycode): New function.
54493 (pupa_console_getkey): Call translate_keycode.
54494
54495 * kern/rescue.c (attempt_normal_mode): New function.
54496 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54497 it failed, print a message.
54498
54499 * kern/mm.c (pupa_real_malloc): Print more information when a
54500 free magic is broken.
54501 (pupa_free): If the first free header is not free actually, set
54502 it to P.
54503
54504 * kern/main.c (pupa_load_normal_mode): Just load the module
54505 "normal".
54506 (pupa_main): Don't print the message
54507 "Entering into rescue mode..." here.
54508
54509 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54510 Declared.
54511 (pupa_rescue_cmd_initrd): Likewise.
54512 (pupa_rescue_cmd_initrd): Likewise.
54513
54514 * include/pupa/symbol.h (FUNCTION): Specify the type.
54515 (VARIABLE): Likewise.
54516
54517 * include/pupa/err.h (pupa_err_t): Added
54518 PUPA_ERR_UNKNOWN_COMMAND.
54519
54520 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54521 (pupa_dl_get_prefix): Likewise.
54522
54523 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54524 Added _chain.mod and _linux.mod instead of chain.mod and
54525 linux.mod.
54526 (chain_mod_SOURCES): Renamed to ...
54527 (_chain_mod_SOURCES): ... this.
54528 (chain_mod_CFLAGS): Renamed to ...
54529 (_chain_mod_CFLAGS): ... this.
54530 (linux_mod_SOURCES): Renamed to ...
54531 (_linux_mod_SOURCES): ... this.
54532 (linux_mod_CFLAGS): Renamed to ...
54533 (_linux_mod_CFLAGS): ... this.
54534 (normal_mod_SOURCES): New variable.
54535 (normal_mod_CFLAGS): Likewise.
54536 (normal_mod_ASFLAGS): Likewise.
54537
54538 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54539
54540 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54541 possible.
54542
54543 * kern/dl.c (pupa_dl_ref): Refer depending modules
54544 recursively.
54545 (pupa_dl_unref): Unrefer depending modules recursively.
54546 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54547 a module is unloaded before one depending on that module is
54548 unloaded.
54549 (pupa_dl_unload): Unload depending modules explicitly,
54550 if possible.
54551
54552 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54553
54554 * include/pupa/i386/pc/linux.h: New file.
54555 * loader/i386/pc/linux.c: Likewise.
54556
54557 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54558 Removed.
54559 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54560 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54561 of PUPA_CHAINLOADER_BOOT_SECTOR.
54562
54563 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54564 (pupa_linux_prot_size): New variable.
54565 (pupa_linux_tmp_addr): Likewise.
54566 (pupa_linux_real_addr): Likewise.
54567 (pupa_linux_boot_zimage): New function.
54568 (pupa_linux_boot_bzimage): Likewise.
54569
54570 * kern/i386/pc/init.c (struct mem_region): New structure.
54571 (MAX_REGIONS): New macro.
54572 (mem_regions): New variable.
54573 (num_regions): Likewise.
54574 (pupa_os_area_addr): Likewise.
54575 (pupa_os_area_size): Likewise.
54576 (pupa_lower_mem): Likewise.
54577 (pupa_upper_mem): Likewise.
54578 (add_mem_region): New function.
54579 (compact_mem_regions): Likewise.
54580 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54581 the size of the conventional memory and that of so-called upper
54582 memory (before the first memory hole).
54583 Instead of adding each found region to free memory, use
54584 add_mem_region and add them after removing overlaps.
54585 Also, add only 1/4 of the upper memory to free memory. The rest
54586 is used for loading OS images. Maybe this is ad hoc, but this
54587 makes it much easier to relocate OS images when booting.
54588
54589 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54590 (pupa_enter_rescue_mode): Don't register initrd and module.
54591
54592 * kern/mm.c: Include pupa/dl.h.
54593
54594 * kern/main.c: Include pupa/file.h and pupa/device.h.
54595
54596 * kern/loader.c (pupa_loader_load_module_func): Removed.
54597 (pupa_loader_load_module): Likewise.
54598
54599 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54600 ``.o''.
54601
54602 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54603 (pupa_linux_tmp_addr): Likewise.
54604 (pupa_linux_real_addr): Likewise.
54605 (pupa_linux_boot_zimage): Likewise.
54606 (pupa_linux_boot_bzimage): Likewise.
54607
54608 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54609 (pupa_upper_mem): Likewise.
54610 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54611 module is too dangerous.
54612
54613 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54614 (pupa_os_area_size): Likewise.
54615 (pupa_loader_set): Remove the first argument. Loader doesn't
54616 manage modules or initrd any longer.
54617 (pupa_loader_load_module): Removed.
54618
54619 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54620 (linux_mod_SOURCES): New variable.
54621 (linux_mod_CFLAGS): Likewise.
54622
54623 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54624
54625 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54626 the length of a blocklist correctly.
54627
54628 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54629 Use ioctl only if the OS file is a block device.
54630 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54631 not very useful for normal files.
54632
54633 * kern/main.c (pupa_set_root_dev): New function.
54634 (pupa_load_normal_mode): Likewise.
54635 (pupa_main): Call those above.
54636
54637 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54638 pupa_uint16_t.
54639
54640 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54641
54642 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54643
54644 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54645 (setup): Configure the installed partition information and the
54646 dl prefix.
54647
54648 * loader/i386/pc/chainloader.c (my_mod): New variable.
54649 (pupa_chainloader_unload): New function.
54650 (pupa_rescue_cmd_chainloader): Refer itself.
54651 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54652
54653 * kern/i386/pc/startup.S (install_partition): Removed.
54654 (version_string): Likewise.
54655 (config_file): Likewise.
54656 (pupa_install_dos_part): New variable.
54657 (pupa_install_bsd_part): Likewise.
54658 (pupa_prefix): Likewise.
54659 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54660
54661 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54662 and pupa/misc.h.
54663 (make_install_device): New function.
54664 (pupa_machine_init): Set the dl prefix.
54665
54666 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54667 (buf): Renamed to ...
54668 (linebuf): ... this.
54669 (pupa_rescue_cmd_prefix): New function.
54670 (pupa_rescue_cmd_insmod): Likewise.
54671 (pupa_rescue_cmd_rmmod): Likewise.
54672 (pupa_rescue_cmd_lsmod): Likewise.
54673 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54674 rmmod and lsmod.
54675
54676 * kern/mm.c (pupa_memalign): If failed even after invalidating
54677 disk caches, unload unneeded modules and retry.
54678
54679 * kern/misc.c (pupa_memmove): New function.
54680 (pupa_memcpy): Removed.
54681 (pupa_strcpy): New function.
54682 (pupa_itoa): Made static.
54683
54684 * kern/dl.c (pupa_dl_iterate): New function.
54685 (pupa_dl_ref): Likewise.
54686 (pupa_dl_unref): Likewise.
54687 (pupa_dl_unload): Return if succeeded or not.
54688 (pupa_dl_unload_unneeded): New function.
54689 (pupa_dl_unload_all): Likewise.
54690 (pupa_dl_init): Renamed to ...
54691 (pupa_dl_set_prefix): ... this.
54692 (pupa_dl_get_prefix): New function.
54693
54694 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54695 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54696 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54697 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54698 (pupa_install_dos_part): Declared.
54699 (pupa_install_bsd_part): Likewise.
54700 (pupa_prefix): Likewise.
54701 (pupa_boot_drive): Likewise.
54702
54703 * include/pupa/types.h: Fix a typo.
54704
54705 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54706 pupa_memmove.
54707 (pupa_memmove): Declared.
54708 (pupa_strcpy): Likewise.
54709
54710 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54711 pupa_mod_init takes one argument, its own module.
54712 (pupa_dl_unload_unneeded): Declared.
54713 (pupa_dl_unload_all): Likewise.
54714 (pupa_dl_ref): Likewise.
54715 (pupa_dl_unref): Likewise.
54716 (pupa_dl_iterate): Likewise.
54717 (pupa_dl_init): Renamed to ...
54718 (pupa_dl_set_prefix): ... this.
54719 (pupa_dl_get_prefix): Declared.
54720
54721 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54722 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54723 unloaded.
54724 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54725 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54726
54727 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54728 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54729
54730 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54731
54732 * util/i386/pc/pupa-setup.c (setup): Define the internal
54733 function find_first_partition_start at the top level, because GCC
54734 3.0.x cannot compile internal functions in deeper scopes
54735 correctly.
54736 (find_root_device): Use lstat instead of stat.
54737 Don't follow symbolic links.
54738 Fix the path-constructing code.
54739
54740 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54741 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54742 by a BLKGETSIZE ioctl first, because block devices don't fill
54743 the member st_mode of the structure stat on Linux.
54744 [__linux__] (linux_find_partition): Use a temporary buffer
54745 REAL_DEV for the working space. Copy it to DEV before returning.
54746 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54747 buffer cache consistent.
54748 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54749 strncmp. The previous value was merely wrong.
54750 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54751
54752 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54753 FAT size is 12. The previous value was merely wrong.
54754
54755 * kern/main.c (pupa_main): Don't split the starting message from
54756 newlines.
54757
54758 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54759 LF, because BIOS goes crazy about character attributes in this
54760 case.
54761
54762 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54763
54764 * include/i386/pc/util/biosdisk.h: New file.
54765 * util/i386/pc/biosdisk.c: Likewise.
54766 * util/i386/pc/pupa-setup.c: Likewise.
54767
54768 * Makefile.in (INCLUDE_DISTFILES): Added
54769 include/pupa/i386/pc/util/biosdisk.h.
54770 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54771 directory util/i386/pc.
54772 (install-local): Added a rule for sbin_UTILITIES.
54773 (uninstall): Likewise.
54774
54775 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54776
54777 * util/misc.c (xrealloc): New function.
54778 (pupa_malloc): Likewise.
54779 (pupa_free): Likewise.
54780 (pupa_realloc): Likewise.
54781 (pupa_stop): Likewise.
54782 (pupa_putchar): Likewise.
54783
54784 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54785
54786 * include/pupa/util/misc.h (xrealloc): Declared.
54787
54788 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
54789 macro.
54790 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
54791 (PUPA_BOOT_MACHINE_BPB_END): ... this.
54792
54793 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
54794 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54795
54796 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
54797 way should be implemented.
54798 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54799
54800 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54801 the size of NAME for safety.
54802 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54803 0x88.
54804
54805 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54806 (pupa_setup_SOURCES): Likewise.
54807
54808 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54809
54810 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54811
54812 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54813 bunch of pushl's from pusha, because this destroys the return
54814 value.
54815
54816 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54817
54818 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54819 This means that any missing prototypes could be fatal. Also, you
54820 must take care when writing assembly code. See the comments at
54821 the beginning of startup.S, for more details.
54822
54823 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54824 compilation mechanism.
54825 (pupa_chainloader_real_boot): Likewise.
54826 (pupa_biosdisk_rw_int13_extensions): Likewise.
54827 (pupa_biosdisk_rw_standard): Likewise.
54828 (pupa_biosdisk_check_int13_extensions): Likewise.
54829 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54830 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54831 (pupa_get_memsize): Likewise.
54832 (pupa_get_mmap_entry): Likewise.
54833 (pupa_console_putchar): Likewise.
54834 (pupa_console_setcursor): Likewise.
54835 (pupa_getrtsecs): Use pushl instead of push.
54836
54837 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54838 memory instead of the stack for a mmap entry, because some
54839 BIOSes may ignore the maximum size and overflow.
54840
54841 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54842
54843 * genmk.rb (PModule#rule): Compile automatically generated
54844 sources with module-specific CFLAGS as well as other sources.
54845
54846 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54847
54848 * configure.ac: Check ld.
54849 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54850 respectively, before checking endianness and sizes.
54851
54852 * Makefile.in (LD): New variable.
54853
54854 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54855
54856 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54857
54858 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54859
54860 * Changelog: New file.
54861