]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Dump type and vendor specific data when printing device path.
[grub2.git] / ChangeLog
1 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Dump type and vendor specific data when printing device path.
4
5 2013-12-23 Colin Watson <cjwatson@debian.org>
6
7 Update some documentation to refer to Git rather than Bazaar.
8
9 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
10 than Bazaar.
11 * po/README: Likewise. Fix spelling mistake.
12
13 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
14
15 Don't distribute config.h.
16
17 * Makefile.am (platform_HEADERS): Move to ...
18 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
19 failure when building from a distributed tarball.
20
21 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
22
23 * configure.ac: Fix spelling.
24 * grub-core/commands/parttool.c: Fix grammar.
25 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
26 Embedding Partition".
27
28 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29
30 ARM64 support for grub-mkrescue.
31
32 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33
34 Install modinfo.sh to keep build information around.
35
36 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/modinfo.sh.in: Add build config information.
39
40 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
41
42 ARM64 grub-file and grub-mkconfig support.
43
44 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
45
46 Remove leftover options defines.
47
48 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
49
50 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
51
52 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/loader/arm64/linux.c: Add missing bracket.
55
56 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
57
58 Add arm64-efi recognition to grub-file.
59
60 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
61
62 Fix ia64-efi recognition in grub-file.
63
64 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
65
66 Recognize raspberry pi kernel in grub-file.
67
68 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
69
70 Enable cache on ARM U-Boot port.
71
72 Without it the port is reidiculously slow.
73
74 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
75
76 Fix ARM cache maintainance.
77
78 More code was converted from ASM to C for easier handling.
79
80 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
83 algorithm on v5.
84
85 Suggested by: Leif Lindholm.
86
87 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
88
89 * util/grub-mkconfig.in: Fix Xen platform conditions.
90
91 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
92
93 * util/grub-mkrescue.c: Split single help message string in several
94 strings used in previous shell version.
95
96 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
97
98 Add arm64 Linux loader.
99
100 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
101
102 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
103
104 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
105
106 Add module loading and parsing boot time checkpoints.
107
108 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
111 platforms.
112
113 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
114
115 * util/grub-mkconfig.in: Skip non-executable files.
116
117 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
118
119 Workaround buggy timer in raspberry pie by using our own timer
120 implementation.
121
122 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
123
124 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
125 Increase to 16 MiB to allow loading the whole memdisk.
126
127 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
128
129 Fix ARM Linux Loader on non-FDT platforms.
130
131 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
132
133 * configure.ac: Choose link format based on host_os on emu.
134
135 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
138
139 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
140
141 * grub-core/kern/emu/main.c: Build fix for emu.
142
143 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
144
145 Build fixes for argp.h with older gcc.
146
147 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
150 in strings.
151
152 Suggested by: David Prévot.
153
154 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
157
158 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
159
160 Enable -Wformat=2 if it's supported.
161
162 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
163
164 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
165 -Wmissing-declarations if supported.
166
167 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
170 u32 as both HFS and HFS+ have 32-bit inodes.
171
172 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
173
174 * include/grub/misc.h (grub_strtol): Fix overflow.
175
176 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
179 as return type in both conditionals.
180
181 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
182
183 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
184 to use uint8_t for color.
185
186 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * util/misc.c (grub_util_get_image_size): Check for overflow.
189
190 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
193 for size.
194
195 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
198 for pointer difference.
199
200 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * util/import_gcry.py: Skip sample keys.
203
204 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
207
208 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
209
210 * configure.ac: Remove duplicate warning arguments.
211
212 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
213
214 Add missing static qualifiers.
215
216 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
217
218 Add missing includes.
219
220 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
221
222 Inline printf templates when possible to enable format checking.
223
224 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * include/grub/crypto.h: Don't discard const attribute.
227
228 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
229
230 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
231 was intended.
232
233 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/lib/crypto.c: Don't discard const attribute.
236
237 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * grub-core/lib/disk.c: Fix potential overflow.
240
241 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * grub-core/lib/arg.c: Don't discard const attribute.
244
245 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * grub-core/kern/dl.c: Don't discard const attribute.
248
249 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/kern/disk.c: Fix potential overflow.
252
253 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * conf/Makefile.common: Don't include non-existing directory
256 grub-core/lib/libgcrypt-grub/include.
257
258 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
259
260 Clarify several translatable messages.
261
262 2013-12-21 David Prévot <david@tilapin.org>
263
264 Correct some translatable strings.
265
266 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
267
268 * util/grub-mkrescue.c: Rephrase mkrescue description.
269
270 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
271 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
272
273 Clarify several translatable messages.
274
275 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
276
277 Be more verbose about some configure failures.
278
279 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
280
281 Fix various build problems on GNU/Hurd.
282
283 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
284 !defined (__GNU__).
285 (xgetcwd): Likewise.
286 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
287 [__GNU__]: Add prototype.
288 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
289 long int using %ld rather than %d.
290
291 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * util/grub-install.c: Inform user about install platform.
294
295 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * configure.ac: Set version to 2.02~beta1.
298
299 2013-12-18 Allen Pais <allen.pais@oracle.com>
300 2013-12-18 Bob Picco <bob.picco@oracle.com>
301
302 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
303
304 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
305
306 Make grub_zlib_decompress handle incomplete chunks.
307
308 Fixes squash4.
309
310 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
313 on i386-multiboot.
314
315 2013-12-18 Aleš Nesrsta <starous@volny.cz>
316
317 * grub-core/disk/usbms.c: Retry on unknown errors.
318 Reuse the same tag on retries.
319
320 2013-12-18 Aleš Nesrsta <starous@volny.cz>
321
322 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
323
324 Avoid confusing them with already completed transfers.
325
326 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
327
328 Remove xen VFB.
329
330 Due to XEN bug it prevents Linux boot. Remove it at least, until
331 workaround is found.
332
333 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * po/exclude.pot: Add 2 missing excludes.
336
337 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
338
339 Add missing license section in macbless.mod and macho.mod.
340
341 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Allow compilation without thumb-interwork as long as no thumb is
344 involved or only thumb2 is used.
345
346 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
347
348 Use -Wl,--no-relax rather than -mno-relax for uniformity.
349
350 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * INSTALL: Update comment as to why sparc64 clang isn't usable.
353
354 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
355
356 Add __attribute__ ((sysv_abi)) only if it's really needed.
357
358 Some compilers don't support it.
359
360 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
363
364 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
365
366 Remove -Wold-style-definition.
367
368 Not very useful and interaction of it with regexp depends on GCC
369 version.
370
371 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
372
373 Make grub_util_get_windows_path_real static.
374
375 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/commands/fileXX.c: Silence cast-align.
378 * grub-core/loader/i386/xen_fileXX.c: Likewise.
379
380 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
383 rather than LL suffix.
384
385 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
388
389 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * grub-core/loader/arm/linux.c: Use common initrd functions.
392
393 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
394
395 Decrease number of strings to translate.
396
397 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
400
401 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
402
403 Mark strings for translation and add remaining ones to exclude list.
404
405 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * util/grub-file.c (main): Fix sizeof usage.
408
409 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
410
411 Silence spurious warning.
412
413 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
414
415 Remove check_nt_hiberfil as it's been superseeded by file command.
416
417 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
418
419 * docs/osdetect.cfg: Add isolinux config to detected OSes.
420
421 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Implement syslinux parser.
424
425 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
428
429 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
430
431 Support cpuid --pae.
432
433 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
434
435 Use AT keyboard on Yeeloong 3A.
436
437 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
438
439 Add Yeeloong 3A reboot and halt.
440
441 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
442
443 Add Radeon Yeeloong 3A support.
444
445 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
446
447 Add bonito 3A support.
448
449 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
452
453 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
456
457 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/loader/macho.c: Fix compilation on non-i386.
460
461 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Add missing format_arg attribute to check that printf with translated
464 messages has proper arguments.
465
466 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
467
468 Use grub_xasprintf to format translated error messages containing
469 64-bit quantity.
470
471 2013-12-17 Jon McCune <jonmccune@google.com>
472
473 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
474
475 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
476
477 Unify message for unsupported relocation.
478
479 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
480
481 Mark miscompile error for translation.
482
483 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
484
485 Use %I64 and not %ll when using OS printf if compiling for windows.
486
487 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
488
489 Update Mac code to match new register_efi prototype.
490
491 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
492
493 Implement better integration with Mac firmware.
494
495 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/loader/multiboot_mbi2.c: Implement special value for
498 load_addr.
499
500 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
501
502 Include serial module in default_payload.elf.
503
504 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
505
506 Add explicit thumb interwork bx in asm files.
507
508 Shouldn't matter for armv >= 5 but let's be safe.
509
510 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
511
512 Implement Truecrypt ISO loader.
513
514 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/lib/arg.c: Ensure at least a single space between commands.
517
518 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
519
520 Implement grub_file tool and use it to implement generating of config
521 in separate root.
522
523 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
524
525 Change to v1 xen grants.
526
527 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
528
529 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
530
531 GRUB relied on %ebx being preserved across hypercall which isn't true.
532
533 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
536
537 GRUB relied on %rdi being preserved across hypercall which isn't true.
538
539 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
540
541 Implement XEN VFB support.
542
543 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
544
545 Remove grub_bios_interrupt on coreboot.
546
547 It's not used currently and cannot be used safely currently.
548
549 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
550
551 Update exclude.pot and mark few strings for translation.
552
553 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
556
557 Reported by: Jon McCune
558
559 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
560
561 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
562 Add verbose information which firmware directories were tried.
563
564 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
565
566 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
567 function to optionally redirect all three standard descriptors.
568 Redefine grub_util_exec, grub_util_exec_redirect and
569 grub_util_exec_redirect_null to use it.
570 * include/grub/emu/exec.h: Define it.
571 * include/grub/osdep/exec_unix.h: Delete, it is unused.
572 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
573 Use grub_util_exec_redirect_all to redirect error to NULL.
574
575 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * grub-core/tests/sleep_test.c: Silence spurious warning.
578
579 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
580
581 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
582 linker trying to "fixup" the code.
583
584 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * grub-core/kern/x86_64/xen/startup.S: Align stack.
587
588 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
589
590 Add support for converting PE+ to Elf64.
591
592 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
595
596 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
597
598 Remove practice of assigning random const pointers to device id.
599
600 This is not required as cache code already checks driver id as well.
601
602 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
605 with mingw.
606
607 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
608
609 * include/grub/efi/api.h: Don't use call wrappers when compiled with
610 mingw or cygwin as API already matches.
611
612 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
615
616 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
617
618 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
619 not on long.
620
621 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
622
623 Handle X86_64_PC64 relocation.
624
625 Those are generated by some cygwin compilers.
626
627 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
628
629 Determine the need for mingw-related stubs at compile time rather than
630 using not very significant $target_os.
631
632 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
633
634 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
635 may not work with ELF.
636
637 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
638
639 Use unix functions for temporary files and special files on cygwin.
640
641 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
642
643 Define functions explicitly rather than using --defsym in tests
644 whenever possible. Respect locality in remaining cases.
645
646 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
649
650 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
651
652 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
653 unlikely errors when getting EFI variables and make exhaustive search
654 for all BootNNNN variables to find matching one.
655
656 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
657
658 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
659
660 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
661
662 New functional test for sleep function.
663
664 This test allows to check sleep without qemu. Keep qemu version as
665 well as functional test won't notice if all clocks are going too fast
666 or too slow.
667
668 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
669
670 Add explicit sysv_abi on amd64 asm routines.
671
672 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
675 num_table_entries.
676
677 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
678
679 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
680 functions.
681
682 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
685 appropriate.
686
687 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
690
691 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
692
693 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
694 appropriate.
695
696 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
699
700 In case of quick removal of loopback and adding another one it may
701 get same ID, confusing the cache system.
702
703 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
706 appropriate.
707
708 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
711 than converting to long.
712
713 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
716
717 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
720 than almost useless pointer.
721
722 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Add gcc_struct to all packed structures when compiling with mingw.
725
726 Just "packed" doesn't always pack the way we expect.
727
728 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
731
732 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
733
734 * util/grub-pe2elf.c: Fix handling of .bss.
735
736 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
737
738 Implement windows flavour of EFI install routines.
739
740 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
743
744 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Change grub_install_register_efi interface to pass GRUB device.
747
748 This allows grub_install_register_efi to request partition info
749 directly.
750
751 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
752
753 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
754
755 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
756
757 Do not use TCHAR string functions as they are not available on cygwin.
758
759 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
760
761 Workaround windows bug when querying EFI system partition parameters.
762
763 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
764
765 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
766 by using bitfields.
767
768 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
769
770 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
771
772 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
773
774 Make i386-* other than i386-pc compileable under cygwin.
775
776 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
777
778 Fix definition of grub_efi_hard_drive_device_path. Take care that
779 existing code would work even if by some reason bogus definition is
780 used by EFI implementations.
781
782 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
785
786 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
789 invocation.
790
791 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * util/config.c: Remove trailing newline from distributor in simple
794 parsing.
795
796 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * include/grub/efi/api.h: Rename protocol and interface to avoid
799 conflict.
800
801 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
804 entries.
805
806 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * grub-core/osdep/exec.c: Use unix version on cygwin.
809
810 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
811
812 Implement multiboot2 EFI BS specification.
813
814 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * grub-core/normal/charset.c: Fix premature line wrap and crash.
817 Crash happened only in some cases like a string starting at the
818 half of the screen of same length.
819
820 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
823 with EFI counterpart.
824
825 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
826
827 Propagate the EFI commits to x86-efi specific parts.
828
829 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/commands/efi/lssal.c: Fix terminating condition.
832
833 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
834
835 Introduce grub_efi_packed_guid and use it where alignment is not
836 guaranteed.
837
838 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * include/grub/efi/api.h (grub_efi_device_path): Define length as
841 unaligned u16 rather than u8[2].
842
843 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
844
845 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
846 for relocation range.
847
848 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
851 non-function pcrel21b relocation. It happens with .text.unlikely
852 section.
853
854 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
855
856 * make MAX_USABLE_ADDRESS platform-specific
857 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
858
859 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
860
861 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
862
863 2013-12-09 Jon McCune <jonmccune@google.com>
864
865 * Add --no-rs-codes flag to optionally disable reed-solomon codes
866 in grub-install and grub-bios-setup for x86 BIOS targets.
867
868 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
869
870 Add missing compile and link options for sparc64-emu.
871
872 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
873
874 Implement sparc64 trampolines (needed for sparc64-emu).
875
876 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
879 range of R_SPARC_HI22.
880 Implement R_SPARC_LM22.
881
882 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
885 Do not explicitly check for symbol table as it's already checked in
886 platform-independent layer.
887
888 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
891 on ia64 as __clear_cache is a dummy on ia64.
892
893 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
896 Do not explicitly check for symbol table as it's already checked in
897 platform-independent layer.
898
899 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
900
901 * util/grub-mkconfig.in: Add missing newline to output.
902
903 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
906 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
907
908 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
911 compilation with GCC <= 4.2.
912 * grub-core/kern/emu/argp_common.c: Likewise.
913
914 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
917 right platform rather than leaking to sparc64-emu.
918
919 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
922 But ensure that the variables in question are indeed unsigned.
923
924 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
927
928 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
929
930 Remove grub_memalign on emu.
931
932 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
935 truncate incomplete lines but instead flushes them.
936
937 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
938
939 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
940 and implement windows variant.
941
942 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Fix mips-emu compilation.
945
946 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * configure.ac: Check for freetype library usability.
949
950 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
951
952 Make arm-emu work.
953
954 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
957
958 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
959
960 * docs/grub.texi (Environment): Update color_normal and color_highlight
961 defaults (light-gray instead of white).
962
963 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
964
965 * grub-core/normal/main.c (INIT): Set default color to light-gray
966 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
967 and apparently BIOS defaults.
968
969 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Transform -C option to grub-mkstandalone to --core-compress available
972 in all grub-install flavours.
973
974 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
975
976 Merge GRUBFS and GRUB_FS variables.
977
978 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
979
980 Revert commit 69ca97c820, it caused failures when using OS device name
981 in grub-install. Instead just strip off parenthesis in grub-install
982 if (hdX) was passed.
983
984 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
985
986 * util/grub-install.c (push_partmap_module): Add helper to convert
987 partmap names to module names and use it in probe_mods(). Fixes
988 failure to find partmap modules in diskfilter case.
989
990 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * configure.ac: Make unifont mandatory on coreboot.
993
994 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * configure.ac: Skip unifont 6.3 pcf and bdf.
997
998 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * Makefile.am: Remove partial font files if generation failed.
1001
1002 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1003
1004 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1005 strings.
1006 * include/grub/util/misc.h: Define it ...
1007 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1008
1009 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1010
1011 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1012 ${grub_probe}.
1013
1014 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 Don't add -mlong-calls when compiling with clang.
1017
1018 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * configure.ac: Fix a typo.
1021
1022 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 Revamp relocation handling.
1025
1026 Move more code to common dl.c. Add missing veneers for arm and arm64.
1027 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1028
1029 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1032
1033 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1034
1035 * INSTALL: Raise minimum python version to 2.6.
1036 * gentpl.py: Use python3-style print function.
1037
1038 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * util/grub-install.c: Mention Boot* variable.
1041
1042 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1043
1044 * grub-core/osdep/linux/hostdisk.c
1045 (grub_util_find_partition_start_os): Initialise start to avoid
1046 spurious compiler warning.
1047
1048 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1049
1050 On Linux, read partition start offsets from sysfs if possible, to
1051 cope with block device drivers that don't implement HDIO_GETGEO.
1052 Fixes Ubuntu bug #1237519.
1053
1054 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1055 function.
1056 (sysfs_partition_start): Likewise.
1057 (grub_util_find_partition_start_os): Try sysfs_partition_start
1058 before HDIO_GETGEO.
1059
1060 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1061
1062 * grub-core/kern/fdt.c: Update struct size when adding node.
1063
1064 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 Handle unaligned .bss on sparc64.
1067
1068 Current code improperly assumes that both __bss_start and _end are
1069 aligned to 8-bytes. Eliminating this assumption and explicitly align
1070 modules.
1071
1072 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1075 so it doesn't land in the middle of loaded image.
1076
1077 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * configure.ac: Move all warning options that may be absent in
1080 gcc >= 3.1 to optional.
1081
1082 Note: while this allows to compile with older GCC, official requirements
1083 remain the same and no support for older GCC.
1084
1085 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1086
1087 Copying the themes directory in grub-shell isn't
1088 parallel-test-friendly and breaks on the second test when the source
1089 directory is read-only (as in "make distcheck"). Instead, add a
1090 hidden --themes-directory option to grub-mkrescue et al, and use it
1091 in grub-shell.
1092
1093 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1096 as it's no longer necessarry.
1097
1098 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 * configure.ac: Allow compilation with older GCC for ARM.
1101
1102 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1105 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1106 ppc.
1107
1108 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1111
1112 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 Pass font config to config.h and not by TARGET_CFLAGS as adding
1115 arguments doesn't work if TARGET_CFLAGS is specified on command
1116 line.
1117
1118 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * configure.ac: Add -Wvla if compiler supports it.
1121
1122 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1125 Remove variable length arrays.
1126 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1127
1128 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1131
1132 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 * include/grub/types.h: Declare all byteswaps as inline functions
1135 except compile-time ones.
1136
1137 Solves variable shadowing in constructions like
1138 cpu_to_le (le_to_cpu(x) + 1).
1139
1140 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1143
1144 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1147 minutes.
1148
1149 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1152 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1153
1154 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1155
1156 * grub-core/Makefile.core.def (setjmp): Distribute
1157 lib/arm64/setjmp.S.
1158
1159 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1160
1161 Add a new timeout_style environment variable and a corresponding
1162 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1163 controls hidden-timeout handling more simply than the previous
1164 arrangements, and pressing any hotkeys associated with menu entries
1165 during the hidden timeout will now boot the corresponding menu entry
1166 immediately.
1167
1168 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1169 generates a warning, and if it shows the menu it will do so as if
1170 the second timeout were not present. Other combinations are
1171 translated into reasonable equivalents.
1172
1173 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1174
1175 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * util/config.c: Add missing pointer adjustment.
1178 Reported by: qwertial
1179
1180 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1181
1182 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1183 directly, not via `cpu' link, to fix libgrub.pp generation.
1184
1185 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1186
1187 New port arm64-efi.
1188
1189 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1190
1191 * docs/grub.texi (sleep): Document exit codes.
1192
1193 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 Ensure that -mno-unaligned-access or some equivalent option is used.
1196
1197 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1200 -march=armv3.
1201
1202 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1205
1206 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1207
1208 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1209 builds, since we don't have an EPS version of font_char_metrics.png.
1210 Add leading dot to image extension per the Texinfo documentation.
1211
1212 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1213
1214 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1215 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1216 * util/grub-gen-widthspec.c: Likewise.
1217 * util/grub-mkfont.c: Likewise.
1218
1219 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1220
1221 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1222 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1223 failed to install on (hdX).
1224 * util/grub-setup.c (get_device_name): Remove, not needed after
1225 above change.
1226
1227 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1230
1231 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 * util/grub-fstest.c: Remove variable length arrays.
1234
1235 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1238
1239 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1242 computing crc32 rather than handling with md fundtions directly.
1243
1244 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1247 checking fwstart.img rather than md fundtions directly.
1248
1249 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * util/grub-mkrescue.c (main): Check that fread succeeded.
1252
1253 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * conf/Makefile.common: Remove -mexplicit-relocs and
1256 -DUSE_ASCII_FALLBACK on yeeloong.
1257
1258 -DUSE_ASCII_FALLBACK is already added by font snippets.
1259 -mexplicit-relocs isn't needed is compiler/assemblera are
1260 configured properly.
1261 If they're not we shouldn't attempt to fix it by ourselves.
1262 Binary compare between before and after shows no difference.
1263
1264 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1267 sources in dependencies directly.
1268
1269 This was the only instance of "library" in core config. A bug was
1270 reported that -fno-stack-protector wasn't passed to it. Instead of
1271 figuring out why it failed just remove this construction used
1272 needlessly.
1273
1274 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1277 fgets succeeded.
1278
1279 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1280
1281 * docs/grub.texi (ls): Fix command description in case of a device name
1282 passed as argument.
1283
1284 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 Eliminate variable length arrays in grub_vsnprintf_real.
1287
1288 A bit tricky because this function has to continue to work without
1289 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1290 but make all stack references use 32-bit offset rather than 8-bit one.
1291 So split va_args preparsing to separate function and put the prealloc
1292 into the caller.
1293
1294 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1297 Fixes build for windows.
1298
1299 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * gentpl.py: Don't generate platform-dependent conditionals for
1302 platform-independent targets.
1303
1304 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1305
1306 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1307 references to mdadm from otherwise generic code.
1308 (grub_util_exec_pipe): Likewise.
1309 (grub_util_exec_pipe_stderr): Likewise.
1310 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1311 This function calls vgs, not mdadm; adjust variable names
1312 accordingly.
1313
1314 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1315
1316 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1317 of Autogen. The Autogen definitions files remain intact as they
1318 offer a useful abstraction.
1319
1320 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1321
1322 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1323 into no-ops, and use it in programs that copy files but do not need
1324 to take special care to sync writes (grub-mknetdir, grub-rescue,
1325 grub-mkstandalone).
1326
1327 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1328
1329 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1330 than hardcoding /usr/local/bin/xorriso.
1331
1332 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 Add PCI command activation to all PCI drivers as required for coreboot
1335 and maybe some other firmwares.
1336
1337 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1340 and non-Apple variants of efiemu compile.
1341
1342 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1343
1344 * configure.ac: Add explicit check for linking format of
1345 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1346 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1347 hardcoding linking format.
1348
1349 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1352 and not pkgdatadir.
1353
1354 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1355 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 Add a --locale-directory option to grub-install and related tools.
1358
1359 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1360 --locale-directory option.
1361 (enum grub_install_options): Add
1362 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1363 * util/grub-install-common.c (grub_install_help_filter): Handle
1364 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1365 (grub_install_parse): Likewise.
1366 (get_localedir): New function to check for a user-provided option
1367 before trying grub_util_get_localedir.
1368 (copy_locales): Use get_localedir rather than
1369 grub_util_get_localedir. Handle differing locale directory layouts.
1370 (grub_install_copy_files): Likewise.
1371
1372 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1375 Don't rely on PATH_MAX.
1376
1377 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * grub-core/genmoddep.awk: Use more portable && rather than and.
1380
1381 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1384 an object after data. While it doesn't seem right solution, it
1385 works well enough and OSX isn't main compilation platform.
1386
1387 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1390 While it doesn't seem right solution, it works well enough and
1391 OSX isn't main compilation platform.
1392
1393 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * configure.ac: Add -static to LDFLAGS when using apple linker to
1396 prevent it from pulling in dynamic linker.
1397
1398 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 Apple assembly doesn't handle symbol arithmetic well. So define an
1401 offset symbol in boot.S and use it.
1402
1403 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 Apple assembly doesn't handle symbol arithmetic well. So instead
1406 of getting addres of kernel_sector + 4 define kernel_sector_high.
1407 It also makes code more readable.
1408
1409 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 With Apple assembly in .macro environvemnt you have to use $$ instead
1412 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
1413 to $$x on Apple and to $x on everything else.
1414
1415 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
1418 OBJCONV.
1419
1420 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
1423 and non-Apple. This instruction is shorter and faster,
1424 so no reason not to use it on both.
1425
1426 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
1429 .text when compiling for Apple.
1430
1431 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 * grub-core/term/arc/console.c: Add missing cast to silence warning.
1434
1435 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
1438 %dx restore the probe worked on non-existant drive. Reorganize the
1439 code a little bit to free 2 bytes necessary for push/pop.
1440
1441 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1444 Add missing cast to silence warning.
1445
1446 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
1447
1448 * util/grub-install.c (update_nvram): Support --no-nvram flag
1449 for EFI targets.
1450
1451 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
1454
1455 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * util/garbage-gen.c: Add missing include of sys/time.h.
1458
1459 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Don't add -mflush-func if it's not supported by compiler.
1462
1463 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 Move common BIOS/coreboot memory map declarations to
1466 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
1467
1468 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
1469
1470 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
1471
1472 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * INSTALL: Document why older clang versions aren't appropriate.
1475
1476 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * INSTALL: Document about clang for mips.
1479
1480 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
1483 clang.
1484
1485 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 Add *-xen to the list of grub-install-common platforms.
1488
1489 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
1492 3 last commits.
1493
1494 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
1497
1498 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
1501 with -mcmodel=large.
1502
1503 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
1506 range-checking for 32-bit quantities.
1507
1508 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * configure.ac: Compile with -fPIC when compiling with clang on
1511 mips.
1512
1513 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
1516 when compiling with clang.
1517
1518 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 clang emits calls to abort () under some unknown conditions.
1521 Export abort () when compiling with clang.
1522
1523 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * docs/grub-dev.texi: Document stack and heap sizes.
1526
1527 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * include/grub/i386/pc/memory.h: Decrease
1530 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
1531 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
1532 The binary doesn't change (checked). It's more to better reflect actual
1533 usage.
1534
1535 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
1538 at compile time that enough of scratch size is available.
1539
1540 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
1543 Previously we misaligned stack by 8 in startup.S and compensated
1544 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
1545 right behaviour is to align stack in startup.S and keep it aligned
1546 in callwrap.S. startup.S part was committed few commits before. This
1547 takes care of callwrap.S.
1548 Reported by: Gary Lin.
1549
1550 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
1553 .data and .bss. May happen if compiler and assembly use different
1554 alignment.
1555
1556 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 On MIPS handle got16 relocations to local symbols in an ABI-compliant
1559 way.
1560
1561 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 Add support for a new magic symbol _gp_disp on mips to handle PIC
1564 binaries.
1565
1566 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 Use $t9 for indirect calls from asm to C as PIC ABI requires.
1569
1570 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
1573 when rest of GRUB is compiled for hisher stepping. Instead use
1574 .set mips3/.set mips1 around cache and sync opcodes.
1575
1576 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
1579 do essentially the same thing, do it in similar way.
1580
1581 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1582
1583 * util/grub-mkrescue.c (main): If a source directory is not
1584 specified, read platform-specific files from subdirectories of
1585 pkglibdir, not pkgdatadir.
1586
1587 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
1588
1589 * grub-core/normal/progress.c: Remove unused file.
1590
1591 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
1594 array.
1595
1596 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
1599 than grub.cfg.
1600
1601 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * coreboot.cfg: Add missing file.
1604
1605 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * Makefile.am: Allow STRIP to be empty when creating windowszip.
1608
1609 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
1610
1611 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
1612 selectively skipping systems.
1613
1614 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1615
1616 * Makefile.util.def (grub-mkimage): Add
1617 grub-core/osdep/aros/config.c to extra_dist.
1618 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
1619 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
1620 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
1621 grub-core/gnulib-no-gets.diff.
1622
1623 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Add automated filesystem checking based on scripts I've used now for
1626 quite some time locally. Most of the test require root so they are
1627 skipped when run without necessarry privelegies.
1628
1629 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1630
1631 * util/grub-install.c (main): Adjust info messages to match
1632 installed paths of grub-bios-setup and grub-sparc64-setup.
1633
1634 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
1635
1636 * util/grub-install-common.c (copy_locales): Consistently use
1637 grub_util_get_localedir () rather than LOCALEDIR.
1638 (grub_install_copy_files): Likewise.
1639
1640 2013-11-19 Josh Triplett <josh@joshtriplett.org>
1641
1642 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
1643 16-byte boundary, as required by the x86-64 ABI, before calling
1644 grub_main. In some cases, GCC emits code that assumes this
1645 alignment, which crashes if not aligned. The EFI firmware is also
1646 entitled to assume that stack alignment without checking.
1647
1648 2013-11-18 Josh Triplett <josh@joshtriplett.org>
1649
1650 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
1651 4k page boundaries as expected by firmware rather than 1k
1652 boundaries.
1653 (grub_mmap_malign_and_register): Likewise.
1654
1655 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
1658 fragmentation 512M is enough.
1659
1660 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
1663 pointer to 32K. This is the size of cache element which is the most
1664 common allocation >1K. This way the pointer is always around blocks
1665 of 32K and so we keep performance while decreasing fragmentation.
1666
1667 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
1670 current memory when allocating large chunks. This significantly
1671 decreases memory fragmentation.
1672
1673 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1674
1675 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
1676 but for symmetry).
1677 * tests/lzocompress_test.in: Skip if lzop is not installed.
1678 * tests/xzcompress_test.in: Skip if xz is not installed.
1679
1680 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1681
1682 * util/grub-mkrescue.c (main): Fix typo.
1683
1684 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
1687 clock frequency to 200 MHz,
1688
1689 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * tests/util/grub-shell.in: Increase console size to 1024x1024.
1692
1693 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * Makefile.am (default_payload.elf): Add pata to loaded modules.
1696 Load config file from (cbfsdisk)/etc/grub.cfg.
1697
1698 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * util/grub-install-common.c (grub_install_copy_files): Fix module
1701 destination directory.
1702
1703 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1704
1705 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
1706 files have not been built.
1707
1708 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
1709
1710 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
1711 Handle errors from mkstemp.
1712 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
1713
1714 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
1717 on primary master on pseries.
1718
1719 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
1722 already loaded. This saves memory needed for tests,
1723
1724 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
1727 work again.
1728
1729 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
1732 work again.
1733
1734 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
1737 master since with some combinations of qemu and firmware only primary
1738 IDE channel is available.
1739
1740 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
1743 low-memory platforms where we don't have enough memory for them.
1744 * grub-core/tests/videotest_checksum.c: Likewise.
1745
1746 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
1749 already loaded. This saves memory needed for tests,
1750
1751 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Fix handling of install lists.
1754
1755 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
1758
1759 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 On i386-ieee1275 we run in paged mode. So we need to explicitly map
1762 the devices before accessing them.
1763
1764 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
1767 as file argument.
1768
1769 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
1772
1773 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1776 (grub_file_close): Free file->name.
1777
1778 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1781 (grub_load_public_key): Likewise.
1782 (grub_verify_signature_real): Likewise.
1783 (grub_cmd_verify_signature): Likewise.
1784
1785 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1788 memory leak.
1789
1790 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1793 (grub_longjmp): Restore r31.
1794 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1795
1796 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1799 modules to be in line with make_image_abs.
1800
1801 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1804
1805 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1806
1807 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
1808
1809 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1810
1811 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1814 to leave some memory to firmware.
1815
1816 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1819 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1820 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1821 Load gfxmenu.
1822
1823 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1826 now needs full arguments.
1827
1828 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * util/grub-mkrescue.c (main): Add trailing \n in
1831 .disk_label.contentDetails to be in line with previous shell script.
1832
1833 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1836
1837 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * util/grub-install-common.c (grub_install_parse): Recognize
1840 --compress=none like shell script did.
1841
1842 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 * include/grub/misc.h: Replace check for __sparc64__ with one for
1845 __sparc__ as __sparc64__ isn't actually defined.
1846
1847 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1850 counterpart of fixing the naming of escc ports.
1851
1852 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * util/grub-install-common.c (platforms): Fix the order of entries and
1855 remove useless field val.
1856
1857 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * util/grub-install.c: Add new option --no-bootsector to skip
1860 installing of bootsector. Accept --grub-setup=/bin/true as
1861 backwards-compatible synonym.
1862
1863 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1864
1865 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1866 order of qsort arguments (number of elements vs. element size).
1867
1868 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1871 the function of these files exceeds what can be sanely handled in shell
1872 in posix-comaptible way. Also writing it in C extends the functionality
1873 to non-UNIX-like OS and minimal environments.
1874
1875 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1878 compiling to thumb2.
1879 * grub-core/kern/arm/cache_armv7.S: Likewise.
1880 * grub-core/lib/arm/setjmp.S: Likewise.
1881
1882 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1883
1884 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1885 in grub_uboot_syscall
1886
1887 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 Decrease stack usage in lexer.
1890
1891 We have only 92K of stack and using over 4K per frame is wasteful
1892
1893 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1894 as macros so that compiler would remove useless structure on stack.
1895 Better solution would be to fix flex not to put this structure on
1896 the stack but flex is external program.
1897
1898 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 Decrease stack usage in signature verification.
1901
1902 We have only 92K of stack and using over 4K per frame is wasteful
1903
1904 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1905 rather than stack.
1906 (grub_verify_signature_real): Likewise.
1907
1908 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 Decrease stack usage in mdraid 0.9x.
1911
1912 We have only 92K of stack and using over 4K per frame is wasteful
1913
1914 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1915 rather than stack.
1916
1917 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 Decrease stack usage in BtrFS.
1920
1921 We have only 92K of stack and using over 4K per frame is wasteful
1922
1923 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1924 rather than stack.
1925
1926 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 Decrease stack usage in JFS.
1929
1930 We have only 92K of stack and using over 4K per frame is wasteful
1931
1932 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1933 stack. Note: this function is recursive.
1934 (grub_jfs_read_inode): Read only part we care about.
1935
1936 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1937
1938 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1939 handling
1940
1941 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1942
1943 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1944
1945 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1946
1947 * docs/grub.texi (Environment): Document cmdpath.
1948
1949 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1950
1951 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1952 Remove "unused" attribute from arguments, they are used.
1953
1954 2013-11-15 Colin Watson <cjwatson@debian.org>
1955
1956 * .gitignore: Only ignore grub-mk* at the top level.
1957
1958 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
1959
1960 * util/grub-reboot.in (usage): Fix a typo.
1961
1962 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 Replace libgcc version of ctz with our own.
1965
1966 On upcoming arm64 port libgcc ctz* are not usable in standalone
1967 environment. Since we need ctz* for this case and implementation is
1968 in C we may as well use it on all concerned platforms.
1969
1970 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * configure.ac: Probe for linking format rather than guessing it based
1973 on target_os.
1974
1975 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1978 "1" prior to handoff.
1979
1980 Reported by: M A Young.
1981
1982 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1985 \0 to all files.
1986
1987 Reported by: M A Young.
1988
1989 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1990
1991 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1992 compilation on NetBSD.
1993
1994 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * acinclude.m4: Don't add -P on initial nm test.
1997
1998 Note: even though this patch postdates Andrey's it bears 14 Nov as
1999 date due to timezone difference.
2000
2001 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2002
2003 * grub-core/Makefile.core.def (signature_test): Add missing
2004 tests/signatures.h.
2005
2006 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2007
2008 * util/grub-install_header: Set localedir here, since this file is
2009 where it's used.
2010 * util/grub-install.in: Remove setting of localedir.
2011 * util/grub-mkrescue.in: Likewise.
2012
2013 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2016
2017 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * configure.ac: Move nm checks to the end.
2020 Call grub_PROG_NM_WORKS.
2021 * acinclude.m4: New check grub_PROG_NM_WORKS.
2022 Use $TARGET_CFLAGS -c when compiling test binary.
2023
2024 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2025
2026 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2027 unused variables.
2028
2029 2013-11-14 Matthew Garrett <mjg@redhat.com>
2030
2031 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2032 cmdpath to firmware directory.
2033
2034 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2037 at the start of second iteration.
2038
2039 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2042
2043 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * Makefile.am (default_payload.elf): New target for easier coreboot
2046 build.
2047
2048 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2051 clang (not necessarry with -no-integrated-as).
2052 * include/grub/symbol.h [__arm__]: Likewise.
2053
2054 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * configure.ac: Use -no-integrated-as on arm with clang.
2057 * INSTALL: Mention ARM compilation with clang.
2058
2059 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2062 -mthumb-interwork.
2063
2064 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2065
2066 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2067 code for indirect block handling.
2068
2069 Saves 185 bytes on compressed image.
2070
2071 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2072
2073 Fix make clean.
2074
2075 * Makefile.am: Remove build-grub-* in make clean.
2076
2077 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2078
2079 New files to gitignore.
2080
2081 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2082 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2083
2084 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2085
2086 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2087
2088 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2089
2090 * .gitignore: fix rules for .dep* and add *.a post git migration
2091
2092 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2093
2094 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2095 to match INSTALL.
2096
2097 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2098
2099 * grub-core/kern/misc.c: Don't redirect divisions in the
2100 GRUB_UTIL case.
2101 * include/grub/misc.h: Likewise.
2102
2103 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2104
2105 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2106 systems that require checking the return value of write.
2107
2108 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2109
2110 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2111 efibootmgr quiet when --debug is not used, rather than when it is.
2112
2113 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2114
2115 * gentpl.py (define_macro_for_platform_dependencies): Remove
2116 first (and thus unused) of two definitions for this function.
2117 (platform_dependencies): Likewise.
2118
2119 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2120
2121 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2122 functions, we only need to check this for the target, not the host.
2123 * configure.ac (grub_apple_cc): Likewise.
2124
2125 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2128 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2129 asm to stay in arm even if surrounding is thumb.
2130
2131 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2134 helper functions are needed for thumb.
2135
2136 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2139 level / 3 division explicitly unsigned. Saves few bytes.
2140
2141 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2144
2145 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2148 division.
2149
2150 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2153 grub_uboot_boot_data to asm part.
2154
2155 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2158 literal load.
2159 (grub_uboot_syscall): Save/restore r9 and align stack.
2160
2161 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2164
2165 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2168 occurencies with END.
2169
2170 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2171
2172 * util/grub-editenv.c (help_filter, argp): Document how to delete
2173 the whole environment block.
2174 Reported by Dan Jacobson. Fixes Debian bug #726265.
2175
2176 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2177
2178 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2179 sectioning.
2180
2181 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2182
2183 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2184 increment/decrement.
2185
2186 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2189 compiling with clang.
2190
2191 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2194 ".".
2195
2196 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Redirect all divisions to grub_divmod64.
2199
2200 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2203
2204 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Add missing includes of loader.h.
2207
2208 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * configure.ac: Allow disabling themes.
2211
2212 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2213
2214 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2215
2216 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2219 until it becomes operational.
2220
2221 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/Makefile.core.def (legacy_password_test): Disable
2224 on platforms where no legacycfg is compiled.
2225 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2226 load legacy_password_test.
2227
2228 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2231
2232 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2235
2236 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2239 strict-aliasing warning.
2240 (fsync): Silence cast warning.
2241
2242 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/commands/verify.c: Remove variable length arrays.
2245 Load gcry_dsa/gcry_rsa automatically.
2246
2247 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * grub-core/tests/signature_test.c: New test.
2250
2251 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2254 API.
2255
2256 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2259 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2260
2261 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2264
2265 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * grub-core/fs/proc.c: Allow \0 in proc files.
2268
2269 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2272
2273 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2276
2277 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/fs/ext2.c: Remove variable length arrays.
2280
2281 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2284 length arrays.
2285
2286 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2289 * grub-core/disk/cryptodisk.c: Likewise.
2290 * grub-core/disk/geli.c: Likewise.
2291 * grub-core/disk/luks.c: Likewise.
2292
2293 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * grub-core/tests/legacy_password_test.c: New test.
2296 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2297
2298 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2301
2302 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 * grub-core/tests/pbkdf2_test.c: New test.
2305
2306 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2309
2310 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/io/lzopio.c: Remove variable length arrays.
2313
2314 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * include/grub/crypto.h: Add maximums on hash size and cipher block
2317 size.
2318
2319 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2322
2323 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * grub-core/tests/xnu_uuid_test.c: New test.
2326
2327 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2330 covers it).
2331
2332 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/commands/hashsum.c: Remove variable length arrays.
2335
2336 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2339 condition.
2340 * tests/grub_func_test.in: Increase memory allocation.
2341
2342 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2345 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2346 sys/mount.h.
2347
2348 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2351 (grub_util_get_fd_size_os): ...this.
2352 (grub_hostdisk_flush_initial_buffer): New empty function.
2353
2354 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2357 without --defined-only.
2358
2359 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2362 rip-relative addressing in prologue.
2363
2364 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2367 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2368
2369 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2372 Add missing semicolon.
2373
2374 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2377
2378 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * configure.ac: Check for lzma.h for enabling liblzma and allow
2381 manual disabling.
2382
2383 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 Add missing includes of loader.h.
2386
2387 2013-11-11 Fam Zheng <famcool@gmail.com>
2388
2389 * util/grub.d/30_os-prober.in: Add minix entry.
2390
2391 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2394 right buffer for temporary load.
2395
2396 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2399
2400 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2403 payload.
2404
2405 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2408 not Types.h.
2409 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
2410 environment.
2411 (LzmaDec_InitDicAndState): Make static.
2412
2413 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
2416
2417 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
2420
2421 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
2422
2423 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * docs/grub-dev.texi: Replace bzr references with git ones.
2426
2427 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2428
2429 * docs/grub.texi (Simple configuration): Remove reference to
2430 grub-reboot from saved default entry description - grub-default
2431 does not use it anymore.
2432
2433 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * configure.ac: Make efiemu test cflags match the cflags efiemu is
2436 compiled with.
2437
2438 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
2439
2440 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
2441
2442 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 Fix grub_machine_fini bitrot.
2445
2446 Reported by: Glenn Washburn.
2447
2448 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
2451
2452 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
2455 -DELF.
2456 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
2457 instead of ELF*.
2458
2459 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
2462 Add -march=core2 when testing compile of efiemu64.
2463
2464 Thanks Andrey Borzenkov for spotting this.
2465
2466 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
2469 XEN PV environment and load kernels.
2470
2471 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
2474 * grub-core/loader/multiboot_mbi2.c: Likewise.
2475
2476 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
2479 handling.
2480
2481 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
2484
2485 Tested by: Denis 'GNUtoo' Carikli.
2486
2487 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
2490
2491 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
2494 Use to get rounded angle rather than truncated.
2495
2496 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * grub-core/term/serial.c: Add option for enabling/disabling
2499 RTS/CTS flow control.
2500
2501 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
2504 divisions.
2505
2506 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
2509 Use grub_fatal rather than divide by zero.
2510 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
2511
2512 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
2515 truncate.
2516 (grub_fixed_fsf_divide): Likewise.
2517
2518 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
2521 division by-zero and senseless negative divisions.
2522
2523 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
2526 division by-zero and senseless negative divisions.
2527 (circprog_set_property): Don't accept negative num_ticks.
2528
2529 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
2532 division by-zero and senseless negative divisions.
2533
2534 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * configure.ac: Use elf_*_fbsd on kfreebsd.
2537
2538 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * grub-core/tests/div_test.c: New test.
2541
2542 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2543
2544 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
2545 * grub-core/gfxmenu/gui_canvas.c: Likewise.
2546 * grub-core/gfxmenu/view.c: Likewise.
2547 * grub-core/video/fb/video_fb.c: Introduce new functions:
2548 grub_video_set_area_status, grub_video_get_area_status,
2549 grub_video_set_region, grub_video_get_region.
2550 * grub-core/video/bochs.c: Likewise.
2551 * grub-core/video/capture.c: Likewise.
2552 * grub-core/video/video.c: Likewise.
2553 * grub-core/video/cirrus.c: Likewise.
2554 * grub-core/video/efi_gop.c: Likewise.
2555 * grub-core/video/efi_uga.c: Likewise.
2556 * grub-core/video/emu/sdl.c: Likewise.
2557 * grub-core/video/radeon_fuloong2e.c: Likewise.
2558 * grub-core/video/sis315pro.c: Likewise.
2559 * grub-core/video/sm712.c: Likewise.
2560 * grub-core/video/i386/pc/vbe.c: Likewise.
2561 * grub-core/video/i386/pc/vga.c: Likewise.
2562 * grub-core/video/ieee1275.c: Likewise.
2563 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
2564 * include/grub/video.h: Likewise.
2565 * include/grub/video_fb.h: Likewise.
2566 * include/grub/fbfill.h: Updated render_target structure.
2567 grub_video_rect_t viewport, region, area
2568 int area_offset_x, area_offset_y, area_enabled
2569 * include/grub/gui.h: New helper function
2570 grub_video_bounds_inside_region.
2571 * docs/grub-dev.texi: Added information about new functions.
2572
2573 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
2576 for alignment.
2577
2578 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
2581 missing attribute.
2582 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2583
2584 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
2587 simple division on arm and ia64.
2588
2589 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
2592 link with libgcc.
2593
2594 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
2597
2598 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2599
2600 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
2601 prefix symbol, not @.
2602
2603 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * INSTALL: Add note about older gcc and clang.
2606
2607 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
2610
2611 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
2614 NULL pointer dereference.
2615
2616 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
2619 clang.
2620
2621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
2624 warnings.
2625
2626 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
2629 function.
2630 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
2631 * grub-core/disk/geli.c (ascii2hex): Likewise.
2632
2633 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * configure.ac: Run linker tests without -Werror.
2636 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
2637 Change all occurences of -static-libgcc resp -lgcc to
2638 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
2639
2640 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
2643
2644 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 Allow compiling with clang (not really supported though).
2647
2648 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
2649 unconditionally.
2650 * configure.ac: Add -no-integrated-as when using clangfor asm files.
2651 Add -mrtd -mregparm=3 on i386 when not using clang.
2652 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
2653
2654 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
2657 bindings.
2658 * grub-core/lib/reed_solomon.c: Likewise.
2659 * include/grub/i386/gdb.h: Likewise.
2660 * include/grub/i386/pc/int.h: Likewise.
2661 * include/grub/i386/pc/pxe.h: Likewise.
2662 * include/grub/ieee1275/ieee1275.h: Likewise.
2663
2664 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Import libgcrypt 1.5.3.
2667
2668 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * configure.ac: Don't add -Wcast-align on x86.
2671
2672 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * configure.ac: Add -freg-struct-return on all platforms that
2675 support it.
2676
2677 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * acinclude.m4: Use -Werror on parameter tests.
2680 * configure.ac: Likewise.
2681
2682 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
2685
2686 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * configure.ac: Check that -malign-loops works rather than assuming that
2689 either -falign-loops or -malign-loops work.
2690
2691 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * configure.ac: Remove -fnested-functions. We don't need it anymore.
2694
2695 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2696
2697 * configure.ac: Prevent cflags leaking to subsequent tests by always
2698 resetting cflags to target_cflags in target tests.
2699
2700 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
2703 function.
2704
2705 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
2708
2709 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
2712
2713 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * grub-core/normal/cmdline.c (grub_cmdline_get):
2716 Remove nested functions.
2717
2718 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * tests/test_sha512sum.in: Make it work on emu.
2721
2722 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
2725 functions.
2726 (grub_bidi_line_logical_to_visual): Likewise.
2727
2728 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 Remove vestiges of -Wunsafe-loop-optimisations.
2731
2732 * conf/Makefile.common (CFLAGS_GNULIB): Remove
2733 -Wno-unsafe-loop-optimisations.
2734 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
2735 pragma.
2736 * grub-core/io/gzio.c: Likewise.
2737 * grub-core/script/parser.y: Likewise.
2738 * grub-core/script/yylex.l: Likewise.
2739 * util/grub-mkfont.c: Likewise.
2740
2741 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * util/grub-mkfont.c (process_cursive): Remove nested function.
2744
2745 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
2748 (grub_boot_time): Likewise.
2749
2750 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * include/grub/symbol.h (FUNCTION): Use @function rather than
2753 "function".
2754 (VARIABLE): Likewise.
2755
2756 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
2759
2760 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
2763 (parse_dhcp_vendor): Likewise.
2764
2765 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
2768
2769 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * grub-core/gettext/gettext.c (main_context), (secondary_context):
2772 Define after defining type and not before.
2773
2774 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2777 type.
2778 (grub_gcm_decrypt): Likewise.
2779 (algo_decrypt): Likewise.
2780 (grub_zfs_decrypt_real): Transform error type.
2781
2782 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2785
2786 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2789 (grub_usbms_cbi_reset): Likewise.
2790 (grub_usbms_bo_reset): Likewise.
2791 (grub_usbms_reset): Likewise.
2792 (grub_usbms_attach): Likewise.
2793 (grub_usbms_transfer_cbi): Likewise.
2794
2795 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2798 "checksum = checksum;".
2799
2800 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2803 entry_type.
2804
2805 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2808 BIOS disk check.
2809
2810 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2813 type.
2814 (grub_ehci_fini_hw): Likewise.
2815 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2816
2817 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2820 return grub_usb_err_t for cosistency. All users updated.
2821
2822 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2825 assigning to itself.
2826
2827 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
2828 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2829
2830 Issue separate DNS queries for ipv4 and ipv6
2831
2832 Adding multiple questions on a single DNS query is not supportted by
2833 most DNS servers. This patch issues two separate DNS queries
2834 sequentially for ipv4 and then for ipv6.
2835
2836 Fixes: https://savannah.gnu.org/bugs/?39710
2837
2838 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2839 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2840 * (grub_net_dns_lookup): Now using separated dns packages.
2841 * (grub_cmd_nslookup): Add error condition.
2842 * (grub_cmd_list_dns): Print DNS option.
2843 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2844 --prefer-ipv4, and --prefer-ipv6.
2845 * include/grub/net.h (grub_dns_option_t): New enum.
2846 * (grub_net_network_level_address): option added.
2847
2848 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2849
2850 * grub-core/video/fb/video_fb.c: Merge two blit functions
2851 into one.
2852
2853 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/term/terminfo.c: Add sequences for home and end.
2856
2857 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2860 graphics console.
2861
2862 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2865 add mode 0x12.
2866
2867 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2870 e-mail by Per Öberg.
2871
2872 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2875 name.
2876
2877 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2878
2879 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2880 emu platforms.
2881 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2882
2883 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * docs/grub.texi: Document usage of menuentry id.
2886
2887 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2890
2891 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2892
2893 * grub-core/commands/i386/nthibr.c: New command.
2894
2895 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2898
2899 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2902 coordinate.
2903
2904 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 Support GRUB_DISABLE_SUBMENU config.
2907
2908 Inspired by patch from Prarit Bhargava.
2909
2910 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * docs/grub.texi: Mention RSA support.
2913
2914 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * grub-core/commands/verify.c: Add RSA support.
2917
2918 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2921 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2922 device is known to be ATAPI.
2923
2924 2013-11-03 Mike Frysinger <vapier>
2925
2926 * configure.ac: Don't add target-prefix.
2927
2928 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2931 variables.
2932
2933 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2936 if language is English.
2937
2938 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2941
2942 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * configure.ac: Don't add -m32/-m64 on emu.
2945
2946 2013-11-02 neil
2947
2948 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2949 broken linux headers.
2950
2951 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2954
2955 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2958 Reed-Solomon recovery if more than half of redundancy info is 0.
2959
2960 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * util/grub-mount.c: Handle symlinks to directories.
2963
2964 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2967 find_file recursively for symlink.
2968
2969 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * tests/util/grub-shell.in: Copy themes.
2972
2973 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2976
2977 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * configure.ac: Use 0x8000 for address instead of 8000.
2980
2981 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2984 signature.
2985
2986 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2989 variable.
2990
2991 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2994
2995 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2998 file_progress_read_hook.
2999 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3000
3001 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3004 and double.
3005
3006 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3009
3010 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 Rewrite blocklist functions in order to get progress when
3013 reading large extents and decrease amount of blocklist hook calls.
3014
3015 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3018 of SI suffixes.
3019
3020 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 Support --base-clock for serial command to handle weird cards with
3023 non-standard base clock.
3024
3025 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3028 strncpy.
3029 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3030 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3031 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3032 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3033 + strcpy rather than strncpy.
3034
3035 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3038 (check_pool_label): Likewise. Fixes overflow.
3039 (nvlist_find_value): Fix comparison.
3040
3041 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3044 more appropriate functions.
3045
3046 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3049 realloc.
3050
3051 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3054
3055 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3058 on core size.
3059
3060 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3063
3064 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3067 (initialize_tables): reset tl and td to NULL after freeing.
3068
3069 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3072
3073 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3076 of supported tags.
3077
3078 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3081
3082 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3085 quirks.
3086
3087 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3090 a page in protected space.
3091
3092 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3095 allocate space for zero-sized modules.
3096
3097 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3100
3101 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3102
3103 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3104
3105 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3108 safeguards. Fixes a crash with i386/pc/console.c.
3109
3110 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3113 and grub_hostfs_init.
3114
3115 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3118 windows method on other platforms without good stat as well.
3119
3120 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3123
3124 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 Make / in btrfs refer to real root, not the default volume.
3127 Modify mkrelpath to work even if device is mounted with subvolid option.
3128
3129 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3130
3131 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3132 extra_dist.
3133 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3134 extra_dist.
3135
3136 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3139 fails.
3140
3141 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3142
3143 * docs/autoiso.cfg: New file.
3144
3145 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3148 COND_GRUB_PE2ELF conditions.
3149
3150 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3153 "vnd", "rd" and "fd" disks.
3154
3155 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 Move grub_disk_write out of kernel into disk.mod.
3158
3159 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3162 handling.
3163
3164 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/kern/misc.c (grub_abort): Make static
3167
3168 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3171 transform invalid unicode codepoints.
3172
3173 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3176 \0 checking.
3177
3178 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3181
3182 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 Consolidate cpuid code.
3185
3186 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 Move cpuid code to cpuid.h and TSC code to tsc.c.
3189
3190 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3191
3192 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3193
3194 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3195
3196 * util/grub-mkconfig.in: Replace $0 with $self.
3197 * util/grub-reboot.in: Likewise.
3198 * util/grub-set-default.in: Likewise.
3199
3200 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3201
3202 * docs/osdetect.cfg: New file.
3203
3204 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3205
3206 * tests/util/grub-shell.in: Add new --debug option.
3207
3208 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3209
3210 * tests/test_unset.in: New test.
3211
3212 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3213
3214 * tests/test_sha512sum.in: New test.
3215
3216 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3219 * include/grub/misc.h: Remove strncat.
3220 * grub-core/lib/posix_wrap/string.h: Likewise.
3221
3222 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3225 Try to handle more than 0xFFFF packets.
3226 Reported by: Bernhard Übelacker <bernhardu>.
3227 He also spotted few overflows in first version of this patch.
3228
3229 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * tests/date_unit_test.c: New test.
3232
3233 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3236 of first three years after start of validity of unixtime.
3237
3238 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3241 division as the one making more sense.
3242 (update_screen): Likewise.
3243 (complete): Likewise.
3244
3245 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3248
3249 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 Make char and string width grub_size_t rather than grub_ssize_t.
3252
3253 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3256 unsigned.
3257 (grub_history_replace): Likewise.
3258
3259 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3262 appropriate.
3263
3264 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3267 appropriate.
3268
3269 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3272 Use unsigned divisions rather than signed variants.
3273
3274 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3275
3276 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3277 unsigned arithmetics.
3278 Add missing break.
3279
3280 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3283
3284 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3287 rather than signed one.
3288 (recovery): Likewise.
3289
3290 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3293
3294 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3297 than signed.
3298
3299 2013-10-25 Jon McCune <jonmccune@google.com>
3300
3301 * docs/grub.texi: Cleanup security documentation around signatures.
3302
3303 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3306
3307 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3310 than int.
3311
3312 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3315 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3316 functions when compiling for kernel.
3317
3318 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3321 unsigned long long when using %llu.
3322
3323 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3326 terminal after updating progress.
3327
3328 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3331 argument. We don't disable Gate A20 in this code.
3332
3333 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3336 Conceptually based on change in branch "vbe-on-coreboot".
3337
3338 2013-10-24 Robert Millan <rmh@gnu.org>
3339
3340 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3341 numeric constants with their symbolic equivalent.
3342 Taken from branch "vbe-on-coreboot".
3343
3344 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3347
3348 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3351 divmod64 for offset division.
3352
3353 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3354
3355 Rename .bzrignore to .gitignore. Add "*.o" rule.
3356
3357 * .bzrignore: Renamed to...
3358 * .gitignore: ...this.
3359
3360 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3361
3362 Add new progress module that displays the load progress of files.
3363
3364 * grub-core/lib/progress.c: New file.
3365 * grub-core/Makefile.core.def (progress): New module.
3366 * grub-core/kern/file.c (grub_file_open): File name added.
3367 * (grub_file_read): Progress hook added.
3368 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3369 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3370 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3371 * include/grub/file.h (struct grub_file): Add progress module members.
3372 * include/grub/term.h (struct grub_term_output): Likewise.
3373 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3374 Terminal velocity added.
3375 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3376 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3377 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3378 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3379 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3380 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3381 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3382 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3383 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3384 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3385 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3386 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3387
3388 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 Verify signatures of signatures unless --skip-sig is specified.
3391
3392 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3395 \0 checking.
3396
3397 Saves 70 bytes on compressed image.
3398
3399 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3402 check.
3403
3404 Saves 10 bytes on compressed image.
3405
3406 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * grub-core/kern/misc.c (grub_isprint): Move to ...
3409 * include/grub/misc.h (grub_isprint): ... here. Make inline.
3410
3411 Saves 20 bytes on compressed image due to remving exporting.
3412
3413 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
3416
3417 Saves 5 bytes on compressed image.
3418
3419 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
3422 function get_utf8.
3423
3424 Saves 379 bytes on compressed image.
3425
3426 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
3429
3430 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
3433
3434 Saves 40 bytes on compressed image.
3435
3436 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
3439 mask rather than 64-bit type.
3440
3441 Saves 20 bytes on compressed image.
3442
3443 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
3446 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
3447
3448 Saves 273 bytes on compressed image.
3449
3450 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
3453 variable length arrays.
3454
3455 Saves 50 bytes on compressed image.
3456
3457 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3460
3461 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * grub-core/fs/ufs.c: Remove variable length arrays.
3464
3465 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
3468
3469 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 * grub-core/fs/zfs.c: Remove variable length arrays.
3472 Reduces zfs.mod by 160 bytes (208 compressed).
3473
3474 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
3477
3478 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 * grub-core/net/arp.c: Remove variable length arrays.
3481 * grub-core/net/bootp.c: Likewise.
3482 * grub-core/net/dns.c: Likewise.
3483 * grub-core/net/icmp6.c: Likewise.
3484 * grub-core/net/net.c: Likewise.
3485
3486 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/fs/ntfs.c: Remove variable length arrays.
3489 Increases ntfs.mod by 64 bytes (but decreases by 3 when
3490 compressed).
3491
3492 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/fs/hfs.c: Remove variable length arrays.
3495 Reduces hfs.mod by 8 bytes (52 compressed).
3496
3497 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/fs/udf.c: Remove variable length arrays.
3500 Increases udf.mod by 128 bytes (but decreases by 13 when
3501 compressed).
3502
3503 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * grub-core/fs/iso9660.c: Remove variable length arrays.
3506 Increases iso9660.mod by 200 bytes (but decreases by 79 when
3507 compressed).
3508
3509 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * grub-core/fs/nilfs2.c: Remove variable length arrays.
3512 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
3513 compressed).
3514
3515 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/fs/xfs.c: Remove variable length arrays.
3518 Reduces xfs.mod by 40 bytes (43 compressed).
3519
3520 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 * grub-core/fs/fshelp.c: Remove variable length arrays.
3523 Reduces fshelp.mod by 116 bytes (23 compressed).
3524
3525 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3526
3527 * grub-core/normal/completion.c: Remove variable length arrays.
3528 * grub-core/normal/menu_entry.c: Likewise.
3529
3530 Reduces normal.mod by 496 bytes.
3531
3532 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
3535 by 356 bytes (158 compressed).
3536
3537 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
3540 by 364 bytes (169 compressed).
3541
3542 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
3545 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
3546 * include/grub/types.h (grub_unaligned_uint64_t): New type.
3547
3548 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
3551 bitmasks to small structures of size chosen to fit in registers.
3552
3553 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * conf/Makefile.common: Use -freg-struct-return on i386. This
3556 decreases code size and improves performance.
3557
3558 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
3561
3562 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
3565 "(null)" string.
3566 Simplify expressions to save around 256 bytes in kernel.img.
3567 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
3568
3569 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
3572 Use GRUB_UTIL_FD_O_* rather than O_*.
3573
3574 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 Add haiku-specific functions.
3577
3578 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
3581
3582 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 Move stat () and device mode checking into OS-dependent files as
3585 long as performance doesn't suffer.
3586
3587 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 Split make_system_path_relative_to_its_root into separate file
3590 relpath.c from getroot.c as it's common between unix and haiku
3591 but otherwise haiku doesn't use any functions from unix getroot.c.
3592
3593 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
3596 New function.
3597 (grub_util_is_special_file): Likewise.
3598
3599 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
3602 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
3603
3604 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
3607 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
3608
3609 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
3612 (load_image): Likewise.
3613
3614 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * util/grub-render-label.c: Move backend part to ...
3617 * util/render-label.c: ... here.
3618
3619 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
3622 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
3623
3624 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
3627
3628 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
3631 CD-ROM in case when it's declared as having subpartitions.
3632
3633 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 Don't add -lm on haiku.
3636
3637 * configure.ac: Define BUILD_LIBM to -lm on most platforms
3638 and empty on haiku.
3639 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
3640 -lm.
3641
3642 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * configure.ac: Use -melf_*_haiku as target on haiku.
3645
3646 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * Makefile.util.def: Add util/setup.c to extra_dist.
3649
3650 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
3653 unknown types through.
3654
3655 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
3658 (grub_util_check_char_device): Likewise.
3659 * include/grub/emu/getroot.h: Likewise.
3660
3661 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
3664 memset rather than inline static function.
3665
3666 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
3669 not doing embedded decompressor.
3670
3671 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
3674 shadowing.
3675 * grub-core/kern/disk.c: Likewise.
3676 * grub-core/kern/misc.c: Likewise.
3677 * include/grub/parser.h: Likewise.
3678 * include/grub/script_sh.h: Likewise.
3679 * include/grub/zfs/zfs.h: Likewise.
3680
3681 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
3684
3685 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
3688 defined before trying to use it.
3689
3690 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
3693 warning.
3694
3695 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
3698 Use __unused__ rather than __used__ on gcc < 3.2.
3699
3700 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
3703 gcc < 4.0.
3704 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
3705
3706 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
3709
3710 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
3713 * include/grub/emu/misc.h: Likewise.
3714
3715 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
3718 cur_color.
3719
3720 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
3721
3722 * grub-core/tests/checksums.h: Regenerated due to progress bar
3723 get_minimal_size changes.
3724
3725 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
3726
3727 Added `tr' command support.
3728
3729 * grub-core/commands/tr.c: New file.
3730 * grub-core/Makefile.core.def: Build rules for new module.
3731
3732 * tests/grub_cmd_tr.in: New test.
3733 * Makefile.util.def: Build rules for new test.
3734
3735 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3736
3737 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
3738
3739 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3740
3741 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
3742 * docs/gurb.texi: Likewise.
3743
3744 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3745
3746 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
3747 Pixmap highlighted section with east and west slices was displayed
3748 incorrectly due to negative width of the central slice.
3749
3750 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
3751
3752 * docs/grub.texi: Graphical options information update.
3753 Removed outdated. Updated current. Inserted missed.
3754
3755 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * docs/grub.texi: Mention few new platform-specific commands.
3758
3759 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
3762 currently used so this doesn't really have any effect.
3763 Reported by: Douglas Ray <dougray>
3764
3765 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
3768 compilation but prevents gcc from displaying messages in non-Latin
3769 alphabets.
3770 * conf/Makefile.common: Likewise.
3771
3772 2013-10-16 Hiroyuki YAMAMORI
3773
3774 Handle Japanese special keys.
3775 Reported by: Hiroyuki YAMAMORI.
3776 Codes supplied by: Hiroyuki YAMAMORI.
3777
3778 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3779
3780 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3781
3782 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3783
3784 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3785 * docs/grub.texi: Likewise.
3786
3787 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3790 value in case of incomplete read.
3791 (grub_util_fd_write): Likewise.
3792
3793 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3796
3797 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * util/grub-editenv.c (create_envblk_file): More from here ...
3800 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3801
3802 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3805 canonicalize file name before doing the rest.
3806
3807 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3810 mingw32.
3811
3812 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 Define grub_util_is_directory/regular/special_file and
3815 use OS-dependent versions rather than to rely on stat().
3816
3817 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * util/grub-mkimage.c: Move backend part to ...
3820 * util/mkimage.c: ... here.
3821
3822 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 Allow compilation with mingw64 albeit with warnings due to lack of
3825 %llx/%llu.
3826
3827 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3828 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3829 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3830 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3831 on mingw64.
3832 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3833
3834 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 Remove leftover references to some of the system headers.
3837
3838 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3841 read.
3842
3843 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3846 of strerror.
3847
3848 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 Split out blocklist retrieving from setup.c to
3851 grub-core/osdep/blocklist.c and add windows implementation since
3852 generic version doesn't work on NTFS on Windows due to aggressive
3853 unflushable cache.
3854
3855 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3858 files.
3859
3860 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3863 Cut tailing newline. Remove arbitrary limitation. Always use
3864 grub_util_tchar_to_utf8.
3865
3866 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3869 * tests/printf_unit_test.c (printf_test): Add %% tests.
3870 Reported by: Paulo Flabiano Smorigo.
3871
3872 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3875 implement fsync.
3876
3877 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3880 use nvlist_lookup_string and don't use nvlist_print.
3881
3882 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3885 closedir to handle filename charset translation.
3886
3887 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * include/grub/emu/hostdisk.h: Move file operations to
3890 * include/grub/emu/hostfile.h: ... here.
3891
3892 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3895 unicode path.
3896
3897 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3900
3901 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3904 and remove export.h.
3905
3906 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * grub-core/kern/emu/error.c: Removed.
3909 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3910 explicitly as it's already in libgnu.a.
3911
3912 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3915 config-util.h include.
3916
3917 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 Split emunet into platform-dependent and GRUB-binding parts. Keep
3920 platform-dependent part in kernel for easy access to OS functions.
3921
3922 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3925 open/read/write.
3926
3927 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/osdep/windows/emuconsole.c: New file.
3930
3931 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3932
3933 * conf/Makefile.extra-dist: Add osdep/*/init.c
3934
3935 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3938
3939 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * util/grub-probe.c (probe): Separate different drives in hint-str
3942 by spaces and not newlines.
3943 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3944
3945 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3946
3947 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3948 Handle CD-ROMs.
3949
3950 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 Pass-through unknown E820 types. It required reorganisation of mmap
3953 module.
3954
3955 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3956
3957 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3958
3959 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3962 fseeko.
3963
3964 2013-10-14 qwertial <qwertial>
3965
3966 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3967
3968 2013-10-14 Jon McCune <jonmccune@google.com>
3969
3970 * docs/grub.texi: Document new signatures possibility.
3971
3972 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3975
3976 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3977
3978 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3979 missing prototype.
3980 (grub_util_tchar_to_utf8): Likewise.
3981
3982 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3983
3984 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3985 * grub-core/kern/emu/main.c: Add missing include.
3986 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3987 Don't call grub_util_init_nls.
3988 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3989 Likewise.
3990
3991 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3992
3993 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3994 stat.
3995
3996 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
3999
4000 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4003
4004 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 Add a wrapper for fopen. On unix-like systems just pass-through. On
4007 windows use unicode version.
4008
4009 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 Move set_program_name and init_nls to host_init. On windows
4012 fix in this fuction console and argument charset as well.
4013
4014 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4015
4016 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4017 GRUB_ENABLE_CRYPTODISK.
4018
4019 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4020 GRUB_ENABLE_CRYPTODISK.
4021 * util/grub-mkconfig_lib.in: Likewise.
4022
4023 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4024
4025 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4026
4027 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4028
4029 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4030 error when enabling debug.
4031
4032 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4033
4034 * configure.ac: Use -melf_*_obsd on openbsd.
4035
4036 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4039
4040 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * include/grub/misc.h: Use gnu_printf rather than printf as format
4043 template since our functions are independent of libc.
4044
4045 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * util/grub-setup.c (setup): Move copying of partition table as
4048 futher up as possible to avoid possible overwrite by floppy routines.
4049
4050 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4053
4054 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4055
4056 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4057 * docs/grub.texi: Likewise.
4058
4059 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4062 it's mostly unused. Move vestiges to the callers.
4063
4064 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4067 version of salt and hash. Use grub_snprintf rather than snprintf.
4068
4069 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * docs/grub.texi: Fix problem with braces.
4072
4073 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * conf/Makefile.extra-dist: Fix extra-dist list.
4076 * grub-core/Makefile.core.def: Likewise.
4077
4078 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * docs/grub.texi: Document disk names used on Windows and AROS.
4081
4082 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4085 with AROS devs.
4086 * grub-core/osdep/aros/hostdisk.c: Likewise.
4087
4088 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 Avoid including hostfile.h when not necessarry as it pulls
4091 in OS-specific headers which may redefine generic names
4092 like "far".
4093
4094 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4095
4096 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4097 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4098 scrollbar_bottom_pad
4099 * docs/grub.texi: Likewise.
4100
4101 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4102
4103 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4104
4105 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4106
4107 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4108
4109 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4112 Removed.
4113 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4114 Made static.
4115
4116 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4119 leftover.
4120
4121 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 Move OS-specific driver configuration to grub_util_fd_open. This
4124 moves OS-dependent parts from kern/emu/hostdisk.c to
4125 grub-core/osdep/*/hostdisk.c.
4126
4127 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * util/grub-mkimage.c (generate_image): Use size_t instead of
4130 grub_size_t.
4131 * util/grub-mkimagexx.c (locate_sections): Likewise.
4132 (load_image): Likewise.
4133
4134 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4137 size_t.
4138 (grub_util_write_image): Likewise.
4139
4140 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4143 get random when no RNG is available.
4144 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4145
4146 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * include/grub/util/lvm.h: Removed.
4149
4150 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4153 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4154
4155 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4158
4159 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4162
4163 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/net/drivers/emu/emunet.c: Move to ..
4166 * grub-core/osdep/linux/emunet.c: ..here.
4167
4168 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * util/ieee1275/ofpath.c: Move to ...
4171 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4172 * grub-core/osdep/basic/ofpath.c: ..here.
4173
4174 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 Move password-querying (util-version) routines to grub-core/osdep.
4177
4178 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 Move sleep routines to grub-core/osdep.
4181
4182 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 Move OS-dependent files to grub-core/osdep and document it.
4185
4186 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4189 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4190
4191 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4194
4195 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * util/misc.c: Remove leftover inclusion of malloc.h.
4198
4199 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * include/grub/setjmp.h: Remove leftover GRUBOF.
4202
4203 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4204
4205 * util/raid.c: Fold into ...
4206 * util/getroot_linux.c: ... here. Make all functions static.
4207
4208 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4211 macros to GRUB ones.
4212
4213 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4214
4215 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4216 occasional bug. If there are too many boot entries or too low
4217 scrollbar height then we need to use another formula to calculate
4218 the position and size of the scrollbar thumb.
4219
4220 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4223
4224 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4225
4226 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4227 * docs/grub.texi: Likewise.
4228
4229 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4230
4231 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4232 viewport.
4233
4234 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4235
4236 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4237 minimal width calculations.
4238
4239 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * docs/grub.texi: Update note on colors on emu console.
4242
4243 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4246 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4247 it's FS and not GRUB limitation.
4248
4249 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4252
4253 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4256
4257 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4258
4259 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4260 kernels by version order.
4261
4262 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4265
4266 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 Add AROS hostdisk and getroot routines.
4269
4270 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 Make cryptodisk and diskfilter probe data retrievable programmatically
4273 and not just printable.
4274
4275 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 Split random retrieving code into separate files.
4278
4279 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4282 R_ARM_V4BX.
4283
4284 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4285
4286 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4287 condition.
4288 * grub-core/tests/fake_input.c: Likewise.
4289 * grub-core/tests/cmdline_cat_test.c: Likewise.
4290
4291 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/video/capture.c: Do not do finalization when .fini
4294 is called as there is explicit capture_end.
4295
4296 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4299 changing windows to avoid crash.
4300
4301 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4304
4305 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * po/exclude.pot: Add several strings to exclude.
4308
4309 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4312
4313 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4316 ./util/grub-gen-asciih.c to exclude list.
4317
4318 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4321 and don't mark error strings for translation.
4322
4323 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4326 properly in case of missing block size.
4327
4328 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/lib/arm/setjmp.S: Add missing license section.
4331
4332 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * po/swiss.sed: Add replacement for key names and for term computer.
4335
4336 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4337
4338 * grub-core/gfxmenu/theme_loader.c: New global options for the
4339 theme background image handling. desktop-image-scale-method,
4340 desktop-image-h-align, desktop-image-v-align.
4341 * grub-core/gfxmenu/view.c: Likewise.
4342 * include/gfxmenu_view.h: Likewise.
4343 * include/bitmap_scale.h: Proportional scale functions introduced.
4344 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4345 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4346 cases of unexpected input variables for scale functions.
4347 * docs/grub.texi: Updated documentation for new options.
4348
4349 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4352
4353 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4354
4355 * grub-core/tests/checksums.h: Corrected due to changes in
4356 bilinear interpolation function.
4357
4358 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4359
4360 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4361 to eliminate artefacts in bilinear interpolation.
4362
4363 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/video/readers/tga.c: Support paletted tga.
4366
4367 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4370 incorrect cbcr setting when in color mode.
4371
4372 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/video/readers/png.c: Support paletted images and clean up
4375 greyscale support.
4376
4377 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4380 usage of wrong table which resulted in mishandling of 4-byte
4381 sequences.
4382
4383 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * grub-core/term/terminfo.c: Add Home and End key sequences.
4386
4387 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4390 Fix formula for computing total number of bytes.
4391
4392 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4395 image processing, fix big-endian and support grayscale.
4396
4397 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4400 Correctly will with maximum transparency when using index color.
4401
4402 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/video/readers/png.c: Support grayscale
4405
4406 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/video/readers/jpeg.c: Support grayscale.
4409
4410 2013-09-26 Jon McCune <jonmccune@google.com>
4411
4412 * grub-core/commands/loadenv.c: Support skipping signature check
4413 and variable names filtering.
4414
4415 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
4418 * grub-core/kern/emu/hostfs.c: Likewise.
4419 * util/getroot_unix.c: Likewise.
4420
4421 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
4424 Migrate all explicit defines to this new one.
4425
4426 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
4429 grub_util_fd_strerror when using grub_util_fd_*.
4430 (grub_util_fd_open_device): Likewise.
4431 (grub_util_biosdisk_read): Likewise.
4432 (grub_util_biosdisk_write): Likewise.
4433 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
4434 (grub_util_fd_strerror): Likewise.
4435 (grub_util_fd_sync): Likewise.
4436 (grub_util_fd_close): Likewise.
4437 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
4438 (grub_util_fd_close): Likewise.
4439 (grub_util_fd_strerror): Likewise.
4440 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
4441 function proto rather than macro.
4442 (grub_util_fd_sync): Likewise.
4443 (grub_util_fd_open): Likewise.
4444 (grub_util_fd_strerror): New proto.
4445
4446 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
4449 platforms on which it doesn't work.
4450
4451 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
4454 stat immediately to where it's used.
4455
4456 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * util/getroot.c (grub_util_check_block_device): Move to ...
4459 * util/getroot_unix.c (grub_util_check_block_device): ... here.
4460 * util/getroot.c (grub_util_check_char_device): Move to ...
4461 * util/getroot_unix.c (grub_util_check_char_device): ... here.
4462
4463 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
4466 disk closing logic.
4467
4468 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4469
4470 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
4471
4472 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
4473
4474 * docs/grub.texi (File name syntax): Document ZFS filenames
4475 (/volume@snapshot/...).
4476
4477 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
4480 Always return full path. Fixes a problem with mkrelpath.
4481
4482 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4483
4484 * util/grub-install.in: Add GPT PReP support.
4485 * util/grub-probe.c (probe): Support GPT partition type.
4486 (main): Support -t gpt_parttype.
4487
4488 2013-09-23 Aleš Nesrsta <starous@volny.cz>
4489
4490 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
4491
4492 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
4493
4494 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
4495
4496 2013-09-23 Tim Hardeck <thardeck>
4497
4498 * util/grub.d/10_hurd.in: Filter out character for the class.
4499 * util/grub.d/10_kfreebsd.in: Likewise.
4500 * util/grub.d/10_linux.in: Likewise.
4501 * util/grub.d/20_linux_xen.in: Likewise.
4502
4503 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
4504
4505 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
4506 "changed".
4507
4508 2013-09-23 Josh Triplett <josh@joshtriplett.org>
4509
4510 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
4511 boot partition.
4512
4513 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4514
4515 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
4516 doesn't use posix_wrap. Keep literal -fno-builtin however.
4517
4518 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4521
4522 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4523 2013-09-23 neil
4524
4525 * configure.ac: Do not enable -Wmissing-noreturn as its
4526 usefulness is limited and creates problems on some OS notably with
4527 code generated by bison.
4528
4529 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4530 2013-09-23 neil
4531
4532 * configure.ac: Do not explicitly enable -Waddress as it's not
4533 supported by all gcc and when it is, it's already enabled by -Wall.
4534
4535 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
4538 desactivated use of EDID at all.
4539
4540 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4541 2013-09-23 neil
4542
4543 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
4544 video if no text is available.
4545
4546 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4547 2013-09-23 neil
4548
4549 * configure.ac: Substitute TARGET_RANLIB.
4550
4551 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4552 2013-09-23 neil
4553
4554 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
4555
4556 Based on patches from AROS.
4557
4558 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4559 2013-09-23 neil
4560
4561 * grub-core/Makefile.am: Override STRIP and RANLIB.
4562 * configure.ac: compute TARGET_RANLIB.
4563 * INSTALL: Document TARGET_RANLIB
4564
4565 Based on patches from AROS.
4566
4567 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
4570 that floppies are unpartitioned.
4571
4572 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
4575 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
4576
4577 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
4580 less nice but more portable.
4581 * grub-core/lib/posix_wrap/wchar.h: Likewise.
4582
4583 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
4586 for cheat_fd.
4587 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
4588 functions.
4589 (grub_cryptodisk_cheat_insert): Likewise.
4590 (grub_cryptodisk_close): Likewise.
4591
4592 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
4595 Use windows path for DEFAULT_DIRECTORY.
4596
4597 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
4600 difference was likely just gcc version, not anything mingw-related.
4601
4602 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Use Winapi on both cygwin and mingw32 to share more code between both.
4605
4606 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4607
4608 * util/grub-install.in: Add --grub-editenv option.
4609 * util/grub-install_header (grub_compress_file): Explicitly check for
4610 plain file to avoid cp error.
4611
4612 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
4613
4614 * docs/grub.texi (Device syntax): Document new LVM UUID based device
4615 names; fix LVM driver name (lvm, not lv).
4616 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
4617 names.
4618
4619 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
4622 files rather than one file with loads of #if's.
4623 * util/getroot.c: Likewise.
4624
4625 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4626
4627 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
4628
4629 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
4632 GNU/Hurd to the list of checked PRNG.
4633
4634 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 * configure.ac: On FreeBSD use -melf_*_fbsd format.
4637
4638 2013-09-21 Ales Nesrsta <starous@volny.cz>
4639
4640 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
4641
4642 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
4645 * grub-core/disk/lvm.c: Add LVM UUIDs.
4646 * util/getroot.c: Use LVM UUIDs whenever possible.
4647
4648 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
4649
4650 * docs/grub.texi (Networking commands): Add documentation for
4651 network related commands.
4652
4653 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 * util/getroot.c (grub_util_open_dm): Check major rather than the name
4656 to determine if device is handled by devmapper.
4657 (convert_system_partition_to_system_disk): Likewise.
4658 (get_dm_uuid): Don't check explicitly if device is mapped, it's
4659 already done in grub_util_open_dm.
4660
4661 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
4662
4663 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
4664 Clean up stack manipulation (sync_caches_armv*)
4665
4666 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 * util/lvm.c: Remove since unused. Remove remaining references.
4669
4670 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 Handle the case of partitioned LVM properly.
4673
4674 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4675 Stop on meeting LVM, mpath or DMRAID.
4676 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
4677 (read_device_map): Likewise.
4678 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
4679 device is full disk rather than erroring out on LVM and similar cases.
4680
4681 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
4684
4685 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
4688 4K before the end.
4689 Reported by: Leif Lindholm
4690
4691 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
4692 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
4695 codes.
4696
4697 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
4698
4699 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
4700 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
4701
4702 2013-09-18 Douglas Ray <dougray@cpan.org>
4703
4704 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
4705 as secure.
4706
4707 2013-09-18 Aleš Nesrsta <starous@volny.cz>
4708
4709 * docs/grub.texi: Fix broken link.
4710
4711 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
4712
4713 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
4714 to break endless loop.
4715
4716 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * util/grub-fstest.c: Fix several printf formats.
4719 * util/grub-mkimage.c: Likewise.
4720 * util/grub-mkimagexx.c: Likewise.
4721 * util/grub-script-check.c: Likewise.
4722
4723 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
4726 error.
4727
4728 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
4731
4732 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
4735 removed in current versions cygwin_conv_*.
4736
4737 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * configure.ac: Disable efiemu runtime on cygwin.
4740
4741 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
4744 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
4745
4746 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
4749 error message.
4750
4751 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
4754 windows variant.
4755 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
4756 data.
4757
4758 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
4761 when on x86 and not cygwin.
4762 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
4763 -Wl,-melf_x86_64.
4764
4765 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * configure.ac: Set CPP to build one when checkoing for freetype for
4768 build.
4769
4770 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
4773 [!GRUB_BUILD]: Remove has_argument.
4774
4775 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4778 Replace with a dummy.
4779
4780 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * configure.ac: Don't change host_os from mingw to cygwin.
4783
4784 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * configure.ac: Change target_os from windows to cygwin.
4787
4788 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4791
4792 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4793 (build-grub-gen-asciih): Likewise.
4794 (build-grub-gen-widthspec): Likewise.
4795 * Makefile.util.def (grub-pe2elf): Remove.
4796 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4797 * configure.ac: Separate tests for build.
4798 Move ./build-grub-pe2elf to grub-core.
4799 Fix typo.
4800 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4801 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4802 defined.
4803 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4804 constants.
4805 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4806 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4807 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4808
4809 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4812 mingw32 as well based on grub_util_get_disk_size.
4813 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4814 grub_util_get_fd_size.
4815 (sync): Removed.
4816 (fsync): Moved to ...
4817 * grub-core/kern/emu/misc.c (fsync): ... here.
4818
4819 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * include/grub/mm.h (grub_extend_alloc): Remove.
4822 * grub-core/loader/i386/pc/plan9.c: Use own version of
4823 grub_extend_alloc with appropriate types.
4824
4825 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4828
4829 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4832
4833 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 Fix dependencies on cygwin.
4836
4837 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4838 dependencies when used and defined.
4839 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4840
4841 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4844 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4845
4846 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4849 implementation available to cause compile-time rather than runtime
4850 error.
4851
4852 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 * util/grub-fstest.c: Don't check for symlinks on windows.
4855
4856 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * INSTALL: Mention unavailability of man pages when cross-compiling.
4859
4860 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4863 and gcry_log_bug.
4864 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4865
4866 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * INSTALL: Document cross-compilation.
4869 * acinclude.m4: Determine whether nm support -P and --defined-only.
4870 * configure.ac: Add TARGET_ to all variables pertaining to target
4871 that don't have it yet.
4872 * gentpl.py: Likewise.
4873 * grub-core/Makefile.am: Likewise.
4874 * grub-core/genmod.sh.in: Likewise.
4875 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4876 as well.
4877
4878 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4879
4880 * configure.ac: Remove -Wempty-body. It's not essential and needs
4881 recent gcc.
4882
4883 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4884
4885 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4886 * util/getroot.c: Likewise.
4887
4888 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * grub-core/disk/ahci.c: Add needed explicit cast.
4891 * grub-core/lib/backtrace.c: Likewise.
4892 * grub-core/net/ip.c: Likewise.
4893 * grub-core/net/tcp.c: Likewise.
4894 * grub-core/net/udp.c: Likewise.
4895
4896 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4899
4900 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * util/import_gcry.py: Add final newline in visibility.h.
4903
4904 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * conf/Makefile.common: Fix typo.
4907
4908 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4911
4912 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * Makefile.am (widthspec.h): Fix typo.
4915 * util/grub-gen-widthspec.c: Likewise.
4916
4917 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 Move ascii.h and widthspec.h generation to a separate build-time-only
4920 tool.
4921
4922 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4923
4924 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4925 Always fill bootdisk info and improve check for NetBSD disklabel.
4926
4927 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * conf/Makefile.extra-dist: Add util/bin2h.c.
4930 Reported by: floppym.
4931
4932 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4935
4936 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * configure.ac: Disable unifont and starfield if no freetype was found.
4939
4940 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4943 on NetBSD and OpenBSD.
4944
4945 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4946
4947 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4948
4949 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4950
4951 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4952 reduced. Inheritant options are processed during the theme loading.
4953
4954 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
4955
4956 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4957
4958 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4959
4960 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4961
4962 2013-08-14 Avik Sil <aviksil@in.ibm.com>
4963
4964 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4965 using qemu.
4966
4967 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4968
4969 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4970 remove-potcdate.sed.
4971
4972 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4973
4974 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4975 unused attribute from pull argument.
4976
4977 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4978
4979 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4980 memory leak.
4981
4982 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4983
4984 * util/getroot.c (pull_lvm_by_command): add --separator option
4985 to vgs call to disable padding of output to 10 characters.
4986
4987 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4990 here ...
4991 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4992 here.
4993
4994 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4997 length.
4998
4999 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5002 full Canadian cross. Tested with build=x86_64, host=arm,
5003 target=ppc-ieee1275.
5004
5005 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * configure.ac: Error if no $BUILD_CC could be found.
5008 Reported by: DevHC.
5009
5010 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5013 i386-multiboot.
5014
5015 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5018 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5019
5020 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5021
5022 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5023 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5024 falling back to the partition device, otherwise a later call to this
5025 function may fail spuriously.
5026 Reported by Axel Beckert. Fixes Debian bug #708614.
5027
5028 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5029
5030 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5031
5032 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5033
5034 Prevent shadowing of stdlib's devname(3) on BSD.
5035
5036 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5037 and devlast to diskname and disklast, respectively.
5038
5039 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5040
5041 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5042
5043 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5044
5045 * docs/grub.texi: Introduce terminal window position options:
5046 terminal-left: terminal window's left position
5047 terminal-top: terminal window's top position
5048 terminal-width: terminal window's width
5049 terminal-height: terminal window's height
5050 terminal-border: terminal window's border width
5051 * grub-core/gfxmenu/theme-loader.c: Likewise.
5052 * include/grub/gfxmenu_view.h: Likewise.
5053 * po/exlude.pot: Likewise.
5054 * grub-core/gfxmenu/view.c: Likewise.
5055 Also updated minimal window size.
5056 Also terminal_sanity_check function has been introduced.
5057 * grub-core/tests/checksums.h: Update (terminal window height
5058 is adjusted now for low resolution screen)
5059
5060 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5061
5062 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5063 position).
5064
5065 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * po/exclude.pot: Add few recent exceptions.
5068
5069 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * tests/grub_func_test.in: Add unicode.pf2.
5072
5073 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5076 standard rather than noral color, in line with other terminals.
5077
5078 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5081 analysis.
5082
5083 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5086
5087 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5088
5089 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5090 inappropriate printf.
5091
5092 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5093
5094 * .bzrignore: Remove grub-core/lib/dtc-grub,
5095 grub-core/Makefile.libfdt.def
5096 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5097
5098 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * include/grub/video.h (grub_video_register): Keep double-linked as
5101 well as single-linked invariants.
5102 Reported by: qwertial.
5103
5104 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/commands/nativedisk.c (get_uuid): Handle
5107 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5108
5109 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5110
5111 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5112 maximum of NW, N, NE heights instead of N's height and maximum of
5113 NW, W, SW widths instead of W's width. (So the box will be always
5114 correctly drawn)
5115
5116 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5117
5118 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5119 Fix misuse of variable count.
5120
5121 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5122 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5123 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5124
5125 New ports to arm-uboot and arm-efi.
5126 Mostly by Leif Lindholm with some additions from
5127 Francesco Lavra and cleanup by Vladimir Serbinenko.
5128
5129 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5132 and not before.
5133 Reported by: Leon Drugi.
5134
5135 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5138 Reported by: Paulo Flabiano Smorigo.
5139
5140 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5141
5142 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5143
5144 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5145
5146 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5147
5148 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5151
5152 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5155
5156 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5157
5158 * grub-core/net/bootp.c: Export net_* variables.
5159 * grub-core/net/net.c: Likewise.
5160
5161 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5164
5165 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5168
5169 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5172
5173 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5176
5177 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5178
5179 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5180 <= 0.
5181
5182 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5183
5184 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5185 functions.
5186
5187 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5188
5189 * grub-core/fs/zfs/zfs_lz4.c: New file.
5190 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5191
5192 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5193
5194 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5195
5196 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5197
5198 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5199 (check_pool_label): Likewise.
5200 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5201
5202 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5203
5204 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5205
5206 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5207
5208 * docs/grub.texi (Commands): Document postition parameters
5209 for menuentry command.
5210
5211 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5212
5213 * util/grub-mknetdir.in: Remove stray line from help output.
5214
5215 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 Remove early sm712 init as there is no reason for it (the "watchdog"
5218 effect was due to wrong GPIO map).
5219
5220 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/commands/pcidump.c: Remove static variables.
5223
5224 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5227
5228 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * configure.ac: Move delimiter after the infos.
5231
5232 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5235
5236 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5239 not filling whole 8x16 space.
5240
5241 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5244
5245 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * configure.ac: Indicate which liblzma is used if any.
5248
5249 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5250 2013-06-21 Craig Sanders <savannah@taz.net.au>
5251
5252 * util/grub-reboot.in: Document submenu usage.
5253
5254 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5255
5256 * .bzrignore: Update with a number of new test-related files.
5257
5258 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5259
5260 * util/grub-script-check.c: Fail on scripts containing no
5261 commands, to guard against corrupted grub-mkconfig setups that
5262 produce no useful output.
5263 * tests/grub_script_no_commands.in: New test.
5264 * Makefile.util.def (grub_script_no_commands): Add.
5265 Reported by Hans Putter. Fixes Debian bug #713886.
5266
5267 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5268
5269 * grub-core/disk/diskfilter.c: Forgot to remove comment
5270 from previous commit.
5271
5272 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5273
5274 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5275 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5276
5277 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5278
5279 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5280
5281 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5282
5283 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5284 rescan diskfilter devices until nothing new is found.
5285
5286 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5287
5288 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5289
5290 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 Don't try to detect cbfs on *-emu.
5293
5294 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5297
5298 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 Add support for processed coreboot payload chainloading.
5301
5302 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 Enable coreboot information commands even when not loaded as
5305 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5306
5307 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 Support for cbfs. Also factor out the part which is common
5310 for all archives to a separate module. This splits tar from cpio
5311 as they are very different but keeps cpio, cpio_be, odc and newc
5312 together since they're very similar.
5313
5314 2013-06-15 David Michael <fedora.dm0@gmail.com>
5315
5316 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5317 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5318
5319 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * tests/grub_script_eval.in: Really add the eval test.
5322
5323 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 Move flavour-specific parts out of common cpio.c file and
5326 rename remaining to cpio_common.c
5327
5328 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5329
5330 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5331 off new function grub_script_execute_new_scope. Change callers to use
5332 either of them as appropriate.
5333 * grub-core/commands/eval.c: New command eval.
5334 * docs/grub.texi (Commands): Document it.
5335
5336 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5337
5338 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5339 to fetch values when listing.
5340
5341 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5342
5343 Fix make dist on non-pc.
5344
5345 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5346
5347 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5348 without a device name.
5349
5350 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 Remove enable_executable_check as it's not needed anymore.
5353 Reported by: dougray.
5354
5355 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5358 ambigouos RAID before discovering RAIDs on top of it.
5359 Reported by: bodom.
5360
5361 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 Fix typo (failback vs fallback).
5364
5365 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5366
5367 * util/grub.d/30_os-prober.in: Add support for probing EFI
5368 System Partition (as of os-prober 1.58).
5369
5370 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * configure.ac: Add yet another path to unifont. For parabola.
5373
5374 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5375
5376 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5377 handling to copy the killed characters to the kill buffer as
5378 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5379 stored as char. Eliminates UCS4 truncation and corruption
5380 observed when killing characters with Ctrl-u and yanking them
5381 back with Ctrl-y.
5382
5383 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 Detach optional parts of gfxterm and integrate in with coreboot init.
5386
5387 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 Move blit and fill dispatcher to appropriate files to decrease export
5390 and relocation overhead.
5391
5392 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5395 functions.
5396
5397 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * grub-core/Makefile.am: Fix compilation problem with some
5400 automake versions.
5401
5402 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5405
5406 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5409 automake versions.
5410
5411 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
5414 SSDT.
5415
5416 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
5417
5418 * grub-core/partmap/dfly.c: New partition map.
5419
5420 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
5423 checking.
5424 Reported by: Francesco Lavra.
5425
5426 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
5427
5428 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
5429 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
5430 false conditions.
5431 * conf/Makefile.common: define dist_grubconf_DATA
5432
5433 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 Progressively skip menu elements on small terminals rather
5436 than crashing.
5437
5438 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5439
5440 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5441 to avoid losing last column.
5442
5443 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * po/exclude.pot: Add missing string "%C".
5446
5447 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
5450 after the test.
5451
5452 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * util/grub-install.in: Gettextize "Not found" message.
5455
5456 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 Fix distfiles list.
5459 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5460
5461 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5462
5463 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
5464 present.
5465 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
5466
5467 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
5470
5471 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
5474 attribute since structure is not necessarily aligned.
5475
5476 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
5477
5478 * docs/grub.texi (Device syntax): Clarify description of network
5479 drives.
5480
5481 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
5484 for vasprintf presence.
5485
5486 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * util/grub-install.in: Handle efibootmgr presence check.
5489 Reported by: Leif Lindholm.
5490
5491 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
5494 new strings to translate.
5495
5496 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
5499 yet another string (pun intended) to translate.
5500
5501 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 * po/POTFILES-shell.in: Autogenerate it.
5504
5505 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
5508
5509 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
5512 misnomer.
5513
5514 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
5515
5516 * docs/grub.texi (Network): Add description of net_default_interface,
5517 net_default_ip and net_default_mac. Rewrite variables description
5518 to emphasize that they are per-interface.
5519
5520 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 New test: cmdline and cat.
5523
5524 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * grub-core/commands/cat.c: Show UTF-8 characters.
5527
5528 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * conf/Makefile.common: Poison float and double on non-emu.
5531
5532 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * configure.ac: Don't disable extended registers on emu.
5535
5536 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * configure.ac: Don't use extended registers on x86_64.
5539 Reported by: Peter Jones.
5540
5541 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * grub-core/term/efi/console.c: Fix compile error.
5544
5545 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 Compressed HFS+ support.
5548
5549 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
5552 pixel".
5553
5554 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 Menu color test.
5557
5558 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 * grub-core/tests/setjmp_test.c: New test.
5561
5562 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 New variables 'net_default_*' to determine MAC/IP of default interface.
5565
5566 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * tests/gettext_strings_test.in: A test to check for strings not
5569 marked for translation.
5570
5571 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * autogen.sh: Exclude unused libgcrypt files from translation.
5574
5575 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 Simplify few strings.
5578
5579 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 Mark few forgotten strings for translation.
5582
5583 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
5586 rather than printf.
5587
5588 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
5591 rather than printf.
5592 * grub-core/video/readers/tga.c: Likewise.
5593
5594 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 * tests/priority_queue_unit_test.cc: New test.
5597
5598 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5599
5600 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
5601 than printf.
5602
5603 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
5604
5605 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
5606 variable for one time boot menu entry.
5607
5608 2013-05-05 Bean <bean123ch@gmail.com>
5609
5610 * grub-core/commands/testspeed.c: New command testspeed.
5611
5612 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5613
5614 Factor-out human-size printing.
5615
5616 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 Agglomerate more mallocs to speed-up gfxterm.
5619
5620 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 Speed-up gfxterm by slightly agglomerating mallocs.
5623
5624 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 More video checks.
5627
5628 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 Speed-up gfxterm by saving intermediate results in index+alpha
5631 format.
5632
5633 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
5636 test.
5637
5638 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
5641 line of timeout as it may contain the rest of long line.
5642
5643 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * grub-core/normal/main.c: Fix freed memory dereference.
5646
5647 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Fix several memory leaks.
5650
5651 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
5654
5655 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
5658
5659 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 Fix test -a and -o precedence.
5662 Reported by: adrian15.
5663
5664 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
5667
5668 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
5669
5670 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
5671 and add it as source to functional_test module.
5672
5673 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
5676
5677 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 New series of tests for gfxterm and gfxmenu.
5680
5681 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
5684 the theme path relative to $prefix/themes.
5685
5686 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
5689 Fix order bug.
5690 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
5691
5692 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
5695 descriptor.
5696
5697 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
5700 grub_gfxmenu_timeout_notifications.
5701 (grub_gfxmenu_view_destroy): Likewise.
5702
5703 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
5706
5707 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5708
5709 Several fixes to ieee1275 and big-endian video.
5710
5711 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 Add missing exports on mips.
5714
5715 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
5718 if no unifont is found.
5719 Restore original keyboard.
5720
5721 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5724 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
5725
5726 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 First automated video test (running videotest and comparing results)
5729
5730 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
5733 instead of 2 to have full RGB/CMY test pattern.
5734
5735 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 Add few more tests.
5738
5739 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 * include/grub/arc/arc.h: Account for missing "other" peripheral on
5742 ARCS. All users updated.
5743
5744 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
5747
5748 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * grub-core/partmap/amiga.c: Fix size of checksummed block.
5751
5752 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
5755 Reported by: qwertial.
5756
5757 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5758
5759 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
5760 with syntax "XXX deg"/"XXX °".
5761
5762 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 Make PCI init in i386-qemu port more robust.
5765
5766 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
5767
5768 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
5769 cached view is reused.
5770 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
5771 open boot menus.
5772
5773 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Unify more code in grub-install_header.
5776
5777 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 Add few new tests.
5780
5781 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 Enforce disabling of firmware disk drivers when native drivers kick in.
5784
5785 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 * grub-core/commands/nativedisk.c: Customize the list of modules on
5788 platform. Don't try to search for disks already using native drivers.
5789
5790 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5793 platforms.
5794
5795 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5798 handling of variables containing backslash.
5799
5800 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5803 dereference.
5804 Reported by: qwertial.
5805
5806 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5809
5810 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5813 dereference.
5814 Reported by: qwertial.
5815
5816 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5819
5820 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5823
5824 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 New command `nativedisk'.
5827
5828 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5831 * grub-core/loader/i386/bsd.c: Likewise.
5832
5833 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5836
5837 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5840 grub_get_unaligned16 rather than shifts.
5841
5842 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/kern/file.c: Use const char * rather than casting to
5845 non-const.
5846
5847 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * grub-core/commands/probe.c: Add missing grub_device_close.
5850
5851 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * INSTALL: Document linguas.sh.
5854
5855 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 Remove POTFILES.in and regenerate it in autogen.sh.
5858
5859 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 Move --directory/--override-directorry to grub-install_header and unify.
5862
5863 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/term/morse.c: Macroify dih and dah.
5866
5867 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5868
5869 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5870
5871 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * grub-core/term/ns8250.c: Systematically probe ports by writing
5874 to SR before using them.
5875
5876 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5877
5878 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5879 disks.
5880 (check_sas): Get sas_adress info.
5881
5882 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5885 ports.
5886
5887 2013-04-27 Leon Drugi <eyak>
5888
5889 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5890 BSS clearing.
5891
5892 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 Core compression test.
5895
5896 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 Implement grub_machine_get_bootlocation for ARC.
5899
5900 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5901
5902 Improve AHCI detection and command issuing.
5903
5904 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5905
5906 Fix pseries test.
5907
5908 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 Make 'make check' work on emu.
5911
5912 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 Replace libcurses with our own vt100 handling for the ease of testing
5915 and decreasing prerequisites.
5916
5917 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5920
5921 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5924 compile when not needed.
5925
5926 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * tests/pseries_test.in: New test.
5929
5930 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 Add test to check that different boot mediums work.
5933
5934 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5937 ofw limited ISO support.
5938
5939 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * configure.ac: Fix loongson conditional.
5942
5943 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 Enable mipsel-arc.
5946
5947 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5948
5949 Add serial on ARC platform.
5950
5951 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5954 commit.
5955
5956 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 * tests/partmap_test.in: Add missing double semicolon.
5959
5960 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * util/grub-mkrescue.in: Fix loongson filename.
5963
5964 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * util/grub-mkrescue.in: Move all files that don't have a location
5967 set in stone under /boot/grub. Use ISO hard links rather than copies
5968 to save some space.
5969
5970 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5973 bogus SLOF values.
5974
5975 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 Make check work on mips-arc.
5978
5979 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * util/grub-mkrescue.in: Alias sashARCS as sash.
5982
5983 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5986 it's serial.
5987
5988 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5989
5990 * util/grub-install.in: Fix target fo qemu_mips.
5991 Fix extension on EFI.
5992
5993 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5994
5995 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5996 in front of chosen entry to mark it even if highlighting is lost.
5997
5998 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6001 gfxpayload=keep if cbfb is active.
6002
6003 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6006
6007 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 Add missing video ids to coreboot and ieee1275 video.
6010
6011 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * util/grub-mkrescue.in: Add mips-arc support.
6014
6015 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6018
6019 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 Move mips-arc link address. Previous link address was chosen
6022 in belief that RAM on SGI platforms grows down while in fact it
6023 grows up from an unusual base.
6024
6025 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6028 Fix a type which prevented CD-ROM and floppy boot.
6029
6030 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 Support coreboot framebuffer.
6033
6034 * grub-core/video/i386/coreboot/cbfb.c: New file.
6035
6036 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6039 detecting too small regions.
6040
6041 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6044
6045 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6048 Remove dprintf.
6049 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6050
6051 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6054 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6055 * grub-core/loader/powerpc/ieee1275/linux.c
6056 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6057
6058 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6061 Look for /boot-rom as well as /rom/boot-rom.
6062
6063 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6066 handling when creating text_layer failed.
6067 * grub-core/video/video.c (grub_video_create_render_target):
6068 Set result to 0 on error.
6069 (grub_video_delete_render_target): Do not dereference NULL.
6070
6071 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6074 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6075 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6076 (grub_linux_load64): Mask out 2 high bits.
6077
6078 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6079
6080 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6081 more place.
6082
6083 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 Add support for pseries and other bootinfo machines to grub-mkrescue.
6086
6087 Tested by: Paulo Flabiano Smorigo.
6088
6089 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * util/grub-mkrescue.in: Add GPT for EFI boot.
6092
6093 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6096 It improves performance in qemu.
6097
6098 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * build-aux/snippet: Add missing gnulib files.
6101
6102 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6103
6104 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6105
6106 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6107
6108 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6109
6110 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6111 2013-04-15 Peter Jones <pjones@redhat.com>
6112
6113 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6114 sectors.
6115 Based on patch by Peter Jones.
6116
6117 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 Fix DMRAID partition handling.
6120
6121 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * tests/grub_cmd_date.in: Skip on sparc64.
6124
6125 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6128 firmware error messages.
6129
6130 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6133 source and destination differ.
6134
6135 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6138 detection.
6139
6140 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6143 match config-util.h to avoid warnings and increase compatibility.
6144
6145 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6146 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Add option to compress files on install/image creation.
6149
6150 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * docs/grub-dev.texi: Rearrange menu to match the section order.
6153 Reported by: Bryan Hundven.
6154
6155 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6158
6159 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 Move GRUB out of system area when using xorriso 1.2.9 or later.
6162
6163 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * tests/grub_cmd_date.in: Add missing exit 1.
6166
6167 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * tests/partmap_test.in: Skip on sparc64.
6170
6171 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 Support grub-shell on sparc64.
6174
6175 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 Support mkrescue on sparc64.
6178
6179 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6180
6181 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6182 Needed on OpenBIOS due to incomplete device tree.
6183
6184 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6187 would be otherwise excluded.
6188
6189 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6192 Inline name defines used only once.
6193
6194 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 Fix memory leaks in ofnet.
6197 Reported by: Francesco Lavra.
6198
6199 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * docs/man/grub-glue-efi.h2m: Add missing file.
6202
6203 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6206
6207 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 Better support Apple Intel Macs on CD.
6210
6211 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 Replace stpcpy with grub_stpcpy in tools.
6214
6215 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 Handle Japanese special keys.
6218 Reported by: Hiroyuki YAMAMORI.
6219 Codes supplied by: Hiroyuki YAMAMORI.
6220
6221 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * util/grub-mkimage.c: Document memdisk implying --prefix.
6224
6225 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6228 much we can do about it anyway.
6229
6230 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6231
6232 Fix handling of split transfers.
6233
6234 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 * grub-core/net/http.c: Fix bad free.
6237
6238 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6241 than buffer size.
6242
6243 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6246
6247 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * tests/util/grub-shell.in: Fix it on powerpc.
6250
6251 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 Turn off QEMU ACPI-way since new releases don't have shutdown port
6254 anymore.
6255
6256 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * docs/grub.texi: Update coreboot status info.
6259
6260 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * tests/grub_cmd_date.in: New test for datetime.
6263
6264 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * tests/partmap_test.in: Fix missing qemudisk setting.
6267
6268 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 Support i386-ieee1275 grub-mkrescue and make check on it.
6271
6272 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6275 feature for it.
6276
6277 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6280 GRUB_CMDLINE_XEN_DEFAULT.
6281 Reported by: Marc Warne (GigaTux) <gigatux>
6282
6283 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 Import new gnulib.
6286
6287 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 Use ACPI shutdown intests as traditional port was removed.
6290
6291 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6292
6293 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6294 distinction.
6295
6296 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6299 Fix few warining messages and leaks while on it.
6300
6301 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6302
6303 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6304 links under grub-core/lib/libgcrypt-grub/mpi.
6305
6306 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 Fix ia64-efi image generation on big-endian machines. Deduplicate
6309 some code while on it.
6310 Reported by: Leif Lindholm.
6311
6312 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6313
6314 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6315 as extra_dist.
6316
6317 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6318
6319 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6320
6321 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6322
6323 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6324 texinfo-5.1.
6325
6326 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * grub-core/normal/term.c: Few more fixes for menu entry editor
6329 rendering.
6330 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6331
6332 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * grub-core/normal/term.c: Few more fixes for menu entry editor
6335 rendering.
6336 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6337
6338 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6339
6340 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6341 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6342
6343 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6344
6345 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6346 instead of hardcoding grub.mo.
6347
6348 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6349
6350 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6351
6352 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6355 grub-core/disk/geli.c.
6356
6357 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * util/grub-mkfont.c: Prefer enum to #define.
6360
6361 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6364
6365 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6366
6367 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6368
6369 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6372
6373 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6376
6377 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * include/grub/bsdlabel.h: Use enums.
6380
6381 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 Move GRUB_CHAR_BIT to types.h.
6384
6385 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6386
6387 * docs/grub.texi: Document more user commands.
6388
6389 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6390
6391 * docs/grub.texi: Document menuentry --id option.
6392
6393 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6394
6395 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6396
6397 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6398
6399 Unify file copying setup across different install scripts. Add
6400 options for performing partial install.
6401
6402 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6403 2013-04-04 Peter Jones <pjones@redhat.com>
6404
6405 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6406
6407 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 Use TSC as a possible time source on i386-ieee1275.
6410
6411 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
6414 Init err.
6415
6416 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * util/grub-setup.c (setup): Handle some corner cases.
6419
6420 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
6423
6424 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * grub-core/commands/verify.c: Save verified file to avoid it being
6427 tampered with after verification was done.
6428
6429 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
6432 reported width by one to compensate for curesor algorithm problem.
6433
6434 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 Fix screen corruption in menu entry editor and simplify the code
6437 flow while on it.
6438
6439 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
6440
6441 * util/grub-mount.c (fuse_init): Return error if fuse_main
6442 failed.
6443
6444 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
6445
6446 * include/grub/elf.h: Add missing ARM relocation codes and fix
6447 existing ones.
6448
6449 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6450
6451 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
6452
6453 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6454 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
6457 into account when calculating radius.
6458
6459 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6460
6461 * grub-core/gfxmenu/view.c: Fix off-by-one error.
6462
6463 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
6464
6465 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
6466
6467 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6468
6469 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
6470 missing closing bracket.
6471
6472 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
6473
6474 * INSTALL: Mention xorriso requirement.
6475
6476 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
6477
6478 * grub-core/commands/verify.c: Fix hash algorithms values for
6479 the first three hashes - they start with 1, not with 0.
6480
6481 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
6484 Try terminating EFI services several times due to quirks in some
6485 implementations.
6486
6487 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
6488
6489 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
6490 skipping Event, Device, Processor, PowerRes, ThermalZone, and
6491 BankField extended opcodes.
6492 (get_sleep_type): Add minimal scope handling (just enough to
6493 handle setting the scope to the root path).
6494 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
6495 * include/grub/acpi.h: Add enumeration values for Event, Device,
6496 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
6497
6498 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
6499
6500 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
6501 memory leak.
6502
6503 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * grub-core/disk/ahci.c: Give more time for AHCI request.
6506
6507 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
6510 command.
6511
6512 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 Replace the region at 0 from coreboot tables to available in BSD
6515 memory map.
6516
6517 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
6520 non-BIOS platforms.
6521
6522 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
6525 platforms.
6526
6527 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6530 handling of multi-device filesystems.
6531
6532 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
6535 platforms.
6536
6537 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 Add new 'proc' filesystem framework and put luks_script into it.
6540
6541 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
6544 and qemu.
6545
6546 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
6549
6550 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 Add ability to generate newc additions on runtime.
6553
6554 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
6557 description.
6558
6559 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * po/POTFILES.in: Regenerate.
6562
6563 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 * grub-core/commands/verify.c (hashes): Add several hashes
6566 from the spec.
6567
6568 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 Slight improve in USB-related boot-time checkpoints.
6571
6572 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6573
6574 * grub-core/commands/boottime.c: Fix copyright header.
6575
6576 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
6579 coreboot tables content. Support for cbmemc.
6580
6581 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 Fix a conflict between ports structures with 2 controllers of
6584 same kind.
6585
6586 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * include/grub/boottime.h: Add missing file.
6589
6590 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 Initialize USB ports in parallel to speed-up boot.
6593
6594 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 Fix USB devices not being detected when requested
6597 due to delayed attach.
6598
6599 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 Implement boot time analysis framework.
6602
6603 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Remove get_endpoint_descriptor and change all functions needing
6606 descriptor to just receive it as argument rather than endpoint
6607 address.
6608
6609 2013-03-19 Aleš Nesrsta <starous@volny.cz>
6610
6611 Better estimate the maximum USB transfer size.
6612
6613 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 Resend a packet if we got the wrong buffer in status.
6616
6617 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
6620 multiplication rather than division.
6621
6622 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
6625 than divisions.
6626
6627 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
6630 operations to have intended shifts and not divisions.
6631
6632 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
6635 intended shifts rather than division.
6636
6637 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
6640 computation for some years before epoch. Avode confusing division
6641 while on it.
6642
6643 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * grub-core/video/i386/pc/vbe.c
6646 (grub_video_vbe_print_adapter_specific_info): Replace division by
6647 shifts.
6648
6649 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 Adjust types in gdb module to have intended unsigned shifts rather than
6652 signed divisions.
6653
6654 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6655
6656 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
6657 maximum size is 4G - 1 on hfs
6658
6659 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
6662
6663 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
6666 function.
6667
6668 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
6669
6670 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
6671 causing gcc error with gcc 4.7.1.
6672
6673 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6674
6675 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
6676 dereference null pointer. While the code is technically correct, gcc
6677 may eliminate a null check if pointer is already dereferenced.
6678
6679 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
6680
6681 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
6682 OOM check.
6683 * grub-core/normal/term.c (read_terminal_list): Likewise.
6684
6685 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 Lift up core size limits on some platforms. Fix potential memory
6688 corruption with big core on small memory systems. Document remaining
6689 limits.
6690
6691 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6692
6693 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
6694 gotoxy to 0,0.
6695
6696 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 Remove all trampoline support. Add -Wtrampolines when
6699 present. Remove symbols used for trampolines to make
6700 link fail if trampolines are present.
6701
6702 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
6705 append out of its parent.
6706
6707 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
6710 parent.
6711
6712 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
6715 all vars to a macro. All users updated.
6716
6717 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * grub-core/disk/ieee1275/nand.c: Fix compilation on
6720 i386-ieee1275.
6721
6722 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
6725
6726 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
6729
6730 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 Move to more hookless approach in IEEE1275 devices handling.
6733
6734 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6735
6736 * grub-core/kern/term.c (grub_term_normal_color),
6737 (grub_term_highlight_color): Add back lost defaults.
6738
6739 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 Make elfload not use hooks. Opt for flags and iterators instead.
6742
6743 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
6746 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
6747
6748 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/script/execute.c (gettext_append): Remove nested functions.
6751
6752 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
6755 hook pass-through parameter. All users updated and unnested.
6756
6757 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6758
6759 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
6760 out of its parent.
6761
6762 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/fs/hfs.c: Remove nested functions.
6765
6766 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
6769 the context through.
6770 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
6771
6772 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 * util/grub-editenv.c (list_variables): Move print_var out of its
6775 parent.
6776
6777 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6780 function.
6781
6782 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * grub-core/gentrigtables.c: Make tables const.
6785
6786 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 Remove nested functions from videoinfo iterators.
6789
6790 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6793 for 64-bit platforms.
6794
6795 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6798 a FOR_CHILDREN macro.
6799
6800 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6803 platform from firmware path.
6804
6805 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 Enable linux16 on non-BIOS systems for i.a. memtest.
6808
6809 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6810 correctly.
6811 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6812
6813 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6814
6815 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6816 Fix end of table condition.
6817
6818 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6821 out of its parent.
6822
6823 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 * grub-core/fs/jfs.c: Remove nested functions.
6826
6827 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * grub-core/fs/minix.c: Remove nested functions.
6830
6831 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 * grub-core/fs/iso9660.c: Remove nested functions.
6834
6835 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6838 of parent function.
6839
6840 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * util/grub-fstest.c: Remove nested functions.
6843
6844 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * grub-core/loader/machoXX.c: Remove nested functions.
6847
6848 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
6849
6850 Remove nested functions from disk and file read hooks.
6851
6852 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6853 (struct grub_disk): Add read_hook_data member.
6854 * include/grub/file.h (struct grub_file): Likewise.
6855 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6856 argument.
6857
6858 Update all callers.
6859
6860 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6861
6862 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6863 Fix off by one error in enumerating extended partitions.
6864
6865 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6866
6867 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6868 memory leak if device name is not found.
6869
6870 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6871
6872 * grub-core/normal/menu_entry.c (update_screen): remove
6873 unused variable `off' which caused scroll down arrow to be always shown.
6874
6875 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6876
6877 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6878 access to unallocated memory.
6879
6880 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6881
6882 * Makefile.util.def: Add partmap/msdos.c to common library.
6883 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6884 * grub-core/disk/ldm.c: Check for existence of
6885 GRUB_PC_PARTITION_TYPE_LDM.
6886
6887 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6890 sizes and display sector size.
6891
6892 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 Implement new command cmosdump.
6895
6896 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6897
6898 Support Openfirmware disks with non-512B sectors.
6899
6900 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6901 size of the disk.
6902 * (grub_ofdisk_get_block_size): New function.
6903 * (grub_ofdisk_prepare): Use the correct block size.
6904 * (grub_ofdisk_read): Likewise.
6905 * (grub_ofdisk_write): Likewise.
6906 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6907 New proto.
6908
6909 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6912
6913 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6916 on first error.
6917
6918 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6921 freeing it.
6922
6923 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 Implement USBDebug (full USB stack variant).
6926
6927 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6930 unless they have unexpected values.
6931
6932 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6933
6934 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6935 grub_print_error.
6936
6937 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6940 zero-out of port structure.
6941
6942 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6945 of extended attributes.
6946
6947 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6948
6949 * util/grub-install.in: change misleading comment about
6950 device.map creation
6951
6952 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6955 when menu highlight color isn't set.
6956
6957 2013-01-27 C. Masloch <pushbx@38.de>
6958
6959 Improve FreeDOS direct loading support compatibility.
6960
6961 * include/grub/i386/relocator.h (grub_relocator16_state):
6962 New member ebp.
6963 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6964 variable.
6965 (grub_relocator16_boot): Handle %ebp.
6966 * grub-core/lib/i386/relocator16.S: Likewise.
6967 * grub-core/loader/i386/pc/freedos.c:
6968 Load BPB to pass kernel which partition to load from.
6969 Check that kernel file is not too large.
6970 Set register dl to BIOS unit number as well.
6971
6972 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
6973
6974 * util/grub-reboot.in (usage): Document the need for
6975 GRUB_DEFAULT=saved.
6976 * util/grub-set-default.in (usage): Likewise.
6977 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6978
6979 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6982 than defining WORDS_BIGENDIAN manually.
6983
6984 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6987 invariants.
6988
6989 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6990
6991 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6992 nested.
6993 (blit_comb: add_device_width): Likewise.
6994
6995 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
6996
6997 Remove nested functions from USB iterators.
6998
6999 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7000 (grub_usb_controller_iterate_hook_t): Likewise.
7001 (grub_usb_iterate): Add hook_data argument.
7002 (grub_usb_controller_iterate): Likewise.
7003 (struct grub_usb_controller_dev.iterate): Likewise.
7004
7005 Update all implementations and callers.
7006
7007 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7010 margin when not needed.
7011
7012 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 Make color variables global instead of it being per-terminal.
7015
7016 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7019 asterisk.
7020
7021 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7022
7023 Fix powerpc and sparc64 build failures caused by un-nesting memory
7024 map iterators.
7025
7026 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7027
7028 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7029 parameter declarations.
7030
7031 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7034
7035 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 Improve spkmomdem reliability by adding a separator between bytes.
7038
7039 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7040
7041 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7042 an Acer registration utility with several sightings in the wild.
7043 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7044
7045 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7046
7047 Remove nested functions from filesystem directory iterators.
7048
7049 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7050 (struct grub_fs.dir): Add hook_data argument.
7051
7052 Update all implementations and callers.
7053
7054 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7055
7056 * docs/grub.texi (Multi-boot manual config): Fix typo for
7057 "recommended".
7058
7059 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7060
7061 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7062 until after its use in generate_image.
7063
7064 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7065
7066 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7067 initrd size to addr_min, since the initrd will be allocated after
7068 this address.
7069
7070 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7071
7072 * conf/Makefile.common: Fix autogen rules to pass definition
7073 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7074
7075 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7076
7077 * include/grub/elf.h: Update ARM definitions based on binutils.
7078
7079 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7080
7081 Split long USB transfers into short ones.
7082
7083 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7084
7085 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7086 is interrupted by ESC.
7087
7088 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * util/grub-script-check.c (main): Uniform the error message.
7091
7092 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7093
7094 Remove nested functions from ELF iterators.
7095
7096 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7097
7098 Remove nested functions from device iterators.
7099
7100 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7101 (grub_arc_iterate_devs): Add hook_data argument.
7102 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7103 (struct grub_ata_dev.iterate): Add hook_data argument.
7104 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7105 (grub_device_iterate): Add hook_data argument.
7106 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7107 (struct grub_disk_dev.iterate): Add hook_data argument.
7108 (grub_disk_dev_iterate): Likewise.
7109 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7110 Likewise.
7111 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7112 Likewise.
7113 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7114 type.
7115 (struct grub_partition_map.iterate): Add hook_data argument.
7116 (grub_partition_iterate): Likewise.
7117 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7118 (struct grub_scsi_dev.iterate): Add hook_data argument.
7119
7120 Update all callers.
7121
7122 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7123
7124 Fix typos for "developer" and "development".
7125
7126 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7127
7128 Add license header to spkmodem-recv.c.
7129
7130 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 Rewrite spkmodem to use PIT for timing. Double the speed.
7133
7134 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 Add new command pcidump.
7137
7138 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 New terminal outputs using serial: morse and spkmodem.
7141
7142 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 Improve bidi handling in entry editor.
7145
7146 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7149 argument to prevent name collision.
7150
7151 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7152
7153 Remove nested functions from script reading and parsing.
7154
7155 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7156 getline_data argument, passed to getline.
7157 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7158 getline_data argument, passed to grub_parser_split_cmdline.
7159 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7160 lexerstate->getline_data to lexerstate->getline.
7161 (grub_script_lexer_init): Add getline_data argument, saved in
7162 lexerstate->getline_data.
7163 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7164 argument, passed to grub_script_parse.
7165 * grub-core/script/script.c (grub_script_parse): Add getline_data
7166 argument, passed to grub_script_lexer_init.
7167 * include/grub/parser.h (grub_parser_split_cmdline): Update
7168 prototype. Update all callers to pass appropriate getline data.
7169 (struct grub_parser.parse_line): Likewise.
7170 (grub_rescue_parse_line): Likewise.
7171 * include/grub/reader.h (grub_reader_getline_t): Add void *
7172 argument.
7173 * include/grub/script_sh.h (struct grub_lexer_param): Add
7174 getline_data member.
7175 (grub_script_parse): Update prototype. Update all callers to pass
7176 appropriate getline data.
7177 (grub_script_lexer_init): Likewise.
7178 (grub_normal_parse_line): Likewise.
7179
7180 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7181 data argument.
7182 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7183 static instead of nested. Rename to ...
7184 (grub_parser_execute_getline): ... this.
7185 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7186 data argument.
7187 * grub-core/normal/main.c (read_config_file: getline): Make static
7188 instead of nested. Rename to ...
7189 (read_config_file_getline): ... this.
7190 (grub_normal_read_line): Add unused data argument.
7191 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7192 getline): Make static instead of nested. Rename to ...
7193 (grub_script_execute_sourcecode_getline): ... this.
7194 * util/grub-script-check.c (main: get_config_line): Make static
7195 instead of nested.
7196
7197 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7198
7199 Remove nested functions from memory map iterators.
7200
7201 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7202 argument, passed to hook.
7203 * grub-core/kern/i386/coreboot/mmap.c
7204 (grub_linuxbios_table_iterate): Likewise.
7205 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7206 instead of nested.
7207 (grub_machine_mmap_iterate): Add hook_data argument.
7208 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7209 Add hook_data argument, passed to hook.
7210 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7211 Likewise.
7212 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7213 Likewise.
7214 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7215 Likewise.
7216 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7217 Likewise.
7218 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7219 Likewise.
7220 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7221 Likewise.
7222 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7223 (grub_machine_mmap_iterate): Likewise.
7224 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7225 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7226 prototype.
7227 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7228 Remove NESTED_FUNC_ATTR from here and from all users.
7229 (grub_mmap_iterate): Update prototype.
7230 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7231 pass appropriate hook data.
7232 (grub_machine_mmap_iterate): Likewise.
7233
7234 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7235 static instead of nested.
7236 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7237 Rename to ...
7238 (lsmmap_hook): ... this.
7239 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7240 Likewise.
7241 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7242 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7243 heap_init): Likewise.
7244 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7245 Rename to ...
7246 (mmap_iterate_hook): ... this.
7247 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7248 Likewise.
7249 * grub-core/lib/ieee1275/relocator.c
7250 (grub_relocator_firmware_get_max_events: count): Likewise.
7251 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7252 to ...
7253 (grub_relocator_firmware_fill_events_iter): ... this.
7254 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7255 hook): Likewise. Rename to ...
7256 (grub_relocator_alloc_chunk_align_iter): ... this.
7257 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7258 Rename to ...
7259 (generate_e820_mmap_iter): ... this.
7260 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7261 Rename to ...
7262 (count_hook): ... this.
7263 (grub_linux_boot: hook): Likewise. Rename to ...
7264 (grub_linux_boot_mmap_find): ... this.
7265 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7266 (grub_linux_boot_mmap_fill): ... this.
7267 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7268 hook): Likewise. Rename to ...
7269 (grub_fill_multiboot_mmap_iter): ... this.
7270 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7271 hook): Likewise. Rename to ...
7272 (count_hook): ... this.
7273 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7274 hook): Likewise. Rename to ...
7275 (grub_fill_multiboot_mmap_iter): ... this.
7276 * grub-core/loader/powerpc/ieee1275/linux.c
7277 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7278 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7279 Likewise. Rename to ...
7280 (alloc_phys_choose): ... this.
7281 (determine_phys_base: get_physbase): Likewise.
7282 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7283 find_hook): Likewise.
7284 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7285 (malloc_hook: count_hook): Likewise.
7286 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7287 Likewise. Rename to ...
7288 (lower_hook): ... this.
7289 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7290 (upper_hook): ... this.
7291 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7292 (post64_hook): ... this.
7293 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7294 Likewise. Rename to ...
7295 (lower_hook): ... this.
7296 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7297 (upper_hook): ... this.
7298 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7299 (grub_mmap_iterate: fill_hook): Likewise.
7300 (fill_mask): Pass addr and mask within a single struct.
7301 (grub_cmd_badram: hook): Make static instead of nested. Rename
7302 to ...
7303 (badram_iter): ... this.
7304 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7305 (cutmem_iter): ... this.
7306
7307 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7310 delimit path in strings using quotes.
7311 * util/getroot.c (grub_guess_root_devices): Likewise.
7312 (grub_make_system_path_relative_to_its_root): Likewise.
7313 * util/grub-probe.c (probe): Likewise.
7314 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7315 (xrealpath): Likewise.
7316
7317 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 Fix compilation with older compilers.
7320
7321 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7322 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7323 declarations.
7324 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7325 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7326 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7327 identifier with b.
7328 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7329 * include/grub/crypto.h: Add type defines.
7330 * util/import_gcrypth.sed: Remove duplicate type defines.
7331
7332 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 New command list_trusted.
7335
7336 * grub-core/commands/verify.c (grub_cmd_list): New function.
7337
7338 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7339
7340 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7341 info message.
7342
7343 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7344
7345 Remove nested functions from PCI iterators.
7346
7347 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7348 passed to hook. Update all callers to pass appropriate hook data.
7349 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7350 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7351 Remove NESTED_FUNC_ATTR from here and from all users.
7352 (grub_pci_iterate): Update prototype.
7353 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7354 instead of nested. Rename to ...
7355 (grub_cs5536_find_iter): ... this.
7356 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7357 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7358 Likewise.
7359 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7360 Likewise.
7361 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7362 Likewise.
7363 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7364 Likewise.
7365 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7366 * grub-core/video/radeon_fuloong2e.c
7367 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7368 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7369 find_card): Likewise.
7370 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7371 Likewise.
7372
7373 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/commands/verify.c: Mark messages for translating.
7376
7377 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7380 fatal.
7381
7382 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7385 fatal.
7386
7387 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * autogen.sh: Do not try to delete nonexistant files.
7390 * util/import_gcrypth.sed: Add some missing header removals.
7391
7392 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7393
7394 Clean up dangling references to grub-setup.
7395 Fixes Ubuntu bug #1082045.
7396
7397 * docs/grub.texi (Images): Refer generally to grub-install rather
7398 than directly to grub-setup.
7399 (Installing GRUB using grub-install): Remove direct reference to
7400 grub-setup.
7401 (Device map) Likewise.
7402 (Invoking grub-install): Likewise.
7403 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7404 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7405 * util/grub-install.in (usage): Likewise.
7406
7407 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7408 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7409 grub-setup.
7410 * configure.ac: Remove grub_setup output variable.
7411
7412 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
7413 to grub-bios-setup.
7414 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
7415 grub-setup to grub-sparc64-setup.
7416
7417 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 Import gcrypt public-key cryptography and implement signature checking.
7420
7421 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * grub-core/fs/ntfs.c: Ue more appropriate types.
7424 * grub-core/fs/ntfscomp.c: Likewise.
7425 * include/grub/ntfs.h: Likewise.
7426
7427 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 Support Apple FAT binaries on non-Apple platforms.
7430
7431 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
7432 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
7433 Likewise.
7434 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
7435 Apple FAT binaries.
7436
7437 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
7440 sector devices.
7441
7442 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7443
7444 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
7445 explicitly zeroing elements.
7446 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
7447 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
7448 of elements in a structure already allocated using grub_zalloc.
7449 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7450
7451 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
7452
7453 * docs/grub.texi (grub_cpu): New subsection.
7454 (grub_platform): Likewise.
7455
7456 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
7459
7460 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
7463 divisions.
7464
7465 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
7468 * grub-core/fs/ntfscomp.c: Likewise.
7469 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
7470 (grub_ntfs_comp): Likewise.
7471
7472 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
7475 Rename to ...
7476 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
7477 of groups_per_block. All users updated.
7478
7479 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
7482 grub_error properly.
7483 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
7484 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
7485
7486 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7487
7488 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
7489 always in /boot/zfs.
7490 Reported by: Yuta Satoh.
7491
7492 2013-01-03 Yuta Satoh <nigoro>
7493
7494 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
7495 ${grub_probe}
7496
7497 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * configure.ac: Extend -Wno-trampolines to host.
7500
7501 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
7504 entry->len = 0.
7505
7506 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7507
7508 * docs/grub.texi (Invoking grub-mkrelpath): New section.
7509 (Invoking grub-script-check): Likewise.
7510
7511 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
7512
7513 * docs/grub.texi (Invoking grub-mount): New section.
7514 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
7515
7516 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7517
7518 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
7519 test failures, so that a failing unit test correctly causes 'make
7520 check' to fail.
7521
7522 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7523
7524 Fix failing printf test.
7525
7526 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
7527 '$' in the correct order when collecting type information.
7528
7529 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
7530
7531 * docs/grub.texi (configfile): Explain environment variable
7532 handling.
7533 (source): New section.
7534 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7535
7536 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
7537
7538 Remove several trivially-unnecessary uses of nested functions.
7539
7540 * grub-core/commands/i386/pc/sendkey.c
7541 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
7542 instead of nested.
7543 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
7544 Rename to ...
7545 (legacy_file_getline): ... this.
7546 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
7547 Likewise.
7548 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
7549 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
7550 to ...
7551 (probe_dummy_iter): ... this.
7552 * grub-core/kern/i386/coreboot/mmap.c
7553 (grub_linuxbios_table_iterate: check_signature): Likewise.
7554 * grub-core/kern/parser.c (grub_parser_split_cmdline:
7555 check_varstate): Likewise. Mark inline.
7556 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
7557 an additional parameter.
7558 (find_long: fnd_long): Likewise. Pass two additional parameters.
7559 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
7560 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
7561 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
7562 Likewise. Rename to ...
7563 (grub_cmos_find_port_iter): ... this.
7564 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
7565 Rename to ...
7566 (find_rtc_iter): ... this.
7567
7568 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
7569 function directly into the function body, since it is only called
7570 once.
7571
7572 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
7573
7574 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
7575 __attribute__ ((unused)).
7576 * grub-core/video/bochs.c (find_card): Likewise.
7577 * grub-core/video/cirrus.c (find_card): Likewise.
7578 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
7579 * grub-core/video/sis315pro.c (find_card): Likewise.
7580 * grub-core/video/sm712.c (find_card): Likewise.
7581
7582 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7583
7584 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
7585 Fixes Savannah bug #37821.
7586
7587 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7588
7589 Apply program name transformations at build-time rather than at
7590 run-time. Fixes Debian bug #696465.
7591
7592 * acinclude.m4 (grub_TRANSFORM): New macro.
7593 * configure.ac: Create output variables with transformed names for
7594 most programs.
7595 * util/bash-completion.d/grub-completion.bash.in: Use
7596 pre-transformed variables for program names.
7597 * util/grub-install.in: Likewise.
7598 * util/grub-kbdcomp.in: Likewise.
7599 * util/grub-mkconfig.in: Likewise.
7600 * util/grub-mkconfig_lib.in: Likewise.
7601 * util/grub-mknetdir.in: Likewise.
7602 * util/grub-mkrescue.in: Likewise.
7603 * util/grub-mkstandalone.in: Likewise.
7604 * util/grub-reboot.in: Likewise.
7605 * util/grub-set-default.in: Likewise.
7606 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7607 * tests/util/grub-shell-tester.in: Remove unused assignment.
7608 * tests/util/grub-shell.in: Likewise.
7609 * util/grub.d/00_header.in: Likewise.
7610
7611 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
7612
7613 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
7614
7615 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
7616 HAVE_RAW_DECL_GETS.
7617 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
7618
7619 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
7622 Reported by: Eriks Latosheks <foresterlv>.
7623
7624 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * docs/grub.texi (Network): Update instructions on generating netboot
7627 image.
7628
7629 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
7632 around device name if necessarry.
7633
7634 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7635
7636 * util/grub-install.in: Follow the symbolic link parameter added
7637 to the file command.
7638
7639 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
7640
7641 * util/grub-install.in: Remove stale TODO.
7642
7643 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7644
7645 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
7646 dynamic allocation for the bootpath buffer.
7647
7648 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
7649
7650 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
7651 window too small.
7652
7653 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
7656 argument rather than font name. All users updated.
7657 (grub_gfxterm_set_window): Likewise.
7658
7659 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
7660
7661 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
7662 from working.
7663
7664 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * util/getroot.c (convert_system_partition_to_system_disk): Support
7667 nbd disks.
7668
7669 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
7672 infinite loop on corrupted FS.
7673
7674 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7675
7676 Fix big-endian mtime.
7677
7678 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
7679 together sec and usec.
7680 (grub_ufs_dir): Use correct byteswapping for UFS time.
7681
7682 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
7683
7684 Support big-endian UFS1.
7685
7686 * Makefile.util.def (libgrubmods): Add ufs_be.c
7687 * grub-core/Makefile.core.def (ufs1_be): New module.
7688 * grub-core/fs/ufs_be.c: New file.
7689 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
7690 the file.
7691
7692 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
7693
7694 * include/grub/types.h: Fix functionality unaffecting typo in
7695 GRUB_TARGET_WORDSIZE conditional macro.
7696
7697 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7698
7699 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
7700
7701 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
7702
7703 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
7704 that /netbsd appears first (when it exists).
7705
7706 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
7707
7708 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
7709 Fixes Savannah bug #37558.
7710
7711 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
7712
7713 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
7714 description of extract_entries_configfile.
7715
7716 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
7717
7718 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
7719 preferred_address.
7720 (grub_cmd_linux): Likewise.
7721 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
7722 preferred_lifetime. Update all users.
7723
7724 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7725
7726 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
7727 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
7728
7729 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
7730
7731 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
7732 errors from grub-probe to /dev/null, not stdout.
7733
7734 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
7737 sector 1.
7738
7739 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
7740
7741 * util/grub-install.in: Make the error message if $source_dir
7742 doesn't exist more useful.
7743
7744 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
7745
7746 Fix grub-emu build on FreeBSD.
7747
7748 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
7749 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
7750 headers on Linux.
7751 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
7752 implementation is currently Linux-specific.
7753 * util/getroot.c (exec_pipe): Define only on Linux or when either
7754 libzfs or libnvpair is unavailable.
7755 (find_root_devices_from_poolname): Remove unused path variable.
7756
7757 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7758
7759 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
7760 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
7761 should fit before end == 63.
7762
7763 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
7764
7765 * util/grub-setup.c (write_rootdev): Remove unused core_img
7766 parameter. Update all callers.
7767 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
7768 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
7769 GRUB_SETUP_BIOS.
7770
7771 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 * util/grub-mkconfig_lib.in (grub_tab): New variable.
7774 (grub_add_tab): New function.
7775 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7776 * util/grub.d/10_illumos.in: Likewise.
7777 * util/grub.d/10_kfreebsd.in: Likewise.
7778 * util/grub.d/10_linux.in: Likewise.
7779 * util/grub.d/10_netbsd.in: Likewise.
7780 * util/grub.d/10_windows.in: Likewise.
7781 * util/grub.d/10_xnu.in: Likewise.
7782 * util/grub.d/20_linux_xen.in: Likewise.
7783 * util/grub.d/30_os-prober.in: Likewise.
7784
7785 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7788 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7789 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7790 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7791 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7792 ieee1275-nocursor.
7793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7794 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7795
7796 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7799 le-conversion.
7800 Reported by: BURETTE, Bernard.
7801
7802 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
7803
7804 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7805 from comment.
7806
7807 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
7808
7809 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7810 IEEE1275 machines. Fixes powerpc-emu compilation.
7811 * include/grub/terminfo.h: Likewise.
7812
7813 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7816 a const pointer.
7817 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7818 const pointer.
7819 (efiemu_set_variable): Make vendor_guid a const pointer.
7820
7821 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 Don't require grub-mkconfig_lib to generate manpages for programs.
7824
7825 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7826 dependencies, don't add grub-mkconfig_lib.
7827 (program): Pass empty adddeps.
7828 (script): Pass grub-mkconfig_lib as adddeps.
7829
7830 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7833 * util/getroot.c (grub_find_device): Likewise.
7834 (get_mdadm_uuid): Likewise.
7835 (grub_util_is_imsm): Likewise.
7836 (grub_util_pull_device): Likewise.
7837 * util/grub-probe.c (probe): Likewise.
7838
7839 2012-09-10 Benoit Gschwind <gschwind>
7840
7841 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7842 (devs): Add devpath_8.
7843
7844 2012-09-08 Peter Jones <pjones@redhat.com>
7845
7846 * grub-core/Makefile.core.def (efifwsetup): New module.
7847 * grub-core/commands/efi/efifwsetup.c: New file.
7848 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7849 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7850 New define.
7851 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7852
7853 2012-09-05 Jiri Slaby <jslaby@suse.cz>
7854
7855 * configure.ac: Add SuSe path.
7856
7857 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7858
7859 * NEWS: Fix typo.
7860
7861 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
7862
7863 * util/import_gcry.py: Sort cipher_files, to make build system
7864 generation more deterministic.
7865
7866 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7867
7868 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7869 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7870 (grub_set_datetime): Likewise.
7871
7872 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7873
7874 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7875 warnings.
7876
7877 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7878
7879 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7880
7881 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7884
7885 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7886
7887 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7888 required for checkouts from bzr, but it may be useful for users or
7889 distributors wishing to update translations against a tarball
7890 distribution, and it can be helpful for the tarball to be a superset
7891 of what's in bzr.
7892
7893 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7894
7895 * Makefile.am (EXTRA_DIST): Add
7896 grub-core/tests/boot/linux.init-mips.S,
7897 grub-core/tests/boot/linux.init-ppc.S, and
7898 grub-core/tests/boot/linux-ppc.cfg.
7899
7900 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7901
7902 * grub-core/mmap/mips/loongson: Remove empty directory.
7903
7904 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7905
7906 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7907 gone.
7908
7909 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
7910
7911 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7912 grub-sparc64-setup.
7913
7914 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7915
7916 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7917
7918 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7919
7920 * po/POTFILES.in: Regenerated.
7921
7922 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7923
7924 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7925 (NetBSD): New subsection.
7926
7927 2012-07-22 Ales Nesrsta <starous@volny.cz>
7928
7929 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7930 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7931
7932 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7935 * util/grub.d/10_hurd.in: Add missing quoting.
7936 * util/grub.d/10_illumos.in: Likewise.
7937 * util/grub.d/10_kfreebsd.in: Likewise.
7938 * util/grub.d/10_linux.in: Likewise.
7939 * util/grub.d/20_linux_xen.in: Likewise.
7940
7941 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 New command `lsefi'.
7944
7945 * grub-core/Makefile.core.def (lsefi): New module.
7946 * grub-core/commands/efi/lsefi.c: New file.
7947 * include/grub/efi/api.h: Add more GUIDs.
7948
7949 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7952 (grub_bsd_elf32_hook): Likewise.
7953 (grub_bsd_elf64_size_hook): Likewise.
7954 (grub_bsd_elf64_hook): Likewise.
7955 (grub_bsd_load_elf): Likewise.
7956
7957 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7960 if hash function is unavailable.
7961 (dec_stream_header): Likewise.
7962
7963 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7966 filter state.
7967
7968 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7969
7970 Fix coreboot compilation.
7971
7972 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7973 (grub_vga_text_init_real): ... this.
7974 (grub_vga_text_fini): Rename to ...
7975 (grub_vga_text_fini_real): ... this.
7976
7977 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7980
7981 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * grub-core/lib/legacy_parse.c: Support clear and testload.
7984
7985 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7988
7989 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7990
7991 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7992
7993 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 * grub-core/net/tftp.c (ack): Fix endianness problem.
7996 (tftp_receive): Likewise.
7997 Reported by: Michael Davidsaver.
7998
7999 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8000
8001 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8002
8003 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8006 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8007 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8008
8009 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8012 efi_mmap_size.
8013 Reported by: Stuart Hayes.
8014
8015 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8016
8017 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8018
8019 * grub-core/Makefile.core.def (mda_text): New module.
8020 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8021 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8022 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8023 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8024 here.
8025 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8026 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8027 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8028 here.
8029 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8030 to ..
8031 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8032 ... here
8033 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8034 here.
8035 * grub-core/term/i386/vga_common.c: Removed.
8036 * include/grub/i386/vga_common.h: Likewise.
8037 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8038 (grub_vga_cr_bw_read): Likewise.
8039 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8040 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8041 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8042 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8043 grub_vga_cr_read/grub_vga_cr_write.
8044 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8045
8046 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8047
8048 * configure.ac: Bump version to 2.00.
8049 * grub-core/normal/main.c (features): Add feature_200_final.
8050
8051 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8052 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8053
8054 * NEWS: Fix unclarity and language mistakes.
8055
8056 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8059 additional size to 3 pages.
8060 Reported by: Stuart Hayes.
8061
8062 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * NEWS: Add 2.00 entry.
8065
8066 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8069 put explicit "/" for empty path.
8070 (wildcard_expand): Improve dprintf.
8071
8072 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8073
8074 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8075 it's equal to currnode. This can happen with "" symlink.
8076
8077 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8078
8079 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8080 echo shell command by printf command.
8081
8082 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8085 the value returned by firmware is the maximal position, not diumension.
8086 (grub_terminfo_output_state): Use a more sane fallback.
8087
8088 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8089
8090 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8091
8092 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8095 frequency to 150 MHz.
8096
8097 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 Apple fixes.
8100
8101 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8102 __APPLE_
8103 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8104 definition.
8105 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8106
8107 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 Handle slash in HFS label.
8110
8111 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8112 (grub_hfs_dir): Tanslate slash.
8113 (grub_hfs_label): Don't translate slash.
8114
8115 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8118 network protocol listing since it introduces problematic dependency on
8119 net module.
8120
8121 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8124
8125 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8126
8127 Init video early on yeeloong to avoid being rebooted by watchdog.
8128
8129 * grub-core/Makefile.am (gensm712): New target.
8130 (sm712_start.S): Likewise.
8131 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8132 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8133 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8134 description.
8135 * include/grub/vga.h: Move registry definitions to...
8136 * include/grub/vgaregs.h: ... here.
8137
8138 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8139
8140 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8141 signedness.
8142
8143 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8146 platforms with firmware disk drivers in the core.
8147
8148 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8149
8150 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8151 informative verbose message.
8152 (read_lv): Handle 64-bit segment size.
8153
8154 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8157
8158 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8161 character but still remove trainling spaces.
8162 (grub_fat_label): Ignore archive flag.
8163
8164 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8167 cast between linux_kernel_header and linux_kernel_params.
8168
8169 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8172 type for size.
8173 (grub_raid6_recover_func_t): Likewise.
8174 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8175 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8176
8177 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8180
8181 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8182
8183 Fix overflow.
8184
8185 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8186 [__NetBSD__]: Add explicit cast before bitshift.
8187
8188 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 * configure.ac: Bump to 2.00~rc1.
8191
8192 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8195 half of $a0.
8196
8197 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8198 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8199
8200 * docs/grub.texi: Fix search syntax.
8201 (Multi-boot manual config): Put msdos rather than GPT example.
8202 Grammar corrections.
8203
8204 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8207
8208 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8211
8212 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8215 message on double free. Put the value of magic in case of mismatch.
8216
8217 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8218
8219 Speed-up video on yeeloong.
8220
8221 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8222 add cached_ptr.
8223 (grub_video_sm712_video_fini): Unmap cached_ptr.
8224 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8225 (grub_video_sm712_set_active_render_target): Removed.
8226 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8227 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8228 sync caches.
8229
8230 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 Avoid flushing the same line multiple times on loongson.
8233
8234 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8235 Step in 32 bytes and not 1 byte.
8236 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8237 Likewise.
8238
8239 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8242 subvolumes.
8243
8244 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8245
8246 Implement flow control for http.
8247
8248 * grub-core/net/http.c (parse_line): Handle response 206.
8249 (http_receive): Stall if too many packets are in the queue.
8250 (http_establish): Fix range header.
8251 (http_seek): Fix double free.
8252 (http_close): Likewise.
8253 (http_packets_pulled): New function.
8254 (grub_http_protocol): Set http_seek
8255 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8256 (ack_real): Set window depending on i_stall.
8257 (grub_net_send_tcp_packet): Likewise.
8258 (grub_net_tcp_stall): New function.
8259 (grub_net_tcp_unstall): Likewise.
8260 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8261 (grub_net_tcp_unstall): Likewise.
8262
8263 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8266
8267 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8268
8269 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8270
8271 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * tests/util/grub-shell.in: Fix a typo.
8274
8275 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 Implement flow control for tftp.
8278
8279 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8280 packets but stop only if stop condition is satisfied.
8281 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8282 `stall' instead of `eof' as stop condition.
8283 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8284 (http_err): Likewise.
8285 * grub-core/net/tftp.c (ack): Replace the first argument with data
8286 instead of socket.
8287 (tftp_receive): Stall if too many packets are in wait queue.
8288 (tftp_packets_pulled): New function.
8289 (grub_tftp_protocol): Set packets_pulled.
8290 * include/grub/net.h (grub_net_packets): New field count.
8291 (grub_net_put_packet): Increment count.
8292 (grub_net_remove_packet): Likewise.
8293 (grub_net_app_protocol): New field `packets_pulled'.
8294 (grub_net): New field `stall'.
8295
8296 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8299 sync part to handle them.
8300
8301 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8304 * grub-core/net/drivers/ieee1275/ofnet.c
8305 (grub_ieee1275_net_config_real): Likewise.
8306
8307 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8310 the direct route for server/gateway.
8311
8312 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8315 IP address to server name since we may not hame the DNS.
8316
8317 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8320 freeing random buffer on failure.
8321 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8322
8323 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8326
8327 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8328
8329 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8330 reserved bytes.
8331 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8332 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8333 Handle malloc error correctly.
8334
8335 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8338 blocks.
8339
8340 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8343 increment.
8344
8345 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8348 none is explicitly specified.
8349
8350 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8353 while reallocating.
8354
8355 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 Respect netmask from bootp/dhcp.
8358
8359 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8360 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8361 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8362 into ...
8363 (grub_net_add_ipv4_local): ... this.
8364 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8365 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8366 (grub_net_add_ipv4_local): New proto.
8367
8368 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8371 determining EFI memory map size.
8372
8373 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8376
8377 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8380 when looking for partition separator.
8381
8382 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8385 Escape commas.
8386
8387 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8388
8389 Restructure FAT driver to avoid hook in label reading as it hits a
8390 GCC bug.
8391
8392 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8393 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8394 (grub_fat_iterate_dir): Split into ...
8395 (grub_fat_iterate_init): ... this, ...
8396 (grub_fat_iterate_fini): ... this, ...
8397 (grub_fat_iterate_dir_next): ... and this. All users updated.
8398
8399 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8402 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8404 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8405 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8406 New fields last_key and last_key_time.
8407 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8408 extended key-esc into extended key-extended key.
8409
8410 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 Avoid unnecessary memcpy of whole video buffer.
8413
8414 * grub-core/video/fb/video_fb.c (dirty): New struct.
8415 (framebuffer): Add members current_dirty and previous_dirty.
8416 (dirty): New function.
8417 (grub_video_fb_fill_rect): Update dirty.
8418 (common_blitter): Likewise.
8419 (grub_video_fb_scroll): Likewise.
8420 (doublebuf_blit_update_screen): Copy only dirty part.
8421 (doublebuf_pageflipping_update_screen): Likewise.
8422 (grub_video_fb_doublebuf_blit_init): Init dirty.
8423 (doublebuf_pageflipping_init): Likewise.
8424 (grub_video_fb_setup): Likewise.
8425
8426 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
8429 poll rate.
8430
8431 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 Fix wildcard regexp dot and other special characters handling.
8434 Reported by: Robert Mabee.
8435
8436 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
8437 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
8438 (split_path): Trigger expansion on '?'.
8439 (unescape): New function.
8440 (wildcard_expand): Unescape parts copied without globbing.
8441 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
8442 (grub_script_arglist_to_argv): Don't unescape expansions.
8443
8444 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * include/grub/net.h (grub_net_card): New member txbufsize.
8447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
8448 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8449 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
8450 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
8451 txbufsize.
8452 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
8453 compatible property to check for macs. Set
8454 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
8455 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
8456 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
8457 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
8458 (send_card_buffer): Use txbuf.
8459 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
8460 nested function out of the parent while on it.
8461
8462 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
8465 presence check.
8466 (grub_ieee1275_net_config_real): Fix config pointer.
8467
8468 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
8471 filename parsing to non-block devices.
8472
8473 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * grub-core/kern/device.c (grub_device_open): Remove dead code.
8476
8477 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
8480 All users updated.
8481
8482 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
8485 UUID search command even if hints probing failed.
8486
8487 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * po/POTFILES.in: Regenerated.
8490
8491 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 Speed-up video on fuloong.
8494
8495 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
8496 New function.
8497 (grub_pci_device_unmap_range): Handle non-cached address.
8498 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
8499 add direct_ptr.
8500 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
8501 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
8502 (grub_video_sis315pro_set_active_render_target): Removed.
8503 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
8504 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8505 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
8506 sync caches.
8507 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
8508 New proto.
8509
8510 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * docs/grub.texi (Multi-boot manual config): New section.
8513
8514 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 Avoid slow read-back from VRAM.
8517
8518 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8519 Move from here ...
8520 * grub-core/video/fb/video_fb.c
8521 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
8522 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
8523 (front_target): Remove front_target. Add pages.
8524 (grub_video_fb_init): Skip setting front_pages.
8525 (grub_video_fb_fini): Likewise.
8526 (doublebuf_blit_update_screen): Use pages.
8527 (grub_video_fb_doublebuf_blit_init): Likewise.
8528 (doublebuf_pageflipping_init): Allocate offscreen buffer.
8529 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
8530 (grub_video_fb_setup): Prefer doublebuffing.
8531
8532 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
8535 gzio.
8536
8537 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 Add loongson tests.
8540
8541 * tests/util/grub-shell.in: Handle loongson.
8542 * tests/partmap_test.in: Add loongson to the list of platform using ATA
8543 drivers.
8544 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
8545 Reboot instead of shutdown if REBOOT is defined.
8546
8547 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8548
8549 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
8550 sized ports since unlike on real hardware qemu supports only 32-bit
8551 regs.
8552
8553 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * Makefile.util.def (grub-mkrescue): Enable on loongson.
8556 * util/grub-mkrescue.in: Handle loongson.
8557
8558 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
8561 Set is_part appropriately.
8562 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
8563 names. Canonicalize partition without full disk.
8564
8565 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 Revert usb-quiesce since it's wrong.
8568
8569 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
8570 (grub_ofdisk_init): Don't do quiesce.
8571
8572 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
8575 PowerMac workaround to Xserves as well.
8576 Information supplied by: Benjamin Herrenschmidt.
8577
8578 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 Don't assume that beginning address is also the entry point on ppc.
8581
8582 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
8583 (grub_linux_boot): Use linux_entry.
8584 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
8585 (grub_linux_load64): Likewise.
8586
8587 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
8590
8591 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
8594 needlessly lose the console.
8595
8596 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
8599 space.
8600
8601 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Remove non-functional EFI grub_get_rtc. Put a better fatal message
8604 than current grub_get_rtc() not implemented when booted with
8605 coreboot without TSC.
8606
8607 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
8608 Add machine/time.h to kernel headers on loongson.
8609 * grub-core/Makefile.core.def (kernel): Remove
8610 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
8611 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
8612 (grub_get_rtc): Likewise.
8613 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
8614 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
8615 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
8616 * grub-core/kern/i386/tsc.c (grub_tsc_init)
8617 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
8618 rather than installing known non-working time source.
8619 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
8620 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
8621 * include/grub/time.h: Don't include machine/time.h.
8622 * include/grub/efi/time.h: Removed.
8623 * include/grub/i386/efi/time.h: Likewise.
8624 * include/grub/i386/ieee1275/time.h: Likewise.
8625 * include/grub/powerpc/ieee1275/time.h: Likewise.
8626 * include/grub/sparc64/ieee1275/time.h: Likewise.
8627 * include/grub/x86_64/efi/time.h: Likewise.
8628
8629 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 Remove dot on i and j when combining with above diacritics.
8632
8633 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
8634 value.
8635 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
8636 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
8637 with dotless variants when any combining above is present.
8638
8639 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
8642 text and not binary.
8643
8644 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 Stop polling as soon as we have the packet we were waiting for.
8647
8648 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
8649 All users updated.
8650 * grub-core/net/arp.c (have_pending): New var.
8651 (pending_req): Likewise.
8652 (grub_net_arp_send_request): Fill pending_req and use have_pending as
8653 stop indicator.
8654 (grub_net_arp_receive): Set have_pending.
8655 * grub-core/net/dns.c (recv_data): New field stop.
8656 (recv_hook): Set stop.
8657 (grub_net_dns_lookup): Init stop and use as stop condition.
8658 * grub-core/net/http.c (http_establish): Use headers_recv as stop
8659 condition.
8660 * grub-core/net/net.c (grub_net_poll_cards): New argument
8661 stop_condition. Stop when it goes true.
8662 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
8663 indicator.
8664 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
8665
8666 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 Keep TX and RX buffers on EFI rather than always allocate new ones.
8669
8670 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
8671 card. All users updated.
8672 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
8673 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
8674 (get_card_packet): Likewise.
8675 (grub_efinet_findcards): Init new fields.
8676
8677 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
8680 compilation error on sparc64.
8681
8682 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 Use ITC on IA64 rather than broken routine based on daytime.
8685
8686 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
8687 ia64.
8688 (grub_get_rtc) [__ia64__]: Likewise.
8689 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
8690 (get_itc): New function.
8691 (grub_rtc_get_time_ms): Likewise.
8692 (grub_machine_init): Calibrate ITC.
8693 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
8694 Keep only on non-ia64. Don't export since it's broken and used only
8695 if TSC is unavailable.
8696
8697 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
8700 even if it's used.
8701 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
8702 Skip if parent is unused.
8703
8704 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
8707
8708 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 Fix wildcard escaping.
8711
8712 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
8713 * grub-core/script/execute.c (wildcard_escape): .. to here.
8714 Don't escape dot.
8715 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
8716 * grub-core/script/execute.c (wildcard_unescape): .. to here.
8717 Don't escape dot.
8718 * grub-core/script/execute.c (gettext_append): Always escape.
8719 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
8720 * grub-core/script/yylex.l: Don't cut away the escaping.
8721 * tests/grub_script_echo1.in: Add tests with wildcard.
8722
8723 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
8726 (ftdi_hw_configure): Likewise.
8727 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
8728 define.
8729 (real_config): Handle 1.5 stop bits.
8730 (pl2303_hw_configure): Likewise.
8731
8732 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 * Makefile.am: Add ppc linux bootcheck.
8735 * grub-core/tests/boot/linux-ppc.cfg: New file.
8736 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
8737
8738 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * tests/grub_script_expansion.in: Skip network protocols.
8741
8742 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
8745
8746 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
8749 --rom-directory.
8750 Add -graft-points.
8751
8752 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 ESCC serial driver for conducting sautomated tests in qemu.
8755 Not tested on real hardware.
8756
8757 * include/grub/serial.h (grub_serial_port): New field escc_desc.
8758 * grub-core/term/ieee1275/escc.c: New file.
8759 * grub-core/Makefile.core.def (escc): New module.
8760
8761 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8762
8763 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
8764 invalid on error.
8765 (serial_hw_fetch): Don't read invalid handle.
8766 (serial_hw_put): Don't write into invalid handle.
8767
8768 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 Add a 1.5 stop bits value.
8771
8772 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
8773 * include/grub/serial.h (grub_serial_stop_bits_t): Add
8774 GRUB_SERIAL_STOP_BITS_1_5.
8775
8776 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8777
8778 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8779 value rather than let it uninited.
8780
8781 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8782
8783 * grub-core/commands/wildcard.c (+check_file): New function.
8784 (wildcard_expand): Don't expand to non-existing files, expand with
8785 suffix and not attempt to expand if not needed.
8786
8787 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8790 out of partitions containing other partitions.
8791
8792 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8795 on some qemu versions with GRUB.
8796
8797 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8798 define.
8799 (grub_openbsd_bootarg_pcibios): New struct.
8800 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8801 Add PCIINFO.
8802
8803 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * tests/util/grub-shell.in: Trim firmware output on EFI.
8806
8807 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8810 and coreboot since it's already in kernel.
8811
8812 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8815 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8816 to here. New return value start. All users updated.
8817 Recursively scan linear mappings.
8818 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8819 proto.
8820 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8821 Use grub_util_get_dm_node_linear_info.
8822 * util/getroot.c (convert_system_partition_to_system_disk): Use
8823 grub_util_info rather than grub_dprintf.
8824 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8825
8826 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8829
8830 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8831 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8832
8833 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * include/grub/types.h (grub_set_unaligned64): New function.
8836 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8837 (setup): Likewise.
8838
8839 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8840
8841 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8842 (grub_ofdisk_fini): Quiesce USB devices.
8843
8844 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8847 caches.
8848
8849 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8852
8853 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/disk/pata.c (grub_pata_pio_read)
8856 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8857 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8858
8859 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 Extend automated tests to qemu-mips.
8862
8863 * Makefile.am: reorganise tests and enable qemu-mips.
8864 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8865 * grub-core/tests/boot/linux.init-mips.S: New file.
8866 * tests/partmap_test.in: Handle ata0 disks.
8867 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8868 non-pc i386.
8869
8870 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8873 ia64.
8874 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8875 quotes while on it.
8876
8877 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8880 (grub_halt): Likewise.
8881 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8882
8883 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 * grub-core/term/serial.c (grub_serial_register)
8886 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8887 the behaviour in line with x86 platforms.
8888
8889 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8892 (grub_ata_strncpy): Likewise.
8893 (grub_ata_identify): Add missing byteswaps.
8894
8895 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8898 byte-swap.
8899 (screen_read_char): Likewise.
8900 (grub_vga_text_cls): Likewise.
8901
8902 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8905 filenames.
8906 (make_file_path): Likewise.
8907
8908 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8911 machines.
8912 Tested by: Paulo Flabiano Smorigo.
8913 Crucial information about API supplied by: Coleen <Last name unknown>.
8914 Reviewed by: Coleen <Last name unknown>.
8915
8916 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * util/grub-mkimage.c: Disable -Wcast-align.
8919
8920 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8923 as they are fatal.
8924
8925 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8928
8929 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 * util/grub-probe.c (escape_of_path): Fix double free.
8932
8933 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/commands/videoinfo.c (hook): Show pitch.
8936
8937 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8940
8941 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8944 (probe): Add ieee1275 to OFW devices.
8945
8946 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8947
8948 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8949
8950 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 Handle IBM OFW path.
8953
8954 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8955 available.
8956 (of_path_of_scsi): Handle vdevice.
8957
8958 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8961 Allocate in multiples of 16 to avoid adding a few bytes free region the
8962 windows bugs upon.
8963
8964 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8967 Allocate in multiples of 16 to avoid adding a few bytes free region the
8968 windows bugs upon.
8969 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8970
8971 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8974 resolutions.
8975 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8976 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8977
8978 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8979
8980 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8981
8982 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8985 resulted in \\ at the end of the line.
8986
8987 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8990 (grub_parser_cmdline_state): Likewise.
8991 (grub_parser_split_cmdline): Likewise.
8992
8993 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8996 /dev/root and /dev/dm-*.
8997
8998 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9001 fix partially stale display.
9002
9003 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9006 substraction.
9007
9008 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9011 Fix MBR remapping workaround.
9012 (grub_util_biosdisk_read) [__linux__]: Likewise.
9013
9014 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9017
9018 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * configure.ac: Bump to beta6.
9021
9022 2012-05-31 Christer Weinigel <christer@weinigel.se>
9023
9024 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9025
9026 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9029 (grub_cmd_linux): Likewise.
9030
9031 2012-05-31 Christer Weinigel <christer@weinigel.se>
9032
9033 Fix EHCI low-speed.
9034
9035 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9036 (GRUB_EHCI_MULT_TWO): Likewise.
9037 (GRUB_EHCI_MULT_THREE): Likewise.
9038 (GRUB_EHCI_CMASK_MASK): New enum value.
9039 (GRUB_EHCI_SMASK_MASK): Likewise.
9040 (GRUB_EHCI_CMASK_OFF): Likewise.
9041 (GRUB_EHCI_SMASK_OFF): Likewise.
9042 (grub_ehci_pci_iter): Enable periodic schedule.
9043 (grub_ehci_parse_notrun): Likewise.
9044 (grub_ehci_restore_hw): Likewise.
9045 (grub_ehci_setup_qh): Set flags for low speed transfers.
9046 (grub_ehci_find_qh): Use periodic list for low speed.
9047 (grub_ehci_setup_transfer): Check periodic queue as well.
9048 (grub_ehci_check_transfer): Likewise.
9049 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9050
9051 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9052
9053 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9054 parameter is used.
9055
9056 2012-05-31 Peter Jones <pjones@redhat.com>
9057
9058 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9059 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9060 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9061
9062 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9065 uninited variable. Allocate at least setup_sects.
9066
9067 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 Fix handling of EFI with big memory maps.
9070
9071 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9072 (real_mode_mem): Likewise.
9073 (real_mode_target): Likewise.
9074 (real_mode_pages): Likewise.
9075 (prot_mode_pages): Likewise.
9076 (linux_params): New var.
9077 (linux_cmdline): Likewise.
9078 (free_pages): Don't set real mode variables.
9079 (allocate_pages): Don't allocate real mode memory.
9080 (grub_e820_add_region): Remove the limit.
9081 (grub_linux_boot): Allocate and copy real mode memory.
9082 (grub_linux_unload): Free linux_cmdline.
9083 (grub_cmd_linux): Use temporary storage for parameters.
9084 (grub_cmd_initrd): Likewise.
9085 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9086 (linux_kernel_params): Make it 1K big.
9087
9088 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * Makefile.util.def: Remove -Wno-format.
9091 * grub-core/Makefile.core.def: Likewise.
9092
9093 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * tests/cmp_unit_test.c: Add missing failure message.
9096 * tests/example_unit_test.c: Likewise.
9097 * tests/printf_unit_test.c: Likewise.
9098
9099 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9102 relaxation of protective MBR requirements.
9103
9104 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * configure.ac: Add condition for COND_HOST_XNU.
9107 * Makefile.util.def (10_xnu): New script.
9108 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9109
9110 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9113 objconv bug.
9114
9115 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9118 Binary on other platforms stays identical.
9119
9120 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9121
9122 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9123 Apple.
9124
9125 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9126
9127 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9128
9129 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9132 rather than defining size_t ourselves to avoid conflict.
9133
9134 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9137 initialisation to avoid __bzero reference.
9138
9139 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9142 version.
9143 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9144 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9145 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9146 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9147 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9148
9149 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9152 * grub-core/kern/misc.c: Likewise.
9153 * grub-core/loader/i386/xnu.c: Likewise.
9154 * include/grub/i386/tsc.h: Likewise.
9155 * include/grub/symbol.h: Likewise.
9156
9157 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9160 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9161 on older compiler.
9162
9163 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9164
9165 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9166 Implement Apple flavour.
9167 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9168
9169 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9172 (memmove) [__APPLE__]: Likewise.
9173 (memcpy) [__APPLE__]: Likewise.
9174 (memset) [__APPLE__]: Likewise.
9175 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9176 (memmove) [__APPLE__]: Likewise.
9177 (memcpy) [__APPLE__]: Likewise.
9178 (memset) [__APPLE__]: Likewise.
9179
9180 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9183 dependency discard.
9184
9185 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * grub-core/normal/main.c (read_config_file): Provide config_file and
9188 config_directory.
9189 * util/grub.d/41_custom.in: Use config_directoy when available.
9190
9191 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9194 (grub_bfs_dir): Likewise.
9195
9196 2012-05-27 Peter Jones <pjones@redhat.com>
9197
9198 The old code gives arguments to a printf function which can't work
9199 correctly, and the compiler complains.
9200
9201 * grub-core/tests/example_functional_test.c (example_test): Add
9202 missing text.
9203 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9204 * include/grub/test.h (grub_test_assert_helper): New declaration.
9205 (grub_test_assert): Use grub_test_assert_helper.
9206
9207 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9210 (exfctest): ... this to avoid overlong filenames.
9211 All users updated.
9212
9213 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 Handle "." and ".." on squashfs.
9216
9217 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9218 Make inode numbers into stack.
9219 (grub_squash_read_symlink): Use stack.
9220 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9221 (make_root_node): Fill stack.
9222 (grub_squash_open): Use stack.
9223
9224 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9227 freeing.
9228
9229 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9232 stderr on test calls.
9233
9234 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9237
9238 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9241
9242 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9245 "..".
9246
9247 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9250 (grub_hfsplus_iterate_dir): Add "." and "..".
9251
9252 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9255 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9256
9257 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9260 (find_path): Handle "." and "..".
9261
9262 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9265 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9266 (grub_affs_iterate_dir): Handle hardlinks.
9267
9268 2012-05-26 Matthew Garrett <mjg@redhat.com>
9269
9270 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9271 (grub_efi_console_fini): Likewise.
9272 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9273 (grub_video_gop_fill_mode_info): Rename to ...
9274 (grub_video_gop_fill_real_mode_info): ... this.
9275 (grub_video_gop_fill_mode_info): New function.
9276 (grub_video_gop_setup): Setup double framebuffer.
9277 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9278 Free offscreen.
9279 (grub_video_gop_swap_buffers): Copy framebuffer.
9280 (grub_video_gop_fini): Free offscreen buffer.
9281 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9282 New enum.
9283 (grub_efi_gop_blt_pixel): New struct.
9284
9285 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9286
9287 * gentpl.py: Remove error disabling for objconv.
9288
9289 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9290
9291 * configure.ac: Remove -Wunitialized as it's not available on older
9292 compilers.
9293
9294 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 Fix extent overflow comparator.
9297
9298 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9299 (grub_hfsplus_read_block): Set type.
9300 (grub_hfsplus_cmp_extkey): Compare type.
9301
9302 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9305
9306 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9309 than 0.
9310
9311 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9314 (dejavu_bold_14.pf2): New target.
9315
9316 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * configure.ac: Fix djvu font detection.
9319
9320 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9323 ext* instead of ext2.
9324
9325 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9326
9327 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9328 name with \0.
9329
9330 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9331
9332 * docs/grub-dev.texi: Remove dot from .png.
9333
9334 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9337 protective entry in any slot.
9338 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9339 if protective entry is found in any slot.
9340
9341 Protective entry in non-first slot make no sense but is a widespread
9342 brain damage.
9343
9344 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9347
9348 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9349
9350 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9351 with old reiserfs.
9352 (grub_reiserfs_open): Don't free root.
9353
9354 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9357 after freeing for safety.
9358
9359 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9362 Reported by: Jordan Uggla.
9363
9364 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9365
9366 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9367 actual implementation. Specifically, clarify that the grub menu will
9368 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9369 passed.
9370
9371 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9372
9373 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9374 of r0.
9375
9376 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 Remove unjustified hard dependency of normal.mod on gfxterm.
9379
9380 * include/grub/term.h (grub_term_output): New member fullscreen.
9381 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9382 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9383 (grub_gfxterm): Set .fullscreen.
9384 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9385 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9386
9387 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9390 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9391 Mention case-insensitive AFFS, SFS and JFS.
9392
9393 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9396
9397 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9398
9399 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9400 a bad FS.
9401
9402 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9405 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9406
9407 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
9410 (grub_jfs_mount): Fill caseins.
9411 (grub_jfs_find_file): Respect caseins.
9412
9413 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
9416 through UTF-16.
9417
9418 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
9421 New argument origpath. All users updated.
9422
9423 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
9426 (read_attr): Ensure that we read start of possibly compressed block.
9427
9428 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
9429
9430 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
9431 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
9432 All users updated.
9433
9434 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
9437 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
9438 (dejavu.pf2): Replace with ...
9439 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
9440 this.
9441
9442 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * util/grub.d/20_linux_xen.in: Add missing line.
9445
9446 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
9449 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
9450 (grub_utf16_to_utf8): Likewise.
9451
9452 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9453
9454 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
9455 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
9456 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9457 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
9458 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9459 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
9460
9461 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9464 a bad FS.
9465
9466 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/fs/udf.c (read_string): Bail out on size=0.
9469 (grub_udf_read_symlink): Handle read_string failure.
9470
9471 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
9474 comment.
9475
9476 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 Fix handling of UDF symlinks.
9479
9480 * grub-core/fs/udf.c (read_string): New argument outbuf.
9481 All users updated.
9482 (grub_ufs_read_symlink): Rename to ...
9483 (grub_udf_read_symlink): ... this. All users updated.
9484 Handle symlinks with more than one component.
9485
9486 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
9489 symlinks. Replace leading colon with a slash.
9490
9491 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
9494 filename.
9495
9496 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
9499 match in inner node.
9500
9501 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
9504 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
9505 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
9506 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
9507 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
9508 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
9509 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
9510 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
9511 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
9512
9513 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 Use grub-probe and not cmp to check that disk is empty.
9516
9517 * util/grub-install.in: Use grub-probe for zero-check.
9518 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
9519 (probe): Handle PRINT_ZERO_CHECK.
9520 (argp_parser): Handle -t zero_check.
9521
9522 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 Flush block cache on adding disk to device map.
9525
9526 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
9527 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
9528 adding.
9529 (read_device_map): Likewise.
9530 (open_device): Flush on opening.
9531
9532 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
9535 (handle_symlink): Fix off-by-one error.
9536 Canonicalize the target.
9537 (grub_cpio_dir): Canonicalize the name.
9538 Fix memory leak.
9539 Set directory.
9540 (grub_cpio_open): Canonicalize the name.
9541
9542 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
9545 handling.
9546
9547 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
9550 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
9551
9552 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
9555 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
9556 All users updated.
9557
9558 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9559
9560 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
9561 counterpart.
9562
9563 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 Fix UFS1 big file support.
9566
9567 * grub-core/fs/ufs.c (INODE): Removed.
9568 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
9569 64-bit.
9570 (INODE_MODE): Simplify.
9571 (grub_ufs_inode): Use uint64_t for size and not int64_t.
9572 (grub_ufs_lookup_symlink): Don't use INODE.
9573
9574 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 Fix minixfs with non-power-of-two blocks since it's supported by minix.
9577
9578 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
9579 (grub_minix_data): Replace log_block_size with block_size.
9580 (grub_minix_read_file): Use block_size but avoid 64-bit division.
9581 (grub_minix_mount): Fill block_size.
9582
9583 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * configure.ac: Bump to beta5.
9586
9587 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9588
9589 Fix wrapped HFS+ handling.
9590
9591 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
9592 blocks_start. All users updated.
9593 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
9594 wrapping offset.
9595 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
9596
9597 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 Fix long symlinks on reiserfs.
9600
9601 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
9602 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
9603 (grub_reiserfs_iterate_dir): Save size for non-directories.
9604 (grub_reiserfs_open): Don't reread stat block as we already know the
9605 size.
9606 (grub_reiserfs_read): Split into...
9607 (grub_reiserfs_read_real): ... and ...
9608 (grub_reiserfs_read): ...this.
9609
9610 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 Fix non-indexed JFS.
9613
9614 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
9615 (grub_jfs_data): New field namecomponentlen.
9616 (grub_jfs_mount): Fill namecomponentlen.
9617 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
9618
9619 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
9622 * tests/grub_script_echo1.in: Add tests.
9623
9624 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * util/grub-install.in: Ignore empty devicetree directory.
9627
9628 2012-05-08 Bean <bean123ch@gmail.com>
9629
9630 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
9631 All users updated.
9632 (free_rsm): Free header as well.
9633 (free_old_fragments): Fix memory leak.
9634 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
9635 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
9636 (destroy_pq): Likewise.
9637 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
9638
9639 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
9642 resulting hash as a precaution.
9643
9644 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
9647 '_' in variable names.
9648 * grub-core/net/net.c (grub_net_network_level_interface_register):
9649 Likewise.
9650
9651 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 Fix AFFS with non-512B blocks.
9654
9655 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
9656 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
9657 (grub_affs_data): Replace blocksize with log_blocksize.
9658 (grub_affs_read_block): Fix non-512B blocks.
9659 (grub_affs_read_symlink): Likewise.
9660 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
9661 (grub_affs_read): Fix non-512B blocks.
9662 (grub_affs_label): Likewise.
9663 (grub_affs_mtime): Likewise.
9664 (grub_affs_mount): Fix block detection routine.
9665
9666 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 Add filesystem mtime to AFFS.
9669
9670 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
9671 (aftime2ctime): New function.
9672 (grub_affs_dir): Use aftime2ctime.
9673 (grub_affs_label): Fix return value.
9674 (grub_affs_mtime): New function.
9675 (grub_affs_fs): Add mtime.
9676
9677 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
9680 UTF-8.
9681
9682 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
9685 UTF-8.
9686
9687 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9688
9689 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
9690
9691 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
9694 flags.
9695 (FLAGS_CASE_SENSITIVE): New enum value.
9696 (cache_entry): New struct.
9697 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
9698 cache_size and cache.
9699 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
9700 Add log_blocksize and fshelp_flags.
9701 (grub_sfs_read_extent): Handle non-512 blocks.
9702 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
9703 (grub_sfs_read_file): Handle non-512 blocks.
9704 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
9705 fshelp_flags.
9706 (grub_sfs_read_symlink): Handle non-512 blocks.
9707 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
9708 (grub_sfs_dir): Free cache.
9709 (grub_sfs_close): Likewise.
9710
9711 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
9714 filesystems.
9715
9716 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
9719
9720 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
9723
9724 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
9727 (grub_sfs_read_extent): Likewise.
9728 (grub_sfs_read_block): Likewise.
9729 (grub_sfs_mount): Likewise.
9730 (grub_sfs_iterate_dir): Likewise.
9731 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
9732 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
9733
9734 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 Fix errors on compressed NTFS with 512B clusters.
9737
9738 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
9739 types.
9740 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
9741 not 0.
9742 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
9743 Relax check for inline extents.
9744 (ntfscomp): Return correct -1 on error and not 0.
9745
9746 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * util/grub-install.in: Fix handling of prefix containing spaces.
9749
9750 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
9753 (grub_squash_read_data): Fix offset byte-swapping.
9754
9755 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
9758 per common usage and preffered in several parts of code.
9759 (grub_memcmp): Likewise.
9760 (grub_strncmp): Likewise.
9761 * include/grub/misc.h (grub_strcasecmp): Likewise.
9762 (grub_strncasecmp): Likewise.
9763 * Makefile.util.def (cmp_test): New test.
9764 (grub_script_strcmp): Likewise.
9765 * tests/cmp_unit_test.c: New file.
9766 * tests/grub_script_strcmp.in: Likewise.
9767 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
9768
9769 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * include/grub/pci.h: Move enums into no-asm part.
9772
9773 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9776
9777 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9778
9779 * util/getroot.c (find_hurd_root_device): Try to make error message
9780 and comments to translators clearer.
9781
9782 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9785
9786 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9789 btrfs.
9790
9791 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 * docs/grub.cfg: Update.
9794
9795 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9796
9797 * docs/grub.texi (PXE): Remove not present variables.
9798
9799 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * grub-core/net/net.c (defserver_set_env): New function.
9802 (defserver_get_env): Likewise.
9803 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9804
9805 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9808 entries.
9809
9810 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9811
9812 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9813 * grub-core/kern/emu/hostdisk.c: Likewise.
9814
9815 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9816
9817 Handle hurd userspace partitions.
9818
9819 * util/getroot.c (find_hurd_root_device): New function.
9820 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9821
9822 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9825 names.
9826 Reported by: Bastian Blank.
9827
9828 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9829
9830 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9831 crossing page boundary.
9832
9833 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9834
9835 Fix B-tree search in BFS, especially in presence of non-ASCII
9836 characters.
9837
9838 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9839 (find_in_b_tree): Use standard bsearch + btree algorithm.
9840
9841 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9844 and so on.
9845
9846 2012-05-03 Matthew Garrett <mjg@redhat.com>
9847 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 Suspend broadcom cards in order to stop their DMA.
9850
9851 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9852 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9853 (pci): Don't build on x86 EFI.
9854 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9855 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9856 New function.
9857 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9858 stop_broadcom if running on EFI.
9859 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9860 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9861 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9862 (grub_pci_find_capability): New proto.
9863
9864 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * docs/grub.texi: Remove dot from the extension as it apparently
9867 doesn't work with some makeinfo versions.
9868
9869 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9872 with GRUB expectance.
9873
9874 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9877
9878 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9881 zero after directory block since last entry may be not 0-terminated if
9882 it ends on block boundary. Use continue instead of if spanning whole
9883 loop.
9884
9885 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 Support 4K sectors UDF inline files.
9888
9889 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9890 (grub_udf_extended_file_entry): Likewise.
9891 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9892 All users updated.
9893 (get_fshelp_size): New function.
9894 (grub_udf_read_icb): Read whole block.
9895 (grub_udf_iterate_dir): Likewise.
9896 (grub_udf_dir): Likewise.
9897 (grub_udf_open): Likewise.
9898
9899 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9902
9903 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9904
9905 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9906 inline symlinks in addition to workaround.
9907
9908 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9909
9910 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9911
9912 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9915
9916 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9919
9920 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 Fix reiserfs big seek times.
9923
9924 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9925 exact. All users updated.
9926 (grub_reiserfs_read): Use nearest btree search for seeking.
9927 Fix return value on error.
9928
9929 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9932 entries.
9933 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9934 * docs/grub.texi: Update menuentry description.
9935
9936 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9939 crash when embedding onto filesystem.
9940
9941 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9944 name.
9945
9946 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9949
9950 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9953 commit.
9954
9955 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9956 2012-05-01 Bean <bean123ch@gmail.com>
9957
9958 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9959
9960 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9963 Special behaviour for len = 0 to read whole file isn't used anywhere and
9964 can cause buffer ovewrflows in several places.
9965
9966 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9969
9970 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 Handle RAIDZ on non-512B sectors.
9973
9974 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9975 max_children_ashift.
9976 (fill_vdev_info_real): Fill max_children_ashift.
9977 (read_device): Use max_children_ashift.
9978
9979 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9982
9983 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9986 disk names.
9987 * docs/grub.texi: Update device.map parts.
9988
9989 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 Don't scan into non-diskfilter devices having diskfilter names.
9992
9993 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9994 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9995 handling.
9996 (scan_disk_hook): New function.
9997
9998 2012-04-29 Bean <bean123ch@gmail.com>
9999
10000 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10001 allocation.
10002
10003 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10004
10005 * configure.ac: Detect starfield theme font path
10006 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10007
10008 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10011 geometry on serial consoles.
10012
10013 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10016 because of network consoles.
10017
10018 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10021 handling.
10022
10023 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10026 falls on Q syndrom.
10027
10028 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10031 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10032
10033 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10036 Allocate at lest 8192 for temporary buffer as required for lzo.
10037
10038 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10041 to cluster_bits, since it's already added in.
10042 (grub_fat_read_data): Likewise.
10043
10044 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10045
10046 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10047 as long as cluster size is multiple of 512 bytes.
10048
10049 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 * util/grub-mkrescue.in: Fix locale directory.
10052
10053 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/kern/emu/hostdisk.c (map): Make static.
10056
10057 2012-04-23 Bean <bean123ch@gmail.com>
10058
10059 * util/grub-fstest.c (fstest): Add missing break.
10060
10061 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10062
10063 Fix hurd build.
10064
10065 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10066 not define nr variable.
10067 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10068 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10069 grub_find_device): Do not define.
10070
10071 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10072
10073 Fix kfreebsd compile and behaviour.
10074
10075 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10076 format-security.
10077 * util/getroot.c: Fix wait.h include.
10078 (grub_guess_root_devices): Error if grub_find_device fails.
10079 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10080 (grub_util_get_dev_abstraction): Likewise.
10081 (grub_util_pull_device): Likewise.
10082 (grub_util_get_grub_dev): Likewise.
10083 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10084
10085 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Fix and unify wholedisk detection.
10088
10089 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10090 is_part. All users updated.
10091 (device_is_wholedisk): Removed.
10092 (grub_util_biosdisk_get_grub_dev): Use is_part.
10093
10094 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10097 mode.
10098
10099 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10100
10101 * configure.ac: Bump to beta4.
10102
10103 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10104
10105 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10106 --fs-uuid --set UUID syntax.
10107
10108 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10111 disunification.
10112
10113 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10116
10117 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10118
10119 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10120
10121 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10122
10123 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10124
10125 2012-04-18 Bean <bean123ch@gmail.com>
10126
10127 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10128 place.
10129
10130 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10133 users updated.
10134 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10135 corresponding to GRUB partitions.
10136 (grub_util_biosdisk_write): Likewise.
10137
10138 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 Scan mdraid before LVM.
10141
10142 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10143 (grub_diskfilter_register_front): ... this.
10144 (grub_diskfilter_register_back): New function.
10145 All users of grub_diskfilter_register updated.
10146
10147 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * util/grub-install.in: Fix an automatic target detection bug.
10150
10151 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * util/grub-install.in: New option --efi-directory.
10154
10155 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10158 boot services if we have no other choice.
10159
10160 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10163 document it.
10164 * tests/util/grub-shell.in: Update to --directory.
10165
10166 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10169
10170 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10173 (grub_minix_read_file): Likewise.
10174 (grub_minix_read_inode): Likewise.
10175 (grub_minix_find_file): Likewise.
10176 (grub_minix_dir): Likewise.
10177
10178 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * util/grub-setup.c (setup): Fix partition handling and blocklist
10181 check.
10182
10183 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10186 redundant buggy overlap check.
10187
10188 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10191 and grub-mknetdir.
10192
10193 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10196 kh.loadflags on pre-2.00 kernels.
10197
10198 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Terminate UNDI and PXE before launching the payload to avoid problems
10201 with DMA.
10202
10203 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10204 (grub_loader_flags): ... this. All users updated.
10205 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10206 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10207 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10208 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10209 function.
10210 (grub_pxe_restore): Likewise.
10211 (fini_hnd): New var.
10212 (GRUB_MOD_INIT): Register shutdown hook.
10213 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10214 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10215 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10216 (grub_loader_set): Rename second argument to flags.
10217
10218 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10221 written bytes.
10222 (grub_get_num_of_utf8_bytes): New function.
10223 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10224 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10225 executing it.
10226 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10227 (grub_ucs4_to_utf8): Change return type.
10228
10229 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10232 warning.
10233 * grub-core/fs/bfs.c (hop_level): Likewise.
10234 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10235
10236 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * grub-core/lib/adler32.c: Recode due to license unclearness.
10239
10240 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10243 (test_header): Likewise.
10244
10245 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 Fix --help formatting.
10248
10249 * util/grub-mkconfig_lib.in (print_option_help): New function.
10250 (grub_fmt): Likewise.
10251 * util/grub-install.in: Use print_option_help and grub_fmt.
10252 * util/grub-kbdcomp.in: Likewise.
10253 * util/grub-mkconfig.in: Likewise.
10254 * util/grub-mknetdir.in: Likewise.
10255 * util/grub-mkrescue.in: Likewise.
10256 * util/grub-mkstandalone.in: Likewise.
10257 * util/grub-reboot.in: Likewise.
10258 * util/grub-set-default.in: Likewise.
10259 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10260
10261 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * linguas.sh: Remove autogenerated *.po.
10264
10265 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 * po/README: Move language fetcing to ...
10268 * linguas.sh: ... here.
10269 * po/README: Point to linguas.sh.
10270
10271 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10272
10273 * po/README: Exclude ko.po due to disclaimer problems.
10274
10275 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10278 len = 0.
10279 (grub_gettext_translate_real): Handle 0th string.
10280 (grub_gettext_translate): Ensure that "" isn't translated.
10281
10282 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10285 TRANSLATORS comment.
10286 (grub_diskfilter_print_partmap): Propagate changing of error into
10287 warning.
10288
10289 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10290
10291 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10292 to uint64_t to prevent overflow.
10293 (grub_diskfilter_lv): Increase start_extent and extent_count
10294 to uint64_t to prevent overflow.
10295
10296 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 * configure.ac: Increase version.
10299
10300 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10303
10304 * po/Rules-translit: New file.
10305 * po/arabic.sed: Likewise.
10306 * po/cyrillic.sed: Likewise.
10307 * po/greek.sed: Likewise.
10308 * po/hebrew.sed: Likewise.
10309 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10310 * po/Makefile.in.in: Add extra_dist4.
10311
10312 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10315
10316 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10317 modify names. Introduce MODE_BIGENDIAN.
10318 * grub-core/fs/minix_be.c: New file.
10319 * grub-core/fs/minix2_be.c: Likewise
10320 * grub-core/fs/minix3_be.c: Likewise.
10321 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10322 minix3_be.
10323 * grub-core/Makefile.core.def (minix_be): New module.
10324 (minix2_be): Likewise.
10325 (minix3_be): Likewise.
10326
10327 2012-04-01 Felix <email@hamburg.de>
10328
10329 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10330 (devs): Add MBP 2011.
10331
10332 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10335
10336 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10337
10338 * grub-core/normal/cmdline.c (print_completion): New field
10339 prompt_len.
10340 (grub_cmdline_get): Handle width properly.
10341
10342 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10345
10346 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10349 after 29th of February.
10350
10351 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 Fix exfat endianness handling.
10354
10355 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10356 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10357 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10358 Byte-swap utf16 when necessary.
10359 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10360
10361 2012-03-31 Anton Blanchard <anton@samba.org>
10362 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 Fix btrfs endianness handling.
10365
10366 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10367 (lower_bound): Make root uint64_t. Use root in le.
10368 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10369 (find_path): Fix template key init.
10370 (grub_btrfs_dir): Fix mtime byteswap.
10371 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10372
10373 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10376 recursion_depth. Break infinite resursions. All users updated.
10377
10378 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10379
10380 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10381 after free.
10382 Reported by: Peter Jones.
10383
10384 2012-03-31 Anton Blanchard <anton@samba.org>
10385
10386 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10387 8 bit values.
10388
10389 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * util/grub-install.in: Fix nvram call for PreP.
10392
10393 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10396 the error when some elements are missing into a warning.
10397
10398 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10401
10402 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10403
10404 * docs/grub.texi (Invoking grub-probe): New section.
10405 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10406
10407 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 Fix tab and wide character handling in editor and menu.
10410
10411 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
10412 agglomerate control characters with combining marks.
10413 (bidi_line_wrap): Allow break on tab.
10414 (grub_unicode_get_comb_start): New function.
10415 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
10416 and tab correctly.
10417 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
10418 with a space.
10419 * grub-core/normal/term.c (print_ucs4_terminal): New argument
10420 fixed_tab_size. All users updated.
10421 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
10422 (grub_term_getcharwidth): Handle \t.
10423 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
10424 and copy.
10425
10426 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 Handle big-endian mdraid.
10429
10430 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
10431 * grub-core/Makefile.core.def (mdraid09_be): New module.
10432 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
10433 rather than grub_le_to_cpu* and grub_cpu_to_le*.
10434 * grub-core/disk/mdraid_linux_be.c: New file.
10435
10436 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
10439
10440 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10443 missing quotes which caused confusion among translators.
10444
10445 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 * util/grub-mkconfig_lib.in: Fix typo.
10448
10449 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
10452 spaces.
10453 * tests/grub_script_leading_whitespace.in: New file.
10454 * Makefile.util.def (grub_script_leading_whitespace): New test.
10455
10456 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
10459 to work.
10460
10461 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
10464 starts with control character.
10465
10466 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
10469 overflow.
10470 (grub_gdb_outbuf): Likewise.
10471
10472 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
10475 zero terminator. Fixes a crash.
10476
10477 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
10480 beyond 4 GiB.
10481 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
10482 images independently of preffered adderss field.
10483
10484 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10485
10486 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
10487 * grub-core/commands/regexp.c: Likewise.
10488 * grub-core/loader/i386/linux.c: Likewise.
10489 * grub-core/partmap/msdos.c: Likewise.
10490 * grub-core/script/execute.c: Likewise.
10491 * grub-core/term/gfxterm.c: Likewise.
10492
10493 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 Add variable parsing in $"..." and fix several mismatches with bash.
10496
10497 * Makefile.util.def (grub_script_gettext): New test.
10498 * grub-core/script/execute.c (parse_string): New function.
10499 (gettext_append): Likewise.
10500 (grub_script_arglist_to_argv): Use gettext_append.
10501 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
10502 * tests/grub_script_gettext.in: New file.
10503
10504 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 Fix handling of leading spaces in scripts.
10507
10508 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
10509 spaces.
10510 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
10511 other than skipping \r. All users updated.
10512 * tests/grub_script_echo1.in: Add space-related tests.
10513 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
10514
10515 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
10518
10519 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * configure.ac: Bump up the version to beta2.
10522
10523 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 Fix gettext reload bugs (e.g. inability to disable gettext
10526 once enabled).
10527
10528 * grub-core/gettext/gettext.c: Encapsulate all static variables in
10529 main_context and secondary_context. All functions updated.
10530 (grub_gettext_translate): Rename to ...
10531 (grub_gettext_translate_real): ... this. Return NULL on failed
10532 translate.
10533 (grub_gettext_translate): Handle secondary context.
10534 (grub_gettext_delete_list): Close file and zero-out the context.
10535 (grub_mofile_open): Don't call grub_gettext_delete_list.
10536 Don't close file.
10537 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
10538 if locale="" to avoid pointless error message.
10539 (grub_gettext_env_write_lang): Update lang even if load fails.
10540 Handle secondary context.
10541 (grub_gettext_reread_prefix): New function.
10542 (read_main): Likewise.
10543 (read_secondary): Likewise.
10544 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
10545 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
10546 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
10547 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
10548
10549 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * configure.ac: Decrease warning level to avoid spurious warnings and
10552 to be able to compile with GCC 4.2.
10553 * Makefile.util.def: Remove -Wno-error=logical-op.
10554
10555 2012-03-10 William Bittner <william.bittner@gmail.com>
10556
10557 * util/import_unicode.py: Add missing brackets around string for
10558 python 3 support.
10559
10560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10561
10562 Fix efi chainloader on network root.
10563
10564 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
10565 network devices.
10566 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
10567 New function.
10568
10569 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
10572 unused show_text member.
10573 * docs/grub.texi: Document "text" property.
10574
10575 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10576
10577 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
10578 in dprintf.
10579
10580 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 Fix IMSM handling on Fedora.
10583
10584 * util/getroot.c (grub_util_is_imsm): New function.
10585 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
10586
10587 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * Makefile.am: Strip gold section.
10590 * conf/Makefile.common: Likewise.
10591 * gentpl.py: Likewise.
10592 * grub-core/Makefile.core.def: Likewise.
10593 * grub-core/genmod.sh.in: Likewise.
10594
10595 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10596
10597 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
10598 * util/grub.d/20_linux_xen.in: Likewise.
10599 Based on Debian patch.
10600
10601 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10602
10603 * util/grub.d/10_linux.in: Fix syntax error resulting in
10604 Richard Laager's patch.
10605 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
10606
10607 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
10610 dependencies.
10611
10612 2012-03-10 Richard Laager <rlaager@wiktel.com>
10613
10614 * util/grub.d/10_linux.in: Fix ZFS root passing.
10615
10616 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10619 * grub-core/commands/xnu_uuid.c: Likewise.
10620 * grub-core/loader/efi/appleloader.c: Likewise.
10621 * grub-core/script/execute.c: Likewise.
10622 * grub-core/script/main.c: Likewise.
10623 * util/grub-mkfont.c: Likewise.
10624
10625 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 * util/grub-mkfont.c (options): Use more appropriate "select" that
10628 "set" for face index.
10629
10630 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * util/grub-editenv.c (options): Gettextize command summaries.
10633
10634 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
10637 "out of memory" error messagge.
10638
10639 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
10642 of diskfilter for diskfilter on diskfilter support.
10643
10644 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
10647
10648 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 * util/grub-install.in: Check for themes/starfield/theme.txt and not
10651 themes/starfield.
10652
10653 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
10656
10657 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
10660
10661 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
10664 of error message.
10665
10666 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
10669
10670 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
10673 message.
10674 * util/grub-install.in: Fix and gettextize error message.
10675
10676 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
10679 Gettextize.
10680 * util/grub-mount.c (options): Likewise.
10681
10682 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
10685 gettextize.
10686 * grub-core/commands/search_wrap.c (options): Likewise.
10687
10688 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
10691
10692 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
10695 size calculation.
10696 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
10697 none is known.
10698
10699 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10700
10701 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
10702 "temporary" since it's used in identifier and is limited in space.
10703
10704 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * po/POTFILES.in: Regenerate. Include *.h since they contain
10707 translatable strings as well.
10708
10709 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10712 byte-swap on big-endian.
10713 Reported by: Lennart Sorensen
10714
10715 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10718 (allocate_pages): Improve dprintf.
10719 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
10720 code32_start. Fill code32_start and kernel_alignment in params.
10721 (grub_cmd_initrd): Use prot_init_space.
10722
10723 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
10726
10727 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 * util/grub-install.in: Add missing dot at the end of sentence.
10730
10731 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
10734 * grub-core/commands/videotest.c: Likewise.
10735 * grub-core/loader/i386/linux.c: Likewise.
10736
10737 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
10740 sentence.
10741 Reported by: Milo Casagrande.
10742
10743 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10744
10745 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
10746 * grub-core/commands/gptsync.c: Likewise.
10747 * grub-core/commands/hashsum.c: Likewise.
10748 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10749 * grub-core/commands/legacycfg.c: Likewise.
10750 * grub-core/io/gzio.c: Likewise.
10751 * grub-core/net/net.c: Likewise.
10752 * grub-core/term/gfxterm.c: Likewise.
10753 * grub-core/term/terminfo.c: Likewise.
10754 * grub-core/tests/test_blockarg.c: Likewise.
10755 * grub-core/video/video.c: Likewise.
10756 * util/grub-install.in: Likewise.
10757 * util/grub-mkfont.c: Likewise.
10758
10759 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
10762
10763 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 * grub-core/commands/search_wrap.c (options): Fix a typo.
10766 Reported by: David Prévot.
10767
10768 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
10771 description.
10772
10773 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 * util/grub-script-check.c (main): Fix a syntax error message which was
10776 unclear.
10777
10778 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10781
10782 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10785 messages.
10786
10787 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10788
10789 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10790 without argument.
10791 * util/grub-mount.c (options): Likewise.
10792
10793 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10796
10797 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 * grub-core/net/http.c: Add TRANSLATORS comments.
10800 * grub-core/normal/cmdline.c: Likewise.
10801 * grub-core/normal/misc.c: Likewise.
10802 * grub-core/partmap/msdos.c: Likewise.
10803 * grub-core/parttool/msdospart.c: Likewise.
10804 * grub-core/script/execute.c: Likewise.
10805 * grub-core/script/main.c: Likewise.
10806 * grub-core/term/terminfo.c: Likewise.
10807 * grub-core/video/bitmap.c: Likewise.
10808 * util/grub-install.in: Likewise.
10809 * util/grub-mkimage.c: Likewise.
10810 * util/grub-mklayout.c: Likewise.
10811 * util/grub-setup.c: Likewise.
10812
10813 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10816 with similar messages in grub-fstest.
10817
10818 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 * util/grub-install.in: Unify "option requires an argument" message
10821 with similar messages in other files.
10822 * util/grub-mkconfig.in: Likewise.
10823
10824 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * util/grub-set-default.in: Replace printf with gettext_printf (the
10827 string in in question is already translated from grub-reboot)
10828
10829 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * configure.ac: Bump up the version to beta1.
10832
10833 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10836 case when min_align = 0.
10837
10838 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10841 and fix a case when line_start overflows.
10842
10843 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 * util/grub-reboot.in (usage): Mention id posibility.
10846 * util/grub-set-default.in (usage): Likewise.
10847
10848 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10851 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10852 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10853 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10854 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10855 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10856 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10857
10858 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 * grub-core/commands/menuentry.c (options): Remove
10861 GRUB_ARG_OPTION_REPEATABLE.
10862 Reported by: Andreas Vogel
10863
10864 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10865
10866 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10867
10868 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10869
10870 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10871 error.
10872
10873 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 Use sort -V by the idea of Georgi Georgiev.
10876
10877 * util/grub-mkconfig_lib.in (version_sort): New function.
10878 (version_test_numeric): Use version_sort.
10879
10880 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Use submenus in grub-mkconfig.
10883
10884 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10885 * util/grub-mkconfig_lib.in (grub_quote): New function.
10886 (gettext_printf): Use gettext and not gettext_quoted to fix several
10887 messages.
10888 * util/grub.d/10_hurd.in: Use submenus.
10889 * util/grub.d/10_kfreebsd.in: Likewise.
10890 * util/grub.d/10_linux.in: Likewise.
10891 * util/grub.d/10_netbsd.in: Likewise.
10892 * util/grub.d/20_linux_xen.in: Likewise.
10893 * util/grub.d/30_os-prober.in: Likewise.
10894 * util/grub.d/10_illumos.in: Add missing quoting.
10895 * util/grub.d/10_windows.in: Likewise.
10896
10897 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 Fix menu title instability bug.
10900
10901 * grub-core/commands/menuentry.c (options): New option --id.
10902 (grub_normal_add_menu_entry): New argument id. All users updated.
10903 (grub_cmd_menuentry): Handle --id.
10904 (grub_menu_init): Accept unknown arguments.
10905 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10906 feature_menuentry_options.
10907 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10908 saved_entry.
10909 (get_entry_number): Match with id as well.
10910 * include/grub/menu.h (grub_menu_entry): New member id.
10911 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10912 * util/grub.d/00_header.in: Define menuentry_id_option.
10913 * util/grub.d/10_hurd.in: Define id.
10914 * util/grub.d/10_illumos.in: Likewise.
10915 * util/grub.d/10_kfreebsd.in: Likewise.
10916 * util/grub.d/10_linux.in: Likewise.
10917 * util/grub.d/10_netbsd.in: Likewise.
10918 * util/grub.d/10_windows.in: Likewise.
10919 * util/grub.d/20_linux_xen.in: Likewise.
10920 * util/grub.d/30_os-prober.in: Likewise.
10921
10922 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10925 "scope" with "body".
10926
10927 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10930 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10931 prot_size and prot_file_size.
10932
10933 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10936 All users updated. If easily=1 require raid-5/-6 to be full.
10937 (is_node_readable): Likewise.
10938 (scan_devices): Scan incomplete but readable LVs at the end.
10939 (grub_diskfilter_memberlist): Pull missing devices.
10940 (insert_array): Skip scanning until device is complete or scan is
10941 done otherwise.
10942 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10943 check.
10944 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10945 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10946
10947 2012-03-03 Matthew Garrett <mjg@redhat.com>
10948 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 Avoid EFI boot services when loading Linux.
10951
10952 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10953 avoid_efi_bootservices. All users updated.
10954 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10955 argument avoid_efi_bootservices. All users updated.
10956 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10957 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10958 align, min_align, relocatable, prefered_address. All users updated.
10959 Allocate avoiding boot services if kernel is relocatable.
10960 (grub_cmd_linux): Check if kernel is relocatable.
10961 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10962 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10963 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10964 avoid_efi_boot_services.
10965 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10966 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10967 (linux_kernel_params): Likewise.
10968
10969 2012-03-03 Matthew Garrett <mjg@redhat.com>
10970 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10971
10972 Use EDID on EFI.
10973
10974 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10975 datasize_out.
10976 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10977 modes. Set gop_handle.
10978 (grub_video_gop_get_edid): New function.
10979 (grub_gop_get_preferred_mode): Likewise.
10980 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10981 (grub_video_efi_gop_adapter): Set .get_edid.
10982 * include/grub/efi/edid.h: New file.
10983 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10984
10985 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 * util/grub-install.in: Load efivars unconditionally.
10988
10989 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * po/Rules-piglatin: Change suffix from .po-update-en to
10992 .po-update-en-piglatin.
10993
10994 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 Add a pig farm.
10997
10998 * po/piglatin.sed: New file.
10999 * po/en@piglatin.header: Likewise.
11000 * po/Rules-piglatin: Likewise.
11001 * po/README: Add en@piglatin to autogenerated languages.
11002
11003 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11006 "Command for ...".
11007 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11008 "Check" since we don't check anything.
11009 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11010 is 64-bit one.
11011 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11012 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11013 (grub_md_sha512_real): Likewise.
11014
11015 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * grub-core/commands/gptsync.c: Fix typographic quoting.
11018 * grub-core/commands/ieee1275/suspend.c: Likewise.
11019 * grub-core/commands/parttool.c: Likewise.
11020 * grub-core/commands/search_wrap.c: Likewise.
11021 * grub-core/commands/videoinfo.c: Likewise.
11022 * grub-core/gfxmenu/gui_label.c: Likewise.
11023 * grub-core/hello/hello.c: Likewise.
11024 * grub-core/kern/emu/main.c: Likewise.
11025 * grub-core/net/net.c: Likewise.
11026 * grub-core/normal/menu.c: Likewise.
11027 * grub-core/normal/menu_text.c: Likewise.
11028 * grub-core/normal/misc.c: Likewise.
11029 * util/grub-editenv.c: Likewise.
11030 * util/grub-install.in: Likewise.
11031 * util/grub-kbdcomp.in: Likewise.
11032 * util/grub-mkconfig.in: Likewise.
11033 * util/grub-mknetdir.in: Likewise.
11034 * util/grub-mkrescue.in: Likewise.
11035 * util/grub-mkstandalone.in: Likewise.
11036 * util/grub-reboot.in: Likewise.
11037 * util/grub-set-default.in: Likewise.
11038 * util/grub-setup.c: Likewise.
11039 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11040
11041 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11044 * grub-core/commands/keystatus.c: Likewise.
11045 * grub-core/commands/loadenv.c: Likewise.
11046 * grub-core/commands/probe.c: Likewise.
11047 * grub-core/commands/regexp.c: Likewise.
11048 * grub-core/commands/true.c: Likewise.
11049 * grub-core/commands/videoinfo.c: Likewise.
11050 * grub-core/disk/cryptodisk.c: Likewise.
11051 * grub-core/disk/ldm.c: Likewise.
11052 * grub-core/disk/loopback.c: Likewise.
11053 * grub-core/disk/luks.c: Likewise.
11054 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11055 * grub-core/kern/disk.c: Likewise.
11056 * grub-core/kern/emu/hostdisk.c: Likewise.
11057
11058 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11061 * util/grub-install.in: Add missing quote in the comment.
11062
11063 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11066 * grub-core/commands/lsmmap.c: Likewise.
11067 * grub-core/commands/minicmd.c: Likewise.
11068 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11069 * grub-core/commands/regexp.c: Likewise.
11070 * grub-core/gdb/gdb.c: Likewise.
11071 * grub-core/term/gfxterm.c: Likewise.
11072 * util/grub-mkconfig.in: Likewise.
11073 * util/grub-mkfont.c: Likewise.
11074 * util/grub-mklayout.c: Likewise.
11075 * util/grub-mknetdir.in: Likewise.
11076 * util/grub-mkrescue.in: Likewise.
11077 * util/grub.d/30_os-prober.in: Likewise.
11078
11079 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11080
11081 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11082 with "Direct color" and "Packed" with "Packed pixel".
11083 (grub_cmd_videoinfo): Simplify legend.
11084
11085 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11088 absolutely unclear error message.
11089
11090 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * util/grub-mkstandalone.in: Remove confusing leftover print.
11093
11094 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11097 comments.
11098 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11099 (GRUB_MOD_INIT): Likewise.
11100 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11101 VGA mode.
11102 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11103 comments.
11104 * util/grub-install.in (usage): Likewise.
11105 Spell ID in whole letters.
11106 Add missing ending dot.
11107 Quote variables.
11108 * util/grub-reboot.in: Fix capitalisation.
11109 * util/grub-set-default.in: Likewise.
11110
11111 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11114 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11115 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11116 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11117 Disable -Werror for -Wdeprecated-declarations.
11118 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11119 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11120 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11121 (grub_util_get_grub_dev): Make luks handling dependent on
11122 HAVE_DEVICE_MAPPER and not __linux__.
11123 (get_win32_path): Fix format security.
11124 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11125 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11126 Don't try grub_find_zpool_from_dir.
11127 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11128 #ifdef-out paresdir.
11129
11130 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11131
11132 * util/grub-pe2elf.c (usage): Add missing noreturn.
11133 (write_section_data): Rename name to shname to avoid shadowing.
11134 (write_symbol_table): Rename name to symname to avoid shadowing.
11135 Fix write_reloc_section call.
11136
11137 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11140 to ensure that it's after the last byte of .text.
11141
11142 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * util/ieee1275/ofpath.c (my_isdigit): New function.
11145 (trailing_digits): Use my_isdigit.
11146 (strip_trailing_digits): Likewise.
11147
11148 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11151 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11152
11153 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/kern/i386/pc/startup.S: Define __start.
11156
11157 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11160 strip already transforms he format.
11161
11162 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11165
11166 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 * util/grub-install.in: Add missing gettext init.
11169 * util/grub-kbdcomp.in: Likewise.
11170 * util/grub-mkconfig.in: Likewise.
11171 * util/grub-mknetdir.in: Likewise.
11172 * util/grub-mkrescue.in: Likewise.
11173 * util/grub-mkstandalone.in: Likewise.
11174 * util/grub-reboot.in: Likewise.
11175 * util/grub-set-default.in: Likewise.
11176 * util/grub.d/00_header.in: Likewise.
11177 * util/grub.d/10_hurd.in: Likewise.
11178 * util/grub.d/10_windows.in: Likewise.
11179 * util/grub.d/30_os-prober.in: Likewise.
11180 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11181
11182 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 * po/Rules-swiss: Fix header comment.
11185
11186 2012-02-29 Andreas Vogel <anvoit>
11187
11188 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11189 resulted in leak of arguments.
11190
11191 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11194 reed_solomon_size const definition instead of computing it since
11195 Apple assembler doesn't support the later.
11196
11197 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * gentpl.py (kernel): Rewrite Apple part.
11200
11201 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11204
11205 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11208 ELF section gap.
11209 (load_image): Likewise.
11210
11211 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11212
11213 * configure.ac: Fix a typo in previous commit.
11214
11215 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 Don't add -Wl,-N on Apple platform.
11218
11219 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11220 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11221
11222 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 * grub-core/Makefile.core.def (lzma_decompress): Use
11225 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11226
11227 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11228
11229 * grub-core/genmod.sh.in: Rewrite the Apple part.
11230
11231 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11232
11233 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11234 comparison.
11235
11236 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 * acinclude.m4 (grub_CHECK_PIC): New test.
11239 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11240
11241 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11244 to avoid the warning.
11245
11246 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11249 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11250 after. All users updated.
11251
11252 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 Use the common size routine in hostfs so we can read disks as well.
11255
11256 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11257 (grub_util_get_fd_size): ... this. Return size in bytes.
11258 All users updated.
11259 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11260 grub_util_get_fd_size.
11261
11262 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11265 Add blocksize retrieval.
11266
11267 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * configure.ac: Restore CFLAGS after efiemu check.
11270
11271 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11274 Apple bug.
11275
11276 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11277
11278 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11279
11280 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11283 (grub_cmd_halt): Likewise.
11284
11285 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11288 for local arithmetics.
11289 Break %sp init into 2 instructions.
11290 Add 0 byte at the end.
11291
11292 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11295 before loops.
11296
11297 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11298
11299 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11300 for context.
11301
11302 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11303
11304 * grub-core/disk/ldm.c (make_vg): Init part.name.
11305 (grub_ldm_detect): Silence spurious warning.
11306 (grub_util_is_ldm): Likewise.
11307
11308 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11311 sane value to avoid a spurious warning.
11312
11313 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11316 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11317
11318 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11321 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11322
11323 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11326 hardcoding the relevant info.
11327
11328 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11331 missing const qualifiers.
11332 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11333
11334 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * util/getroot.c [__APPLE__]: Add missing includes.
11337 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11338
11339 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11342
11343 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11346 avoid conflicts.
11347
11348 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11351
11352 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11355 and grub_file_close call.
11356
11357 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11358
11359 Add LZSS Mach-O support (needed for new xnu kernelcache).
11360
11361 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11362 * grub-core/loader/lzss.c: New file.
11363 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11364 on Mach-O open failure.
11365 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11366 Don't free cmdsXX in uncompressedXX is set.
11367 (grub_macho_file): Init new fields.
11368 New argument is_64bit. All users updated.
11369 Handle compressed. Error out if no suitable architecture is found.
11370 Don't close file.
11371 (grub_macho_open): New argument is_64bit. All users updated.
11372 * grub-core/loader/macho32.c: Add defines for new fields.
11373 * grub-core/loader/macho64.c: Likewise.
11374 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11375 (grub_macho_parse): Handle compressed.
11376 Defer actual processing if compressed.
11377 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11378 "filename". All users updated.
11379 (grub_macho_size): New argument "filename". All users updated.
11380 (grub_macho_get_entry_point): Likewise.
11381 (grub_macho_load): Handle compressed.
11382 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11383 (GRUB_MACHO_LZSS_OFFSET): New define.
11384 (grub_decompress_lzss): New proto.
11385 * include/grub/machoload.h (grub_macho_file): New fields to handle
11386 compressed.
11387 (grub_macho_contains_macho64): Remove proto.
11388 (grub_macho_contains_macho32): Likewise.
11389 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11390
11391 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11394
11395 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 Fix make dist.
11398
11399 * Makefile.am (starfield_theme_files): New var.
11400 (starfield_DATA): Use starfield_theme_files.
11401 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11402 Add bootcheck-related files.
11403 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11404 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11405 and font_char_metrics.txt.
11406 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11407 (setjmp): Add lib/ia64/longjmp.S.
11408 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11409 * po/POTFILES.in: Regenerate.
11410 * po/Rules-swiss: use DISTFILES.common.extra2 and not
11411 DISTFILES.common.extra1.
11412 * util/devicemap.c: Removed.
11413 * grub-core/lib/i386/relocator_backward.S: Likewise.
11414 * util/import_gcry.py: Remove unused files. Add extra_dist for
11415 ChangeLog.
11416
11417 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 * grub-core/gettext/gettext.c (grub_mofile_open): Call
11420 grub_gettext_delete_list before changing grub_gettext_max to avoid
11421 running out of array bounds.
11422
11423 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
11426 grub_vga_text_init/grub_vga_text_fini.
11427
11428 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
11431
11432 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 * configure.ac: Bump to 2.00~beta0.
11435
11436 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11437
11438 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
11439 missing initialisation.
11440
11441 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11442
11443 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
11444
11445 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 Support v2 xnu boot arguments.
11448
11449 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
11450 New argument fsbfreq_out.
11451 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
11452 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
11453 be used.
11454 * grub-core/loader/machoXX.c (grub_macho_load): New argument
11455 darwin_version.
11456 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
11457 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
11458 (grub_xnu_boot_params): Rename to ...
11459 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
11460 (grub_xnu_boot_params_v2): New struct.
11461
11462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
11465 zeroing of CRC field before computing CRC.
11466
11467 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
11470 Change order of allocations to decrease fragmentation.
11471
11472 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
11475
11476 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11477
11478 Use write-combining MTRR to speed up video with buggy BIOSes.
11479
11480 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
11481 (cpuid): New define.
11482 (rdmsr): Likewise.
11483 (wrmsr): Likewise.
11484 (mtrr_base): Likewise.
11485 (mtrr_mask): Likewise.
11486 (grub_vbe_enable_mtrr_entry): New function.
11487 (grub_vbe_enable_mtrr): Likewise.
11488 (grub_vbe_disable_mtrr): Likewise.
11489 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
11490 control off to BIOS.
11491 (grub_video_vbe_init): Fill mtrr.
11492 (grub_video_vbe_fini): Disable mtrr.
11493 (grub_video_vbe_get_info_and_fini): Likewise.
11494 (grub_video_vbe_setup): Enable mtrr.
11495
11496 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
11497
11498 * include/grub/partition.h (grub_partition_map): Change prototype of
11499 embed to take a maximum value for nsectors.
11500 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
11501 * include/grub/fs.h (grub_fs): Likewise.
11502 * grub-core/partmap/msdos.c (embed_signatures): New array.
11503 (pc_partition_map_embed): Check for and avoid sectors matching any
11504 of the signatures in embed_signatures, up to max_nsectors.
11505 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
11506 returned sector map to max_nsectors.
11507 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
11508 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
11509 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
11510 * util/grub-setup.c (setup): Allow for the embedding area being
11511 split into multiple blocklists. Tell dest_partmap->embed the
11512 maximum number of sectors we care about.
11513
11514 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
11517 Specify blocklist_install and reserver_first_sector for all fs.
11518 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
11519 blocklists.
11520
11521 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * util/grub-install.in: Clarify strings.
11524 Fix source dir check.
11525
11526 2012-02-27 Richard Laager <rlaager@wiktel.com>
11527
11528 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
11529 "zfs" and "fuse.zfs" as synonyms.
11530
11531 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * configure.ac: Put platform and target_cpu substitutions back since
11534 they are used for directories.
11535
11536 2012-02-27 Richard Laager <rlaager@wiktel.com>
11537 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * util/grub.d/10_linux.in: Add ZFS-related arguments.
11540 * util/grub.d/20_linux_xen.in: Likewise.
11541
11542 2012-02-27 Richard Laager <rlaager@wiktel.com>
11543
11544 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
11545 with full paths.
11546
11547 2012-02-27 Richard Laager <rlaager@wiktel.com>
11548
11549 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11550 unescape.
11551
11552 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11553
11554 Don't use insecure popen in getroot.
11555
11556 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
11557 (exec_pipe): ... here.
11558 (find_root_devices_from_poolname): Use exec_pipe.
11559
11560 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 Remove platform and target_cpu replacement.
11563
11564 * configure.ac: Remove platform and target_cpu substitutions.
11565 * tests/util/grub-shell.in: Use modinfo.
11566 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
11567 explicitly.
11568
11569 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11570
11571 Autodetect platform in grub-install but allow override.
11572
11573 * util/grub-install.in: Autodetect platform. Support --target and
11574 --directory. Read platform from modinfo.sh.
11575
11576 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 Support btrfs multi-volume probe.
11579
11580 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
11581 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
11582 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
11583 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
11584 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
11585 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
11586 grub_find_root_devices_from_btrfs if on btrfs.
11587
11588 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 Remove any awareness of *.c util files about target.
11591
11592 * Makefile.util.def (grub-setup): Split to ...
11593 (grub-bios-setup): ... and this.
11594 (grub-sparc64-setup): ... and this.
11595 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
11596 * docs/man/grub-setup.h2m: Split into ...
11597 * docs/man/grub-sparc64-setup.h2m: ... this.
11598 * docs/man/grub-bios-setup.h2m: ... and this.
11599 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
11600 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
11601 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
11602 (grub_target_addr_t): Remove.
11603 (grub_target_size_t): Remove.
11604 (grub_target_ssize_t): Remove.
11605 * util/grub-install.in: Use new grub-*-setup.
11606 * util/grub-mkimagexx.c (Elf_Word): New define.
11607 (Elf_Half): Likewise.
11608 (Elf_Section): Likewise.
11609 (ELF_ST_TYPE): Likewise.
11610 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
11611 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
11612
11613 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11614
11615 Replace grub_target_addr with more appropriate types.
11616
11617 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
11618 grub_target_addr with grub_addr.
11619 * grub-core/commands/iorw.c (grub_cmd_read): Replace
11620 grub_target_addr with grub_port.
11621 (grub_cmd_write): Likewise.
11622 * grub-core/commands/memrw.c (grub_cmd_read): Replace
11623 grub_target_addr with grub_addr.
11624 (grub_cmd_write): Likewise.
11625 * grub-core/video/efi_uga.c (find_line_len): Likewise.
11626
11627 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11628
11629 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
11630 const qualifier for vendor_guid.
11631
11632 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11633
11634 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
11635 const qualifier.
11636 (efiemu_memequal): Likewise.
11637 (find_variable): Likewise.
11638
11639 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 Fix missing console prototype on qemu-mips.
11642
11643 * include/grub/mips/qemu_mips/console.h: New file.
11644
11645 2012-02-27 Matthew Garrett <mjg@redhat.com>
11646 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
11649 * include/grub/efi/efi.h: Likewise.
11650 * include/grub/efi/api.h: Add guid for EFI-specified variables.
11651 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
11652 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
11653 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
11654 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
11655 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
11656
11657 2012-02-27 Matthew Garrett <mjg@redhat.com>
11658
11659 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
11660
11661 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
11664 error.
11665
11666 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 * configure.ac: Remove inappropriate use of program_transform_name
11669 on grubdir and bootdir but allow explicit specification of those
11670 variables.
11671
11672 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11673
11674 * util/grub-mknetdir.in (grub_prefix): Removed.
11675 (subdir): Use @bootdirname@ and @grubdirname@.
11676
11677 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
11680
11681 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 * po/POTFILES.in: Regenerated.
11684
11685 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 Remove improper use of program_transform_name on pkglibrootdir.
11688
11689 * configure.ac (pkglibrootdir): Removed.
11690 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
11691 * util/grub-mkimage.c: Likewise.
11692
11693 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11694
11695 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
11696 warning.
11697
11698 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11699
11700 * util/grub-install.in: Use file identifier if no UUID is available
11701 or user explicitly prompted for it.
11702
11703 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
11704
11705 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
11706 (freebsd_get_zfs): New function.
11707 (grub_freebsd_boot): Pass zfs UUID.
11708 (grub_cmd_freebsd): Set zfs UUID.
11709
11710 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * conf/Makefile.common (platformdir): Base on pkglibdir and not
11713 pkglibrootdir.
11714
11715 2012-02-27 Mike Gilbert <floppym@gentoo.org>
11716
11717 Add configure flag to control libzfs integration.
11718
11719 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
11720
11721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11722
11723 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
11724 device.
11725 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
11726 small devices.
11727
11728 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 Remove grub_{modname}_init and grub_{modname}_fini. They should never
11731 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
11732 be used on non-modules.
11733
11734 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
11735 Rename to grub_boot_init.
11736 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
11737 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11738 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
11739 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
11740 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
11741 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
11742 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
11743 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
11744 includes.
11745 (grub_machine_init): Remove empty inits.
11746 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
11747 includes.
11748 (grub_machine_init): Remove empty inits.
11749 * grub-core/term/arc/console.c: Remove explicit proto.
11750 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
11751 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
11752 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11753 grub_at_keyboard_fini.
11754 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
11755 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
11756 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11757 grub_gfxterm_fini.
11758 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
11759 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
11760 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11761 grub_vgatext_fini.
11762 * grub-core/term/ieee1275/console.c: Remove explicit proto.
11763 * grub-core/term/serial.c (GRUB_MOD_INIT)
11764 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
11765 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11766 grub_serial_fini.
11767 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
11768 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
11769 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
11770 grub_terminfo_fini.
11771 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
11772 (GRUB_MOD_FINI): Likewise.
11773 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
11774 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11775 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11776 grub_video_radeon_fuloong2e_fini.
11777 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11778 [LOONGSON]: Rename to grub_video_sis315pro_init.
11779 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11780 grub_video_sis315pro_fini.
11781 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11782 [LOONGSON]: Rename to grub_video_sm712_init.
11783 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11784 grub_video_sm712_fini.
11785 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11786 (grub_at_keyboard_fini): Likewise.
11787 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11788 Don't declare grub_{modname}_init.
11789 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11790 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11791 New proto.
11792 (grub_keylayouts_fini) [!EMU]: Likewise.
11793 * include/grub/serial.h (grub_serial_init) [!EMU]:
11794 New proto.
11795 (grub_serial_fini) [!EMU]: Likewise.
11796 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11797 New proto.
11798 (grub_terminfo_fini) [!EMU]: Likewise.
11799 * include/grub/video.h (grub_font_init) [!EMU]:
11800 New proto.
11801 (grub_font_fini) [!EMU]: Likewise.
11802 (grub_gfxterm_init) [!EMU]: Likewise.
11803 (grub_gfxterm_fini) [!EMU]: Likewise.
11804 (grub_video_sm712_init) [!EMU]: Likewise.
11805 (grub_video_sm712_fini) [!EMU]: Likewise.
11806 (grub_video_sis315pro_init) [!EMU]: Likewise.
11807 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11808 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11809 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11810
11811 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 Make nand a prefix for nand devices.
11814
11815 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11816
11817 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11820 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11821
11822 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 * include/grub/env.h (grub_env_find): Remove prototype.
11825 * grub-core/kern/env.c (grub_env_find): Make static.
11826 (grub_env_set): Remove useless set.
11827
11828 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * grub-core/kern/i386/realmode.S: Remove useless align.
11831
11832 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11833
11834 * include/grub/dl.h (grub_dl_load_file): Don't export.
11835
11836 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11839 grub_dprintf.
11840
11841 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11844 grub_errors.
11845 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11846 not reloading whole superblock but only the part which is really needed.
11847 Remove useless grub_errors.
11848 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11849 grub_errors.
11850
11851 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11852
11853 Don't export grub_get_rtc.
11854
11855 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11856 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11857
11858 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11861
11862 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
11865 argument since it can be deduced from diskfilter. All users updated.
11866
11867 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 Remove prio_list.
11870
11871 * include/grub/list.h (grub_prio_list): Removed.
11872 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11873 GRUB_COMMAND_PRIO_MASK.
11874 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11875 GRUB_COMMAND_FLAG_ACTIVE.
11876 (grub_prio_list_insert): Removed.
11877 (grub_prio_list_remove): Likewise.
11878 (GRUB_AS_PRIO_LIST): Likewise.
11879 (GRUB_AS_PRIO_LIST_P): Likewise.
11880 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11881 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11882 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11883 * grub-core/kern/command.c (grub_register_command_prio): Inline
11884 the prio_list code.
11885 (grub_unregister_command): Likewise.
11886
11887 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 Fix interrupt mixup from previous commit.
11890
11891 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11892 (grub_realidt): New var.
11893 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11894 Load idt.
11895 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11896 New declaration.
11897 (grub_relocator16_boot): Set grub_relocator16_idt.
11898 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11899 (LOCAL(realidt)): ... this.
11900 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11901 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11902 (grub_realidt): New variable.
11903
11904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11907 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11908 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11909 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11910 Gettextize.
11911 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11912 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11913 * po/POTFILES.in: Regenerate.
11914
11915 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11916
11917 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11918 errors.
11919
11920 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11923 \0.
11924 (add_length): Likewise.
11925
11926 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11927 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11928
11929 GDB serial and backtrace support.
11930
11931 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11932 (prot_to_real): Likewise.
11933 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11934 * grub-core/Makefile.core.def (backtrace): New module.
11935 (gdb): Likewise.
11936 * grub-core/gdb/cstub.c: New file.
11937 * grub-core/gdb/gdb.c: Likewise.
11938 * grub-core/gdb/i386/idt.c: Likewise.
11939 * grub-core/gdb/i386/machdep.S: Likewise.
11940 * grub-core/gdb/i386/signal.c: Likewise.
11941 * grub-core/lib/i386/backtrace.c: Likewise.
11942 * grub-core/lib/backtrace.c: Likewise.
11943 * include/grub/backtrace.h: Likewise.
11944 * include/grub/gdb.h: Likewise.
11945 * include/grub/i386/gdb.h: Likewise.
11946
11947 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11950 New function.
11951 (add_length): Likewise.
11952 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11953 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11954 proto.
11955 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11956 __argp_get_display_len.
11957
11958 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 $"..." support in scripts.
11961
11962 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11963 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11964 * grub-core/script/yylex.l: Likewise.
11965 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11966 value.
11967
11968 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * gentpl.py: Remove obsolete pkglib_DATA handling.
11971
11972 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11975 mailing list.
11976
11977 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11978 * util/grub-kbdcomp.in: Likewise.
11979 * util/grub-mkconfig.in: Likewise.
11980 * util/grub-mkconfig_lib.in: Likewise.
11981 * util/grub-mknetdir.in: Likewise.
11982 * util/grub-mkrescue.in: Likewise.
11983 * util/grub-mkstandalone.in: Likewise.
11984 * util/grub-reboot.in: Likewise.
11985 * util/grub-set-default.in: Likewise.
11986 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11987
11988 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 Remove GRUB_PREFIX.
11991
11992 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11993 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11994 used for backward compatibility.
11995
11996 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 Add new all_video module.
11999
12000 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12001 * grub-core/Makefile.core.def (all_video): New module.
12002 * grub-core/genmoddep.awk: Generate dependency of all_video from
12003 video.lst.
12004 * grub-core/lib/fake_module.c: New file.
12005 * grub-core/normal/main.c (features): Add feature_all_video_module.
12006 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12007 don't do explicit search again.
12008 insmod all_video in load_video if available.
12009
12010 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12011
12012 Another round of string clarification and adding TRANSLATORS comments.
12013
12014 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12015
12016 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12017
12018 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12019
12020 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12021 to grub_ssize_t.
12022 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12023 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12024
12025 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12028 trailing newline implicitly. All users updated.
12029
12030 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 Implement serial on IEEE1275 and EFI.
12033
12034 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12035 on emu. Mention arc and emu as the only platforms without serial
12036 support.
12037 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12038 ieee1275 platforms.
12039 * grub-core/term/efi/serial.c: New file.
12040 * grub-core/term/ieee1275/serial.c: Likewise.
12041 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12042 specification if no ns8250 driver is available.
12043 (grub_cmd_serial): Likewise.
12044 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12045 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12046 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12047 (grub_efi_parity_type_t): New type.
12048 (grub_efi_stop_bits_t): Likewise.
12049 (grub_efi_serial_io_interface): New struct.
12050 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12051 available for all interfaces.
12052 Add EFI and IEEE1275 fields.
12053 (grub_ofserial_init): New proto.
12054 (grub_efiserial_init): Likeiwse.
12055 * util/grub.d/00_header.in: Don't check for the presence of serial
12056 module.
12057
12058 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12061 name as if it was an alias.
12062
12063 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/commands/lsacpi.c (options): Fix typo.
12066
12067 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 Convert grub-emu to argp.
12070
12071 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12072 emu.
12073 * util/argp_common.c: Rename to ...
12074 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12075 Add missing includes.
12076 * grub-core/kern/emu/main.c: Convert to argp.
12077 * po/POTFILES.in: Regenerate.
12078 * util/grub-install.in (usage): Make first letter lowcase in messages
12079 for uniformity.
12080 * util/grub-setup.c (options): Likewise.
12081
12082 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12085 Put back accidently commented-out code.
12086
12087 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12088
12089 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12090 loop check using Brent algorithm.
12091 (grub_hfsplus_btree_search): Likewise.
12092
12093 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * util/grub-install.in: Fix usage of wrong device for PreP install.
12096
12097 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 * conf/Makefile.common (CFLAGS_GNULIB): Add
12100 -Wno-unsafe-loop-optimizations.
12101 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12102 on tools.
12103 * grub-core/commands/legacycfg.c: Add pragma to skip
12104 -Wunsafe-loop-optimizations.
12105 (check_password_md5_real): Fix loop counter type.
12106 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12107 reading.
12108 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12109 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12110 loop condition.
12111 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12112 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12113 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12114 condition.
12115 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12116 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12117 avoid possible infinite loops.
12118 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12119 and -Wunsafe-loop-optimizations.
12120 * grub-core/script/yylex.l: Likewise.
12121 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12122 (print_glyphs): Avoid infinite loops.
12123 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12124
12125 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12126
12127 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12128 to avoid infinite loop.
12129 (disp_acpi_rsdt_table): Likewise.
12130
12131 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 * grub-core/font/font.c (grub_font_load): Add support for default
12134 path for fonts ($prefix/fonts).
12135 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12136 for checking if string is a path.
12137 * grub-core/normal/main.c (features): Add feature_default_font_path.
12138 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12139 * util/grub.d/00_header.in: Use default directory if possible.
12140 * util/grub-install.in: Install unicode.pf2.
12141
12142 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12145 * po/Rules-swiss: New file.
12146 * po/swiss.sed: Likewise.
12147
12148 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 * grub-core/fs/btrfs.c (find_device): Fix typos.
12151 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12152 * util/grub-mkrelpath.c (argp_parser): Likewise.
12153 Reported by: Yuri Chornoivan.
12154
12155 2012-02-23 Dalet Omega <daletomega@gmail.com>
12156
12157 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12158 for usual informative messages.
12159
12160 2012-02-23 Dalet Omega <daletomega@gmail.com>
12161
12162 Starfield theme.
12163
12164 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12165 * conf/Makefile.common: Define starfielddir.
12166 * configure.ac: Configure starfield.
12167 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12168 * themes/starfield/README: Likewise.
12169 * themes/starfield/blob_w.png: Likewise.
12170 * themes/starfield/boot_menu_c.png: Likewise.
12171 * themes/starfield/boot_menu_e.png: Likewise.
12172 * themes/starfield/boot_menu_n.png: Likewise.
12173 * themes/starfield/boot_menu_ne.png: Likewise.
12174 * themes/starfield/boot_menu_nw.png: Likewise.
12175 * themes/starfield/boot_menu_s.png: Likewise.
12176 * themes/starfield/boot_menu_se.png: Likewise.
12177 * themes/starfield/boot_menu_sw.png: Likewise.
12178 * themes/starfield/boot_menu_w.png: Likewise.
12179 * themes/starfield/slider_c.png: Likewise.
12180 * themes/starfield/slider_n.png: Likewise.
12181 * themes/starfield/slider_s.png: Likewise.
12182 * themes/starfield/src/blob_nw.xcf: Likewise.
12183 * themes/starfield/src/bootmenu/: Likewise.
12184 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12185 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12186 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12187 * themes/starfield/src/slider_c.xcf: Likewise.
12188 * themes/starfield/src/slider_n.xcf: Likewise.
12189 * themes/starfield/src/slider_s.xcf: Likewise.
12190 * themes/starfield/src/terminalbox/: Likewise.
12191 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12192 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12193 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12194 * themes/starfield/starfield.png: Likewise.
12195 * themes/starfield/terminal_box_c.png: Likewise.
12196 * themes/starfield/terminal_box_e.png: Likewise.
12197 * themes/starfield/terminal_box_n.png: Likewise.
12198 * themes/starfield/terminal_box_ne.png: Likewise.
12199 * themes/starfield/terminal_box_nw.png: Likewise.
12200 * themes/starfield/terminal_box_s.png: Likewise.
12201 * themes/starfield/terminal_box_se.png: Likewise.
12202 * themes/starfield/terminal_box_sw.png: Likewise.
12203 * themes/starfield/terminal_box_w.png: Likewise.
12204 * themes/starfield/theme.txt: Likewise.
12205
12206 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12207
12208 * util/grub.d/00_header.in: Add missing export theme.
12209
12210 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12213 already included.
12214 Reported by: Eren D.
12215
12216 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * conf/Makefile.common (grubdatadir): Removed.
12219 (Makefile.am): Move eveything grubdata to pkgdata.
12220
12221 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * grub-core/commands/acpihalt.c (get_sleep_type):
12224 Remove unused variable.
12225
12226 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12229 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12230 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12231 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12232 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12233 i18n with gettext no-op.
12234 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12235 GRUB_ACPI_OPCODE_STRING_CONST.
12236 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12237 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12238
12239 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 * po/POTFILES.in: Regenerate.
12242
12243 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12246 -Wno-error=missing-noreturn.
12247
12248 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12251 condition to avoid possibly infinite loops.
12252 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12253 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12254
12255 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12258 condition to avoid possibly infinite loops.
12259
12260 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12261
12262 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12263 on show_error.
12264
12265 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12268
12269 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12272
12273 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 * util/bin2h.c (usage): Add missing attribute noreturn.
12276
12277 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12280 if the size isn't divisible by 512.
12281
12282 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 Make list_push and list_remove functions rather than inline functions
12285 to decrease size and avoid aliasing violations.
12286
12287 * include/grub/list.h (grub_list_push): Move to ...
12288 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12289 * include/grub/list.h (grub_list_remove): Move to ...
12290 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12291
12292 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12295 and -Wunused-result.
12296
12297 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12298
12299 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12300 Reported by: Seth Goldberg
12301
12302 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12303
12304 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12305
12306 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12307
12308 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12309 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12310 command line.
12311 * docs/grub.texi (Simple configuration): Document
12312 GRUB_CMDLINE_GNUMACH.
12313
12314 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12315
12316 * conf/Makefile.common (platform_SCRIPTS): New variable.
12317 (platform_PROGRAMS): Likewise.
12318 * gentpl.py: Mark *,module and *.image for install.
12319 * grub-core/gdb_grub.in: Add a notice of expected environment.
12320 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12321 (gmodule.pl): Likewise.
12322
12323 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12324
12325 Replace grub_checkkey with grub_getkey_noblock.
12326
12327 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12328 (grub_getkey_noblock): ... this. All users updated.
12329
12330 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * grub-core/kern/emu/console.c: Move to ...
12333 * grub-core/term/emu/console.c: ...here.
12334 (grub_ncurses_getkey): Fix return value if no key is detected.
12335
12336 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12339 (grub_unit_test_fini): Likewise.
12340 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12341
12342 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 * include/grub/test.h (GRUB_UNIT_TEST)
12345
12346 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12347
12348 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12349 Better error handling.
12350 (grub_script_return): Likewise.
12351 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12352
12353 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12356 rimplicit redifinition.
12357
12358 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12359
12360 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12361 GRUB.
12362
12363 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12364
12365 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12366 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12367 prompt here.
12368
12369 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12370
12371 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12372 as GRUB_ERR_BUG. Don't malloc if no device is available.
12373
12374 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12377 Mark calling with invalid term as GRUB_ERR_BUG.
12378
12379 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12382 packets rather than raising an error.
12383
12384 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12387 in if.
12388
12389 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12392 diagnostic to dprintf.
12393 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12394
12395 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12396
12397 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12398 device name.
12399
12400 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12401
12402 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12403 (grub_ntfs_iterate_dir): Likewise.
12404
12405 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12406
12407 Efiemu stylistic fixes and gettext.
12408
12409 * grub-core/efiemu/i386/loadcore32.c
12410 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
12411 * grub-core/efiemu/i386/loadcore64.c
12412 (grub_arch_efiemu_relocate_symbols64): Likewise.
12413 * grub-core/efiemu/i386/pc/cfgtables.c
12414 (grub_machine_efiemu_init_tables): Likewise.
12415 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
12416 (grub_efiemu_loadcore_initXX): Add a filename argument.
12417 All users updated.
12418 Improved error message.
12419 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
12420 Add a filename argument.
12421 All users updated.
12422 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
12423 Reclassify double relocation as GRUB_ERR_BUG.
12424
12425 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
12428 handling.
12429
12430 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
12433 on partition.
12434
12435 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
12438
12439 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 Improve string. Gettextize.
12442
12443 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
12446 utils.
12447 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
12448
12449 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
12452 [GRUB_UTIL]: New function.
12453 (insert_array) [GRUB_UTIL]: Store partmaps.
12454 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
12455 partmaps.
12456 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
12457 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
12458 (probe_abstraction): Print diskfilter and not raid.
12459 Reported by: Lennart Sorensen
12460
12461 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
12464 * util/grub-mkimagexx.c (MASK3): New define.
12465 (add_value_to_slot_20b): Use MASK3.
12466 (add_value_to_slot_21): Likewise.
12467 (relocate_addresses): Fix format specification.
12468 (load_image): Explicitly init symtab_section.
12469
12470 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12471
12472 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
12473 (grub_util_biosdisk_get_grub_dev): Fix format specification.
12474
12475 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12476
12477 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
12478 on powerpc.
12479 Reported by: Lennart Sorensen
12480
12481 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 * gentpl.py: Add missing license header.
12484 * docs/grub.texi: Update copyright year.
12485
12486 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12487
12488 Source grub-mkconfig_lib from the build directory at build time.
12489 Suggested by: Vladimir Serbinenko.
12490
12491 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
12492 * util/grub-install.in: Define pkgdatadir if not already set, and source
12493 grub-mkconfig_lib from there.
12494 * util/grub-kbdcomp.in: Likewise.
12495 * util/grub-mkconfig.in: Likewise.
12496 * util/grub-mknetdir.in: Likewise.
12497 * util/grub-mkrescue.in: Likewise.
12498 * util/grub-mkstandalone.in: Likewise.
12499 * util/grub-reboot.in: Likewise.
12500 * util/grub-set-default.in: Likewise.
12501 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12502
12503 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12504
12505 Increase warning level.
12506
12507 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
12508 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
12509 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
12510 (TARGET_CFLAGS): Likewise.
12511 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
12512 * grub-core/Makefile.core.def (decompressor_xz): Add
12513 -Wno-unreachable-code.
12514 (normal): Add -Wno-redundant-decls.
12515 (xzio): Add -Wno-unreachable-code.
12516 (lzopio): Add -Wno-redundant-decls -Wno-error.
12517 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
12518 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
12519 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
12520 * grub-core/kern/dl.c: Add exception to -Wcast-align.
12521 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
12522 * grub-core/kern/i386/coreboot/init.c: Add exception to
12523 -Wsuggest-attribute=noreturn.
12524 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
12525 * grub-core/kern/ia64/dl_helper.c: Likewise.
12526 * grub-core/kern/mips/dl.c: Likewise.
12527 * grub-core/kern/sparc64/dl.c: Likewise.
12528 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
12529 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
12530 (memcmp): Likewise.
12531 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
12532 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
12533 * grub-core/loader/mips/linux.c: Likewise.
12534 * grub-core/loader/multiboot_elfxx.c: Likewise.
12535 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
12536 * grub-core/video/sm712.c: Add exception to -Wcast-align.
12537 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
12538 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
12539 fixme.
12540 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12541 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
12542 Fix prototype.
12543
12544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
12547 address.
12548
12549 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12550
12551 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
12552 Avoid improper use of strings.
12553 (grub_cmd_legacy_initrdnounzip): Likewise.
12554
12555 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12556
12557 * include/grub/emu/misc.h (grub_util_warn): Add missing format
12558 attribute.
12559 (grub_util_info): Likewise.
12560 (grub_util_error): Likewise.
12561
12562 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
12565 * util/grub-fstest.c (fstest): Likewise.
12566
12567 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12568
12569 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
12570 (grub_md_sha512_real): Likewise.
12571 (grub_util_get_geli_uuid): Likewise.
12572 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
12573 (grub_util_biosdisk_open): Fix format specification.
12574 Respect format security.
12575 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
12576 (xrealloc): Likewise.
12577 (xasprintf): Likewise.
12578
12579 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12580
12581 * util/import_gcry.py: Include grub/crypto.h in init.c.
12582
12583 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12584
12585 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
12586 (generate_image): Make prefix a const char *.
12587 Fix format specifications. Respect format security.
12588 Avoid void * arithmetics.
12589 Avoid shadowing.
12590 (argp_parser): Remove unused variable. Respect format security.
12591 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
12592 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
12593 (count_funcs): Remove unused variable.
12594 (relocate_addresses): Fix format specification.
12595 Disable x86-64 with elf32. Remove unused variables.
12596 (add_fixup_entry): Avoid shadowing.
12597 (make_reloc_section): Fix format specification.
12598 Use assert.
12599 (locate_sections): Fix format specifications.
12600 (load_image): Avoid shadowing.
12601
12602 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12603
12604 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
12605 Fix format specifications. Respect format security.
12606 Don't translate already translated grub_errmsg.
12607 (argp_parser): Remove unused variable
12608
12609 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
12612
12613 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12614
12615 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
12616 (main): Likewise. Use xmalloc. Respect format security.
12617
12618 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
12621 a const char *.
12622 (argp_parser): Remove unused variable.
12623
12624 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
12627 (add_pixel): Make static.
12628 (add_font): Likewise.
12629 (write_string_section): Make name and str a const char *.
12630 (write_be16_section): Make name a const char *.
12631 (print_glyphs): Make static.
12632 (write_font_ascii_bitmap): Likewise.
12633 (write_font_width_spec): Likewise.
12634 (write_font_pf2): Likewise.
12635 (argp_parser): Remove unused variable.
12636 Respect format security.
12637 (main): Avoid shadowing. Respect format security.
12638
12639 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12640
12641 * util/grub-editenv.c (argp_parser): Make static.
12642 (create_envblk_file): Use xmalloc.
12643 (open_envblk_file): Likewise.
12644 Resepect format security.
12645 (set_variables): Respect format security.
12646
12647 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * util/getroot.c (grub_find_device): Respect format security.
12650 (get_mdadm_uuid): Remove unused variable.
12651 (grub_util_pull_device): Dont call gettext on already translated
12652 grub_errmsg.
12653 (find_system_device): Remove unused variable.
12654 (grub_util_get_grub_dev): Likewise.
12655 (grub_make_system_path_relative_to_its_root): Respect format security.
12656
12657 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 * util/grub-fstest.c (execute_command): Make first argument
12660 a const char *.
12661 (read_file): Avoid shadowing.
12662 Reuse underlying error message if device open fails.
12663 (cmd_cmp): Respect format security.
12664 (root): Make const char *.
12665 (fstest): Remove args argument and use global copy.
12666 Respect format security.
12667 (argp_parser): Make static.
12668 (main): Make default_root const char *.
12669
12670 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12671
12672 * util/grub-mount.c (root): Make const char *.
12673 (execute_command): Make first argument a const char *.
12674 (fuse_init): Respect format security.
12675 (argp_parser): Make static. Remove unused variable.
12676 (main): Make default_root a const char *.
12677 Respect format security.
12678
12679 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12680
12681 * util/grub-probe.c (probe): Don't call gettext on already translated
12682 grub_errmsg.
12683 Remove unused variables.
12684 (argp_parser): Remove unused variable.
12685
12686 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 * util/grub-script-check.c (argp_parser): Remove unused variable.
12689 (main): Rename read to curread to avoid shadowing.
12690
12691 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * util/misc.c (grub_util_write_image_at): Fix format specification.
12694 (grub_util_write_image): Likewise.
12695 (grub_script_execute_argument_to_string): Removed (unused).
12696 (grub_script_execute_menuentry): Likewise.
12697 (grub_putchar): Likewise.
12698
12699 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
12702 (FUNCTION) [GRUB_UTIL]: Likewise.
12703 (VARIABLE) [GRUB_UTIL]: Likewise.
12704
12705 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
12708 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
12709
12710 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
12713 buffer.
12714
12715 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
12718 (LzmaEnc_SaveState): Removed (unused).
12719 (LzmaEnc_RestoreState): Likewise.
12720 (LzmaEnc_InitPriceTables): Made static.
12721 (LzmaEnc_Construct): Likewise.
12722 (LzmaEnc_FreeLits): Likewise.
12723 (LzmaEnc_Destruct): Likewise.
12724 (LzmaEnc_Init): Likewise.
12725 (LzmaEnc_InitPrices): Likewise.
12726 (LzmaEnc_Finish): Likewise.
12727 (LzmaEnc_PrepareForLzma2): Removed (unused).
12728 (LzmaEnc_MemPrepare): Likewise.
12729 (LzmaEnc_GetNumAvailableBytes): Likewise.
12730 (LzmaEnc_GetCurBuf): Likewise.
12731 (LzmaEnc_CodeOneMemBlock): Likewise.
12732
12733 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
12736 (grub_util_ldm_embed): Likewise.
12737
12738 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * util/grub-editenv.c (print_var): Rename name to varname to
12741 avoid shadowing.
12742 (main): Rename index to curindex to avoid shadowing.
12743 Make filename a const char *.
12744
12745 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
12748 to arg_getline to avoid shadowing.
12749
12750 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12751
12752 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
12753 disk_ to avoid shadowing.
12754
12755 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
12758 curindex to avoid shadowing.
12759 Make static.
12760 (MatchFinder_GetNumAvailableBytes): Make static.
12761
12762 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12763
12764 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
12765 avoid shadowing.
12766
12767 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
12770 argument from encrypt to do_encrypt to avoid shadowing.
12771
12772 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12775 incorrect nesting of #if's.
12776
12777 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12778
12779 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12780 checks which are always false on some platforms.
12781 (grub_cmd_lsacpi): Likewise.
12782 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12783 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12784 Likewise.
12785
12786 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12789 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12790
12791 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12792
12793 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12794 re_dfa_t to avoid breaking alignment invariants.
12795 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12796 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12797
12798 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12799
12800 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12801 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12802
12803 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12804
12805 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12806 Fix declaration.
12807
12808 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12811 conserve alignment invariants.
12812 (grub_ehci_ehcc_read16): Likewise.
12813 (grub_ehci_oper_read32): Likewise.
12814 (grub_ehci_oper_write32): Likewise.
12815 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12816 Conserve alignment invariants.
12817
12818 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12821 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12822 declarations.
12823
12824 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12825
12826 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12827 Remove unused variable.
12828
12829 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12830
12831 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12832 Remove set in if.
12833
12834 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 * include/grub/net.h: Remove double declarations.
12837
12838 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 Remove "payload" command in ia64 Linux loader since I couldn't
12841 find any evidence of it being used for anything.
12842 Replace "relocate" command with an environment variable
12843
12844 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12845 fields.
12846 (ia64_boot_payload): Removed.
12847 (last_payload): Likewise.
12848 (RELOCATE_OFF): Likewise.
12849 (RELOCATE_ON): Likewise.
12850 (RELOCATE_FORCE): Likewise.
12851 (relocate): Likewise.
12852 (free_pages): Don't free payloads.
12853 (grub_load_elf64): Use common error messages.
12854 Use "linux_relocate" variable.
12855 Increase the space after boot_params.
12856 (grub_cmd_payload): Removed.
12857 (grub_cmd_relocate): Likewise.
12858 (grub_cmd_fpswa): Improve messages.
12859 (cmd_payload): Removed.
12860 (cmd_relocate): Likewise.
12861 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12862 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12863
12864 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12865
12866 Convert UHCI to DMA framework.
12867
12868 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12869 (grub_uhci_pci_iter): Fill new members
12870 (grub_alloc_td): Use P2V and V2P functions.
12871 (grub_free_queue): Likewise.
12872 (grub_alloc_qh): Likewise.
12873 (grub_uhci_setup_transfer): Likewise.
12874 (grub_uhci_check_transfer): Likewise.
12875
12876 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12879 Remove assignment in if while on it.
12880
12881 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12882
12883 * util/grub-mkstandalone.in: Fix modules directory.
12884
12885 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12888 on i386-pc target.
12889 (argp_parser): Accept "auto" as compression specification.
12890
12891 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 Fix `help' with unloaded modules.
12894
12895 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12896 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12897 (grub_dyncmd_dispatcher): Small stylistic fix.
12898 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12899 explicit help is requested.
12900
12901 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12902
12903 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12904 Explicitly init restart while on it.
12905
12906 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12907
12908 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12909 uninited variable.
12910
12911 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 * util/grub-mknetdir.in: Use . rather than source for POSIX
12914 compatibility.
12915
12916 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12917
12918 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12919
12920 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12923 variable.
12924
12925 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12928 without quotes.
12929
12930 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12931
12932 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12933
12934 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12937 iteration of partitions.
12938
12939 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 Improve gettext support. Stylistic fixes and error handling fixes while
12942 on it.
12943
12944 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12947 part. Instead setup the correct stack in RM.
12948 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12949 for stack.
12950 * include/grub/i386/relocator_private.h: New file.
12951
12952 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12955 argument.
12956 * util/grub-fstest.c (options): Add missing DEVICE part.
12957
12958 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 Clarify and unify messages.
12961
12962 * grub-core/commands/hashsum.c (options): Unify messages.
12963 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12964 literal-only message as translatable.
12965 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12966 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12967 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12968 commands.
12969 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12970 key, not the key used to unlock. Clarify what it's used for.
12971 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12972 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12973 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12974 * util/grub-editenv.c (options): Unify "verbose" message.
12975 * util/grub-fstest.c (read_file): Unify error message.
12976 (fstest): Add quotes around commands.
12977 (options): Unify "verbose" message.
12978 * util/grub-install.in: Add quotes around variable name.
12979 * util/grub-kbdcomp.in: Unify error message.
12980 * util/grub-mkfont.c (main): Likewise.
12981 * util/grub-mkrescue.in: Likewise.
12982 * util/grub-mklayout.c (options): Unify "verbose" message.
12983 * util/grub-mkstandalone.in: Unify help and verbose messages.
12984 * util/grub-mount.c (options): Unify "verbose" message.
12985 * util/grub-probe.c (options): Likewise.
12986 * util/grub-script-check.c (options): Likewise.
12987 * util/grub-setup.c (setup): Unify no-terminator message.
12988 (options): Use DEVICE and not DEV.
12989 Unify "verbose" message.
12990 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12991
12992 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12993
12994 Improve and unify messages.
12995
12996 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12997 name. All users updated.
12998 Print filename in error.
12999 (read_device_map): Print filename in error.
13000 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13001 (grub_util_get_os_disk): Likewise.
13002 (grub_util_biosdisk_get_grub_dev): Likewise.
13003 (grub_util_check_block_device): Likewise.
13004 (grub_util_check_char_device): Likewise.
13005 (grub_make_system_path_relative_to_its_root): Likewise.
13006 * util/grub-editenv.c (create_envblk_file): Likewise.
13007 (open_envblk_file): Likewise.
13008 (write_envblk): Likewise.
13009 * util/grub-fstest.c (cmd_cp): Likewise.
13010 (cmd_cat): Likewise.
13011 (cmd_cmp): Likewise.
13012 * util/grub-menulst2cfg.c (main): Likewise.
13013 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13014 (write_font_width_spec): Likewise.
13015 (write_font_pf2): Likewise.
13016 * util/grub-mkimage.c (generate_image): New argument outname.
13017 All users updated.
13018 Remove unreacheable message.
13019 (options): Unify messages.
13020 (help_filter): Likewise.
13021 * util/grub-mklayout.c (usage): Removed (unused).
13022 (main): Print filename in error.
13023 * util/grub-mkrescue.in: Fix wrong quoting.
13024 * util/grub-setup.c (setup): Print filename in error.
13025 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13026 (check_sas): Likewise.
13027 * util/misc.c (grub_util_get_fp_size): Removed.
13028 (grub_util_get_image_size): Print filename in error.
13029 (grub_util_read_at): Removed.
13030 (grub_util_read_image): Print filename in error.
13031 (grub_util_load_image): Likewise.
13032 (grub_util_write_image_at): New argument filename. All users updated.
13033 Print filename in error.
13034 (grub_util_write_image): New argument filename. All users updated.
13035 Print filename in error.
13036 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13037 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13038
13039 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13040
13041 * grub-core/Makefile.core.def (pxechain): New module.
13042 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13043 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13044 function.
13045 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13046 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13047
13048 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13051 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13052 * include/grub/err.h (grub_error_saved): New struct.
13053 (grub_errmsg): Make array size explicit.
13054 * include/grub/misc.h (grub_error_save): New function.
13055 (grub_error_load): Likewise.
13056 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13057 (grub_error_push): Update `errno' member name.
13058 (grub_error_pop): Likewise
13059 * grub-core/net/tftp.c (tftp_data): New member save_err.
13060 (tftp_receive): Save error.
13061 (tftp_open): Restore error.
13062
13063 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13066 to real mode down to execute A20-related code in protected mode as
13067 intended.
13068
13069 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13070
13071 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13072 NULL when the argument `level' has an unexpected value.
13073
13074 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 Move platform-dependent files from $prefix to $prefix/$platform.
13077
13078 * config.h.in (GRUB_TARGET_CPU): New definition.
13079 (GRUB_PLATFORM): Likewise.
13080 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13081 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13082 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13083 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13084 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13085 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13086 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13087 * grub-core/normal/term.c (read_terminal_list): Likewise.
13088 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13089 $prefix/locale.
13090 (grub_gettext_init_ext): Likewise.
13091 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13092 grub_platform.
13093 * util/grub-install.in: Update directories.
13094 * util/grub-mknetdir.in: Likewise.
13095 * util/grub-mkrescue.in: Likewise.
13096
13097 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13100 grub_error framework. All users updated.
13101
13102 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13103
13104 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13105 lists (by always binsearching), improve caching (cache strings
13106 used for binsearch, not only results), improve
13107 maintainability (by using more structured binary search) and correct
13108 error handling.
13109
13110 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13111
13112 * grub-core/script/execute.c (grub_script_return): Fix warning.
13113
13114 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13115
13116 * grub-core/script/execute.c (grub_script_return): Fix potential
13117 NULL-dereference.
13118 Reported by: Jim Meyering.
13119
13120 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 * po/POTFILES.in: Regenerate.
13123 * util/grub-install.in: Gettextize the strings missed in first pass.
13124
13125 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 * Makefile.util.def (grub-mkdevicemap): Removed.
13128 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13129 * include/grub/util/deviceiter.h: Removed.
13130 * util/deviceiter.c: Likewise.
13131 * util/getroot.c (grub_util_get_os_disk): New function.
13132 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13133 replacement for EFI.
13134 * util/grub-mkdevicemap.c: Removed.
13135 * util/grub-probe.c (probe): Handle PRINT_DISK.
13136 (argp_parser): Handle -t disk.
13137
13138 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * util/grub-mkfont.c: Migrate to argp.
13141 * util/grub-mklayout.c: Likewise.
13142 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13143 * util/grub-mkrelpath.c: Likewise.
13144 * util/grub-probe.c: Likewise.
13145 * util/grub-script-check.c: Likewise.
13146
13147 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * util/grub-reboot.in: Add missing datarootdir.
13150 Add missing newline.
13151 * util/grub-set-default.in: Add missing datarootdir.
13152 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13153 * util/grub-mkrescue.in: Likewise.
13154
13155 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13158
13159 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * util/grub-kbdcomp.in: Add decent help and gettextize.
13162 * docs/man/grub-kbdcomp.h2m: New file.
13163
13164 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 Migrate grub-mkimage.c to argp.
13167
13168 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13169 (grub-setup): Likewise.
13170 * util/grub-setup.c (print_version): Move to ...
13171 * util/argp_common.c (print_version): ... here.
13172 * util/grub-setup.c (argp_program_version_hook): Move to ...
13173 * util/argp_common.c (argp_program_version_hook): ... here.
13174 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13175 safety.
13176 * util/grub-mkimage.c (main): Migrate to argp.
13177
13178 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 * util/grub-mkrescue.in: Use same message as
13181 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13182 for better translations.
13183
13184 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13187 options with generic grub-mkrescue.in with the goal of future
13188 merge.
13189
13190 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 * grub-core/kern/mm.c: Add missing include of i18n.h
13193 * grub-core/lib/relocator.c: Likewise.
13194
13195 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13196
13197 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13198 error.
13199 (allocate_pages): Check return value.
13200 Replace fatal with error.
13201 (grub_linux_boot): Replace printf with dprintf.
13202 Check find_mmap_size return value.
13203 Replace fatal with error.
13204 Don't call grub_machine_fini.
13205 (grub_load_elf64): Replace printf with dprintf.
13206 (grub_cmd_linux): Likewise.
13207 (grub_cmd_initrd): Likewise.
13208 (grub_cmd_payload): Likewise.
13209
13210 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13211
13212 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13213 message.
13214 * grub-core/video/radeon_fuloong2e.c
13215 (grub_video_radeon_fuloong2e_setup): Likewise.
13216 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13217 * grub-core/video/video.c (grub_video_set_mode): Don't override
13218 standard out of memory message.
13219
13220 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13221
13222 NetBSD disk wedge support.
13223
13224 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13225 [__NetBSD__]: Handle NetBSD disk wedges.
13226 * util/getroot.c (convert_system_partition_to_system_disk)
13227 [__NetBSD__]: Likewise.
13228
13229 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13230
13231 * util/grub-mkconfig.in: Use umask rather than chmod to create
13232 grub.cfg.new to avoid insecure grub.cfg.
13233
13234 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13235
13236 * grub-core/commands/ls.c: Gettextize.
13237 * grub-core/commands/setpci.c: Likewise.
13238 * grub-core/commands/videotest.c: Likewise.
13239 * grub-core/disk/geli.c: Likewise.
13240 * grub-core/kern/mm.c: Likewise.
13241 * grub-core/lib/relocator.c: Likewise.
13242 * grub-core/loader/efi/appleloader.c: Likewise.
13243 * grub-core/loader/i386/xnu.c: Likewise.
13244 * grub-core/loader/ia64/efi/linux.c: Likewise.
13245 * grub-core/loader/xnu.c: Likewise.
13246 * grub-core/net/dns.c: Likewise.
13247 * grub-core/net/net.c: Likewise.
13248 * grub-core/script/lexer.c: Likewise.
13249 * grub-core/script/parser.y: Likewise.
13250 * grub-core/script/yylex.l: Likewise.
13251 * util/getroot.c: Likewise.
13252 * util/grub-setup.c: Likewise.
13253
13254 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13257 number.
13258
13259 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13262
13263 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13266 macro.
13267 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13268 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13269
13270 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13273 * util/grub-install.in: Gettextize.
13274 * util/grub-mkconfig.in: Likewise.
13275 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13276 if not available.
13277 (grub_warn): Gettextize.
13278 * util/grub-mknetdir.in: Gettextize.
13279 * util/grub-mkrescue.in: Likewise.
13280 * util/grub-mkstandalone.in: Likewise.
13281 * util/grub-reboot.in: Likewise.
13282 * util/grub-set-default.in: Likewise.
13283 * util/grub.d/00_header.in: Likewise.
13284 * util/grub.d/10_hurd.in: Likewise.
13285 * util/grub.d/10_kfreebsd.in: Likewise.
13286 * util/grub.d/10_linux.in: Likewise.
13287 * util/grub.d/10_netbsd.in: Likewise.
13288 * util/grub.d/10_windows.in: Likewise.
13289 * util/grub.d/20_linux_xen.in: Likewise.
13290 * util/grub.d/30_os-prober.in: Likewise.
13291 * po/POTFILES-shell.in: Regenerate.
13292
13293 2012-02-03 Richard Laager <rlaager@wiktel.com>
13294
13295 * util/grub-mkimage.c (main): Fix format-security warning.
13296 * util/grub-mkrelpath.c (main): Likewise.
13297 * util/grub-probe.c (main): Likewise.
13298
13299 2012-02-03 Richard Laager <rlaager@wiktel.com>
13300
13301 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13302 failure.
13303 Put back lost PRINT_DRIVE.
13304
13305 2012-02-03 Richard Laager <rlaager@wiktel.com>
13306
13307 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13308 (grub_guess_root_devices): Replace strlen with sizeof.
13309 Avoid crash.
13310 (find_root_devices_from_poolname): Remove unused variable.
13311 Handle raidzN.
13312
13313 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13314
13315 Support install on multi-device filesystems.
13316
13317 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13318 (grub_guess_root_devices): ...this. Return char **. All users updated.
13319 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13320 Removed.
13321 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13322 (find_root_devices_from_poolname): ... here.
13323 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13324 Support zfs-fuse.
13325 (grub_guess_root_device): Rename to ...
13326 (grub_guess_root_devices): ... this. Return char **. All users updated.
13327 * util/grub-install.in: Handle multi-device filesystems.
13328 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13329 argument. All users updated.
13330 Handle multi-device filesystems.
13331 Use 'delim' as separator.
13332 Remove device check to allow filesystems on file.
13333 (main): Support -0 argument. Handle multi-device.
13334 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13335 Fix a cross-device check while on it.
13336 (arguments): Remove root_dev.
13337 (argp_parser): Remove -r.
13338 (main): Remove root_dev.
13339
13340 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13343
13344 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13347 symbol.
13348 Reported by: NODA, Kai <nodakai>.
13349
13350 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 Fix ehci on amd64.
13353
13354 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13355 pointers.
13356 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13357 (grub_ehci_setup_qh): Likewise.
13358 (grub_ehci_find_qh): Likewise.
13359 (grub_ehci_transaction): Likewise.
13360 (grub_ehci_setup_transfer): Likewise.
13361 (grub_ehci_check_transfer): Likewise.
13362 (grub_ehci_portstatus): Likewise.
13363 (grub_ehci_detect_dev): Likewise.
13364 (grub_ehci_transfer_controller_data): New field td_last_phys.
13365 (grub_ehci_setup_transfer): Fill td_last_phys.
13366 (grub_ehci_check_transfer): Use td_last_phys.
13367
13368 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13369
13370 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13371 if no submenu is present.
13372
13373 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13374
13375 CBI support.
13376
13377 * include/grub/usb.h (grub_usbms_protocol_t): New values
13378 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13379 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13380 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13381 (grub_usbms_dev): Add subclass, protocol and intrpt.
13382 Remove in_maxsz and out_maxsz.
13383 (grub_usbms_reset): Rename to ...
13384 (grub_usbms_bo_reset): .. this.
13385 (grub_usbms_cbi_cmd): New function.
13386 (grub_usbms_cbi_reset): Likewise.
13387 (grub_usbms_reset): Likewise.
13388 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13389 (grub_usbms_transfer): Rename to ...
13390 (grub_usbms_transfer_bo): ... this.
13391 (grub_usbms_transfer_cbi): Likewise.
13392 (grub_usbms_transfer): Likewise.
13393
13394 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13395 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13396
13397 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13398 the support for the CS5536 modification thereos and few bugfixes.
13399
13400 * grub-core/Makefile.core.def (ehci): New module.
13401 * grub-core/bus/usb/ehci.c: New file.
13402 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13403 port and hubaddr. All users updated.
13404 Save port and hubaddr into dev structure.
13405 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13406 define.
13407 * include/grub/pci.h (grub_dma_phys2virt): New function.
13408 (grub_dma_virt2phys): Likewise.
13409 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
13410
13411 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
13414 check as some mkfs implementations omit it.
13415
13416 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * docs/grub.texi (Unicode): Mention identifier and space limitations.
13419
13420 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
13423 Add new member volname2.
13424 (grub_jfs_label): Use volname2 if available.
13425
13426 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13427
13428 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
13429 over last_mounted as seen in image generated by mkfs.nilfs2.
13430 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
13431
13432 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
13435 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
13436 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
13437
13438 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
13441 over the sector.
13442
13443 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13444
13445 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
13446 subvolume name (by removing a bogus and useless check).
13447
13448 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
13451 sizeof while on it.
13452
13453 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
13456 (grub_scsi_read_capacity10): ... this.
13457 (grub_scsi_read_capacity16): New function.
13458 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
13459 0xffffffff.
13460 Fix off-by-one error.
13461 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
13462 64-bit unsigned.
13463 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
13464 (grub_scsi_read_capacity10): ... this.
13465 (grub_scsi_read_capacity_data): Rename to ...
13466 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
13467 (grub_scsi_read_capacity16): New struct.
13468 (grub_scsi_read_capacity16_data): Likewise.
13469 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
13470 grub_scsi_cmd_read_capacity10.
13471 New command grub_scsi_cmd_read_capacity16.
13472
13473 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 SCSI >2TiB support.
13476
13477 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
13478 (grub_scsi_write16): Likewise.
13479 (grub_scsi_read): Use read16 when necessary.
13480 (grub_scsi_write): Likewise.
13481 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
13482 (grub_scsi_write16): Likewise.
13483 (grub_scsi_cmd_t): Add READ16 and WRITE16.
13484
13485 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 SCSI write support (for usbms mainly).
13488
13489 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
13490 a const pointer.
13491 (grub_scsi_write): Implement.
13492 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
13493
13494 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
13495
13496 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
13497 variable.
13498
13499 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * grub-core/lib/posix_wrap/string.h (memchr): New function.
13502
13503 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * po/POTFILES.in: Regenerate.
13506
13507 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
13510 with grub_printf to avoid unnecessary fatal failure.
13511
13512 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
13515 (INT_MAX): Likewise.
13516 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
13517 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
13518 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13519 (strcpy): Likewise.
13520 (strstr): Likewise.
13521 (strchr): Likewise.
13522 (strncpy): Likewise.
13523 (strcat): Likewise.
13524 (strncat): Likewise.
13525 (strcoll): Likewise.
13526 * include/grub/types.h (GRUB_SHRT_MAX): New define.
13527 (GRUB_INT_MAX): Likewise.
13528
13529 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
13532 unexpected error.
13533 (optimize_utf8): Likewise.
13534 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
13535
13536 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 * grub-core/boot/i386/pc/lnxboot.S: Use
13539 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
13540 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
13541 location.
13542 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
13543 definition.
13544 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
13545
13546 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
13549 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
13550 now to avoid double free.
13551 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
13552 hostdisk.
13553 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
13554 * util/grub-probe.c (escape_of_path): Always return a new copy.
13555 (print_full_name): Escape path.
13556 (probe): Don't call grub_util_devname_to_ofpath on NULL.
13557 Fix hints on abstractions.
13558
13559 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
13562 Don't add "root" line if no compatibility hont is available.
13563 Suggested by: Seth Goldberg.
13564
13565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13566
13567 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
13568 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
13569 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
13570 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
13571
13572 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
13575
13576 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * util/grub-pe2elf.c (ehdr): Make static.
13579 (shdr): Likewise.
13580 (num_sections): Likewise.
13581 (offset): Likewise.
13582
13583 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 Eliminate ofpath limits and possible overflows.
13586
13587 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
13588 (OF_PATH_MAX): Removed.
13589 (MAX_DISK_CAT): New const.
13590 (find_obppath): Use allocated rather than preallocated buffer.
13591 Return result. Argument of_path removed. All users updated.
13592 Add missing fdstat.
13593 (xrealpath): New function.
13594 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
13595 Allocate rather than use preallocated buffer. All users updated.
13596 (__of_path_common): Use allocated rather than preallocatecd buffer.
13597 Return result. Argument of_path removed. All users updated.
13598 (vendor_is_ATA): Read only needed part form the file.
13599 (check_sas): Allocate depending on contents rather than fixed.
13600 (main) [STANDALONE]: Handle NULL result.
13601
13602 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * grub-core/normal/completion.c (iterate_dev): Close the disk.
13605
13606 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 Cryptodisk write support.
13609
13610 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
13611 (grub_cryptodisk_decrypt): Moved logic to ...
13612 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
13613 (grub_cryptodisk_write): Implement.
13614 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
13615 (grub_util_fd_write): ... this. Make global.
13616 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
13617
13618 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * include/grub/list.h (grub_list_remove): Don't crash if element is
13621 removed twice.
13622
13623 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 Rename ofconsole to console.
13626
13627 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
13628 as sysnonym to console.
13629 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
13630 * grub-core/term/ieee1275/console.c: ... this. All users updated.
13631 Rename grub_ofconsole_ to grub_console_. All users updated
13632 (grub_console_term_output): Rename "ofconsole" to "console".
13633 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
13634 as "console".
13635
13636 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13637
13638 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
13639 handling.
13640 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
13641 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
13642 GRUB_DISK_DEVICE_FILE_ID.
13643
13644 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13645
13646 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
13647 and improve performance.
13648
13649 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13650
13651 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
13652 missing ieee1275/ prefix on whole disk.
13653
13654 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
13657 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13658
13659 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
13662
13663 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 Merge common RAID and LVM logic to an abstract diskfilter.
13666 Add LDM support using the same framework.
13667
13668 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
13669 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
13670 (libgrubmods): Remove grub-core/disk/raid.c and
13671 grub-core/partmap/gpt.c.
13672 * grub-core/Makefile.core.def (ldm): New module.
13673 (raid): Renamed to diskfilter. All users updated.
13674 * grub-core/disk/raid.c: Moved to ...
13675 * grub-core/disk/diskfilter.c: ... here.
13676 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
13677 (lv_num): New var.
13678 (find_array): Renamed to ...
13679 (find_lv): ... this. Support multi-LV. Skip nameless LVs
13680 (grub_is_array_readable): Renamed to ...
13681 (grub_is_lv_readable): ... this. Support multinode hierarchy.
13682 (insert_array): New argument id.
13683 (is_node_readable): New function.
13684 (scan_device): Rename to ...
13685 (scan_disk): .. this. Restrict to one disk.
13686 (scan_devices): New function.
13687 (grub_diskfilter_iterate): Support multi-LV.
13688 Skip invisible and nameless LVs.
13689 (grub_diskfilter_memberlist): Support multi-LV.
13690 (grub_diskfilter_read_node): New function.
13691 (grub_raid_read): Most of logic moved to ...
13692 (read_segment): ... here
13693 (read_lv): New function.
13694 (grub_diskfilter_get_vg_by_uuid): New function.
13695 (grub_diskfilter_make_raid): Likewise.
13696 * grub-core/disk/ldm.c: New file.
13697 * grub-core/disk/lvm.c (vg_list): Removed.
13698 (lv_count): Likewise.
13699 (scan_depth): Likewise.
13700 (is_lv_readable): Likewise.
13701 (grub_lvm_getvalue): Advance pointer past the number.
13702 (find_lv): Removed.
13703 (do_lvm_scan): Refactored into ...
13704 (grub_lvm_detect): ... this. Support raid.
13705 (grub_lvm_iterate): Removed.
13706 (grub_lvm_memberlist): Likewise.
13707 (grub_lvm_open): Likewise.
13708 (grub_lvm_close): Likewise.
13709 (read_lv): Likewise.
13710 (read_node): Likewise.
13711 (is_node_readable): Likewise.
13712 (is_lv_readable): Likewise.
13713 (grub_lvm_read): Likewise.
13714 (grub_lvm_write): Likewise.
13715 (grub_lvm_dev): Use diskfilter
13716 (GRUB_MOD_INIT): Likewise.
13717 (GRUB_MOD_FINI): Likewise.
13718 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
13719 new interface.
13720 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
13721 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13722 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
13723 grub_diskfilter_read_node.
13724 Fix a bug with xor.
13725 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
13726 grub_diskfilter_read_node.
13727 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
13728 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
13729 (grub_disk_dev_iterate): Move from here...
13730 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
13731 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
13732 Make global.
13733 (grub_hostdisk_find_partition_start): Likewise.
13734 (grub_hostdisk_os_dev_to_grub_drive): New function.
13735 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
13736 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
13737 * util/getroot.c (make_device_name): ... here.
13738 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
13739 Move to ...
13740 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
13741 * grub-core/kern/emu/hostdisk.c
13742 (convert_system_partition_to_system_disk): Move to ...
13743 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
13744 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
13745 * util/getroot.c (device_is_wholedisk): ... here.
13746 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
13747 * util/getroot.c (find_system_device): ... here.
13748 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
13749 Move to ...
13750 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
13751 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13752 Move to ...
13753 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
13754 Handle LDM.
13755 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13756 Move to ...
13757 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
13758 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
13759 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
13760 DISKFILTER.
13761 * include/grub/raid.h: Renamed to ...
13762 * include/grub/diskfilter.h: ... this.
13763 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
13764 (GRUB_RAID_LAYOUT_*): Make into array.
13765 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
13766 (grub_diskfilter_vg): New struct.
13767 (grub_diskfilter_pv_id): Likewise.
13768 (grub_raid_member): Removed.
13769 (grub_raid_array): Likewise.
13770 (grub_diskfilter_pv): New struct.
13771 (grub_diskfilter_lv): Likewise.
13772 (grub_diskfilter_segment): Likewise.
13773 (grub_diskfilter_node): Likewise.
13774 (grub_diskfilter_get_vg_by_uuid): New proto.
13775 (grub_raid_register): Inline.
13776 (grub_diskfilter_unregister): Likewise.
13777 (grub_diskfilter_make_raid): New proto.
13778 (grub_diskfilter_vg_register): Likewise.
13779 (grub_diskfilter_read_node): Likewise.
13780 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13781 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13782 (grub_util_is_ldm): Likewise.
13783 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13784 (grub_hostdisk_find_partition_start): Likewise.
13785 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13786 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13787 New definition.
13788 (grub_gpt_partition_map_iterate): New proto.
13789 * include/grub/lvm.h (grub_lvm_vg): Removed.
13790 (grub_lvm_pv): Likewise.
13791 (grub_lvm_lv): Likewise.
13792 (grub_lvm_segment): Likewise.
13793 (grub_lvm_node): Likewise.
13794 * util/getroot.c [...]
13795 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13796 (probe_abstraction): Likewise.
13797 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13798 (main): Remove dead logic.
13799
13800 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 Simplify root device discover and don't fail when trying to open
13803 incorrect devices.
13804
13805 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13806 function.
13807 (get_diskname_from_path): Likewise.
13808 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13809 of iterating.
13810
13811 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13814
13815 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13818 pastthe end.
13819
13820 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * util/grub-install.in: Add missing \.
13823 Reported by: gentoofan
13824
13825 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13828 (direct_read): Use correct compressed size.
13829 (grub_squash_read_data): Likewise.
13830
13831 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13832
13833 * docs/grub.texi (Platform limitations): New section.
13834 (Platform-specific operations): Likewise.
13835 * docs/grub-dev.texi (Porting): Likewise.
13836
13837 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13838
13839 IEEE1275 disk write support.
13840
13841 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13842 const void *.
13843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13844 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13845 and seek loginc to ...
13846 (grub_ofdisk_prepare): ... here.
13847 (grub_ofdisk_write): Implement.
13848
13849 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 ARC disk write support.
13852
13853 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13854 (reopen): New argument writable. All users updated.
13855 Handle required access mode.
13856 (grub_arcdisk_write): Implement.
13857 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13858 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13859
13860 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13863 (read_sblock): Don't attempt to read superblocks outside the disk size.
13864
13865 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13866
13867 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13868 first superblock to find the second one when possible.
13869
13870 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * util/grub-install.in: Fix an ARC bug.
13873 Print a warning if no platform-specific setup is available.
13874
13875 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13876
13877 Use static allocation rather than scratch pointer in reed_solomon.
13878 It decreases its size significantly and avoids a variable in .text.
13879
13880 * grub-core/lib/reed_solomon.c (scratch): Removed.
13881 (chosenstat): New const or static array.
13882 (sigma): Likewise.
13883 (errpot): Likewise.
13884 (errpos): Likewise.
13885 (sy): Likewise.
13886 (mstat): Likewise.
13887 (errvals): Likewise.
13888 (eqstat): Likewise.
13889 (pol_evaluate): Replace x with log_x argument. All users updated.
13890 (syndroms): Removed.
13891 (gauss_solve): Use statically allocated arrays.
13892 (rs_recover): Likewise.
13893 Calculate syndroms directly.
13894 (decode_block): Use statically allocated arrays.
13895 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13896 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13897
13898 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 Eliminate fixed limit on reed solomon decoder length.
13901
13902 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13903 rather than hardcoding the address.
13904 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13905 no_reed_solomon_length.
13906 Move gate_a20 to no-reed-solomon part.
13907 Don't force a particular size of no reed-solomon part.
13908 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13909 Removed.
13910 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13911 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13912
13913 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/commands/wildcard.c (match_files): Handle filenames
13916 without explicit device.
13917 (wildcard_expand): Don't add explicit device if not already present.
13918 * tests/grub_script_echo1.in: Add a new expansion test.
13919
13920 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13921
13922 Replace single-linked with double-linked lists. It results in more
13923 compact and more efficient code.
13924
13925 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13926 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13927 (grub_list_remove): Moved from here ...
13928 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13929 (grub_prio_list_insert): Set prev.
13930 * include/grub/list.h (grub_list): Add prev. All users updated.
13931
13932 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 Handle newer autotools. Add some missing quotes while on it.
13935
13936 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13937 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13938 (pkgdata_DATA): ... here.
13939 * Makefile.util.def (update-grub_lib): Removed.
13940 * conf/Makefile.common (pkglib_DATA): Removed.
13941 (pkglib_SCRIPTS): Likewise.
13942 (pkgdata_DATA): New variable.
13943 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13944 needed.
13945 Add missing quotes.
13946 Remove unused variable while on it.
13947 * tests/util/grub-shell.in: Likewise.
13948 * util/grub-install.in: Likewise.
13949 * util/grub-mkconfig.in: Likewise.
13950 * util/grub-mknetdir.in: Likewise.
13951 * util/grub-mkrescue.in: Likewise.
13952 * util/grub-mkstandalone.in: Likewise.
13953 * util/grub.d/00_header.in: Likewise.
13954 * util/grub.d/10_hurd.in: Likewise.
13955 * util/grub.d/10_illumos.in: Likewise.
13956 * util/grub.d/10_kfreebsd.in: Likewise.
13957 * util/grub.d/10_linux.in: Likewise.
13958 * util/grub.d/10_netbsd.in: Likewise.
13959 * util/grub.d/10_windows.in: Likewise.
13960 * util/grub.d/20_linux_xen.in: Likewise.
13961 * util/grub.d/30_os-prober.in: Likewise.
13962 * util/update-grub_lib.in: Removed.
13963
13964 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
13965
13966 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13967 a workaround for intel problem.
13968
13969 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
13970 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13971 2012-01-23 pfsmorigo
13972
13973 * util/grub-install.in: Support dd'in into PreP partition.
13974 * util/grub-probe.c (probe): Support discovering partition type.
13975 (main): Support -t msdos_parttype.
13976
13977 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13980 infinite recursion using counter.
13981 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13982 init to skip it if the magic check fails.
13983 (dec_stream_header): Init s->crc32.
13984
13985 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13986 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
13987 2012-01-22 Richard Laager <rlaager@wiktel.com>
13988
13989 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13990 All users updated.
13991 (find_bestub): Determine correct size.
13992 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13993 (scan_disk): Align the size down.
13994 Call check pool before find_bestub to have ashift.
13995
13996 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13999 dprintf in no-malloc zone.
14000
14001 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14002
14003 * configure.ac: Add back in test for limits.h.
14004
14005 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 Support 4K-sector NTFS.
14008
14009 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14010 (grub_ntfs_data): Remove blocksize.
14011 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14012 Remove data argument. All users updated.
14013
14014 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14015
14016 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14017 being in .text to avoid dprel references.
14018 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14019 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14020 (grub_arch_highmemsize): Likewise.
14021 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14022 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14023 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14024
14025 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14028
14029 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14030 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14031
14032 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14035 GRUB_UTIL.
14036 (grub_set_datetime_cmos): Likewise.
14037
14038 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14039
14040 Make XZ compression parameters dependent on target and not host CPU.
14041
14042 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14043 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14044
14045 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14048 set but not used variable.
14049
14050 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14053 created when no uuid support is compiled into mkfs.reiser.
14054
14055 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14058 (utf8_to_macroman): Do the opposite.
14059 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14060
14061 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * configure.ac: Refise build qemu_mips w/o unifont.
14064
14065 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14066
14067 Eliminate grub_min/grub_max prone to overflow usage.
14068
14069 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14070 (poll_nonroot_hub): Likewise.
14071 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14072 (grub_affs_label): Likewise.
14073 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14074 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14075 (grub_hfs_label): Likewise.
14076 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14077 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14078 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14079 (zap_leaf_array_get): Likewise.
14080 (dnode_get_path): Likewise.
14081 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14082 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14083 * grub-core/script/execute.c (grub_script_break): Likewise.
14084 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14085 grub_max.
14086 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14087 * include/grub/misc.h (grub_min): Removed.
14088 (grub_max): Likewise.
14089
14090 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14091
14092 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14093 direct.inode = 0.
14094
14095 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14096
14097 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14098
14099 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14102
14103 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14106 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14107
14108 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14111 rather than a hack for grub_strncasemap.
14112
14113 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 Support multiple initrds
14116 Note: part of this was accidently committed in r3739.
14117
14118 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14119 initrd.
14120 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14121 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14122 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14123 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14124 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14125
14126 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14129 disks with unknown size.
14130 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14131
14132 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 Remove defines pertaining to arbitrary limits not affecting GRUB
14135 anymore.
14136
14137 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14138 (EXT2_MAX_SYMLINKCNT): Likewise.
14139 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14140 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14141 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14142 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14143 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14144 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14145 (DN_MAX_OBJECT_SHIFT): Likewise.
14146 (DN_MAX_OFFSET_SHIFT): Likewise.
14147 (DN_MAX_OBJECT): Likewise.
14148 (DNODES_PER_LEVEL_SHIFT): Likewise.
14149 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14150 (SPA_MAXBLOCKSIZE): Likewise.
14151 (SPA_BLOCKSIZES): Likewise.
14152 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14153 (MZAP_MAX_BLKSZ): Likewise.
14154
14155 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14156
14157 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14158 handle NULL appropriately.
14159 Remove MIN.
14160
14161 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 Fix efiemu.
14164
14165 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14166 cpu/types.h.
14167 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14168 * configure.ac: Fix efiemu check.
14169
14170 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14173 grub_probe.
14174 Reported by: adamwill
14175
14176 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14177
14178 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14179
14180 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 Fix handling of wide characters in gfxterm.
14183
14184 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14185 (clear_char): Likewise.
14186 (paint_char): Skip code == NULL chars.
14187 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14188
14189 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/normal/charset.c: Move comment to right place.
14192
14193 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14194
14195 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14196 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14197 (grub_affs_mount): Revert the correct version checking.
14198
14199 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * docs/grub.texi (Unicode): Mention several other unsupported features.
14202
14203 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14204
14205 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14206 case statements as compile-time one.
14207 (direct_read): Prevent spurious warnings.
14208 (grub_squash_read_data): Likewise.
14209
14210 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14211
14212 Various squash4 fixes and LZO and XZ support.
14213
14214 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14215 Add xzembed source files.
14216 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14217 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14218 (grub_squash_inode): New subtype long_dir.
14219 (SQUASH_TYPE_LONG_DIR): New inode type.
14220 (COMPRESSION): New enum.
14221 (XZBUFSIZ): New const.
14222 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14223 (read_chunk): Use data->decompress.
14224 (zlib_decompress): New function.
14225 (lzo_decompress): Likewise.
14226 (xz_decompress): Likewise.
14227 (squash_mount): Set new data fields.
14228 (grub_squash_iterate_dir): Handle long dir.
14229 (squash_unmount): Free xzdec and xzbuf.
14230 (grub_squash_open): Check ino type.
14231 (direct_read): Stylistic fixes. Use data->decompress.
14232 (grub_squash_read_data): Likewise.
14233 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14234 (get_byte): Likewise.
14235 (grub_zlib_disk_read): Removed.
14236 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14237 (GRUB_POSIX_BOOL_DEFINED): New define.
14238 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14239 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14240 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14241 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14242
14243 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 Don't override more informative errors.
14246
14247 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14248 * grub-core/font/font.c (open_section): Likewise.
14249 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14250 filename. Don't override errors.
14251 (grub_cmd_openbsd_ramdisk): Don't override errors.
14252 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14253 (grub_cmd_initrd): Likewise.
14254 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14255 (grub_cmd_initrd): Likewise.
14256 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14257 (grub_cmd_linux): Likewise.
14258 (grub_cmd_initrd): Likewise.
14259 (grub_cmd_payload): Likewise.
14260 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14261 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14262 (grub_cmd_module): Likewise.
14263 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14264 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14265 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14266 (grub_cmd_xnu_mkext): Likewise.
14267 (grub_cmd_xnu_ramdisk): Likewise.
14268 (grub_xnu_check_os_bundle_required): Likewise.
14269 (grub_xnu_load_kext_from_dir): Likewise.
14270 (grub_cmd_xnu_kextdir): Likewise.
14271 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14272
14273 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14276 as 1024 in block size field. Found on one of my test images.
14277 Small optimisation while on it.
14278
14279 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14282 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14283 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14284 performance fixes while on it.
14285 (grub_sfs_close): Fix memory leak while on it.
14286 (grub_sfs_label): Convert Latin1 to UTF-8.
14287
14288 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14291 space to avoid overflows.
14292 (grub_hfs_label): Convert from macroman to UTF-8.
14293
14294 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14297
14298 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14301
14302 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 * unicode: Import Unicode 6.0 data.
14305
14306 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14309 outside of range.
14310
14311 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14312
14313 Avoid cutting in the middle of UTF-8 character.
14314
14315 * include/grub/charset.h (grub_getend): New function.
14316 * grub-core/script/function.c (grub_script_function_find): Use
14317 grub_getend.
14318 * grub-core/normal/completion.c (add_completion): Likewise.
14319
14320 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14323 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14324 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14325 (GRUB_UNICODE_TAG_END): Likewise.
14326 (GRUB_UNICODE_LAST_VALID): Likewise.
14327
14328 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14331 len and make it smaller. All users updated.
14332 * util/import_unicode.py: Put length and not end character.
14333 Check length.
14334
14335 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14336
14337 Make better Unicode-compliant and unify some UTF-8 code pathes.
14338
14339 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14340 valid character.
14341 (grub_is_valid_utf8): Use grub_utf8_process.
14342 Check resulting code range.
14343 (grub_utf8_to_ucs4): Use grub_utf8_process.
14344 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14345 valid character.
14346
14347 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14350
14351 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * docs/grub.texi (Filesystems): Mention AFS.
14354
14355 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * docs/grub.texi (Filesystems): Clarify restrictions.
14358 (Regexp): Mention non-Unicode regexp behaviour.
14359 (Other): Mention non-Unicode matching behaviour.
14360
14361 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14362
14363 Make HFS implementation use MacRoman.
14364
14365 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14366 (macroman): New const array.
14367 (macroman_to_utf8): New function.
14368 (utf8_to_macroman): Likewise.
14369 (grub_hfs_find_dir): Use utf8_to_macroman.
14370 (grub_hfs_dir): Use macroman_to_utf8.
14371 Set case_insensitive.
14372
14373 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14374
14375 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14376
14377 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 Integrate hints into autogeneration scripts.
14380
14381 * docs/grub.texi (Filesystems): Add a hostdisk example.
14382 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14383 (grub-probe): Add ofpath.
14384 * gentpl.py: Remove group nosparc64.
14385 * grub-core/commands/search.c (cache_entry): New struct.
14386 (cache): New var.
14387 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14388 * grub-core/commands/search_wrap.c (options): Add platform-specific
14389 hint options.
14390 (grub_cmd_search): Handle platform-specific hints.
14391 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14392 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14393 (grub_util_biosdisk_data): Likewise.
14394 (grub_util_biosdisk_open): Set device_map.
14395 (read_device_map): Handle "" as indication of no map.
14396 Set device_map.
14397 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14398 (grub_util_biosdisk_get_compatibility_hint): New function.
14399 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14400 * include/grub/emu/hostdisk.h
14401 (grub_util_biosdisk_get_compatibility_hint): New proto.
14402 * util/grub-install.in: Don't call grub-mkdevicemap.
14403 Add platform-specific hint to load.cfg.
14404 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14405 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14406 hints. Set root preliminary to compatibility hint, not to OS name.
14407 * util/grub-probe.c (PRINT_*): Add hints.
14408 (print): Make static.
14409 (escape_of_path): New function.
14410 (guess_bios_drive): Likewise.
14411 (guess_efi_drive): Likewise.
14412 (guess_baremetal_drive): Likewise.
14413 (print_full_name): Likewise.
14414 (probe): Handle hints.
14415 (main): Likewise.
14416 * util/ieee1275/devicemap.c: Removed.
14417 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
14418 updated.
14419 (grub_util_devname_to_ofpath): Return NULL on failure.
14420
14421 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
14422 resource leak.
14423 * util/getroot.c (grub_util_pull_device): Fix memory leak.
14424
14425 * po/POTFILES.in: Regenerated.
14426
14427 Allow purely long options
14428
14429 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
14430 (SHORT_ARG_USAGE): Likewise.
14431 (grub_arg_show_help): Compare opt with help_options.
14432 (parse_option): Receive opt as argument. If makes big simplificatons.
14433 All users updated
14434
14435 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
14438 Restructure to avoid warning.
14439
14440 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * util/grub-install.in: Account for possible escaped comma in device
14443 name.
14444
14445 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14446
14447 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
14448 channel.
14449
14450 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
14453 allocation and zero-setting.
14454 (grub_ieee1275_get_devname): Check that alias is complete.
14455
14456 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14457
14458 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
14459 unaligned segments.
14460
14461 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14462
14463 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
14464 prefix.
14465 (grub_ofdisk_open): Check and discard ieee1275 prefix.
14466 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14467 Add ieee1275 prefix.
14468
14469 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * docs/grub.texi (Filesystems): Update.
14472
14473 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 Support odc, newc and bigendian cpio formats.
14476
14477 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
14478 * grub-core/Makefile.core.def (newc): New module.
14479 (odc): Likewise.
14480 (cpio_be): Likewise.
14481 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
14482 (MAGIC): Likewise.
14483 (MAGIC2): Likewise.
14484 (head) [MODE_ODC]: Adapt for the format.
14485 (head) [MODE_NEWC]: Likewise.
14486 (head) [!MODE_*]: Write fields of interest as arrays.
14487 (MAGIC_USTAR): Removed.
14488 (read_number) [MODE_NEWC]: Change to hex.
14489 (read_number) [!MODE_*]: Parse binary arrays.
14490 (grub_cpio_find_file): Factor out the code for better structure and
14491 always use read_number.
14492 (grub_cpio_mount): Use MAGIC and MAGIC2.
14493 (grub_cpio_dir): Exit on first hook non-0 return.
14494 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
14495 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
14496 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
14497 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
14498 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
14499 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
14500 * grub-core/fs/newc.c: New file.
14501 * grub-core/fs/odc.c: Likewise.
14502 * grub-core/fs/cpio_be.c: Likewise.
14503
14504 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 Fix handling of tar numbers occupying the whole field.
14507
14508 * grub-core/fs/cpio.c (read_number): New function.
14509 (grub_cpio_find_file): Use read_number instead of strtoull.
14510
14511 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
14514 occupying the whole field size.
14515
14516 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
14517
14518 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
14519
14520 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
14523
14524 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
14525
14526 * grub-core/Makefile.core.def (lzma_decompress): Add missing
14527 TARGET_IMG_LDFLAGS.
14528
14529 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * util/getroot.c (ESCAPED_PATH_MAX): New define.
14532 (mountinfo_entry): Increase the field size to take escaping into
14533 account.
14534 (find_root_device_from_libzfs): Add one byte to size of strings for
14535 security.
14536
14537 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
14540 an assert.
14541 * util/grub-setup.c (setup): Likewise.
14542
14543 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
14546 _LzmaDecodeA.
14547
14548 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14549
14550 * docs/grub.texi (Internationalisation): New section.
14551
14552 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * docs/grub.texi (Loopback booting): New section.
14555
14556 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
14557
14558 * util/grub-mkstandalone.in: Fix minor typo errors.
14559
14560 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
14563
14564 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
14565 net/icmp.c and net/icmp6.c.
14566 (http): New module.
14567 (priority_queue): Likewise.
14568 * grub-core/io/bufio.c: Rewritten.
14569 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
14570 TYPE_WITH_CONFIGFILE_OPTION.
14571 (legacy_commands): Add bootp and dhcp.
14572 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
14573 (grub_legacy_parse): Likewise.
14574 * grub-core/lib/priority_queue.c: New file.
14575 * grub-core/net/arp.c: Add missing license header.
14576 (arp_find_entry): Removed.
14577 (arp_find_entry): Likewise.
14578 (grub_net_arp_resolve): Rename to ...
14579 (grub_net_arp_send_request): ...this.
14580 (grub_net_arp_receive): New card argument.
14581 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
14582 Set router and DNS server.
14583 (grub_net_configure_by_dhcp_ack): Handle routing information.
14584 (grub_cmd_bootp): Set checksum.
14585 (grub_bootp_init): Remove net_dhcp.
14586 * grub-core/net/dns.c: New file.
14587 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
14588 completion.
14589 (get_card_packet): Handle allocation.
14590 (grub_efinet_findcards): Set mtu.
14591 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
14592 (get_card_packet): Handle allocation.
14593 (emucard): Set mtu.
14594 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
14595 (GRUB_MOD_INIT): Set mtu.
14596 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
14597 mtu.
14598 (get_card_packet): Handle allocation.
14599 (grub_ofnet_findcards): Set mtu.
14600 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
14601 assert.
14602 (grub_net_recv_ethernet_packet): Handle IPv6.
14603 * grub-core/net/http.c: New file.
14604 * grub-core/net/icmp.c: Likewise.
14605 * grub-core/net/icmp6.c: Likewise.
14606 * grub-core/net/ip.c (ip6addr): New type.
14607 (ip6hdr): Likewise.
14608 (reassemble): Likewise.
14609 (cmp): New function.
14610 (reassembles): New variable.
14611 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
14612 (id): New variable.
14613 (send_fragmented): New function.
14614 (grub_net_send_ip_packet): Rename to ...
14615 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
14616 Handle non-UDP.
14617 (grub_net_recv_ip_packets): Rename to ...
14618 (handle_dgram): ... this. Check checksum. Handle non-UDP.
14619 (free_rsm): New function.
14620 (free_old_fragments): Likewise.
14621 (grub_net_recv_ip4_packets): New function.
14622 (grub_net_send_ip6_packet): Likewise.
14623 (grub_net_send_ip_packet): Likewise.
14624 (grub_net_recv_ip6_packets): Likewise.
14625 (grub_net_recv_ip_packets): Likewise.
14626 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
14627 (LINK_LAYER_CACHE_SIZE): New const.
14628 (link_layer_find_entry): New function.
14629 (grub_net_link_layer_add_address): Likewise.
14630 (grub_net_link_layer_resolve_check): Likewise.
14631 (grub_net_link_layer_resolve): Likewise.
14632 (grub_net_ipv6_get_slaac): Likewise.
14633 (grub_net_ipv6_get_link_local): Likewise.
14634 (grub_cmd_ipv6_autoconf): Likewise.
14635 (parse_ip): Handle one number representation.
14636 (parse_ip6): New functoion.
14637 (match_net): Handle IPv6.
14638 (grub_net_resolve_address): Handle IPv6 and DNS.
14639 (grub_net_resolve_net_address): Handle IPv6.
14640 (route_cmp): New function.
14641 (grub_net_route_address): Find best route.
14642 (grub_net_addr_to_str): Handle IPv6.
14643 (grub_net_addr_cmp): New function.
14644 (grub_net_add_addr): Register local route.
14645 (print_net_address): Handle net address.
14646 (grub_net_poll_cards): Retransmit TCP.
14647 (grub_net_poll_cards_idle_real): Likewise.
14648 (have_ahead): New function.
14649 (grub_net_seek_real): Use underlying seek.
14650 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
14651 * grub-core/net/tcp.c: New file.
14652 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
14653 (cmp): New function.
14654 (ack): Likewise.
14655 (tftp_receive): Handle unordered input.
14656 (destroy_pq): New function.
14657 (tftp_close): Close pq.
14658 * grub-core/net/udp.c: Put missing license header.
14659 (grub_net_udp_socket): New function.
14660 (udp_socket_register): Likewise.
14661 (grub_net_udp_close): Likewise.
14662 (grub_net_recv_udp_packet): Check checksum.
14663 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
14664 * include/grub/misc.h (grub_memchr): New function.
14665 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
14666 (grub_net_card_driver): Return buf in recv.
14667 (grub_net_slaac_mac_list): New struct.
14668 (grub_network_level_protocol_id): Add ipv6.
14669 (grub_net_network_level_addr): Likewise.
14670 (grub_net_network_level_net_addr): Likewise.
14671 (grub_net_app_protocol): Add seek.
14672 (grub_net_socket): Removed.
14673 (grub_net_sockets): Likewise.
14674 (grub_net_socket_register): Likewise.
14675 (grub_net_socket_unregister): Likewise.
14676 (FOR_NET_SOCKETS): Likewise.
14677 (grub_net_add_addr): Add const.
14678 (GRUB_NET_BOOTP_*): New enum.
14679 (grub_net_addr_cmp): New proto.
14680 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
14681 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
14682 (grub_net_hwaddr_to_str): NEw proto.
14683 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
14684 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
14685 (grub_dns_init): New proto.
14686 (grub_dns_fini): Likewise.
14687 (grub_net_tcp_retransmit): Likewise.
14688 (grub_net_link_layer_add_address): Likewise.
14689 (grub_net_link_layer_resolve_check): Likewise.
14690 (grub_net_link_layer_resolve): Likewise.
14691 (grub_net_dns_lookup): Likewise.
14692 (grub_net_add_dns_server): Likewise.
14693 (grub_net_remove_dns_server): Likewise.
14694 (GRUB_NET_TRIES): New const.
14695 (GRUB_NET_INTERVAL): Likewise.
14696 * include/grub/net/arp.h: Mostly rewritten.
14697 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
14698 * include/grub/net/ip.h: Mostly rewritten.
14699 * include/grub/net/netbuff.h: Indent.
14700 * include/grub/net/tcp.h: New file.
14701 * include/grub/net/udp.h: Mostly rewritten.
14702 * include/grub/priority_queue.h: New file.
14703 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
14704 (grub_swap_bytes64_compile_time): Likewise.
14705 (grub_cpu_to_be16_compile_time): Likewise.
14706 (grub_cpu_to_be32_compile_time): Likewise.
14707 (grub_cpu_to_be64_compile_time): Likewise.
14708 (grub_be_to_cpu64_compile_time): Likewise.
14709
14710 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
14713 UINT_TO_PTR with cast.
14714
14715 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
14718 don't use them.
14719
14720 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
14723 already there.
14724
14725 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
14728 confusing ipxe.
14729
14730 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
14733 Add missing const attribute.
14734 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
14735 Likewise.
14736 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
14737 Likewise.
14738
14739 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14740
14741 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
14742 misaligned access.
14743 (serpent_setkey): Likewise.
14744 (serpent_encrypt_internal): Likewise.
14745 (serpent_decrypt_internal): Likewise.
14746 (serpent_encrypt): Don't put an alignment-increasing cast.
14747 (serpent_decrypt): Likewise.
14748 (serpent_test): Likewise.
14749
14750 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14751
14752 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
14753
14754 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
14757
14758 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
14759 grub_addr_t casts.
14760 (PTR_TO_UINT64): Likewise.
14761 (PTR_TO_UINT32): Likewise.
14762
14763 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14764
14765 * util/grub-mkimage.c (generate_image): Decrease the higher limit
14766 because of stack.
14767 * util/grub-setup.c (setup): Don't add redundancy past the higher load
14768 limit.
14769
14770 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
14773 text_width > available width a bit more gracefully.
14774
14775 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14776
14777 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14778 current address calculation.
14779
14780 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14783 stack.
14784 (encode_block): Likewise.
14785
14786 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14787
14788 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14789 certainety.
14790
14791 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14794 non-RS part to avoid RS messing with GDT.
14795 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14796 Increase to suit in realmode routines.
14797
14798 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14799
14800 * grub-core/kern/i386/realmode.S: Increase alignment.
14801 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14802
14803 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14806 be deterministic.
14807 (syndroms): Compute 0 syndrom.
14808 (rs_recover): Use 0 syndrom.
14809
14810 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14813
14814 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14815
14816 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14817 brackets.
14818
14819 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14820
14821 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14822 account.
14823 (get_top_pad): Likewise.
14824 (get_right_pad): Likewise.
14825 (get_bottom_pad): Likewise.
14826
14827 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14828
14829 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
14830
14831 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14834 attribute as the structure isn't guaranteed to be properly aligned.
14835 (grub_efi_pci_device_path): Likewise.
14836 (grub_efi_pccard_device_path): Likewise.
14837 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14838 specify the size of `memory_type'.
14839 (grub_efi_vendor_device_path): Likewise.
14840 (grub_efi_controller_device_path): Likewise.
14841 (grub_efi_acpi_device_path): Likewise.
14842 (grub_efi_expanded_acpi_device_path): Likewise.
14843 (grub_efi_atapi_device_path): Likewise.
14844 (grub_efi_scsi_device_path): Likewise.
14845 (grub_efi_fibre_channel_device_path): Likewise.
14846 (grub_efi_1394_device_path): Likewise.
14847 (grub_efi_usb_device_path): Likewise.
14848 (grub_efi_usb_class_device_path): Likewise.
14849 (grub_efi_i2o_device_path): Likewise.
14850 (grub_efi_mac_address_device_path): Likewise.
14851 (grub_efi_ipv4_device_path): Likewise.
14852 (grub_efi_ipv6_device_path): Likewise.
14853 (grub_efi_infiniband_device_path): Likewise.
14854 (grub_efi_uart_device_path): Likewise.
14855 (grub_efi_vendor_messaging_device_path): Likewise.
14856 (grub_efi_hard_drive_device_path): Likewise.
14857 (grub_efi_cdrom_device_path): Likewise.
14858 (grub_efi_vendor_media_device_path): Likewise.
14859 (grub_efi_file_path_device_path): Likewise.
14860 (grub_efi_protocol_device_path): Likewise.
14861 (grub_efi_piwg_device_path): Likewise.
14862 (grub_efi_bios_device_path): Likewise.
14863
14864 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14867 (grub_ucs4_to_utf8_alloc): Likewise.
14868 (grub_ucs4_to_utf8): Likewise.
14869 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14870 (grub_ucs4_to_utf8_alloc): Likewise.
14871
14872 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14873
14874 AFFS never uses unicode.
14875
14876 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14877 (grub_latin1_to_utf8): New inline function.
14878 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14879
14880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14883 overflow.
14884
14885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14888 (grub_squash_dirent_header): Likewise.
14889 (read_chunk): Don't double swap.
14890 (grub_squash_iterate_dir): Fix swap sizes.
14891
14892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14895
14896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14899 (grub_hfs_iterate_dir): Likewise.
14900
14901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14902
14903 Fix video on platforms where unaligned access is forbidden.
14904 Make several optimisations while on it.
14905
14906 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14907 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14908 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14909 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14910 Disable.
14911 (grub_video_fbblit_replace_16bit_1bit):
14912 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14913 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14914 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14915 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14916 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14917 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14918 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14919 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14920 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14921 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14922 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14923 (grub_video_fbblit_replace_index_RGB888): Likewise.
14924 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14925 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14926 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14927 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14928 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14929 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14930 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14931 Disable.
14932 (grub_video_fbblit_blend_XXX565_1bit):
14933 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14934 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14935 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14936 void *.
14937 * grub-core/video/fb/video_fb.c (common_blitter)
14938 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14939 (grub_video_fb_create_render_target_from_pointer)
14940 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14941 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14942 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14943 definition.
14944 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14945
14946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14947
14948 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14949 HH22 and HM10 relocations.
14950
14951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14954
14955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14956
14957 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14958 allocation succeeded.
14959
14960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14963 argument a u8 pointer. All users updated.
14964 Handle unaligned buffers.
14965
14966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14967
14968 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14969 add_part to workaround compiler bug.
14970
14971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14974
14975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14978 Reserve alignment invariants.
14979 (grub_multiboot_load): Likewise.
14980 (retrieve_video_parameters): Likewise.
14981 (grub_multiboot_make_mbi): Likewise.
14982
14983 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14986 incorrect pointer.
14987
14988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14991 (grub_pata_pio_write): Likewise.
14992
14993 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 Add noreturn attributes and remove unreachable code.
14996
14997 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14998 code.
14999 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15000 code. Mark as noreturn.
15001 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15002 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15003 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15004 unreachable code.
15005 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15006 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15007 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15008 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15009 * include/grub/kernel.h (grub_main): Mark as noreturn.
15010 * include/grub/reader.h (grub_rescue_run): Likewise.
15011
15012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15013
15014 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15015 redundant declaration.
15016
15017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15018
15019 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15020 redundant declaration.
15021 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15022
15023 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15026 to ensure alignment.
15027 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15028 alignment. Ensure tmp alignment.
15029 (grub_cmd_hdparm): Ensure buf alignment.
15030 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15031 to ensure alignment.
15032 (grub_ata_dumpinfo): Ensure text alignment.
15033 (grub_atapi_identify): Preserve alignment invariant.
15034 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15035
15036 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15039 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15040 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15041 * include/grub/misc.h (grub_reboot)
15042 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15043 (grub_halt) [__mips__]: Likewise.
15044
15045 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15048 Remove redundant declaration.
15049 (grub_mmap_get_post64): Likewise.
15050 (grub_mmap_get_upper): Likewise.
15051 (grub_mmap_get_lower): Likewise.
15052
15053 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15056 uint32_t * to ensure alignment.
15057 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15058
15059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15062 uint16_t * to ensure alignment.
15063 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15064 alignment.
15065
15066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15067
15068 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15069 to ensure alignment.
15070 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15071
15072 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15075 Handle unaligned pointers.
15076 (u32at): Likewise.
15077 (u64at): Likewise.
15078 (fixup): Use byte access instead of v16at.
15079 (find_attr): Fix imporper usage of v32at.
15080 (read_data): Likewise.
15081 (list_file): Handle byte-swapping and unaligned strings.
15082 (grub_ntfs_label): Likewise.
15083
15084 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15087 as it's not necessarily aligned.
15088
15089 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15092 redundant declaration.
15093 (grub_serial_init): Likewise.
15094 (grub_terminfo_init): Likewise.
15095
15096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15099 function.
15100 (ZAP_HASH_IDX): Likewise.
15101 (ZAP_LEAF_HASH_SHIFT): Likewise.
15102 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15103 (LEAF_HASH): Likewise.
15104 (ZAP_LEAF_NUMCHUNKS): Likewise.
15105 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15106 alignment invariants. Return pointer. All users updated.
15107 (ZAP_LEAF_ENTRY): Make into inline function.
15108 (NBBY): Removed.
15109 (xor): LIkewise.
15110 (xor_out): Use grub_crypto_xor.
15111 (dnode_get_path): Use grub_get_unaligned.
15112 (nvlist_find_value): Likewise.
15113 (grub_zfs_nvlist_lookup_uint64): Likewise.
15114 (grub_zfs_nvlist_lookup_string): Likewise.
15115 (get_nvlist_size): Likewise.
15116 (grub_zfs_open): Likewise.
15117 (fill_fs_info): Likewise.
15118 (grub_zfs_dir): Likewise.
15119 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15120 alignment invariants.
15121 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15122 necessarily aligned.
15123
15124 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15127
15128 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15129
15130 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15131 arithmetic to conserve alignment invariants.
15132
15133 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15136 redundant declaration.
15137 (grub_efiemu_mm_obtain_request): Likewise.
15138 (grub_efiemu_prepare): Likewise.
15139
15140 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15143 to match types.
15144
15145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15148 case of aunaligned recptr.
15149 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15150 alignment.
15151 (grub_hfsplus_btree_search): Handle unaligned index.
15152
15153 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15156 to get freetag and skip.
15157
15158 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15159
15160 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15161 array.
15162 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15163 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15164
15165 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15166
15167 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15168 name for checksum and fix allocation algorithm.
15169
15170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * include/grub/types.h (grub_properly_aligned_t): New type.
15173 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15174 (grub_get_unaligned16): Add explicit casts.
15175 (grub_get_unaligned32): Likewise.
15176 (grub_get_unaligned64): Likewise.
15177 (grub_set_unaligned16): New function.
15178 (grub_set_unaligned32): Likewise.
15179
15180 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15181
15182 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15183
15184 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15185
15186 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15187 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15188 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15189
15190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15191
15192 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15193 conditionals.
15194
15195 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15198 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15199
15200 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15201
15202 Unify and improve RAID and crypto xor.
15203
15204 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15205 changed to grub_crypto_xor
15206 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15207 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15208 Use bigger types when possible.
15209
15210 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 * grub-core/disk/raid.c (scan_devices): Fix condition.
15213
15214 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15217 Make name a const ptr.
15218
15219 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15220
15221 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15222 first argument a const pointer.
15223 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15224 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15225 proto.
15226 (grub_children_iterate): Likewise.
15227 (grub_machine_mmap_iterate): Remove redundant declaration.
15228
15229 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15232 (grub_cmd_acpi) [!x86]: Disable EBDA.
15233
15234 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15235
15236 Enable UTF8 in gnulib regexp.
15237
15238 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15239 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15240 (isupper): Use grub_isupper.
15241 (isascii): New inline function.
15242 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15243 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15244 * grub-core/normal/charset.c (grub_utf8_process): New function.
15245 (grub_utf8_to_utf16): Use grub_utf8_process.
15246 (grub_encode_utf8_character): New function.
15247 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15248 * include/grub/charset.h (grub_utf8_process): New declaration.
15249 (grub_encode_utf8_character): Likewise.
15250 * include/grub/misc.h (grub_islower): New inline function.
15251 (grub_isupper): Likewise.
15252 (grub_strchrsub): Moved down to fix the definitions.
15253
15254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15255
15256 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15257 specification.
15258
15259 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * include/grub/loader.h (grub_loader_register_preboot_hook):
15262 Use struct preboot * and not void * for handle. All users updated.
15263 (grub_loader_unregister_preboot_hook): Likewise.
15264
15265 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15268 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15269 UTF-16-BE. All users updated.
15270 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15271 (grub_hfsplus_iterate_dir): Likewise.
15272 (grub_hfsplus_label): Likewise.
15273
15274 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15277
15278 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 Add missing const qualifiers.
15281
15282 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15283 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15284 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15285 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15286 (grub_lvm_check_flag): Likewise.
15287 * grub-core/efiemu/i386/coredetect.c
15288 (grub_efiemu_get_default_core_name): Likewise
15289 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15290 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15291 * grub-core/fs/ntfs.c (fixup): Likewise.
15292 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15293 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15294 (fzap_lookup): Likewise.
15295 (zap_lookup): Likewise.
15296 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15297 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15298 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15299 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15300 (grub_freebsd_add_meta_module): Likewise.
15301 (grub_cmd_freebsd_module): Likewise.
15302 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15303 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15304 (grub_xnu_writetree_get_size): Likewise.
15305 (grub_xnu_writetree_toheap_real): Likewise.
15306 (grub_xnu_find_key): Likewise.
15307 (grub_xnu_create_key): Likewise.
15308 (grub_xnu_create_value): Likewise.
15309 (grub_xnu_register_memory): Likewise.
15310 (grub_xnu_check_os_bundle_required): Likewise.
15311 (grub_xnu_scan_dir_for_kexts): Likewise.
15312 (grub_xnu_load_kext_from_dir): Likewise.
15313 * grub-core/normal/color.c (color_list): Likewise.
15314 * grub-core/normal/completion.c (current_word): Likewise.
15315 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15316 * grub-core/term/serial.c (grub_serial_find): Likewise.
15317 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15318 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15319 Likewise.
15320 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15321 (grub_freebsd_add_meta_module): Likewise.
15322 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15323 * include/grub/net.h (grub_net_card_driver): Likewise.
15324 (grub_net_card): Likewise.
15325 (grub_net_app_protocol): Likewise.
15326 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15327 * include/grub/serial.h (grub_serial_find): Likewise.
15328 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15329 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15330 (grub_xnu_create_value): Likewise.
15331 (grub_xnu_find_key): Likewise.
15332 (grub_xnu_scan_dir_for_kexts): Likewise.
15333 (grub_xnu_load_kext_from_dir): Likewise.
15334
15335 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15336 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15337 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15338 Moved from here ...
15339 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15340
15341 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15342
15343 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15344
15345 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15348 (read_device): Fix size calculation.
15349
15350 2011-11-25 Robert Millan <rmh@gnu.org>
15351
15352 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15353 (find_root_device_from_libzfs): Add zpool output parser to be used
15354 as fallback when libzfs isn't available.
15355
15356 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15357
15358 * po/Makefile.in.in: Add missing escape-continuation.
15359
15360 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15361
15362 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15363
15364 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15365
15366 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15367
15368 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15369
15370 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15371
15372 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15373
15374 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15375
15376 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * grub-core/lib/adler32.c: Add missing license specification.
15379 * grub-core/lib/crc64.c: Likewise.
15380 * grub-core/loader/i386/pc/plan9.c: Likewise.
15381 * grub-core/partmap/plan.c: Likewise.
15382
15383 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15384
15385 Add facility to debug GRUB with gdb under qemu.
15386
15387 * grub-core/gdb_grub.in: New file.
15388 * grub-core/gmodule.pl.in: Likewise.
15389 * grub-core/Makefile.core.def (gmodule.pl): New script.
15390 (gdb_grub): Likewise.
15391
15392 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * util/grub-mount.c (argp_parser): Accept relative pathes.
15395 * util/grub-fstest.c (argp_parser): Likewise.
15396
15397 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 Plan9 support.
15400
15401 * Makefile.util.def (libgrubmods): Add
15402 grub-core/partmap/plan.c.
15403 * docs/grub.texi: Notice Plan9 support.
15404 * grub-core/Makefile.core.def (plan9): New module.
15405 (part_plan): Likewise.
15406 * grub-core/loader/i386/pc/plan9.c: New file.
15407 * grub-core/partmap/plan.c: Likewise.
15408 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15409 define.
15410 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
15411 * include/grub/mm.h (grub_extend_alloc): New inline function.
15412
15413 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 Make Reed-Solomon faster by using power of generator representation of
15416 GF(256)*.
15417
15418 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
15419 (gf_double_t): Likewise.
15420 (gf_invert): Removed.
15421 (gf_powx): New array.
15422 (gf_powx_inv): Likewise.
15423 (scratch): Move higher.
15424 (gf_reduce): Removed.
15425 (gf_mul): Use powx.
15426 (gf_invert): Likewise.
15427 (init_inverts): Replaced with ...
15428 (init_powx): ...this. All users updated.
15429 (pol_evaluate): Replace multiplications with additions.
15430 (rs_encode): Likewise.
15431 (gauss_eliminate): Call gf_invert.
15432 (grub_reed_solomon_add_redundancy): Call init_powx.
15433 (grub_reed_solomon_recover): Call init_powx unconditionally.
15434
15435 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15436
15437 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
15438
15439 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15440
15441 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
15442 disk->partiton for safety.
15443
15444 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15445
15446 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
15447 Fix a memory leak.
15448 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
15449
15450 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15451
15452 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
15453
15454 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
15457
15458 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 Fix spaces handling in proc/self/mountinfo.
15461
15462 * util/getroot.c (unescape): New function.
15463 (grub_find_root_device_from_mountinfo): Use unescape.
15464
15465 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 Support ZFS embedding.
15468
15469 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
15470 (grub_zfs_fs): Register grub_zfs_embed.
15471
15472 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 Fix MIPS compilation.
15475
15476 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
15477 * include/grub/offsets.h: Rename decompressor fields from
15478 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
15479 * util/grub-mkimage.c (image_targets): Use new names.
15480
15481 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 Defer multiboot device parsing until we're in compressed part.
15484
15485 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
15486 bsd_part. setdevice has fallen into disuse.
15487 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
15488 (bsd_part): Likewise.
15489 (boot_dev): New variable.
15490 (multiboot_trampoline): Don't parse multiboot device.
15491 Pass multiboot device in %edx.
15492 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
15493 grub_boot_device.
15494 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
15495 Likewise.
15496 * grub-core/kern/i386/pc/startup.S: Save edx.
15497 (grub_boot_drive): Removed.
15498 (grub_install_dos_part): Likewise.
15499 (grub_install_bsd_part): Likewise.
15500 (grub_boot_device): New variable.
15501 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
15502 (grub_install_bsd_part): Likewise.
15503 (grub_boot_drive): Likewise.
15504 (grub_boot_device): New variable.
15505 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
15506 Removed.
15507 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15508 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
15509 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
15510 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
15511 * util/grub-install.in: Remove redundant condition.
15512
15513 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15514
15515 Fix bug introduced by previous commit.
15516
15517 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
15518
15519 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15520
15521 Use decompressors framework on i386-pc. It increases core size
15522 by 46 bytes but improves compatibility and maintainability.
15523
15524 * grub-core/Makefile.core.def (lzma_decompress): New image.
15525 (kernel): Add i386_pc_ldflags.
15526 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
15527 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
15528 to real_to_prot, prot_to_real and device info.
15529 * include/grub/offsets.h: Renamed decompressor offsets.
15530 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
15531 (image_target_desc): Remove raw_size and rename decompressor fields.
15532 (compress_kernel): Handle lzma.
15533 (generate_image): Handle decompressors on i386-pc.
15534
15535 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 * configure.ac: Add -fno-asynchronous-unwind-tables.
15538
15539 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 Move assembly code to C by using intwrap. It increases core size
15542 by 88 bytes but improves compatibility and maintainability.
15543
15544 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
15545 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
15546 ... here. Translated to C.
15547 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
15548 * grub-core/term/i386/pc/console.c (grub_console_getkey):
15549 ... here. Translated to C.
15550 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
15551 * grub-core/term/i386/pc/console.c (grub_console_getxy):
15552 ... here. Translated to C.
15553 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
15554 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
15555 ... here. Translated to C.
15556 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
15557 * grub-core/term/i386/pc/console.c (grub_console_cls):
15558 ... here. Translated to C.
15559 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
15560 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
15561 ... here. Translated to C.
15562 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
15563 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
15564 Translated to C.
15565 * grub-core/term/i386/pc/console.c (int10_9): New function.
15566 (grub_console_putchar): Likewise.
15567 * include/grub/i386/pc/console.h: Removed the not anymore shared
15568 functions.
15569
15570 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15571
15572 Move grub_chainloader_real_boot out of the kernel.
15573
15574 * grub-core/Makefile.am: Remove machine/loader.h.
15575 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
15576 Removed.
15577 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
15578 variable.
15579 (grub_relocator16_keep_a20_enabled): Likewise.
15580 (grub_relocator16_boot): Fill new variables.
15581 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
15582 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
15583 relocator.
15584 (grub_chainloader_unload): Likewise.
15585 (grub_chainloader_cmd): Likewise.
15586 * include/grub/i386/pc/loader.h: Removed.
15587 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
15588 and esi. All initialisers updated.
15589
15590 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15591 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
15592
15593 * Makefile.util.def (grub-mount): New util.
15594 * .bzrignore: Add grub-mount.
15595 * configure.ac: Check for fuse and enable grub-mount if available.
15596 * docs/man/grub-mount.h2m: New file.
15597 * util/grub-mount.c: Likewise.
15598
15599 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15600
15601 * grub-core/commands/efi/fixvideo.c: Gettextize.
15602 * grub-core/commands/hashsum.c: Likewise.
15603 * grub-core/commands/i386/cmostest.c: Likewise.
15604 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15605 * grub-core/commands/i386/pc/lsapm.c: Likewise.
15606 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15607 * grub-core/commands/lsmmap.c: Likewise.
15608 * grub-core/commands/menuentry.c: Likewise.
15609 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
15610 * grub-core/commands/setpci.c: Likewise.
15611 * grub-core/loader/i386/bsd.c: Likewise.
15612 * grub-core/loader/i386/linux.c: Likewise.
15613 * util/getroot.c: Likewise.
15614 * util/grub-editenv.c: Likewise.
15615 * util/grub-fstest.c: Likewise.
15616 * util/grub-mkfont.c: Likewise.
15617 * util/grub-mkimage.c: Likewise.
15618 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15619 * util/grub-pe2elf.c: Likewise.
15620 * util/grub-probe.c: Likewise.
15621 * util/grub-setup.c: Likewise.
15622 * util/ieee1275/ofpath.c: Likewise.
15623 * util/misc.c: Likewise.
15624 * util/raid.c: Likewise.
15625
15626 2011-11-11 Robert Millan <rmh@gnu.org>
15627
15628 * util/getroot.c (grub_util_get_geom_abstraction): Remove
15629 __attribute__((unused)) from `os_dev', which *is* being used.
15630
15631 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15632
15633 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
15634 forgotten define.
15635 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
15636 GRUB_IA64_DL_GOT_ALIGN.
15637 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
15638 GRUB_IA64_DL_TRAMP_ALIGN.
15639
15640 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15641
15642 Replace grub_fatal with normal errors in i386 linux loader.
15643
15644 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
15645 (allocate_pages): Check find_efi_mmap_size return value.
15646 (grub_e820_add_region): Return error.
15647 (grub_linux_boot): Check mmap return value.
15648
15649 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * grub-core/commands/acpihalt.c: Gettextized.
15652 * grub-core/commands/cacheinfo.c: Likewise.
15653 * grub-core/commands/cmp.c: Likewise.
15654 * grub-core/commands/efi/loadbios.c: Likewise.
15655 * grub-core/commands/gptsync.c: Likewise.
15656 * grub-core/commands/ieee1275/suspend.c: Likewise.
15657 * grub-core/commands/legacycfg.c: Likewise.
15658 * grub-core/commands/memrw.c: Likewise.
15659 * grub-core/commands/minicmd.c: Likewise.
15660 * grub-core/commands/parttool.c: Likewise.
15661 * grub-core/commands/time.c: Likewise.
15662 * grub-core/commands/videoinfo.c: Likewise.
15663 * grub-core/disk/geli.c: Likewise.
15664 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
15665 * grub-core/disk/luks.c: Likewise.
15666 * grub-core/disk/lvm.c: Likewise.
15667 * grub-core/font/font_cmd.c: Likewise.
15668 * grub-core/fs/zfs/zfscrypt.c: Likewise.
15669 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15670 * grub-core/gfxmenu/view.c: Likewise.
15671 * grub-core/kern/emu/hostdisk.c: Likewise.
15672 * grub-core/kern/emu/main.c: Likewise.
15673 * grub-core/kern/emu/misc.c: Likewise.
15674 * grub-core/kern/emu/mm.c: Likewise.
15675 * grub-core/kern/mips/arc/init.c: Likewise.
15676 * grub-core/kern/mips/loongson/init.c: Likewise.
15677 * grub-core/kern/partition.c: Likewise.
15678 * grub-core/lib/i386/halt.c: Likewise.
15679 * grub-core/lib/mips/arc/reboot.c: Likewise.
15680 * grub-core/lib/mips/loongson/reboot.c: Likewise.
15681 * grub-core/loader/i386/pc/chainloader.c: Likewise.
15682 * grub-core/loader/i386/xnu.c: Likewise.
15683 * grub-core/loader/multiboot.c: Likewise.
15684 * grub-core/net/bootp.c: Likewise.
15685 * grub-core/net/net.c: Likewise.
15686 * grub-core/normal/term.c: Likewise.
15687 * grub-core/partmap/bsdlabel.c: Likewise.
15688 * grub-core/parttool/msdospart.c: Likewise.
15689 * grub-core/term/gfxterm.c: Likewise.
15690 * grub-core/term/terminfo.c: Likewise.
15691 * grub-core/video/i386/pc/vbe.c: Likewise.
15692 * util/grub-menulst2cfg.c: Likewise.
15693 * util/grub-mkdevicemap.c: Likewise.
15694 * util/grub-mklayout.c: Likewise.
15695 * util/grub-mkrelpath.c: Likewise.
15696 * util/grub-script-check.c: Likewise.
15697 * util/ieee1275/grub-ofpathname.c: Likewise.
15698 * util/resolve.c: Likewise.
15699
15700 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 Support %1$d syntax.
15703
15704 * tests/printf_unit_test.c: New file.
15705 * Makefile.util.def (printf_test): New test.
15706 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
15707
15708 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15709
15710 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
15711 fix.
15712
15713 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
15716 dprintf.
15717 * grub-core/font/font.c (grub_font_load): Likewise.
15718
15719 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 * util/grub-macho2img.c: Add comment concerning gettext.
15722 * grub-core/lib/legacy_parse.c: Likewise.
15723
15724 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15725
15726 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
15727 (grub_xvasprintf): Likewise.
15728
15729 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 Add const keyword to grub_env_get and gettextize week days.
15732
15733 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
15734 (grub_read_hook_datetime): Return const char *.
15735 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
15736 updated.
15737 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15738 Mark for gettext.
15739 (grub_get_weekday_name): Return const char *. Call gettext.
15740 * grub-core/script/argv.c (grub_script_argv_append): Receive const
15741 char * and len as the argument. All users updated.
15742 (grub_script_argv_split_append): Receive const char *.
15743 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
15744 * include/grub/env.h (grub_env_get): Likewise.
15745 (grub_env_read_hook_t): Return const char *.
15746 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
15747 (grub_script_argv_split_append): Likewise.
15748
15749 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15750
15751 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
15752
15753 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15754
15755 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
15756 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
15757
15758 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
15761 Fix prototype.
15762
15763 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15764
15765 Fix mips compilation.
15766
15767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
15768 normal decoder.
15769 (hashes): Use in embed decoder as well (for sizes).
15770 (dec_stream_header): Fix embed decompressor logic.
15771 (dec_stream_footer): Likewise.
15772
15773 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15776 an error and not a fatal on unrecognised relocation types.
15777
15778 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15779
15780 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15781 Issue error rather than printf on unknown arguments.
15782
15783 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15784
15785 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15786 Make buf a const.
15787
15788 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15789
15790 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15791 Fix module name.
15792
15793 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15796 leftover debug printf.
15797
15798 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15799
15800 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15801
15802 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15803
15804 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15805 A stylistic fix.
15806
15807 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15808
15809 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15810
15811 2011-11-10 Shea Levy <slevy@tieronedesign.com>
15812
15813 Allow all modules to perform serial IO
15814
15815 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15816 * include/grub/serial.h (grub_serial_port_configure): New inline
15817 function.
15818 (grub_serial_port_fetch): Likewise.
15819 (grub_serial_port_put): Likewise.
15820 (grub_serial_port_fini): Likewise.
15821 (grub_serial_find): New proto.
15822
15823 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15824
15825 Put symlink at the end of the node and fix a potential
15826 memory corruption.
15827
15828 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15829 Make symlink into an array.
15830 (set_rockridge): Set have_symlink and alloc_dirents.
15831 (grub_iso9660_read_symlink): Use new layout.
15832 (grub_iso9660_iterate_dir): Fix memory corruption.
15833 Use new layout.
15834 (grub_iso9660_dir): Set have_symlink.
15835 (grub_iso9660_open): Likewise.
15836
15837 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 Remove local keyword.
15840
15841 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15842 (version_test_gt): Likewise.
15843 (version_find_latest): Likewise.
15844 (gettext_printf): Likewise.
15845 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15846
15847 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15850
15851 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 Fix ZFS memory and resource leaks.
15854
15855 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15856 All users updated.
15857 Free type on exit.
15858 (fill_vdev_info): New parameter inserted. All users updated.
15859 (check_pool_label): Likewise.
15860 (scan_disk): Likewise.
15861 (scan_devices): Close non-inserted disks.
15862 (fzap_iterate): Free l.
15863 (unmount_device): Free children descripto memory.
15864
15865 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15866
15867 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15868 argument (access out of bounds).
15869
15870 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15871
15872 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15873 >= 6 drives.
15874
15875 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15878 Fix declaration.
15879
15880 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 Fix several memory leaks.
15883
15884 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15885 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15886 (grub_cpio_dir): Likewise.
15887 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15888 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15889 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15890 (grub_romfs_label): Likewise.
15891 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15892 (squash_unmount): New function.
15893 (grub_squash_dir): Fix memory leak.
15894 (grub_squash_open): Likewise.
15895 (grub_squash_read): Likewise.
15896 (grub_squash_mtime): Likewise.
15897 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15898 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15899 * util/grub-fstest.c (fstest): Likewise.
15900
15901 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15902
15903 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15904 avoid accessing beyond the array.
15905
15906 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15909
15910 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 Several AFFS fixes.
15913
15914 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15915 (GRUB_AFFS_FLAG_FFS): Removed.
15916 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15917 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15918 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15919 (grub_fshelp_node): Make block 32-bit.
15920 Add block_cache and last_block_cache.
15921 (grub_affs_read_block): Fill and use block cache.
15922 (grub_affs_read_file): Removed.
15923 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15924 boot block.
15925 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15926 safety.
15927 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15928 space.
15929 (grub_affs_close): Free block cache.
15930 (grub_affs_read): Use grub_fshelp_read_file directly.
15931
15932 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15935 with no error set.
15936
15937 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15940 used variable.
15941 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15942 Likewise.
15943
15944 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15947
15948 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15949 byteswap when needed.
15950
15951 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15952
15953 Fix FreeBSD compilation.
15954
15955 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15956 to avoid circular dependency.
15957 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15958 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15959 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15960
15961 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15962
15963 Fix ZFS crypto error types.
15964
15965 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15966 (grub_gcm_decrypt): Likewise.
15967 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15968 from PBKDF2.
15969
15970 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15971
15972 Illumos support.
15973
15974 * Makefile.util.def (10_illumos): New script.
15975 * configure.ac: Set COND_HOST_ILLUMOS.
15976 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15977 Support Illumos calls.
15978 (find_partition_start) [__sun__]: Likewise.
15979 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15980 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15981 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15982 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15983 device.
15984 * util/grub-probe.c (probe) [__sun__]: Do character check.
15985 * util/grub.d/10_illumos.in: New file.
15986
15987 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15988
15989 Support escaped commas in hostdisk.
15990
15991 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15992 (find_grub_drive): Use unescape_cmp.
15993 (make_device_name): Escape commas.
15994
15995 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15996
15997 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15998
15999 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16002 variable.
16003
16004 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16005
16006 Support trampoline jumps on powerpc.
16007
16008 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16009 __ia64__ path.
16010 (grub_dl_load_segments): Set mod->sz.
16011 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16012 segments.
16013 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16014 (jump): Likewise.
16015 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16016 function.
16017 (trampoline): New struct.
16018 (trampoline_template): New const.
16019 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16020 * include/grub/dl.h (grub_dl): Add sz element.
16021 [__powerpc__]: Follow __ia64__.
16022 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16023 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16024 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16025 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16026
16027 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16028
16029 ZFS crypto support.
16030
16031 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16032 * grub-core/Makefile.core.def (zfscrypt): New module.
16033 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16034 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16035 it. All users updated.
16036 (grub_zfs_decrypt): New var.
16037 (grub_zfs_load_key): Likewise.
16038 (zio_checksum_functions): Add SHA256+MAC.
16039 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16040 (zio_read): Handle encrypted blocks.
16041 (zap_verify): Remove incorrect check.
16042 (fzap_iterate): Handle non-standard fzap.
16043 (zap_iterate): Likewise.
16044 (zap_iterate_u64): New function.
16045 (dnode_get_fullpath): Load keys.
16046 * grub-core/fs/zfs/zfscrypt.c: New file.
16047 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16048 (grub_crypto_ecb_encrypt): Make input const.
16049 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16050 (grub_crypto_ecb_encrypt): Make input const.
16051 (GRUB_CIPHER_AES): New macro.
16052 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16053 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16054 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16055 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16056 prefix. All users updated.
16057 (grub_zfs_add_key): New proto.
16058 (grub_zfs_decrypt): Likewise.
16059 (grub_zfs_load_key): Likewise.
16060 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16061 * util/grub-fstest.c (options): Add -K option.
16062 (argp_parser): Likewise.
16063
16064 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16065
16066 Support zle compression on ZFS.
16067
16068 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16069 (decomp_table): Add zle.
16070 * include/grub/zfs/zio.h (zio_compress): Add zle.
16071
16072 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 Support BtrFS embedding.
16075
16076 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16077 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16078 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16079 * util/grub-setup.c (setup): Use fs embedding if available.
16080 Add additional sanity check.
16081
16082 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16083
16084 * util/grub-install.in: Fix condition for config_opt.
16085
16086 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16087
16088 Support third redundancy strip on raidz3.
16089
16090 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16091 Return error on singularity. All users updated.
16092 (read_device): Don't stop on 3rd failure on raidz3.
16093
16094 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 Support case-insensitive ZFS subvolumes.
16097
16098 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16099 All users updated.
16100 (zap_hash): Likewise.
16101 (name_cmp): New function.
16102 (zap_leaf_array_equal): New parameter case_insensitive.
16103 All users updated.
16104 (zap_leaf_lookup): Likewise.
16105 (fzap_lookup): Likewise.
16106 (zap_lookup): Likewise.
16107 (dnode_get_path): New parameter case_insensitive. Retrieve case
16108 sensitiviness of a volume. All users updated.
16109 (dnode_get_fullpath): New parameter case_insensitive.
16110 All users updated.
16111 (grub_zfs_dir): Set info.case_insensitiveness.
16112
16113 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 Support second redundancy strip on raidz(2,3).
16116
16117 * grub-core/fs/zfs/zfs.c (powx): New array.
16118 (powx_inv): Likewise.
16119 (poly): New const.
16120 (xor_out): New function.
16121 (gf_mul): Likewise.
16122 (recovery): Likewise.
16123 (read_device): Use second redundancy strip.
16124
16125 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16126
16127 Use a power of generator representation of GF(256) multiplication group
16128 to save space time and complexity.
16129
16130 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16131 (raid6_table2): Likewise.
16132 (powx): New array.
16133 (powx_inv): Likewise.
16134 (poly): New const.
16135 (grub_raid_block_mul): Replace with ...
16136 (grub_raid_block_mulx): ...this.
16137 (grub_raid6_init_table): Rewritten.
16138 (grub_raid6_recover): Use power of generator representation.
16139
16140 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16143 for the right device.
16144
16145 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16148 expected by grub-mkimage and it's more clear since there is no implicit
16149 padding.
16150
16151 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16152
16153 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16154 disk.
16155 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16156
16157 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16158
16159 * util/grub-mkrescue.in: Fix handling xorriso option.
16160
16161 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16164 NULL.
16165
16166 2011-11-03 crocket <crockabiscuit@gmail.com>
16167
16168 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16169
16170 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16171
16172 XZ CRC64 and SHA256 support.
16173
16174 * Makefile.util.def (libgrubmods): Add crc64.c.
16175 * grub-core/Makefile.core.def (crc64): New module.
16176 * grub-core/lib/crc64.c: New file.
16177 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16178 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16179 Fix the type.
16180 (MAX_HASH_SIZE): New define.
16181 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16182 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16183 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16184 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16185 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16186 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16187 Handle non-crc32 hashes.
16188 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16189 (dec_stream_header): Handle non-crc32 hashes.
16190 (dec_stream_footer): Likewise.
16191 (dec_block_header): Likewise.
16192 (dec_main): Likewise.
16193 (xz_dec_init): Likewise.
16194 (xz_dec_reset): Likewise.
16195 (xz_dec_end): Likewise.
16196 * util/import_gcry.py: Add CRC64 line.
16197
16198 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16201 as well.
16202
16203 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 Make reiserfs label retrieval similar to other *_label functions.
16206
16207 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16208 (REISERFS_MAX_LABEL_LENGTH): Removed.
16209 (REISERFS_LABEL_OFFSET): Likewise.
16210 (grub_reiserfs_label): Rewritten.
16211
16212 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16215 field.
16216
16217 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16220
16221 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16224 drive failure on both raidz and raidz2.
16225
16226 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Fix RAIDZ(2) for >= 5 devices.
16229
16230 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16231 asize argument. All users updated.
16232
16233 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16234
16235 Fix RAIDZ(2).
16236
16237 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16238 (fill_vdev_info_real): Set ashift.
16239 (read_device): Rewrite RAIDZ part based on reverse engineering.
16240
16241 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16244 don't report potentially unavialiable fields in debug output.
16245 (find_path): Fix double-free and memory leak.
16246
16247 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 Read label on UFS1.
16250
16251 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16252 (grub_ufs_fs): Always set .label.
16253
16254 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 Use shifts in UFS.
16257
16258 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16259 (grub_ufs_data): New field log2_blksz.
16260 (grub_ufs_read_file): Use shifts.
16261 (grub_ufs_mount): Check block size and logarithm it.
16262
16263 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16264
16265 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16266 long symlinks.
16267
16268 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 Handle symlinks and long names on tar and cpio.
16271
16272 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16273 (ATTR_FILE): Likewise.
16274 (ATTR_DIR): Likewise.
16275 (ATTR_LNK): Likewise.
16276 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16277 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16278 L and K entries.
16279 (grub_cpio_mount): Zero-fill data.
16280 (handle_symlink): New function.
16281 (grub_cpio_dir): Handle symlinks.
16282 (grub_cpio_open): Likewise.
16283 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16284
16285 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16286
16287 Fix iso9660 filename limitations and fix memory leaks.
16288
16289 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16290 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16291
16292 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 Fix JFS file name length limitations.
16295
16296 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16297 (grub_jfs_diropen): Fix maximum filename length.
16298 (grub_jfs_getent): Fix filename length.
16299 (grub_jfs_lookup_symlink): Fix size checks.
16300
16301 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16304 string.
16305
16306 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16307
16308 Leverage BFS implementation to read AFS.
16309
16310 * Makefile.util.def (libgrubmods): Add afs.c.
16311 * grub-core/Makefile.core.def (afs): New module
16312 * grub-core/fs/afs.c: New file.
16313 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16314
16315 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16316
16317 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16318
16319 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16320
16321 * grub-core/fs/bfs.c: Run indent.
16322
16323 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 BFS implementation based on the specification.
16326
16327 * grub-core/fs/bfs.c: New file.
16328 * Makefile.util.def (libgrubmods): Add bfs.c.
16329 * grub-core/Makefile.core.def (bfs): New module.
16330
16331 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16332
16333 * util/grub-fstest.c (cmd_cp): Clarify error message.
16334 (cmd_cmp): Likewise.
16335
16336 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16337
16338 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16339 and befs_be.
16340
16341 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16342
16343 Remove afs and befs because of copyright problem.
16344
16345 * grub-core/fs/afs.c: Removed.
16346 * grub-core/fs/afs_be.c: Removed.
16347 * grub-core/fs/befs.c: Removed.
16348 * grub-core/fs/befs_be.c: Removed.
16349 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16350 * grub-core/Makefile.core.def (afs): Removed.
16351 (afs_be): Likewise.
16352 (befs): Likewise.
16353 (befs_be): Likewise.
16354
16355 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16356
16357 Prefer rockridge over Joliet.
16358
16359 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16360 to ...
16361 (set_rockridge): ... here.
16362 (grub_iso9660_mount): Check rockridge on the primary label when
16363 discovering. Ignore Joliet if Rockridge is present.
16364
16365 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 Use shifts in nilfs2.
16368
16369 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16370 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16371 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16372 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16373 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16374 (grub_nilfs2_entries_per_block): Replaced with ...
16375 (grub_nilfs2_log_entries_per_block_log): ... this.
16376 (grub_nilfs2_blocks_per_group): Replaced with ...
16377 (grub_nilfs2_blocks_per_group_log): ... this.
16378 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16379 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16380 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16381 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16382 (grub_nilfs2_palloc_entry_offset): Replaced ...
16383 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16384 (grub_nilfs2_dat_translate): Use shifts.
16385 (grub_nilfs2_read_inode): Likewise.
16386 (GRUB_MOD_INIT): Ensure that logs are correct.
16387
16388 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 Use shifts in minix filesystem.
16391
16392 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16393 (GRUB_MINIX_ZONE2SECT): Likewise.
16394 (grub_minix_data): Replace block_size with log_block_size.
16395 (grub_minix_read_file): Use shifts.
16396 (grub_minix_mount): Check block size and take a logarithm.
16397
16398 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 Use shifts in squash4.
16401
16402 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16403 (squash_mount): Check block size and take logarithm.
16404 (direct_read): Use shifts.
16405
16406 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 Correct befs block counting logic.
16409
16410 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
16411 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
16412 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
16413 (grub_afs_read_inode): Use block_shift.
16414 (RANGE_SHIFT): New definition.
16415 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
16416 unexpected conditions, use shifts and appropriate types.
16417 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
16418
16419 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16420
16421 * grub-core/disk/raid.c (scan_devices): Check partition.
16422 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16423
16424 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 Support BFS (befs) UUID.
16427
16428 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
16429 (grub_afs_small_data_element_header): New struct.
16430 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
16431 (grub_afs_read_attribute) [MODE_BFS]: New function.
16432 (grub_afs_iterate_dir): Allocate for complete inode.
16433 (grub_afs_mount): Likewise.
16434 (grub_afs_uuid) [MODE_BFS]: New function.
16435 (grub_afs_fs) [MODE_BFS]: Add .uuid.
16436
16437 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
16438
16439 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
16440 (zfs_unmount): Fix memory leak.
16441
16442 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16443
16444 Support NTFS reparse points.
16445
16446 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
16447 (symlink_descriptor): New struct.
16448 (grub_ntfs_read_symlink): New function.
16449 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
16450 (grub_ntfs_open): Likewise.
16451
16452 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
16455
16456 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16457
16458 fstest xnu_uuid subcommand.
16459
16460 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
16461 grub-core/commands/xnu_uuid.c.
16462 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
16463 (fstest): Handle xnu_uuid.
16464 (options): Document xnu_uuid.
16465 (argp_parser): Parse xnu_uuid.
16466
16467 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
16470 -l argument. Add newline at the end if printing.
16471 (GRUB_MOD_INIT): Document -l.
16472
16473 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16474
16475 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
16476
16477 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16478
16479 ZFS multi-device and version 33 support.
16480
16481 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
16482 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
16483 (grub_zfs_data): Add multidev-ice-related fields.
16484 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
16485 (dva_get_offset): Make dva const.
16486 (zfs_fetch_nvlist): New function.
16487 (fill_vdev_info_real): Likewise.
16488 (fill_vdev_info): Likewise.
16489 (check_pool_label): Likewise.
16490 (scan_disk): Likewise.
16491 (scan_devices): Likewise.
16492 (read_device): Likewise.
16493 (read_dva): Likewise.
16494 (zio_read_gang): Use read_dva.
16495 (zio_read_data): Likewise.
16496 (zap_leaf_lookup): Add missing endian conversion.
16497 (zap_verify): Add missing endian conversion. All users updated.
16498 (fzap_lookup): Likewise.
16499 (fzap_iterate): Likewise.
16500 (dnode_get_path): Handle SA bonus.
16501 (nvlist_find_value): Make input const. All users updated.
16502 (unmount_device): New function.
16503 (zfs_unmount): Use unmount_device.
16504 (zfs_mount): Use scan_disk.
16505 (zfs_mtime): New function.
16506 (grub_zfs_open): Handle system attributes.
16507 (fill_fs_info): Likewise.
16508 (grub_zfs_dir): Likewise.
16509 (grub_zfs_fs): Add mtime.
16510 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
16511 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
16512 (SA_MTIME_OFFSET): Likewise.
16513 (SA_SYMLINK_OFFSET): Likewise.
16514 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
16515 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
16516 (fstest): Support zfsinfo.
16517 (argp_parser): Likewise.
16518
16519 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16520
16521 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
16522 error.
16523
16524 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 ZFS fixes.
16527
16528 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
16529 sharing the same block. Iterate over correct number of indices.
16530 (dnode_get_path): Handle symlinks correctly.
16531
16532 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
16535
16536 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 Read label on HFS+.
16539
16540 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
16541 (grub_hfsplus_btree_search): Fix types.
16542 (grub_hfsplus_label): Implement.
16543
16544 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
16547
16548 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16549
16550 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
16551
16552 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 Fix symlink handling on iso9660.
16555
16556 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
16557 All users updated.
16558 (grub_iso9660_susp_iterate): Accept zero-size iterate.
16559 (grub_iso9660_read_symlink): Moved most of code ...
16560 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
16561
16562 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16565 Use union to avoid breaking strict-aliasing rules.
16566
16567 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16568
16569 Support multi-extent iso files.
16570
16571 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
16572 Add node.
16573 (grub_fshelp_node): Revamp. All users updated.
16574 (FLAG_*): New enum.
16575 (read_node): New function.
16576 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
16577 All users updated.
16578 (grub_iso9660_mount): Don't attempt to read sua when there is none.
16579 (get_node_size): New function.
16580 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
16581 entries.
16582 Fix memory leak on . and ..
16583 (grub_iso9660_read): Use read_node.
16584 (grub_iso9660_close): Free node.
16585
16586 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 Fix tar 4G limit and handle paths containing dot.
16589
16590 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
16591 (canonicalize): New function.
16592 (grub_cpio_find_file): Use canonicalize. Store offs in
16593 grub_disk_addr_t.
16594 (grub_cpio_dir): Use grub_disk_addr_t.
16595 (grub_cpio_open): Likewise.
16596
16597 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 Fix handling of uncompressed blocks on squashfs and break 4G limit.
16600
16601 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
16602 unused flags.
16603 (grub_squash_inode): Add long_file and block_size.
16604 (grub_squash_cache_inode): New struct.
16605 (grub_squash_dirent): Make types into enum.
16606 (SQUASH_TYPE_LONG_REGULAR): New type.
16607 (grub_squash_frag_desc): Add field size.
16608 (SQUASH_BLOCK_FLAGS): New enum.
16609 (grub_squash_data): Use grub_squash_cache_inode.
16610 (grub_fshelp_node): Make ino_chunk 64-bit.
16611 (read_chunk): Minor argument change. All users updated.
16612 (squash_mount): Use correct le_to_cpu.
16613 (grub_squash_open): Handle LONG_REGULAR.
16614 (direct_read): New function.
16615 (grub_squash_read_data): Handle blocks correctly.
16616
16617 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
16620
16621 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
16624
16625 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 Fix 2G limit on ZFS.
16628
16629 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
16630 types.
16631 (uberblock_verify): Likewise.
16632 (dmu_read): Likewise.
16633 (grub_zfs_read): Likewise. Remove invalid cast.
16634
16635 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16636
16637 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
16638 (grub_jfs_blkno): Fix incorrect shift.
16639 (grub_jfs_read_file): Use more appropriate types.
16640
16641 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 Support triple indirect on minix2 and minix3.
16644
16645 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
16646 Declare triple_indir_zone.
16647 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
16648 indirect.
16649
16650 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 Minix FS fixes.
16653
16654 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
16655 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
16656 Rename ctime to mtime. All users updated.
16657 (grub_minix_get_file_block): Fix types and double indirect computations.
16658
16659 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16660
16661 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
16662 if no label is found.
16663 (grub_fat_iterate_dir): Fix file size type.
16664 (grub_fat_iterate_dir): Likewise.
16665
16666 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
16669 save some space.
16670 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16671 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16672
16673 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
16676
16677 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * util/import_gcry.py: Accept space between # and include.
16680
16681 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
16684
16685 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16686
16687 Fine grainely disable warnings on lexer. Remove Wno-error on it.
16688
16689 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
16690 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
16691 yylex_strncpy.
16692 * grub-core/script/yylex.l: Add fine-grained #pragma.
16693
16694 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
16697 New inline function.
16698 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
16699 Likewise.
16700 (memset) [GRUB_UTIL]: Likewise.
16701 (memcmp) [GRUB_UTIL]: Likewise.
16702
16703 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16704
16705 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
16706 inline function rather than a define.
16707
16708 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 * util/grub-setup.c: Add missing include.
16711
16712 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16713
16714 * util/ieee1275/grub-ofpathname.c: Add missing include.
16715
16716 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
16719 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
16720 Likewise.
16721
16722 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16723
16724 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
16725 grub_memcmp usage.
16726
16727 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 * util/grub-install.in: Add datarootdir as per automake manual
16730 suggestion.
16731 * util/grub-mknetdir.in: Likewise.
16732
16733 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
16736 suggestion.
16737 * util/grub.d/10_kfreebsd.in: Likewise.
16738 * util/grub.d/10_linux.in: Likewise.
16739 * util/grub.d/10_netbsd.in: Likewise.
16740 * util/grub.d/10_windows.in: Likewise.
16741 * util/grub.d/20_linux_xen.in: Likewise.
16742
16743 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
16744
16745 Remove redundant grub_kernel_image_size.
16746
16747 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
16748 _edata and _start.
16749 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
16750 the small code. It moves it only by few bytes but simplifies the code.
16751 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
16752 _start.
16753 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
16754 (grub_kernel_image_size): Removed.
16755 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
16756 (grub_kernel_image_size): Removed.
16757 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
16758 compiled with Apple toolchain.
16759 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
16760 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
16761 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
16762 (grub_total_module_size): Likewise.
16763 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
16764 Removed.
16765 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
16766 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
16767 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16768 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
16769 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
16770 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
16771 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
16772 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
16773 Removed.
16774 (grub_total_module_size): Removed.
16775 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16776 (image_targets): Likewise.
16777 Set .compressed_size to no field on sparc.
16778 (generate_image): Remove kernel_image_size handling.
16779
16780 2011-10-19 Szymon Janc <szymon@janc.net.pl>
16781
16782 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16783 NULL pointer dereference.
16784
16785 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16786
16787 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16788 done with a dedicated section.
16789
16790 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16791 Ensure the correct position of boot_path.
16792 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16793 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16794 other fields.
16795 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16796 * include/grub/boot.h: Removed. All references removed.
16797 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16798 Removed.
16799 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16800
16801 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16804 name.
16805
16806 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16807
16808 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16809
16810 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16813 Don't add the bogus brackets.
16814
16815 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 ExFAT support.
16818
16819 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16820 * grub-core/Makefile.core.def (exfat): New module.
16821 * grub-core/fs/exfat.c: New file.
16822 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16823 (GRUB_FAT_ATTR_*): Make into an enum.
16824 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16825 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16826 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16827 (GRUB_FAT_MAXFILE): Removed.
16828 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16829 (grub_current_fat_bpb_t): New type.
16830 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16831 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16832 (grub_fat_dir_node_t): New type.
16833 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16834 (fat_log2) [MODE_EXFAT]: Removed.
16835 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16836 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16837 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16838 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16839 (grub_fat_label) [MODE_EXFAT]: New function.
16840 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16841 reserved_first_sector to 0.
16842
16843 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16844
16845 Move grub_reboot out of the kernel.
16846
16847 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16848 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16849 * grub-core/lib/efi/reboot.c: ... here.
16850 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16851 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16852 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16853 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16854 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16855 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16856 * grub-core/lib/ieee1275/reboot.c: ... here.
16857 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16858 * grub-core/lib/mips/arc/reboot.c: ... here.
16859 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16860 * grub-core/lib/mips/loongson/reboot.c: ...here.
16861 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16862 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16863 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16864 * include/grub/i386/reboot.h: New file.
16865 * include/grub/mips/loongson/ec.h: Fix includes.
16866 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16867 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16868 * grub-core/lib/i386/reboot.c: New file.
16869
16870 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16871
16872 Make grub_prefix into module to fix the arbitrary limit and save
16873 some space.
16874
16875 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16876 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16877 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16878 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16879 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16880 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16881 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16882 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16883 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16884 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16885 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16886 * include/grub/ia64/efi/kernel.h: Removed.
16887 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16888 (grub_prefix): Removed.
16889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16890 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16891 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16892 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16893 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16894 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16895 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16896 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16897 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16898 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16899 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16900 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16901 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16902 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16903 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16904 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16905 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16906 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16907 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16908 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16909 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16910 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16911 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16912 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16913 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16914 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16915 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16916 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16917 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16918 from module.
16919 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16920 prefix_end.
16921 (image_targets): Likewise.
16922 (generate_image): Put prefix as a module.
16923
16924 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 Replace grub_module_iterate with FOR_MODULES.
16927
16928 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16929 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16930 (grub_efi_modules_addr): ...this.
16931 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16932 (grub_efi_init): Set grub_modbase.
16933 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16934 (grub_modbase): New variable.
16935 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16936 (grub_modbase): New variable.
16937 (grub_machine_init): Set grub_modbase.
16938 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16939 (grub_modbase): New variable.
16940 (grub_machine_init): Set grub_modbase.
16941 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16942 (grub_modbase): New variable.
16943 (grub_machine_init): Set grub_modbase.
16944 * grub-core/kern/main.c (grub_module_iterate): Remove.
16945 (grub_modules_get_end): Use grub_modbase.
16946 (grub_load_modules): Use FOR_MODULES.
16947 (grub_load_config): Likewise.
16948 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16949 (grub_modbase): New variable.
16950 (grub_machine_init): Set grub_modbase.
16951 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16952 (grub_modbase): New variable.
16953 (grub_machine_init): Set grub_modbase.
16954 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16955 Removed.
16956 (grub_modbase): New variable.
16957 (grub_machine_init): Set grub_modbase.
16958 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16959 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16960 (grub_module_iterate): Likewise.
16961 (grub_modbase): New variable declaration.
16962 (FOR_MODULES): New macro.
16963
16964 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16967 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16968
16969 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Fix few obvious type discrepancies.
16972
16973 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16974 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16975 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16976 variable.
16977 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16978 and connected types.
16979 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16980 offset.
16981 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16982 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16983 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16984 and connected types.
16985
16986 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16987
16988 Fix python 3.x incompatibilities.
16989
16990 * gentpl.py: Put brackets around print strings.
16991 * util/import_gcry.py: Open explicitly as utf-8.
16992 Use in instead of has_key.
16993
16994 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16995
16996 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16997 (GRUB_XFS_INO_AGBITS): Make into inline function.
16998 (GRUB_XFS_INO_INOINAG): Likewise.
16999 (GRUB_XFS_INO_AG): Likewise.
17000 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17001 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17002 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17003 (GRUB_XFS_EXTENT_SIZE): Likewise.
17004 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17005 (GRUB_XFS_NEXT_DIRENT): Likewise.
17006 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17007 (grub_xfs_read_file): Fix offset type.
17008
17009 2011-10-15 Robert Millan <rmh@gnu.org>
17010
17011 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17012
17013 2011-10-15 Robert Millan <rmh@gnu.org>
17014
17015 Fix build problem on FreeBSD and GNU/kFreeBSD.
17016
17017 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17018
17019 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17020
17021 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17022
17023 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17024 types.
17025 (grub_hfsplus_btree_recoffset): Likewise.
17026 (grub_hfsplus_btree_recptr): Likewise.
17027 (grub_hfsplus_find_block): Likewise.
17028 (grub_hfsplus_btree_search): Likewise.
17029 (grub_hfsplus_read_block): Likewise.
17030 (grub_hfsplus_read_file): Likewise.
17031 (grub_hfsplus_mount): Likewise.
17032 (grub_hfsplus_btree_iterate_node): Likewise.
17033 (grub_hfsplus_btree_search): Likewise.
17034 (grub_hfsplus_iterate_dir): Likewise.
17035 (grub_hfsplus_read): A small code simplification.
17036
17037 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17038
17039 * grub-core/kern/emu/hostdisk.c
17040 (convert_system_partition_to_system_disk): Don't assume that children
17041 of mapper nodes are mapper nodes.
17042
17043 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17046 * include/grub/misc.h (grub_isxdigit): New function.
17047 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17048 switched to grub_isxdigit.
17049 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17050 number starting with a letter.
17051
17052 2011-10-09 Robert Millan <rmh@gnu.org>
17053
17054 LVM support for FreeBSD and GNU/kFreeBSD.
17055
17056 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17057 GNU/kFreeBSD.
17058 (LVM_DEV_MAPPER_STRING): Move from here ...
17059 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17060 * util/getroot.c: Include `<grub/util/lvm.h>'.
17061 (grub_util_get_dev_abstraction): Enable
17062 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17063 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17064 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17065 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17066 support it.
17067 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17068 GNU/kFreeBSD.
17069 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17070 when LVM abstraction is required for ${GRUB_DEVICE}.
17071
17072 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17073
17074 Add support for LZO compression in GRUB:
17075 - import of minilzo library,
17076 - LZO decompression for btrfs,
17077 - lzop files decompression.
17078
17079 * grub-core/io/lzopio.c: New file.
17080 * grub-core/lib/adler32.c: Likewise.
17081 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17082 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17083 * grub-core/lib/minilzo/minilzo.c: Likewise.
17084 * grub-core/lib/minilzo/minilzo.h: Likewise.
17085 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17086 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17087 grub-core/lib/minilzo/minilzo.c to common.
17088 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17089 cflags in cppflags.
17090 * grub-core/Makefile.core.def (btrfs): Likewise.
17091 * grub-core/Makefile.core.def (lzopio): New module.
17092 (adler32): Likewise.
17093 * grub-core/fs/btrfs.c: Include minilzo.h.
17094 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17095 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17096 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17097 (grub_btrfs_lzo_decompress): New function.
17098 (grub_btrfs_extent_read): Add support for LZO compression type.
17099 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17100 (GRUB_USHRT_MAX): Likewise.
17101 (GRUB_UINT_MAX): Likewise.
17102 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17103 (UINT_MAX): Likewise.
17104 (CHAR_BIT): Likewise.
17105 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17106 grub-core/lib/posix_wrap/limits.h
17107 (UCHAR_MAX): Likewise.
17108 * include/grub/file.h (grub_file_filter_id): New compression filter
17109 GRUB_FILE_FILTER_LZOPIO.
17110 * include/grub/file.h (grub_file_filter_id): Set
17111 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17112 * include/grub/types.h (grub_get_unaligned16): New function.
17113 (grub_get_unaligned32): Likewise.
17114 (grub_get_unaligned64): Likewise.
17115 * util/import_gcry.py (cryptolist): Add adler32.
17116
17117 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17120 in perspective decreases the complexity of build system and fixes
17121 compilation right now.
17122
17123 2011-10-01 Ales Nesrsta <starous@volny.cz>
17124
17125 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17126 (fixed problem related to using UHCI with coreboot).
17127
17128 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17129
17130 * gentpl.py: Use Autogen macros so that the output template file
17131 (Makefile.tpl) size is reduced.
17132
17133 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17134
17135 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17136 extra_dist.
17137
17138 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17139
17140 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17141 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17142
17143 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17144
17145 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17146 _fullpath.
17147
17148 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17149
17150 Remove extra declaration of sleep for mingw32.
17151
17152 * util/misc.c (sleep) [__MINGW32__]: Removed.
17153 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17154
17155 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17156
17157 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17158 type and packname.
17159 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17160 Resurrected.
17161 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17162 (grub_netbsd_btinfo_bootwedge): New struct.
17163 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17164 New function.
17165 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17166
17167 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17168
17169 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17170 loader.
17171
17172 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17173
17174 Fix incorrect identifiers in bash-completion.
17175
17176 * util/bash-completion.d/grub-completion.bash.in
17177 (_grub_mkpasswd-pbkdf2): Rename to ...
17178 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17179 (_grub_script-check): Rename to ...
17180 (_grub_script_check): ... this. All users updated.
17181
17182 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17185 Return 0 if disk isn't biosdisk.
17186
17187 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17188
17189 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17190 on NetBSD.
17191 * Makefile.util.def (grub-fstest): Likewise.
17192
17193 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17194
17195 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17196 Get sector size from disk label.
17197
17198 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17199
17200 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17201 */README* as well as README*.
17202 Reported by: Axel Beckert.
17203
17204 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17205
17206 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17207 case of less than 256 MiB of RAM.
17208
17209 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * grub-core/commands/wildcard.c (make_regex): Handle @.
17212
17213 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17214
17215 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17216
17217 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17218
17219 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17220 AC_LANG_CONFTEST macros.
17221
17222 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17223
17224 Add grub-fstest option to uncompress data for commands.
17225
17226 * util/grub-fstest.c (uncompress): New var.
17227 (options): New option -u.
17228
17229 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17230
17231 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17232 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17233
17234 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17235
17236 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17237 file type was not recognized correctly (not gzip or corrupted).
17238
17239 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17242 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17243
17244 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17245
17246 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17247 loongson.
17248 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17249 video_radeon_fuloong2e.
17250 * grub-core/video/radeon_fuloong2e.c: New file.
17251 * include/grub/video.h (grub_video_id_t): Add new ID
17252 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17253
17254 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17257 define.
17258 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17259 that PRID matches the detected subplatform and reset the subplatform
17260 if it doesn't.
17261
17262 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17265
17266 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17267
17268 Fix PCI iterating on functions >= 4.
17269
17270 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17271 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17272 Removed.
17273 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17274 (grub_pci_read): Fix bitmask.
17275 (grub_pci_read_word): Likewise.
17276 (grub_pci_read_byte): Likewise.
17277 (grub_pci_write): Likewise.
17278 (grub_pci_write_word): Likewise.
17279 (grub_pci_write_byte): Likewise.
17280
17281 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17284 can still be specified in TARGET_CFLAGS)
17285
17286 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17287
17288 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17289
17290 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17291 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17292 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17293 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17294 (FULOONG): Rename to ...
17295 (FULOONG2F): ... this. All users updated.
17296 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17297 (machtype_fuloong2f_str): ... this.
17298 (machtype_fuloong2e_str): New string.
17299 Check for machtype_fuloong2e_str.
17300 * grub-core/loader/mips/linux.c (loongson_machtypes)
17301 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17302 * grub-core/term/serial.c (loongson_defserial)
17303 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17304 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17305 loongson_defserial.
17306 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17307 Rename to ...
17308 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17309 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17310 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17311 to IMAGE_FULOONG2F_FLASH. All users updated.
17312 (image_targets): Rename images.
17313 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17314
17315 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17316
17317 Make enable of disk cache statistics code configurable.
17318
17319 * configure.ac: --enable-cache-stats added.
17320 * config.h.in (DISK_CACHE_STATS): New define.
17321 * grub-core/Makefile.core.def (cacheinfo): New command.
17322 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17323 * grub-core/commands/cacheinfo.c: New file.
17324 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17325 moved to cacheinfo.c.
17326 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17327 debug code.
17328 * include/grub/disk.h: Likewise.
17329
17330 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17331
17332 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17333 * grub-core/Makefile.am: Likewise.
17334
17335 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17336
17337 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17338 non-zero pull.
17339
17340 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17341
17342 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17343 All users updated.
17344 (grub_jfs_lookup_symlink): Use correct starting inode.
17345
17346 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 * util/grub-setup.c (main): Add missing gcry initialisation.
17349
17350 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17351
17352 Don't accept text modes on EFI when booting Linux.
17353
17354 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17355 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17356
17357 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17358 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17359
17360 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17361 use of "/path/.." as in grub-install for EFI as well as handling
17362 symlinks correctly.
17363 Fixes Debian bug #637768.
17364
17365 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17366
17367 * util/grub-probe.c: Remove duplicate #include.
17368
17369 2011-08-10 Robert Millan <rmh@gnu.org>
17370
17371 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17372
17373 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17374 function.
17375 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17376 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17377
17378 2011-08-03 Robert Millan <rmh@gnu.org>
17379
17380 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17381 la_array as packed.
17382 Reported by: Zachary Bedell
17383
17384 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17385
17386 * configure.ac: The Loongson port requires grub-mkfont due to its
17387 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17388 be built.
17389
17390 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17391
17392 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17393 processing arguments (otherwise help2man fails when GRUB has not yet
17394 been installed).
17395
17396 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17397
17398 New script grub-mkstandalone.
17399
17400 * Makefile.util.def (grub-mkstandalone): New script.
17401 * docs/man/grub-mkstandalone.h2m: New file.
17402 * util/grub-mkstandalone.in: Likewise.
17403
17404 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 Support ATA disks with 4K sectors.
17407
17408 * include/grub/ata.h (grub_ata): New member log_sector_size.
17409 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
17410 (grub_ata_identify): Read sector size.
17411 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
17412
17413 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17414
17415 * util/grub-install.in: Don't use uhci outside of x86.
17416
17417 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17418
17419 * util/grub-mkrescue.in: Add missing quotes.
17420
17421 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
17424 dereference.
17425
17426 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
17429
17430 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * include/grub/video.h: add missing EXPORT_FUND on
17433 grub_video_edid_checksum and grub_video_edid_preferred_mode.
17434
17435 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 * include/grub/mips/kernel.h: Fix define conflict.
17438
17439 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
17440
17441 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
17442 all four ways.
17443
17444 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
17445
17446 Preferred resolution detection for VBE.
17447
17448 * grub-core/video/video.c (grub_video_edid_checksum): New function.
17449 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
17450 the Flat Panel extension, in line with the X.org VESA driver.
17451 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
17452 New function.
17453 (grub_vbe_bios_get_ddc_capabilities): Likewise.
17454 (grub_vbe_bios_read_edid): Likewise.
17455 (grub_vbe_get_preferred_mode): Likewise.
17456 (grub_video_vbe_setup): When the mode is "auto", try to get the
17457 preferred mode from VBE, and use the largest mode that is no larger
17458 than the preferred mode (some BIOSes expose a preferred mode that is
17459 not in their mode list!). If this fails, fall back to 640x480 as a
17460 safe conservative choice.
17461 (grub_video_vbe_get_edid): New function.
17462 (grub_video_vbe_adapter): Add get_edid.
17463 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
17464 (struct grub_video_adapter): Add get_edid.
17465 (grub_video_edid_checksum): Add prototype.
17466 (grub_video_edid_preferred_mode): Likewise.
17467 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
17468 structure.
17469
17470 * grub-core/commands/videoinfo.c (print_edid): New function.
17471 (grub_cmd_videoinfo): Print EDID if available.
17472
17473 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
17474 is more appropriate on a wider range of platforms than 640x480.
17475 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
17476 documentation.
17477
17478 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17479
17480 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
17481
17482 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17483
17484 * po/POTFILES.in: Regenerate.
17485
17486 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
17489 incorrect memory usage.
17490
17491 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
17492
17493 * util/grub-install.in: Source grub-mkconfig_lib.
17494
17495 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 Remove getroot.c from core on emu platform.
17498
17499 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
17500 kern/emu/raid.c.
17501 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
17502 useless.
17503 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
17504 * util/getroot.c (get_win32_path): ... here.
17505 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
17506 * util/getroot.c (fini_libzfs): ... here.
17507 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
17508 * util/getroot.c (grub_get_libzfs_handle): ... here.
17509 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
17510 Moved from here...
17511 * util/getroot.c (grub_find_zpool_from_dir): ... here.
17512 * grub-core/kern/emu/misc.c
17513 (grub_make_system_path_relative_to_its_root): Moved from here...
17514 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
17515 * grub-core/kern/emu/getroot.c: Moved from here ...
17516 * util/getroot.c: ... here. All users updated.
17517 * grub-core/kern/emu/raid.c: Moved from here ...
17518 * util/raid.c: ... here. All users updated.
17519
17520 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 * po/POTFILES.in: Regenerate.
17523
17524 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 Fix compilation on GNU/Linux.
17527
17528 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
17529 Disable geli.
17530 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
17531 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
17532 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
17533
17534 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17535 2011-07-07 Michael Gorven <michael@gorven.za.net>
17536 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
17537
17538 LUKS and GELI support.
17539
17540 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
17541 grub-core/disk/luks.c, grub-core/disk/geli.c,
17542 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
17543 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
17544 grub-core/lib/arg.c.
17545 (libgrubmods.a): Remove gcrypts cflags and cppflags.
17546 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
17547 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
17548 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
17549 (grub-bin2h): Add libgcry.a.
17550 (grub-mkimage): Likewise.
17551 (grub-mkrelpath): Likewise.
17552 (grub-script-check): Likewise.
17553 (grub-editenv): Likewise.
17554 (grub-mkpasswd-pbkdf2): Likewise.
17555 (grub-pe2elf): Likewise.
17556 (grub-fstest): Likewise.
17557 (grub-mkfont): Likewise.
17558 (grub-mkdevicemap): Likewise.
17559 (grub-probe): Likewise.
17560 (grub-ofpath): Likewise.
17561 (grub-mklayout): Likewise.
17562 (example_unit_test): Likewise.
17563 (grub-menulst2cfg): Likewise.
17564 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
17565 * grub-core/Makefile.core.def (cryptodisk): New module.
17566 (luks): Likewise.
17567 (geli): Likewise.
17568 * grub-core/disk/AFSplitter.c: New file.
17569 * grub-core/disk/cryptodisk.c: Likewise.
17570 * grub-core/disk/geli.c: Likewise.
17571 * grub-core/disk/luks.c: Likewise.
17572 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
17573 grub_util_is_lvm.
17574 (grub_util_get_dm_abstraction): New function.
17575 (grub_util_follow_gpart_up): Likewise.
17576 (grub_util_get_geom_abstraction): Likewise.
17577 (grub_util_get_dev_abstraction): Use new functions.
17578 (grub_util_pull_device): Pull GELI and LUKS.
17579 (grub_util_get_grub_dev): Handle LUKS and GELI.
17580 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
17581 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
17582 (follow_geom_up): Removed.
17583 (grub_util_fd_seek): New function.
17584 (open_device): Use grub_util_fd_seek.
17585 (nread): Rename to ..
17586 (grub_util_fd_read): ... this. All users updated.
17587 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
17588 (grub_crypto_cbc_decrypt): Likewise.
17589 (grub_crypto_hmac_write): Likewise.
17590 (grub_crypto_hmac_buffer): Likewise.
17591 (grub_password_get): Extend to util.
17592 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
17593 New member modname.
17594 (gcry_md_spec) [GRUB_UTIL]: Likewise.
17595 * include/grub/cryptodisk.h: New file.
17596 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
17597 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
17598 LUKS and GELI.
17599 (grub_util_follow_gpart_up): New proto.
17600 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
17601 (grub_util_fd_read): Likewise.
17602 (grub_cryptodisk_cheat_mount): Likewise.
17603 (grub_util_cryptodisk_print_uuid): Likewise.
17604 (grub_util_get_fd_sectors): Likewise.
17605 * util/grub-fstest.c (mount_crypt): New var.
17606 (fstest): Mount crypto if requested.
17607 (options): New option -C.
17608 (argp_parser): Parse -C.
17609 (main): Init and fini gcry.
17610 * util/grub-install.in: Support cryptodisk install.
17611 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
17612 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
17613 cryptodisk.
17614 (prepare_grub_to_access_device): Likewise.
17615 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
17616 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
17617 (probe_cryptodisk_uuid): New function.
17618 (probe_abstraction): Likewise.
17619 (probe): Use new functions.
17620 * util/import_gcry.py: Create Makefile.utilgcry.def.
17621 Add modname member.
17622
17623 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
17624
17625 Lazy device scanning.
17626
17627 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
17628 (grub-setup): Remove util/raid.c.
17629 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
17630 * grub-core/disk/lvm.c (scan_depth): New variable.
17631 (grub_lvm_iterate): Rescan if necessary.
17632 (find_lv): New function based on grub_lvm_open.
17633 (grub_lvm_open): Use find_lv. Rescan on error.
17634 (is_node_readable): New function.
17635 (is_lv_readable): Likewise.
17636 (grub_lvm_scan_device): Skip already found disks.
17637 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
17638 Stop if searched device is found and readable.
17639 * grub-core/disk/raid.c (inscnt): New variable.
17640 (scan_depth): Likewise.
17641 (scan_devices): New function based on grub_raid_register. Abort if
17642 looked for device is found.
17643 (grub_raid_iterate): Rescan if needed.
17644 (find_array): NEw function based on -grub_raid_open.
17645 (grub_raid_open): Use find_array and rescan.
17646 (insert_array): Set became_readable_at.
17647 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
17648 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
17649 New function.
17650 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
17651 (grub_util_pull_device): New function.
17652 (grub_util_get_grub_dev): Call grub_util_pull_device.
17653 * util/raid.c: Moved to ..
17654 * grub-core/kern/emu/raid.c: ... here.
17655 (grub_util_raid_getmembers): New parameter "bootable".
17656 All users updated. Support 1.x.
17657 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
17658 All users updated.
17659 * include/grub/disk.h (grub_disk_pull_t): New enum.
17660 (grub_disk_dev): Change iterate prototype.
17661 All users updated.
17662 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
17663 New proto.
17664 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
17665 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
17666 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
17667 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
17668 All users updated.
17669 * include/grub/util/raid.h: Removed.
17670
17671 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 * po/POTFILES.in: Regenerate.
17674
17675 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 Unify sparc init with other ieee1275.
17678
17679 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
17680 instead of kern/sparc64/ieee1275/init.c.
17681 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
17682 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
17683 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
17684 grub/machine/kernel.h.
17685 (grub_ieee1275_original_stack) [__sparc__]: New variable.
17686 (grub_claim_heap) [__sparc__]: Use sparc version.
17687 (grub_machine_init): Moved args parsing to
17688 (grub_parse_cmdline): ...this.
17689 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
17690 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
17691 New definition.
17692 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
17693
17694 Move BOOTP to separate file.
17695
17696 * grub-core/Makefile.core.def (net): Add net/bootp.c.
17697 * grub-core/net/net.c: Move all BOOTP functions to
17698 * grub-core/net/bootp.c: ... here.
17699
17700 Use frame interface on PXE.
17701
17702 * grub-core/Makefile.core.def (pxecmd): Removed.
17703 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
17704 * grub-core/commands/i386/pc/pxecmd.c: Removed.
17705 * grub-core/i386/pc/pxe.c: Moved from here ...
17706 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
17707 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
17708 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
17709
17710 EFI network support.
17711
17712 * grub-core/Makefile.core.def (efinet): New module.
17713 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
17714 here...
17715 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
17716 All users updated.
17717 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
17718 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
17719 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
17720 * grub-core/net/drivers/efi/efinet.c: New file.
17721 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
17722 (grub_efi_net_config): New extern var.
17723
17724 Various cleanups and bugfixes.
17725
17726 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
17727 error.
17728 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
17729 disk declared as partition.
17730 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
17731 leak on failure.
17732 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
17733 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
17734 (grub_debug_zalloc): Likewise.
17735 (grub_debug_realloc): Likewise.
17736 (grub_debug_memalign): Likewise.
17737 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
17738 Check that target is IPv4.
17739 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
17740 local-mac-address as fallback.
17741 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
17742 memory leak.
17743 * grub-core/net/ip.c (ipchksum): Rename to ...
17744 (grub_net_ip_chksum): ... this. All users updated.
17745 (grub_net_recv_ip_packets): Special handling for DHCP.
17746 * util/grub-mkimage.c (generate_image): Zero-out aout header.
17747
17748 Unify prefix handling
17749
17750 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
17751 (grub_machine_get_bootlocation): ... this.
17752 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
17753 (grub_machine_get_bootlocation): ... this.
17754 (grub_prefix): New variable.
17755 (prefix): Removed.
17756 (root_dev): New variable.
17757 (dir): Likewise.
17758 (main): Use new variables.
17759 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
17760 Revamped into ...
17761 (grub_machine_get_bootlocation): ... this.
17762 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
17763 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
17764 (grub_machine_get_bootlocation): ... this.
17765 (grub_machine_set_prefix): Removed.
17766 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
17767 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
17768 Revamped into ...
17769 (grub_machine_get_bootlocation): ... this.
17770 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
17771 (grub_set_prefix_and_root): ... this. All users updated.
17772 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
17773 Revamped into ...
17774 (grub_machine_get_bootlocation): ... this.
17775 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17776 (grub_machine_get_bootlocation): New proto.
17777 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17778
17779 Less intrusive and more reliable seek on network implementation.
17780
17781 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17782 (grub_file_seek): Don't call grub_file_net_seek.
17783 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17784 (grub_net_fs_read_real): .. this.
17785 (grub_net_seek_real): Use net->offset.
17786 (grub_net_fs_read): Seek if necessary.
17787
17788 Unify IEEE1275 netwotk config with the other platforms.
17789
17790 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17791 New variable.
17792 (grub_machine_get_bootlocation): Support network.
17793 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17794 Support type and device parsing.
17795 (grub_ieee1275_get_device_type): New function.
17796 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17797 into ...
17798 (grub_ieee1275_net_config_real): ... this.
17799 (grub_ofnet_probecards): Removed.
17800 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17801 * include/grub/ieee1275/ofnet.h: Removed.
17802 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17803 extern var.
17804 (grub_ieee1275_get_device_type): New function.
17805
17806 Unify network device closing across platforms and make more robust.
17807
17808 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17809 grub_grubnet_fini.
17810 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17811 already.
17812 * grub-core/net/net.c (grub_net_network_level_interface_register):
17813 Update num_ifaces.
17814 (grub_net_card_unregister): Close all interfaces.
17815 (receive_packets): Don't poll if no iterfaces are registered.
17816 Open if necessary.
17817 (grub_net_fini_hw): New function.
17818 (grub_net_restore_hw): Likewise.
17819 (fini_hnd): New variable.
17820 (GRUB_MOD_INIT): Register preboot hook.
17821 (GRUB_MOD_FINI): Run and unregister preboot hook.
17822
17823 Poll network cards when idle.
17824
17825 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17826 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17827 * grub-core/net/net.c (receive_packets): Save last poll time.
17828 (grub_net_poll_cards_idle_real): New function.
17829 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17830 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17831 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17832
17833 Rename ofnet interfaces.
17834
17835 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17836 (grub_ofnet_findcards): Use ofnet_%s names.
17837
17838 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17839
17840 Cleanup socket opening.
17841
17842 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17843 (grub_net_fs_close): Likewise.
17844 (grub_net_fs_read_real): Use eof member.
17845 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17846 (+grub_net_udp_close): New inline function.
17847
17848 * include/grub/net/tftp.h: Moved to the top of ...
17849 * grub-core/net/tftp.c: ... here.
17850 * include/grub/net/ip.h: Moved mostly to the top of ...
17851 * grub-core/net/ip.c: ... here.
17852 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17853 * grub-core/net/ethernet.c: ... here.
17854
17855 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17856
17857 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17858 FS name.
17859
17860 * include/grub/net/ip.h (ipv4_ini): Removed.
17861 (ipv4_fini): Likewise.
17862
17863 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17864 (grub_net_send_ip_packets): Likewise.
17865
17866 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17869 grub_read_cmos prototype.
17870
17871 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17872
17873 VGA text support in qemu-mips
17874
17875 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17876 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17877 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17878 text.
17879 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17880 * grub-core/kern/vga_init.c: ... this.
17881 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17882 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17883 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17884 Adjust.
17885 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17886 GRUB_MACHINE_PCI_IO_BASE.
17887
17888 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 MIPS qemu flash support.
17891
17892 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17893 magic.
17894 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17895 (grub_machine_init): Probe memory if its size isn't known.
17896 * util/grub-mkimage.c (image_targets): Add flash targets.
17897 (generate_image): Handle flash targets.
17898
17899 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17900
17901 MIPS qemu at_keyboard support.
17902
17903 * gentpl.py (videoinkernel): Add qemu-mips.
17904 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17905 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17906 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17907 modules.
17908 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17909 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17910 * grub-core/term/serial.c (grub_serial_register)
17911 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17912
17913 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17914
17915 CMOS support on sparc.
17916
17917 * gentpl.py (cmos): Add powerpc and sparc.
17918 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17919 powerpc and sparc.
17920 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17921 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17922 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17923 grub_set_datetime_cmos.
17924 * grub-core/lib/ieee1275/cmos.c: New file.
17925 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17926 (find_rtc): Set no_ieee1275_rtc on error.
17927 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17928 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17929 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17930 fail. Move value to argument. All users updated
17931 (grub_cmos_write): Likewise.
17932 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17933 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17934 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17935 grub_get_datetime_cmos and grub_set_datetime_cmos.
17936
17937 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17938
17939 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17940 sourcing grub-mkconfig_lib.
17941 * util/update-grub_lib.in: Likewise.
17942 * util/grub.d/00_header.in: Likewise.
17943 * util/grub.d/10_hurd.in: Likewise.
17944 * util/grub.d/10_kfreebsd.in: Likewise.
17945 * util/grub.d/10_linux.in: Likewise.
17946 * util/grub.d/10_netbsd.in: Likewise.
17947 * util/grub.d/10_windows.in: Likewise.
17948 * util/grub.d/20_linux_xen.in: Likewise.
17949 * util/grub.d/30_os-prober.in: Likewise.
17950
17951 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
17952
17953 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17954 default_bg_color rather than black.
17955 (grub_gfxterm_fullscreen): Likewise.
17956 (grub_gfxterm_background_color_cmd): Save new background color in
17957 default_bg_color.
17958
17959 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17962
17963 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17964
17965 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17966 mismerge.
17967
17968 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 Chainloading on coreboot support.
17971
17972 * grub-core/Makefile.core.def (chain): Add coreboot.
17973 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17974
17975 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17978 if it happens.
17979
17980 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 Implement time command.
17983
17984 * grub-core/Makefile.core.def (time): New module.
17985 * grub-core/commands/time.c: New file.
17986 * grub-core/script/parser.y: Remove "time" keyword.
17987 * grub-core/script/yylex.l: Likewise.
17988
17989 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17990
17991 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17992
17993 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17994
17995 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17996 when handling leftovers.
17997
17998 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17999
18000 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18001 so that help2man doesn't fail.
18002
18003 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18006 type in pointers on sparc64.
18007 (get_card_packet): Likewise.
18008
18009 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18010
18011 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18012 with `*'.
18013 (grub_cmd_videoinfo): Fetch current video mode.
18014
18015 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18016
18017 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18018 because of underlying system restrictions.
18019
18020 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18021
18022 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18023 necessary.
18024
18025 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18026
18027 Coreboot video support.
18028
18029 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18030 (vbe): Likewise.
18031 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18032 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18033 here ...
18034 * grub-core/kern/i386/int.S: ... here.
18035 * grub-core/video/i386/pc/vbe.c: Updated includes.
18036 * grub-core/video/i386/pc/vga.c: Likewise.
18037 * include/grub/i386/coreboot/memory.h
18038 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18039 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18040 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18041 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18042 Disable interrupts.
18043 * include/grub/i386/pc/vga.h: Removed. All users updated.
18044
18045 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18048 definitions for dprintf.
18049 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18050
18051 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18054 prototype.
18055 (get_card_packet): Likewise.
18056
18057 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18058
18059 Display the path of the file when file is not found
18060
18061 * grub-core/fs/fat.c: Display the filename when file is not found.
18062 * grub-core/fs/fshelp.c: Likewise.
18063 * grub-core/fs/hfs.c: Likewise.
18064 * grub-core/fs/jfs.c: Likewise.
18065 * grub-core/fs/minix.c: Likewise.
18066 * grub-core/fs/ufs.c: Likewise.
18067 * grub-core/fs/btrfs.c: Likewise.
18068 * grub-core/commands/i386/pc/play.c: Likewise.
18069
18070 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18071
18072 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18073 pointer checks before calling grub_free().
18074 * grub-core/commands/wildcard.c (match_devices): Likewise.
18075 * grub-core/commands/wildcard.c (match_files): Likewise.
18076 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18077 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18078 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18079 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18080 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18081 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18082 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18083 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18084 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18085
18086 2011-06-25 Patrick <p55@mailinator.com>
18087
18088 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18089
18090 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18091
18092 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18093 (grub_pxe_send): Likewise.
18094 (GRUB_MOD_INIT): Fix types.
18095
18096 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18097
18098 * grub-core/io/xzio.c: Fix code style issues
18099
18100 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18101 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18102
18103 Network infrastructure.
18104 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18105
18106 * include/grub/net/arp.h: New file.
18107 * include/grub/net/device.h: Likewise.
18108 * include/grub/net/ethernet.h: Likewise.
18109 * include/grub/net/ip.h: Likewise.
18110 * include/grub/net/netbuff.h: Likewise.
18111 * include/grub/net/tftp.h: Likewise.
18112 * include/grub/net/udp.h: Likewise.
18113 * include/grub/ieee1275/ofnet.h: Likewise.
18114 * include/grub/emu/export.h: Likewise.
18115 * include/grub/net.h: Likewise.
18116 * grub-core/net/arp.c: Likewise.
18117 * grub-core/net/ethernet.c: Likewise.
18118 * grub-core/net/ip.c: Likewise.
18119 * grub-core/net/udp.c: Likewise.
18120 * grub-core/net/tftp.c: Likewise.
18121 * grub-core/net/netbuff.c: Likewise.
18122 * grub-core/net/net.c: Likewise.
18123 * grub-core/net/drivers/emu/emunet.c: Likewise.
18124 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18125 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18126 export.h.
18127 * grub-core/Makefile.core.def (net): New module.
18128 (tftp): Likewise.
18129 (ofnet): Likewise.
18130 (emunet): Likewise.
18131 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18132 network protocols.
18133 * grub-core/kern/device.c (grub_net_open) : New variable.
18134 (grub_device_open): Handle network device.
18135 (grub_device_close): Likewise.
18136 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18137 (grub_grubnet_fini): Likewise.
18138 (grub_file_seek): Seek in network device.
18139 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18140 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18141 network root.
18142 (grub_machine_fini): Call grub_grubnet_fini.
18143 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18144 network.
18145 (grub_ieee1275_get_aliasdevname): New function.
18146 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18147 Add unofficial Solaris network info.
18148 (grub_multiboot_make_mbi): Likewise.
18149 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18150 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18151 * include/grub/device.h (grub_fs): Removed.
18152 * include/grub/err.h (grub_err_t): Add network-related values.
18153 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18154 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18155 (grub_ieee1275_get_aliasdevname): New proto.
18156 * include/grub/net.h: Rewritten.
18157
18158 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18159
18160 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18161 names.
18162
18163 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18166 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18167 it truncates the output.
18168 Reported by: Ximin Luo.
18169
18170 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18171
18172 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18173
18174 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18175
18176 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18177 partmap before abstraction.
18178
18179 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18180
18181 * util/grub-mkconfig_lib.in: Add missing quotes.
18182
18183 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18186 old method if mountinfo would return /dev/root and /dev/root doesn't
18187 exist.
18188
18189 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 ZFS zlib support
18192
18193 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18194 (decomp_table): Add zlib entries.
18195 (zio_read): USe 8 bits for compression function rather than 3.
18196 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18197
18198 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 * grub-core/disk/ahci.c: Add missing license statements.
18201 * grub-core/fs/romfs.c: Likewise.
18202 * grub-core/lib/ia64/setjmp.S: Likewise.
18203 * grub-core/loader/i386/pc/freedos.c: Likewise.
18204 * grub-core/loader/ia64/efi/linux.c: Likewise.
18205 * grub-core/video/colors.c: Likewise.
18206 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18207
18208 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18209
18210 AHCI support.
18211
18212 * grub-core/Makefile.core.def (ata_pthru): Removed.
18213 (ahci): New module.
18214 (pata): Likewise.
18215 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18216 on unload.
18217 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18218 readwrite.
18219 (grub_hdparm_do_check_powermode_cmd): Likewise.
18220 (grub_hdparm_do_smart_cmd): Likewise.
18221 (grub_hdparm_set_val_cmd): Likewise.
18222 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18223 * grub-core/disk/ahci.c: New file.
18224 * grub-core/disk/ata.c: Factor out the low-level part into ...
18225 * grub-core/disk/pata.c: ... here.
18226 * grub-core/disk/ata_pthru.c: Contents moved to ...
18227 * grub-core/disk/pata.c: ... here.
18228 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18229 (grub_scsi_iterate): Use grub_scsi_names.
18230 (grub_scsi_open): Likewise.
18231 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18232 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18233 (grub_ata_regs_t): New struct.
18234 (grub_disk_ata_pass_through_parms): Likewise.
18235 (grub_ata_device): Renamed to ...
18236 (grub_ata): ... this.
18237 (grub_ata_dev): New struct.
18238 Removed all low-level inline functions.
18239 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18240 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18241 iterate hooks and open. All users updated.
18242 * util/grub-install.in: Handle AHCI disk module.
18243
18244 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18245
18246 Add support for DRI and RSTn markers in JPEG files.
18247
18248 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18249 (JPEG_MARKER_RST0): Likewise.
18250 (JPEG_MARKER_RST1): Likewise.
18251 (JPEG_MARKER_RST2): Likewise.
18252 (JPEG_MARKER_RST3): Likewise.
18253 (JPEG_MARKER_RST4): Likewise.
18254 (JPEG_MARKER_RST5): Likewise.
18255 (JPEG_MARKER_RST6): Likewise.
18256 (JPEG_MARKER_RST7): Likewise.
18257 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18258 (grub_jpeg_decode_dri): New function.
18259 (grub_jpeg_decode_sos): Move image data related part into
18260 grub_jpeg_decode_data function.
18261 (grub_jpeg_decode_data): New function.
18262 (grub_jpeg_reset): New function.
18263 (grub_jpeg_decode_jpeg): Handle new markers.
18264
18265 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18266
18267 * util/ieee1275/ofpath.c (check_sas): Close fd.
18268 (main): Free of_path.
18269 Reported by: David Volgyes <dvolgyes>.
18270
18271 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18272
18273 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18274 Reported by: David Volgyes <dvolgyes>.
18275
18276 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18279 file after stat.
18280 Reported by: David Volgyes <dvolgyes>.
18281
18282 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18283
18284 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18285
18286 Reported by: David Volgyes <dvolgyes>.
18287
18288 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18289
18290 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18291 Prevent memory leak.
18292
18293 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18294
18295 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18296 (main): Close file.
18297 Reported by: David Volgyes <dvolgyes>.
18298
18299 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18300
18301 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18302 to continue if allocation is failed.
18303
18304 Reported by: David Volgyes <dvolgyes>.
18305
18306 2011-06-23 David Volgyes <dvolgyes>
18307
18308 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18309 dereference.
18310
18311 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18312
18313 Fix spurious warning.
18314
18315 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18316 (acorn_partition_map_find): Use .bin member.
18317
18318 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18319
18320 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18321 /dev/root as a valid device.
18322
18323 2011-06-23 Jim Meyering <meyering@redhat.com>
18324
18325 Avoid NULL deref in grub_device_open.
18326
18327 * grub-core/kern/device.c (grub_device_open): Don't dereference
18328 a NULL pointer upon failed grub_env_get.
18329
18330 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18331
18332 Support non-512B sectors and agglomerate reads.
18333
18334 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18335 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18336 (disk_io_guid): Removed.
18337 (make_devices): Locate solely by BlockIO.
18338 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18339 (grub_efidisk_read): Use read_blocks.
18340 (grub_efidisk_write): Use write_blocks.
18341 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18342 log_sector_size.
18343 (get_safe_sectors): Handle non-512B sectors.
18344 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18345 sectors.
18346 (grub_biosdisk_write): Handle non-512B sectors.
18347 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18348 (grub_scsi_read): Remove special non-512B block handling (now handled
18349 one level up).
18350 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18351 and do sanity checks.
18352 (grub_disk_adjust_range): Handle non-512B sectors.
18353 (transform_sector): New function.
18354 (grub_disk_read_small): Likewise.
18355 (grub_disk_read): Rewritten.
18356 (grub_disk_write): Handle non-512B sectors.
18357 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18358 log_sector_size.
18359 (open_device): Use log_sector_size.
18360 (grub_util_biosdisk_read): Likewise.
18361 (grub_util_biosdisk_write): Likewise.
18362 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18363 non-512B sectors.
18364 (pc_partition_map_embed): Likewise.
18365 * include/grub/disk.h (grub_disk): New field log_sector_size.
18366 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18367 (GRUB_DISK_CACHE_BITS): Increased to 6.
18368 * util/grub-fstest.c (fstest): New command testload.
18369 (argp_parser): Likewise.
18370
18371 2011-06-16 Robert Millan <rmh@gnu.org>
18372
18373 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18374 `ata' driver on kernel of FreeBSD 9.
18375
18376 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18377 (get_ataraid_disk_name): New functions.
18378 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18379 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18380 get_ataraid_disk_name() and get_ada_disk_name().
18381
18382 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18383
18384 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18385 input format.
18386
18387 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18388
18389 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18390 `ftp.gnu.org' for `alpha.gnu.org'.
18391
18392 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18393
18394 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18395 partitions under /dev/disk/by-id/.
18396
18397 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18398
18399 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18400 after ten consecutive open failures. Scanning all the way up to
18401 10000 is excessive and can cause serious performance problems in
18402 some configurations.
18403 Fixes Ubuntu bug #787461.
18404
18405 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18406
18407 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18408 opening new one.
18409
18410 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
18411 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18412
18413 Don't stat devices unless we have to.
18414
18415 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
18416 dir == /dev/mapper.
18417 (grub_guess_root_device): Use already known os_dev if possible.
18418 * grub-core/kern/emu/hostdisk.c
18419 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
18420 if device is known to be a dm one.
18421
18422 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
18423
18424 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
18425 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
18426 Reported by: Pawel Tecza.
18427
18428 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
18429
18430 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
18431 (lsefisystab): Likewise.
18432 (lssal): Likewise.
18433 (lsefimmap): Likewise.
18434 (hdparm): Enable on qemu-mips.
18435 (setjmp): Add ia64 nodist.
18436 (serial): Simplify tags.
18437
18438 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18439
18440 * Makefile.util.def (grub-ofpathname): Install manual page.
18441
18442 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18443
18444 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
18445
18446 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18447
18448 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
18449
18450 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18451
18452 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
18453 into dprintf.
18454
18455 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18456
18457 Use full 64-bit division.
18458
18459 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
18460 (grub_divmod64): ... this.
18461 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
18462 version.
18463
18464 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18465
18466 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
18467 `source'.
18468
18469 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18470
18471 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
18472 to avoid accidents when debugging with 'sh -x'.
18473 * grub-core/gensyminfo.sh.in: Likewise.
18474 * tests/example_scripted_test.in: Likewise.
18475 * tests/grub_cmd_regexp.in: Likewise.
18476 * tests/grub_script_blanklines.in: Likewise.
18477 * tests/grub_script_dollar.in: Likewise.
18478 * tests/grub_script_expansion.in: Likewise.
18479 * tests/grub_script_final_semicolon.in: Likewise.
18480 * tests/partmap_test.in: Likewise.
18481 * tests/util/grub-shell-tester.in: Likewise.
18482 * tests/util/grub-shell.in: Likewise.
18483
18484 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18485
18486 Move gfxmenu color handling to video, so that gfxterm can use it
18487 too.
18488
18489 * grub-core/gfxmenu/named_colors.c: Move to ...
18490 * grub-core/video/colors.c: ... here. Rename
18491 grub_gui_get_named_color to grub_video_get_named_color.
18492 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
18493 * grub-core/video/colors.c (my_isxdigit): ... here.
18494 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
18495 Move to ...
18496 * grub-core/video/colors.c (parse_hex_color_component): ... here.
18497 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
18498 to ...
18499 * grub-core/video/colors.c (grub_video_parse_color): ... here.
18500
18501 * include/grub/gui.h (grub_gui_color_t): Move to ...
18502 * include/grub/video.h (grub_video_rgba_color_t): ... here.
18503 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
18504 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
18505 * include/grub/gui.h (grub_gui_map_color): Move to ...
18506 * include/grub/video.h (grub_video_map_rgba_color): ... here.
18507 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
18508 to ...
18509 * include/grub/video.h (grub_video_get_named_color): ... here.
18510 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
18511 * include/grub/video.h (grub_video_parse_color): ... here.
18512
18513 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
18514 video/colors.c.
18515 (gfxmenu): Remove gfxmenu/named_colors.c.
18516 (video) [videomodules]: Add video/colors.c.
18517
18518 Add a background_color command.
18519
18520 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
18521 function.
18522 (GRUB_MOD_INIT): Register background_color command.
18523 (GRUB_MOD_FINI): Unregister background_color command.
18524 (redraw_screen_rect): Allow blend/replace of text layer to be
18525 controlled independently from whether there is a background bitmap.
18526 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
18527 changing bitmap.
18528
18529 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18530
18531 Patch BPB in ntldr and chainloader --bpb.
18532
18533 * grub-core/fs/fat.c: Include grub/fat.h.
18534 (grub_fat_bpb): Moved to ...
18535 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
18536 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
18537 grub/ntfs.h.
18538 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
18539 Moved from here...
18540 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
18541 here.
18542 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
18543 New function.
18544 (grub_chainloader_cmd): Patch BPB if --bpb is given.
18545 (GRUB_MOD_INIT): Show --bpb.
18546 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
18547 * grub-core/normal/main.c (features): New variable.
18548 (GRUB_MOD_INIT): Set feature_* variables.
18549 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
18550 proto.
18551 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
18552
18553 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
18556 for cleanness.
18557
18558 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 FreeDOS direct loading support.
18561
18562 * docs/grub.texi (Supported OS): Add FreeDOS.
18563 * grub-core/Makefile.core.def (freedos): New module.
18564 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
18565 variable.
18566 (grub_relocator16_boot): Handle %ebx.
18567 * grub-core/lib/i386/relocator16.S: Likewise.
18568 * grub-core/loader/i386/pc/freedos.c: New file.
18569
18570 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18571
18572 Long Linux command line support.
18573
18574 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18575 (maximal_cmdline_size): New variable.
18576 (allocate_pages): Use maximal_cmdline_size.
18577 (grub_cmd_linux): Set and use maximal_cmdline_size.
18578 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
18579 (allocate_pages): Use maximal_cmdline_size.
18580 (grub_cmd_linux): Set and use maximal_cmdline_size.
18581 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
18582 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
18583 and cmdline_size.
18584
18585 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18586 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
18587
18588 Improve devmapper support
18589
18590 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
18591 (grub_util_is_lvm): New function.
18592 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
18593 than lvm if not dmraid.
18594 Handle mapped md nodes.
18595 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
18596 (grub_util_device_is_mapped): ... this. Make always available. All users
18597 updated.
18598 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
18599 (convert_system_partition_to_system_disk): Handle lvm, mpath and
18600 dmraid nodes.
18601 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
18602
18603 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
18606
18607 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
18608 * grub-core/modinfo.sh.in: New file.
18609 * grub-core/Makefile.core.def (modinfo.sh): New script.
18610 * util/grub-mknetdir.in: Use modinfo.sh.
18611 * util/grub-mkrescue.in: Likewise.
18612
18613 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18614
18615 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
18616 Fix potential usage of Elf32 instead of Elf64 when compiling on
18617 32-bit architecture. Add endianness macros while on it.
18618
18619 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18620
18621 Use mipsel- rather than mips- in directories involving mipsel ports to
18622 allow both endiannesses coexist.
18623
18624 * configure.ac: proparate target_cpu=mipsel rather than resetting to
18625 mips. All conditions adjusted.
18626 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
18627 variable.
18628 * util/grub-install.in: Adjust conditions to take renaming into account.
18629 * util/grub-mkimage.c (image_targets): Likewise. New target
18630 mips-qemu_mips-elf for bigendian mips.
18631
18632 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18633
18634 Avoid unnecessary copying on MIPS.
18635
18636 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
18637 early if src == dest.
18638 * util/grub-mkimage.c (generate_image): Arange for src == dest if
18639 compression is none.
18640
18641 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 Reduce memory footprint on SGI by putting modules before the kernel
18644 as opposed to after.
18645
18646 * grub-core/Makefile.core.def (kernel): Increase linking address.
18647 (none_decompress): Likewise.
18648 (xz_decompress): Likewise.
18649 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
18650 address.
18651 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
18652 layout change.
18653 (grub_arch_modules_addr): New function.
18654 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
18655 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
18656 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
18657 here.
18658 * grub-core/kern/mips/startup.S (total_size): Rename to ...
18659 (grub_total_modules_size): ... this. Make global.
18660 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
18661 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
18662 New definition.
18663 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
18664 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
18665 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
18666 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
18667 * util/grub-mkimage.c (image_target_desc): New flag
18668 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
18669 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
18670 (generate_image): Handle images with modules before kernel.
18671
18672 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 Prevent potential loss of memory map by overwrite on qemu-mips.
18675
18676 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18677 Save ram size in $s4.
18678 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
18679 All users changed to grub_arch_memsize.
18680 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
18681 Loongson.
18682 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
18683 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
18684 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
18685 external variable.
18686
18687 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18688
18689 * .bzrignore: Remove grub-dumpbios.
18690
18691 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18692
18693 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
18694 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
18695 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
18696 existing options which append).
18697 * docs/grub.texi (Simple configuration): Document new options.
18698 Reported by: Ian Jackson. Fixes Debian bug #617538.
18699
18700 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18701
18702 * util/grub-fstest.c (cmd_cat): New function.
18703 (fstest): Handle CMD_CAT.
18704 (options): Add cat.
18705 (argp_parser): Handle cat.
18706
18707 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
18708
18709 * Makefile.util.def (grub-bin2h): Don't install.
18710 * docs/man/grub-bin2h.h2m: Remove.
18711
18712 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
18715 place.
18716
18717 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18718
18719 Reenable qemu-mips port.
18720
18721 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
18722 Fix small arc bug while on it.
18723 * gentpl.py: Handle qemu_mips.
18724 * grub-core/Makefile.am: Likewise.
18725 * grub-core/Makefile.core.def: Likewise.
18726 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
18727 inappropriate includes.
18728 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
18729 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
18730 * grub-core/kern/main.c (grub_modules_get_end)
18731 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
18732 * grub-core/kern/mips/qemu-mips: Moved to ..
18733 * grub-core/kern/mips/qemu_mips: ... this.
18734 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
18735 (grub_machine_init): Call terminfo_init and serial_init.
18736 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
18737 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
18738 New variable.
18739 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
18740 parameter passing.
18741 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
18742 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
18743 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
18744 * include/grub/mips/qemu_mips/cmos.h: New file.
18745 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
18746 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
18747 Removed.
18748 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
18749 Use correct mips-style address.
18750 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
18751 (GRUB_TICKS_PER_SECOND): Removed.
18752 (grub_get_rtc): Likewise.
18753 (grub_cpu_idle): Likewise.
18754 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
18755 New definition.
18756 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
18757 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
18758 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
18759 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
18760 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
18761 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
18762 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
18763 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
18764
18765 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
18766
18767 SGI ARCS port.
18768
18769 * Makefile.util.def (libgrubmods.a): Add dvh.c.
18770 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
18771 platforms.
18772 * configure.ac: New target mips-arc.
18773 * gentpl.py: Likewise.
18774 * grub-core/Makefile.am: Likewise.
18775 * grub-core/Makefile.core.def: Likewise.
18776 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18777 (none_decompress): Likewise.
18778 (lsdev): New module.
18779 (datetime): Use lib/arc/datetime.c on ARC.
18780 (part_dvh): New module.
18781 * grub-core/commands/arc/lsdev.c: New file.
18782 * grub-core/disk/arc/arcdisk.c: Likewise.
18783 * grub-core/kern/mips/arc/init.c: Likewise.
18784 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18785 aligned addresses.
18786 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18787 support.
18788 (grub_arch_dl_relocate_symbols): Likewise.
18789 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18790 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18791 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18792 platforms.
18793 * grub-core/lib/arc/datetime.c: New file.
18794 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18795 pci.h on non-loongson.
18796 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18797 (grub_linux_boot): Set unused registers to 0.
18798 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18799 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18800 * grub-core/mmap/mips/uppermem.c: ...here.
18801 * grub-core/partmap/dvh.c: New file.
18802 * grub-core/term/arc/console.c: Likewise.
18803 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18804 (grub_terminfo_set_current): Add terminal "arc".
18805 (grub_terminfo_readkey): Support ARC sequences.
18806 * include/grub/arc/arc.h: New file.
18807 * include/grub/arc/console.h: Likewise.
18808 * include/grub/disk.h (grub_disk_dev_id): Add
18809 GRUB_DISK_DEVICE_ARCDISK_ID.
18810 * include/grub/mips/arc/kernel.h: New file.
18811 * include/grub/mips/arc/memory.h: Likewise.
18812 * include/grub/mips/arc/time.h: Likewise.
18813 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18814 * include/grub/mips/kernel.h (grub_halt): ... here.
18815 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18816 here...
18817 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18818 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18819 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18820 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18821 proto.
18822 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18823 from here ...
18824 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18825 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18826 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18827 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18828 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18829 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18830 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18831 (grub_phys_addr_t): Moved from here ...
18832 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18833 (grub_vtop): Moved from here ...
18834 * include/grub/mips/memory.h (grub_vtop): ... here.
18835 (grub_map_memory): Moved from here ...
18836 * include/grub/mips/memory.h (grub_map_memory): ... here.
18837 (grub_unmap_memory): Moved from here ...
18838 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18839 (grub_machine_mmap_iterate): Moved from here ...
18840 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18841 (grub_mmap_get_lower): Moved from here ...
18842 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18843 (grub_mmap_get_upper): Moved from here ...
18844 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18845 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18846 here ...
18847 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18848 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18849 here ...
18850 * include/grub/mips/time.h (grub_get_rtc): ... here.
18851 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18852 here ...
18853 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18854 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18855 here ...
18856 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18857 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18858 definition.
18859 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18860 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18861 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18862 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18863 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18864 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18865 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18866 (GRUB_MACHINE_LINK_ADDR): Likewise.
18867 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18868 to 6.
18869 * util/grub-install.in: Run dvhtool on ARC.
18870 * util/grub-mkimage.c (image_targets): Add mips-arc.
18871 (generate_image): Handle ECOFF output for mips-arc.
18872
18873 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18874
18875 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18876 blocks.
18877
18878 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18879
18880 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18881 after enabling port.
18882
18883 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 Skip incorrect USB devices.
18886
18887 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18888 configcnt == 0.
18889 * include/grub/usb.h (grub_usb_err_t): New enum value
18890 GRUB_USB_ERR_BADDEVICE.
18891
18892 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 Fuloong video init support.
18895
18896 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18897 well.
18898 (grub_vga_read_arx): New function.
18899 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18900 definition.
18901 (framebuffer): New members io, mmioptr and mmiobase.
18902 (read_sis_cmd): New function.
18903 (write_sis_cmd): Likewise.
18904 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18905 rather than 640x400.
18906 * grub-core/video/sis315_init.c: New file.
18907
18908 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18911 non-loongson.
18912 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18913 to grub_dl_register_symbol.
18914
18915 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18916
18917 Fix compilation errors.
18918
18919 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18920 potentially unused.
18921 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18922 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18923 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18924 to loongson machines.
18925
18926 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18927
18928 Several FS mtime support.
18929
18930 * grub-core/fs/affs.c (grub_affs_time): New struct.
18931 (grub_affs_file): New field mtime.
18932 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18933 type. Removed 'size'. New field 'di'. All users updated.
18934 (grub_affs_mount): Simplify checsum checking.
18935 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18936 (grub_affs_dir): Handle mtime.
18937 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18938 (grub_cpio_dir): Likewise.
18939 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18940 (grub_hfs_filerec): New field mtime.
18941 (grub_hfs_dir): Handle mtime.
18942 (grub_hfs_mtime): New function.
18943 (grub_hfs_fs): Register grub_hfs_mtime.
18944 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18945 (grub_iso9660_dir): New field mtime.
18946 (grub_fshelp_node): New field dirent.
18947 (iso9660_to_unixtime): New function.
18948 (iso9660_to_unixtime2): Likewise.
18949 (grub_iso9660_read_symlink): Use node->dirent.
18950 (grub_iso9660_iterate_dir): Likewise.
18951 (grub_iso9660_dir): Set mtime.
18952 (grub_iso9660_mtime): New function.
18953 (grub_iso9660_fs): Register grub_iso9660_mtime.
18954 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18955 (grub_jfs_inode): New fields atime, ctime and mtime.
18956 (grub_jfs_dir): Set mtime.
18957 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18958 * grub-core/fs/ntfs.c (list_file): Set mtime.
18959 (grub_ntfs_dir): Likewise.
18960 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18961 (grub_reiserfs_iterate_dir): Set mtime.
18962 (grub_reiserfs_dir): Likewise.
18963 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18964 (grub_fshelp_node): Likewise.
18965 (grub_sfs_iterate_dir): Set mtime.
18966 (grub_sfs_dir): Likewise.
18967 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18968 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18969 (grub_xfs_inode): New fields atime, mtime, ctime.
18970 (grub_xfs_dir): Set mtime.
18971 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18972 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18973 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18974
18975 Support UDF symlinks.
18976
18977 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18978 (grub_ufs_read_symlink): New function. All users updated.
18979
18980 Check amiga partmap checksum.
18981
18982 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18983 (grub_amiga_partition): Likewise.
18984 (amiga_partition_map_checksum): New function.
18985 (amiga_partition_map_iterate): Check checksum.
18986
18987 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18988
18989 ROMFS support.
18990
18991 * Makefile.util.def (libgrubmods.a): Add romfs.
18992 * grub-core/Makefile.core.def (romfs): New module.
18993 * grub-core/fs/romfs.c: New file.
18994
18995 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18996
18997 Squashfs v4 support.
18998
18999 * Makefile.util.def (libgrubmods.a): Add squash4.
19000 * grub-core/Makefile.core.def (squash4): New module.
19001 * grub-core/fs/squash4.c: New file.
19002 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19003 disk_input_start, disk_input.
19004 (get_byte): Handle disk_input.
19005 (grub_zlib_disk_read): New function.
19006 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19007
19008 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19009 2011-05-15 Feiran Zheng <famcool@gmail.com>
19010
19011 * Makefile.util.def (libgrubmods.a): Add minix3.
19012 * grub-core/Makefile.core.def (minix3): New module.
19013 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19014 (GRUB_MINIX_BSIZE): Removed.
19015 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19016 (grub_minix_ino_t): New type.
19017 (grub_minix_le_to_cpu_ino): New macro.
19018 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19019 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19020 (grub_minix_data): New field block_size.
19021 (grub_minix_read_file): Handle 64-bit correctly.
19022 * grub-core/fs/minix3.c: New file.
19023
19024 2011-05-15 Tristan Gingold <gingold@free.fr>
19025 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19026 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19027
19028 IA64 support.
19029
19030 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19031 * configure.ac: Add ia64-efi target.
19032 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19033 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19034 * gentpl.py: Add ia64_efi platform.
19035 Rename x86_efi to efi and Add ia64-efi. All users updated.
19036 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19037 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19038 Remove kern/generic/rtc_get_time_ms.c on EFI.
19039 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19040 kern/ia64/dl_helper.c on ia64-efi.
19041 Add kern/emu/cache.c on emu.
19042 (linux): Use on loader/ia64/efi/linux.c on ia64.
19043 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19044 whether symbol is a function.
19045 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19046 (grub_symbol): New field 'isfunc'.
19047 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19048 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19049 (grub_dl_load_segments): Place all sections into the same region.
19050 [__ia64__]: Create trampolines and got.
19051 [GRUB_MACHINE_EMU]: Call mprotect.
19052 (grub_dl_resolve_symbols): Resolve symbol type as well.
19053 [__ia64__]: Create function descriptors.
19054 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19055 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19056 (grub_get_rtc): New function.
19057 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19058 * grub-core/kern/emu/cache.S: Renamed to ...
19059 * grub-core/kern/emu/cache_s.S: ... this.
19060 [__ia64__]: Add a nop.
19061 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19062 [__ia64__]: New function.
19063 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19064 * grub-core/kern/ia64/dl.c: New file.
19065 * grub-core/kern/ia64/dl_helper.c: Likewise.
19066 * grub-core/kern/ia64/efi/init.c: New file.
19067 * grub-core/kern/ia64/efi/startup.S: Likewise.
19068 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19069 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19070 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19071 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19072 * grub-core/loader/ia64/efi/linux.c: New file.
19073 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19074 (GRUB_MOD_DEP): Likewise.
19075 (grub_dl) [__ia64__]: New fields got and tramp.
19076 (grub_dl): New field 'base'.
19077 (grub_dl_register_symbol): New argument isfunc. All users updated.
19078 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19079 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19080 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19081 (grub_ia64_dl_get_tramp_got_size): New proto.
19082 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19083 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19084 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19085 * include/grub/efi/api.h: Skip call wrappers on ia64.
19086 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19087 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19088 * include/grub/elf.h (ELF_ST_INFO): New definition.
19089 * include/grub/ia64/efi/kernel.h: New file.
19090 * include/grub/ia64/efi/memory.h: Likewise.
19091 * include/grub/ia64/efi/time.h: Likewise.
19092 * include/grub/ia64/kernel.h: Likewise.
19093 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19094 * include/grub/ia64/time.h: New file.
19095 * include/grub/ia64/types.h: Likewise.
19096 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19097 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19098 New protos.
19099 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19100 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19101 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19102 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19103 All users updated.
19104 (EFI64_HEADER_SIZE): New definition. All users updated.
19105 (image_targets): Add ia64-efi.
19106 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19107 jumpers_addr. All users updated.
19108 Create function descriptors.
19109 (count_funcs): New function.
19110 (unaligned_uint32): New struct.
19111 (MASK20): New definition.
19112 (MASK19): Likewise.
19113 (MASKF21): Likewise.
19114 (add_value_to_slot_20b): New function.
19115 (add_value_to_slot_21_real): Likewise.
19116 (add_value_to_slot_21): Likewise.
19117 (ia64_kernel_trampoline): New struct.
19118 (nopm): New variable.
19119 (jump): Likewise.
19120 (make_trampoline): New function.
19121 (relocate_addresses): Handle ia64.
19122 (make_reloc_section): Likewise.
19123 (load_image): Likewise.
19124
19125 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19126
19127 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19128 warning. Move variables before code while on it.
19129
19130 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19131
19132 Fuloong support.
19133
19134 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19135 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19136 * grub-core/boot/mips/loongson/fuloong.S: New file.
19137 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19138 Explicitly init CS5536.
19139 [FULOONG]: Don't use serial until CS5536 is available.
19140 Set GPIO based on dumps.
19141 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19142 [FULOONG]: Handle GPIO and memory controller differences.
19143 Parse machine type in $a2.
19144 * grub-core/boot/mips/startup_raw.S: Determine and save the
19145 architecture.
19146 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19147 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19148 init on architecture type.
19149 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19150 SIS315E. Don't init at_keyboard on fuloong.
19151 (grub_halt): Support Fuloong.
19152 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19153 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19154 (loongson_machtypes): New array.
19155 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19156 type.
19157 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19158 config. All users updated. Handle CS5536 serial.
19159 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19160 default port on machine type. Register serial as inactive.
19161 * grub-core/video/sis315pro.c: New file.
19162 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19163 definition.
19164 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19165 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19166 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19167 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19168 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19169 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19170 to ...
19171 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19172 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19173 definition.
19174 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19175 (grub_arch_machine): New extern var.
19176 * include/grub/mips/loongson/serial.h
19177 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19178 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19179 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19180 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19181 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19182 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19183 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19184 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19185 * include/grub/term.h (grub_term_register_input_inactive): New inline
19186 function.
19187 (grub_term_register_output_inactive): Likewise.
19188 * include/grub/video.h (grub_video_driver_id): New value
19189 GRUB_VIDEO_DRIVER_SIS315PRO.
19190 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19191 New field "names". All users updated.
19192 New field value IMAGE_FULOONG_FLASH.
19193 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19194
19195 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19196
19197 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19198 and add some clarification.
19199
19200 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19201
19202 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19203 platforms if kernel is compressed.
19204
19205 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19206
19207 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19208 unused modules since currently referrence counter isn't reliable and
19209 there isn't much memory to recover there anyway.
19210
19211 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19212
19213 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19214 rather than resetting it to allow modules to reference themselves
19215 in init.
19216
19217 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19218
19219 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19220 counter on dependencies since grub_dl_unref already handles this.
19221
19222 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19223
19224 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19225 on error if not already done.
19226
19227 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19228
19229 Fix few potential memory misusage.
19230
19231 * grub-core/font/font.c (load_font_index): Don't free char_index to
19232 avoid double free.
19233 (grub_font_load): Zero-fill font at alloc for safety.
19234 Close file on error.
19235 (free_font): Free bmp_idx.
19236
19237 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19238
19239 * docs/grub.texi (Installation): Fix several outdated claims.
19240
19241 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19242
19243 Handle module_license on windows.
19244
19245 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19246 sections shifted.
19247 (insert_string): Make argument const char * instead of char *.
19248 (write_section_data): Handle long section names.
19249 Handle module_license.
19250
19251 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19252
19253 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19254 handle class-free menuentries.
19255 (grub_normal_add_menu_entry): Add a check to be sure.
19256
19257 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19258
19259 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19260 PgUp and PgDown.
19261
19262 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19263
19264 * configure.ac: Bump version to 1.99.
19265
19266 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19267
19268 Give ATA device a bit more time on first try in order to allow disks
19269 to spin up.
19270
19271 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19272 if dev->present is 1. Reset dev->present on failure.
19273 (grub_ata_device_initialize): Set dev->present to 1.
19274 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19275 (grub_ata_device): New member 'present'.
19276
19277 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19278
19279 * util/grub-mkimage.c (generate_image): Update hash.
19280
19281 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19282
19283 Flush caches on DMA memory.
19284
19285 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19286 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19287 (grub_dma_free): Likewise.
19288 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19289
19290 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19291
19292 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19293 to avoid asm treating ld and sd as macros.
19294
19295 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19296
19297 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19298 decompressor.
19299
19300 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19301
19302 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19303 grub_decompress_core since later would fail if grub_decompress_core
19304 is too far.
19305
19306 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19309 R_MIPS_JALR since it's used by newer compiler.
19310
19311 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19314
19315 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19316
19317 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19318 file_path to 0 for surety.
19319 (grub_chainloader_boot): Set exit_data to NULL.
19320 Unset the loader once done.
19321 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19322
19323 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19324
19325 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19326 unknown key into a dprintf.
19327
19328 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19329
19330 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19331 on first non-existant partition.
19332
19333 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19334
19335 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19336 openning fails.
19337 Reported by: Mark Korenberg.
19338
19339 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19340
19341 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19342 overflow.
19343
19344 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19345
19346 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19347 before closing to ensure that it will be readable by grub-setup.
19348
19349 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19350
19351 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19352 (devpath_1): Use MAKE_PIWG_PATH.
19353 (devpath_2): Likewise.
19354 (devpath_3): Likewise.
19355 (devpath_4): Likewise.
19356 (devpath_5): Likewise.
19357 (devpath_6): Likewise.
19358
19359 The appleldr.mod was checked that to be binary identical to previous
19360 version.
19361
19362 2011-05-05 Zach <mikezackles>
19363
19364 Support 2010 Macbooks.
19365
19366 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19367 (devs): Add devpath_6.
19368
19369 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19370
19371 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19372 /dev/random. /dev/urandom is good enough for our purposes (salting).
19373
19374 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19375
19376 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19377
19378 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19381 hexadecimal.
19382
19383 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19384
19385 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19386 and not 0 on failure.
19387
19388 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19389
19390 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19391 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19392 disk; otherwise grub_fs_probe will not fall back to the next
19393 filesystem.
19394 (grub_pxefs_open): Likewise, for consistency.
19395 Reported and tested by: Ezekiel Grave.
19396
19397 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19398
19399 * tests/partmap_test.in: Don't hardcode path to parted.
19400 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19401
19402 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19403
19404 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19405 of `ls' to find out which devices are available.
19406
19407 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19408
19409 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
19410 than source address for efi mmap buffer.
19411
19412 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19413
19414 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
19415 wrong action on non-detecting the magic.
19416
19417 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19418
19419 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
19420 already supplied by another part of the module (fixes compilation on
19421 FreeBSD).
19422
19423 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19424
19425 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
19426 match the one used by mdadm.
19427
19428 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19429
19430 * po/README: Add instructions for creating po/LINGUAS.
19431
19432 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19433
19434 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
19435 #551428.
19436
19437 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
19438 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
19439 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
19440 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
19441 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
19442 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
19443 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
19444 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
19445 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
19446 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
19447 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
19448 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
19449 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
19450 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
19451 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
19452 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
19453 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
19454 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
19455 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
19456 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
19457 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
19458 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
19459
19460 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19461
19462 * grub-core/kern/emu/getroot.c
19463 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
19464 test that was incorrectly reintroduced in r3214.
19465 Reported by: Ian Dall. Fixes Savannah bug #33133.
19466
19467 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
19468
19469 Fix stack pointer handling in 16-bit relocator.
19470
19471 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
19472 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
19473 Fixes Ubuntu bug #683904.
19474
19475 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19476
19477 * configure.ac: Bump version to 1.99~rc2.
19478
19479 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
19482 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
19483 * grub-core/lib/x86_64/setjmp.S: Likewise.
19484 * grub-core/lib/mips/setjmp.S: Likewise.
19485 * grub-core/lib/powerpc/setjmp.S: Likewise.
19486 * grub-core/lib/sparc64/setjmp.S: Likewise.
19487
19488 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
19489
19490 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
19491 * grub-core/lib/efi/datetime.c: Likewise.
19492
19493 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19494
19495 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
19496 New function.
19497 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
19498 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
19499 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
19500
19501 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19502
19503 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
19504 bitmap.
19505 (grub_gfxterm_term_init): Likewise.
19506
19507 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19508
19509 Take into account the decorations the computing menu entry width.
19510
19511 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
19512 (grub_gfxmenu_create_box): Register get_border_width.
19513 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
19514 if available.
19515 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
19516 get_border_width.
19517
19518 2011-04-18 Endres Puschner <code@e7p.de>
19519
19520 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
19521 Don't skip first class.
19522
19523 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19524
19525 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
19526 chunks.
19527 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
19528
19529 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19530
19531 Complete 64-bit division support.
19532
19533 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
19534 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
19535 * include/grub/misc.h (grub_divmod64): Rename to ...
19536 (grub_divmod64_full): ... this.
19537 (grub_divmod64): New inline function.
19538
19539 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 * util/grub-mkimage.c (generate_image): Add forgotten comma.
19542
19543 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
19544
19545 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
19546 performing the necessary test.
19547
19548 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19549
19550 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
19551 (kfreebsd.elf): Likewise.
19552 (pc-chainloader.elf): Likewise.
19553 (ntldr.elf): Likewise.
19554
19555 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
19556
19557 Identify RAID by its UUID rather than (guessed) name.
19558
19559 * grub-core/disk/raid.c (ascii2hex): New function.
19560 (grub_raid_open): Accept mduuid/%s specification.
19561 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
19562 (get_mdadm_uuid): ... this.
19563 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
19564
19565 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
19566
19567 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
19568 to negative size.
19569
19570 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19571
19572 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
19573 btrfs subvolume.
19574 * util/grub.d/20_linux_xen.in: Likewise.
19575
19576 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
19577
19578 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
19579 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
19580
19581 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
19582 Build a list of relevant visible mounts using the mnt_id and
19583 parent_mnt_id fields, and then scan that list at the end.
19584
19585 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19586
19587 * docs/grub.texi (normal): New section.
19588 (normal_exit): New section.
19589 (Embedded configuration): Add reference to normal.
19590 (GRUB only offers a rescue shell): Likewise.
19591 * docs/grub-dev.texi (Error Handling): Fix typo.
19592
19593 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19594
19595 * NEWS: Drop obsolete entry about probe-only btrfs support.
19596
19597 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
19598
19599 * util/import_gcry.py: Fix typo.
19600
19601 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19602
19603 * NEWS: Add btrfs support.
19604
19605 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19606 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19607
19608 BtrFS support. Written by me (Vladimir) with important bugfixes and
19609 even more important testing by Colin.
19610
19611 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
19612 * grub-core/Makefile.core.def (btrfs): Add crc.c.
19613 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
19614 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
19615 mem_input_off and mem_input. All users updated to accept in-RAM input.
19616 (gzio_seek): New function.
19617 (test_zlib_header): Likewise.
19618 (grub_gzio_read): Likewise.
19619 (grub_zlib_decompress): Likewise.
19620 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
19621 Accept partial and non-virtual mounts.
19622 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
19623 avoid receiving /dev/dm-X as device.
19624 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
19625 Handle bind and partial mounts.
19626 * grub-core/lib/crc.c: New file.
19627 * include/grub/deflate.h: Likewise.
19628 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
19629 proto.
19630 * include/grub/lib/crc.h: New file.
19631
19632 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 Implement automatic module license checking according to new GNU
19635 guidelines.
19636
19637 * grub-core/kern/dl.c (grub_dl_check_license): New function.
19638 (grub_dl_load_core): Use grub_dl_check_license.
19639 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
19640 (GRUB_MOD_LICENSE): Likewise.
19641 (GRUB_MOD_DUAL_LICENSE): Likewise.
19642 All modules updated.
19643
19644 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
19645
19646 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
19647 reserved_first_sector to 1. btrfs reserves plenty of space for boot
19648 loaders.
19649 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
19650
19651 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19652
19653 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
19654
19655 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19656
19657 * util/grub-fstest.c (read_file): Report GRUB error if file opening
19658 failed.
19659
19660 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
19661
19662 * grub-core/kern/file.c (grub_file_open): Don't take into account the
19663 parenthesis in the middle of the filename.
19664
19665 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19666
19667 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
19668 rather than trying to put initrd way too high.
19669 Reported by: Ryan Lortie <desrt@desrt.ca>
19670
19671 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
19674 improperly removed string.
19675
19676 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19677
19678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
19679 is_disk.
19680 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
19681 (open_device) Likewise.
19682 (grub_util_biosdisk_close): Likewise.
19683 Reported by: Mark Korenberg.
19684
19685 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
19686
19687 * util/grub-mkconfig_lib.in: Add missing quotes.
19688
19689 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
19690
19691 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
19692 is NULL.
19693
19694 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19695
19696 Dynamically count the number of lines for the lower banner.
19697
19698 * grub-core/normal/menu_entry.c (per_term_screen): New member
19699 num_entries.
19700 (print_down): Use num_entries.
19701 (update_screen): Likewise.
19702 (grub_menu_entry_run): Set num_entries.
19703 * grub-core/normal/menu_text.c (menu_viewer_data): New member
19704 num_entries.
19705 (grub_print_message_indented): Move real part to ...
19706 (grub_print_message_indented_real): ... here. Additional argument
19707 dry_run.
19708 (draw_border): Additional argument num_entries.
19709 (print_message): Additional argument dry_run.
19710 (print_entries): Receive menu viewer data.
19711 (grub_menu_init_page): New argment num_entries.
19712 (menu_text_set_chosen_entry): Use num_entries.
19713 (grub_menu_try_text): Likewise.
19714 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
19715 All users updated.
19716 (grub_ucs4_count_lines): New function.
19717 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
19718 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
19719 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
19720 (grub_term_border_height): Likewise.
19721 (grub_term_num_entries): Likewise.
19722
19723 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19724
19725 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
19726 Remove now unused string.
19727
19728 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19729
19730 * docs/grub-dev.texi (Finding your way around): Update for 1.99
19731 build system.
19732 (Getting started): GRUB is developed in Bazaar now, not Subversion.
19733
19734 (Comment): Fix typo.
19735 (Getting started): General copy-editing.
19736 (Typical Development Experience): Likewise.
19737 (Error Handling): Likewise.
19738 (Video API): Likewise.
19739
19740 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
19741
19742 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
19743 throughout.
19744
19745 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19746
19747 * util/grub-mkimage.c (main): Handle special naming of yeeloong
19748 directory.
19749
19750 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19751
19752 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
19753 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
19754 "development".
19755
19756 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19757
19758 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
19759 grub_strcpy since the lines aren't necessarily 0-terminated.
19760
19761 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19762
19763 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
19764 root on legacy.
19765
19766 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19767
19768 * grub-core/commands/probe.c (options): Argument to set isn't optional.
19769 (GRUB_MOD_INIT): DEVICE isn't optional.
19770
19771 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19772
19773 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
19774 word on new line if it's too long anyway. Fixes a hang.
19775
19776 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19777
19778 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19779 const.
19780 * util/grub-setup.c (main): Reuse md device name if available.
19781 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19782 not GRUB name as argument.
19783 Based on patch by: Florian Wagner <fwagner>.
19784
19785 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19788 Place mbi on low memory for better compatibility.
19789
19790 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19791
19792 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19793
19794 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19795 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
19796
19797 * autogen.sh: Ensure that collate and ctype locale is C.
19798 * conf/Makefile.common: Likewise.
19799
19800 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19801
19802 * grub-core/normal/menu.c: Add missing include.
19803
19804 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19805
19806 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
19807
19808 2011-04-08 Martin Zuther <mzuther@mzuther.de>
19809
19810 * util/grub-mkconfig.in: Ignore emacsen backup.
19811
19812 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19815 on open.
19816 (grub_util_biosdisk_close): Likewise.
19817
19818 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19821 const attribute and use grub_isdigit.
19822
19823 2011-04-06 Andrey <dev_null@ukr.net>
19824
19825 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19826 gcc warning.
19827
19828 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19829
19830 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19831 useful grub_dprintf's.
19832
19833 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19834
19835 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19836
19837 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19838
19839 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19840
19841 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19842
19843 Output errors if theme loading failed.
19844
19845 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19846 grub_gfxterm_fullscreen on error paths to ...
19847 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19848 theme loading error.
19849
19850 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19851
19852 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19853 space for older compilers.
19854 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19855
19856 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19857
19858 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19859 and report them as not RAID members since they are useless for GRUB.
19860 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19861
19862 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19863
19864 Increase LVM implementation robustness in order not to crash on
19865 configurations like pvmove. Previously code assumed that in some places
19866 only lvs or only pvs are used whereas it seems that they are used
19867 interchangeably.
19868
19869 * grub-core/disk/lvm.c (read_node): New function.
19870 (read_lv): Use read_node.
19871 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19872 Match volumes only at the end when all lvs are found. Take both
19873 pvs (first) and lvs (second) into account.
19874 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19875 mirror_* into node_*. All users updated.
19876 (grub_lvm_stripe): Merge this ...
19877 (grub_lvm_mirror): ... and this ...
19878 (grub_lvm_node): ... into this. All users updated.
19879
19880 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19881
19882 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19883 of function to allow further scanning for LVMs.
19884
19885 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19886
19887 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19888 on failed seek as it breaks open fd reusage.
19889
19890 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19891
19892 * util/grub-install.in: Add a recommendation to use --recheck before
19893 reporting bugs.
19894
19895 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19896
19897 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19898 are obtained.
19899
19900 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19901
19902 GRUB developper manual based on existing Internals section and
19903 contributions by the various authors with active copyright assignment.
19904
19905 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19906 * docs/font_char_metrics.png: New file.
19907 * docs/font_char_metrics.txt: Likewise.
19908 * docs/grub-dev.texi: Likewise.
19909 * docs/grub.texi (Internals): Move from here ...
19910 * docs/grub-dev.texi: ... here.
19911
19912 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19913
19914 Store the loopback device as data on loopback grub_disk structures,
19915 rather than the file it points to. This fixes use of freed memory
19916 if an existing loopback device is replaced.
19917
19918 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19919 disk->data, not dev->file.
19920 (grub_loopback_read): Adjust file assignment to match.
19921 Fixes Ubuntu bug #742967.
19922
19923 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19924
19925 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19926 when replacing an existing device.
19927
19928 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19931 memory corruptions.
19932
19933 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19934 unsigned.
19935 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19936 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19937 (grub_jfs_read_inode): Likewise.
19938 (grub_jfs_opendir): Likewise. Remove now useless casts.
19939 (grub_jfs_getent): Likewise.
19940 Make ino a grub_uint32_t rather than int.
19941 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19942 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19943 division and module with bit operations.
19944 (grub_jfs_find_file): Make ino a grub_uint32_t.
19945 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19946
19947 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
19948
19949 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19950 warning. (This was in fact always initialised before use, but GCC
19951 wasn't smart enough to prove that.)
19952 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19953
19954 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19957 stack alignment.
19958 (efi_wrap_1): Likewise.
19959 (efi_wrap_2): Likewise.
19960 (efi_wrap_3): Likewise.
19961 (efi_wrap_4): Likewise.
19962 (efi_wrap_5): Likewise.
19963 (efi_wrap_6): Likewise.
19964 (efi_wrap_10): Likewise.
19965 Based on information by: Red Hat/Peter Jones.
19966
19967 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19968
19969 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19970 set-but-not-used variable.
19971
19972 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
19973
19974 * docs/grub.texi (Simple configuration): Be more explicit about
19975 GRUB_DEFAULT, and add an example.
19976 Reported by: Leslie Rhorer.
19977
19978 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
19979
19980 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19981 shell".
19982
19983 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19984
19985 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19986 * util/grub.d/20_linux_xen.in: Likewise.
19987
19988 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19989
19990 * util/grub.d/10_linux.in: Try alternative config filenames where
19991 we parse config file.
19992 * util/grub.d/20_linux_xen.in: Likewise.
19993
19994 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19995
19996 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19997 * util/grub.d/20_linux_xen.in: Likewise.
19998
19999 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20000
20001 * grub-core/disk/raid.c (insert_array): Add few potentially
20002 useful grub_util_info.
20003 (grub_raid_register): Likewise.
20004
20005 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20008 Preserve partition number in mdadm code path.
20009
20010 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20011
20012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20013 few potentially useful grub_util_info.
20014
20015 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20016
20017 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20018
20019 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20020
20021 * docs/grub.texi (default): Use @example rather than nested
20022 itemized lists to avoid breaking gendocs.
20023
20024 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20025
20026 * docs/grub.texi (Future): Update.
20027
20028 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20029
20030 * docs/grub.texi (Environment): New chapter.
20031 (Changes from GRUB Legacy): Link to "Environment block" section for
20032 details of limitations.
20033 (Simple configuration): Likewise. Link to documentation of gfxmode
20034 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20035 respectively.
20036 (Shell-like scripting): Note that normal variables are stored in the
20037 environment.
20038 (gettext): Link to documentation of lang and locale_dir.
20039 (list_env): New section.
20040 (load_env): New section.
20041 (save_env): New section.
20042
20043 (Reporting bugs): Fix typo.
20044
20045 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20048 the example.
20049
20050 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20051
20052 * grub-core/term/at_keyboard.c (set_scancodes)
20053 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20054
20055 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20056
20057 * docs/grub.texi (Menu-specific commands): Remove some semantics
20058 that were true in GRUB Legacy but not in GRUB 2.
20059 (submenu): New section.
20060 (false): New section.
20061 (read): New section.
20062 (true): New section.
20063
20064 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20065
20066 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20067
20068 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20069
20070 * docs/grub.texi (Simple configuration): Explain some of the
20071 current limitations of grub-mkconfig.
20072 Reported by: Leslie Rhorer.
20073
20074 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20075
20076 Old macs search for boot.efi rather than for bootia32.efi.
20077
20078 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20079 * util/grub-mkrescue.in: Likewise.
20080 Suggested by: Peter Jones.
20081
20082 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20083
20084 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20085
20086 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20089 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20090 (grub_lvm_mirror): New struct.
20091 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20092 (grub_lvm_iterate): Iterate only visible volumes.
20093 (grub_lvm_read): Factor out to ..
20094 (read_lv): ... this. Support mirrors.
20095 (grub_lvm_read): New wrapper function.
20096 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20097 stripped or mirrored.
20098
20099 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20100
20101 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20102
20103 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20104
20105 * docs/grub.texi (loopback): New section.
20106
20107 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20108
20109 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20110 removed -p option.
20111
20112 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20113
20114 * docs/grub.texi (BIOS installation): New section, partly based on
20115 previous text in other sections.
20116 (Installing GRUB using grub-install): Replace BIOS discussion with a
20117 cross-reference.
20118 (Images): Likewise.
20119
20120 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20123 [HAVE_DIOCGDINFO]: Add safety checks.
20124
20125 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20126
20127 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20128 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20129
20130 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20131
20132 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20133 real_sb->size is zero (e.g. RAID-0), get the disk size from
20134 real_sb->data_size instead.
20135 Fixes Ubuntu bug #743136.
20136
20137 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20138
20139 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20140 printf clauses for printing size and start.
20141
20142 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20143
20144 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20145 Reported and tested by: Timothy Nikkel.
20146
20147 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20148
20149 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20150 (dirty_region_add_real): ... this.
20151 (dirty_region_add): Don't discard margin refresh when performing
20152 scheduled repaint.
20153
20154 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20155
20156 * grub-core/lib/relocator.c (allocate_regstart)
20157 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20158 terminals are capabple of malloc-free operation.
20159 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20160 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20161
20162 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20163
20164 * util/grub-setup.c: Copy the partition table zone if floppy support
20165 is disabled, even if no partition table is found.
20166
20167 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20168 during POST if an invalid partition table is contained in the PBR
20169 of the active partition when GRUB is installed to a partition.
20170
20171 2011-03-28 Colin Watson <cjwatson@debian.org>
20172
20173 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20174 comment.
20175
20176 2011-03-28 Colin Watson <cjwatson@debian.org>
20177
20178 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20179 to be specific about what kind of RAID device we're scanning for.
20180
20181 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20182
20183 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20184 return freed string.
20185
20186 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20187
20188 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20189
20190 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20191
20192 Use libgeom on FreeBSD to detect partitions.
20193
20194 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20195 (grub-mkrelpath): Likewise.
20196 (grub-script-check): Likewise.
20197 (grub-editenv): Likewise.
20198 (grub-mkpasswd-pbkdf2): Likewise.
20199 (grub-fstest): Likewise.
20200 (grub-mkfont): Likewise.
20201 (grub-mkdevicemap): Likewise.
20202 (grub-probe): Likewise.
20203 (grub-setup): Likewise.
20204 (grub-ofpathname): Likewise.
20205 (grub-mklayout): Likewise.
20206 (example_unit_test): Likewise.
20207 (grub-menulst2cfg): Likewise.
20208 * grub-core/Makefile.core.def (grub-emu): Likewise.
20209 (grub-emu-lite): Likewise.
20210 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20211 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20212 define HAVE_DIOCGDINFO.
20213 (follow_geom_up) [FreeBSD]: New function.
20214 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20215 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20216 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20217 unconditionally of HAVE_DIOCGDINFO.
20218
20219 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20220
20221 Fix FreeBSD compilation problem.
20222
20223 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20224 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20225
20226 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20227
20228 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20229 Switch back to page zero before loading a kernel, since some kernel
20230 drivers expect that.
20231 Thanks to: Felix Kuehling.
20232
20233 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20234
20235 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20236 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20237 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20238
20239 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20240
20241 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20242 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20243
20244 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20247 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20248 malloc is disabled.
20249
20250 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20251
20252 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20253 for modules headers when counting the needed allocation size.
20254
20255 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20256
20257 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20258 if no ASCII character is found to prevent crash.
20259
20260 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20261
20262 * grub-core/video/bitmap.c (match_extension): Ignore case.
20263
20264 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20265
20266 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20267
20268 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20269
20270 * grub-core/script/parser.y: Declare "time" as valid argument.
20271
20272 2011-03-23 Peter Jones <pjones@redhat.com>
20273
20274 Fix incorrect assert failure reporting.
20275
20276 * grub-core/tests/example_functional_test.c (example_test): Add
20277 a failure comment.
20278 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20279 (failure_start): ...this. Check that malloc succeeded.
20280 Don't call xvasprintf. Return failure struct.
20281 (failure_append_vtext): New function.
20282 (failure_append_text): Likewise.
20283 (add_failure): Likewise.
20284 (grub_test_assert_helper): Likewise.
20285 * include/grub/test.h (grub_test_assert_helper): New declaration.
20286 (grub_test_assert): Macro rewritten.
20287
20288 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20289
20290 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20291
20292 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20293
20294 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20295
20296 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20297
20298 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20299 into GRUB-style one.
20300
20301 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20302
20303 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20304 error and not grub_errno.
20305 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20306
20307 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20308
20309 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20310 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20311
20312 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20313
20314 * grub-core/efiemu/i386/pc/cfgtables.c
20315 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20316 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20317 (grub_xnu_unlock): Likewise.
20318 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20319
20320 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20321
20322 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20323 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20324 * grub-core/commands/hashsum.c (aliases): Likewise.
20325 * grub-core/commands/setpci.c (pci_registers): Likewise.
20326 * grub-core/disk/usbms.c (attach_hook): Likewise.
20327 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20328 (zio_checksum_table): Likewise.
20329 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20330 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20331 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20332 * grub-core/lib/relocator.c (leftovers): Likewise.
20333 (extra_blocks): Likewise.
20334 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20335 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20336 (modules_last): Likewise.
20337 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20338 (devices): Likewise.
20339 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20340 (modules_last): Likewise.
20341 * grub-core/normal/auth.c (users): Likewise.
20342 * grub-core/normal/context.c (initial_menu): Likewise.
20343 (current_menu): Likewise.
20344 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20345 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20346 (grub_serial_terminfo_input_template): Likewise.
20347 (grub_serial_terminfo_output_template): Likewise.
20348 (grub_serial_terminfo_input): Likewise.
20349 (grub_serial_terminfo_output): Likewise.
20350 (registered): Likewise.
20351 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20352
20353 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20354
20355 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20356 grub_video_mode_type_t.
20357 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20358 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20359 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20360
20361 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * util/grub-install.in: Correct the x86-64 name as x86_64.
20364
20365 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20366
20367 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20368 initial chunk read from the kernel always includes GRUB's multiboot
20369 header, which is now outside the first sector.
20370
20371 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20372
20373 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20374 cached mmap_size, so that this works correctly when called multiple
20375 times.
20376 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20377
20378 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20379
20380 * docs/grub.texi (Simple configuration): Tidy up formatting.
20381
20382 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20383
20384 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20385 Set-but-not-used variable removed.
20386
20387 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20388
20389 Workaround yet another IEEE1275 bug.
20390
20391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20392 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20393 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20394 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20395 is set.
20396 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20397 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20398
20399 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20400
20401 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20402 error.
20403
20404 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20405
20406 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20407 empty, since in that case we can only generate either nothing or a
20408 syntactically invalid configuration file.
20409 Reported by: Michal Suchanek. Fixes Debian bug #612898.
20410
20411 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20412
20413 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
20414 (Making a GRUB bootable CD-ROM): Likewise.
20415 (Invoking grub-mkrescue): New section.
20416 Reported by: Yann Dirson. Fixes Debian bug #612585.
20417
20418 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
20419
20420 * util/grub-install.in: Remove unnecessary brackets from tr
20421 arguments.
20422 * util/grub.d/10_hurd.in: Likewise.
20423 * util/grub.d/10_kfreebsd.in: Likewise.
20424 * util/grub.d/10_linux.in: Likewise.
20425 * util/grub.d/20_linux_xen.in: Likewise.
20426 Reported by: Jamie Heilman. Fixes Debian bug #612564.
20427
20428 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
20429
20430 * include/grub/file.h (not_easly_seekable): Rename to ...
20431 (not_easily_seekable): ... this. Update all users.
20432
20433 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
20434
20435 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
20436 grub-mkrescue.
20437
20438 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
20439
20440 * util/grub-mkimage.c (generate_image): Refuse to create the images
20441 bigger than the actual flash (512K) in Loongson machines. 512K is also
20442 the biggest chip supported by them.
20443
20444 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20445
20446 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
20447
20448 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
20449
20450 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
20451 super_offset field.
20452
20453 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20454
20455 * util/grub-install.in: Ignore install device on platforms
20456 where it doesn't make sense. Always use UUIDs except on pc, efi and
20457 sparc64.
20458 Reported by: Daniel Kahn Gillmor.
20459
20460 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20461
20462 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
20463
20464 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20465
20466 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
20467 (iterate_real): Don't rely on partition being non-NULL.
20468
20469 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
20472 supported platforms. Put a compile time assert for this rather than
20473 generate a warning with 32-bit shift.
20474
20475 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
20478 logical expression more readable.
20479
20480 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
20483 even if some elements have a name.
20484 Reported by: Alexander GQ Gerasiov.
20485
20486 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20487
20488 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
20489 path unreadable if `grub-probe -t abstraction' fails, for example if
20490 memberlist fails on an LVM volume group.
20491 Reported by: Darius Jahandarie.
20492
20493 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
20494
20495 * docs/grub.texi (Simple configuration): Document
20496 GRUB_PRELOAD_MODULES.
20497
20498 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
20499
20500 * .bzrignore: Remove nonexistent grub-pbkdf2.
20501
20502 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
20503
20504 * configure.ac: Bump version to 1.99~rc1.
20505
20506 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20507
20508 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
20509 for safety.
20510
20511 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20512
20513 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
20514 module.
20515
20516 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
20519
20520 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20521
20522 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
20523 diskdevid.
20524
20525 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20526
20527 Fix compilation on cygwin.
20528
20529 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
20530 -R .drectve on cygwin.
20531 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
20532 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
20533 (COND_CYGWIN): New condition.
20534 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
20535 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
20536 not @TARGET_OBJ2ELF@.
20537 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
20538 type to determine whether aux is to be used.
20539
20540 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20541
20542 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
20543 realpath'ed device string.
20544 Handle floppy (somewhat).
20545 Issue error in unknown case rather than garbage.
20546 Reported by: Axel Beckert.
20547
20548 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * util/grub.d/00_header.in (load_video): Handle the case when no video
20551 drivers available.
20552 Thanks to: Axel Beckert.
20553
20554 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20555
20556 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
20557 variable. Fixes problem on big endian platforms.
20558
20559 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20560
20561 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
20562 It doesn't work well there.
20563
20564 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20565
20566 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
20567 warning.
20568 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
20569 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
20570 counter.
20571
20572 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 Use alias->path rather than buggy "canon".
20575
20576 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
20577 (ofdisk_hash_add): New argument curcan. All users updated.
20578
20579 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20580
20581 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
20582
20583 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20584
20585 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
20586 loadmask before doing any calculations. Use correct type for offset.
20587 (grub_linux_load64): Likewise.
20588
20589 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
20590
20591 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
20592 with NULL.
20593 (console_grub_equivalences_unshift): Likewise.
20594 Reported by: Daniel Dehennin.
20595
20596 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20597
20598 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
20599 (set_env_limn_ro): Likewise.
20600 (GRUB_MOD_INIT): Likewise.
20601 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
20602 ARRAY_SIZE while on it.
20603 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
20604 * grub-core/normal/context.c (grub_env_export): Move from here ...
20605 * grub-core/kern/env.c (grub_env_export): ... here.
20606 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
20607 prefix.
20608 * grub-core/kern/main.c (grub_main): Export root and prefix.
20609 * include/grub/env.h (grub_env_export): Export.
20610 Reported by: Seth Goldberg.
20611
20612 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20613
20614 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20615 Take into account space used by ELF sections and multiboot palette.
20616 Reported by: Grégoire Sutre.
20617
20618 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
20619
20620 * BUGS: New file.
20621
20622 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20623
20624 Pass more appropriate video id to Linux.
20625
20626 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
20627 grub_video_get_driver_id and variable gfxpayloadforcelfb to
20628 fill have_vga.
20629 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
20630 shift params->lfb_size.
20631 * include/grub/i386/linux.h: Make an enume out of have_vga values.
20632
20633 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20634
20635 * util/grub-menulst2cfg.c: Add missing include of misc.h.
20636
20637 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20638
20639 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
20640 separator and pass bootpath/devid even if only one of them is available.
20641 Reported by: Seth Goldberg.
20642
20643 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20644
20645 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
20646 implementations bug on them.
20647
20648 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
20649 memory.
20650 (filter_memory_map): Likewise.
20651
20652 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20653
20654 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
20655 Reported by: nebuchadnezzar.
20656
20657 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20658
20659 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
20660 Reported by: nebuchadnezzar.
20661
20662 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20663
20664 Submenu default support.
20665
20666 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
20667 auto_boot. All users updated.
20668 Declared static.
20669 Handle chosen and default with submenus.
20670 (grub_menu_execute_with_fallback): Declared static.
20671 Don't notify failure if autobooted. Upper level does it.
20672 (menuentry_eq): New function.
20673 (get_entry_number): Use menuentry_eq.
20674 (show_menu): New parameter "autobooted". All users updated.
20675 (grub_show_menu): Likewise.
20676 * include/grub/normal.h (grub_show_menu): Likewise.
20677 * include/grub/menu.h (grub_menu_execute_entry): Removed.
20678 (grub_menu_execute_with_fallback): Likewise.
20679
20680 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20681
20682 * util/grub-mklayout.c (usage): Update help text.
20683
20684 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20685
20686 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
20687
20688 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20689
20690 * util/grub-menulst2cfg.c (main): Trim the line.
20691
20692 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
20695 (grub_machine_init): Don't check amount of low memory as reportedly
20696 INT 12h can be broken and if low memory is too low we wouldn't have
20697 gotten into grub_machine_init anyway.
20698
20699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20700
20701 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
20702 (grub_machine_mmap_iterate): Take low memory into account
20703
20704 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
20707 badfs.
20708 Reported by: TiCPU.
20709
20710 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20711
20712 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
20713 members errors.
20714
20715 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20716
20717 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
20718 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
20719
20720 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
20721
20722 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
20723 openbsd and netbsd types being in part_bsd module.
20724
20725 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20726
20727 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
20728 (_FILE_OFFSET_BITS): Likewise.
20729 Reported by: Seth Goldberg.
20730
20731 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20732
20733 * configure.ac: Check for libdevmapper header.
20734
20735 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20736
20737 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
20738 avoid aliasing.
20739 (fzap_lookup): Likewise.
20740 (dnode_get): Likewise.
20741 (make_mdn): Likewise.
20742 (zfs_mount): Likewise.
20743 (fzap_iterate): Use temporary pointer to avoid aliasing.
20744 (grub_zfs_read): Likewise.
20745 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
20746 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
20747 pointers to avoid aliasing.
20748 (grub_cmd_xnu_kernel64): Likewise.
20749 (grub_xnu_load_driver): Likewise.
20750
20751 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
20754 aliasing warning.
20755 (grub_cmd_terminal_output): Likewise.
20756 Reported and tested by: Grégoire Sutre.
20757
20758 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20759
20760 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
20761 warning.
20762 Reported and tested by: Grégoire Sutre.
20763
20764 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20765
20766 * configure.ac: Do CPU substitution even if it's specified explicitly.
20767 Reported and tested by: Alain Greppin.
20768
20769 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20770
20771 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
20772 Reported and tested by: Alain Greppin.
20773
20774 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20775
20776 Satisfy some bison versions need for inttypes.h.
20777
20778 * grub-core/lib/posix_wrap/inttypes.h: New file.
20779 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20780 (int16_t): Likewise.
20781 (int32_t): Likewise.
20782 (int64_t): Likewise.
20783 Reported and tested by: Alain Greppin.
20784
20785 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20786
20787 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20788 Silence spurious warning.
20789 Reported and tested by: Alain Greppin.
20790
20791 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20792
20793 * docs/grub.texi (Support automatic decompression): Update with xz
20794 decompression support.
20795
20796 2011-01-07 Szymon Janc <szymon@janc.net.pl>
20797
20798 Improve loaders' kernel command line handling.
20799
20800 * grub-core/lib/cmdline.c: New file.
20801 * include/grub/lib/cmdline.h: Likewise.
20802 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20803 grub_create_loader_cmdline to create kernel command line.
20804 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20805 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20806 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20807 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20808 (linux): Add lib/cmdline.c on common.
20809
20810 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20811
20812 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20813 inopos might be unaligned.
20814
20815 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20816
20817 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20818 endian transformations.
20819 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20820 Based on report by: Doug Nazar.
20821
20822 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
20823
20824 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20825 array->members[i].start_sector.
20826 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20827
20828 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20831 Reported and tested by: Grégoire Sutre.
20832
20833 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20834
20835 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20836 avoid causing test failures by clearing the screen.
20837
20838 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
20839
20840 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20841 Fix prefix check to handle the case where dir ends with a slash
20842 (most significantly, "/" itself).
20843 Reported by: Michael Vogt.
20844
20845 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 Run terminfo_cls on initing terminfo output to clear the screen and
20848 move the cursor to (0,0).
20849
20850 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20851 Call grub_terminfo_output_init.
20852 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20853 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20854 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20855
20856 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20859 only when needed.
20860
20861 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20862
20863 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20864 CTRL.
20865
20866 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 The E820 type 5 is BADRAM, not EXEC_CODE.
20869
20870 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20871 (GRUB_E820_BADRAM): New define.
20872 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20873 into reserved. Propagate BADRAM.
20874 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20875 (GRUB_E820_BADRAM): New define.
20876
20877 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20878
20879 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20880 Ignore the memory post-4G.
20881 (grub_relocator_firmware_alloc_region): Additional debug statement.
20882
20883 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20886 names.
20887 Reported by: David Pravec.
20888
20889 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20890
20891 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20892 BIOSes.
20893
20894 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20895
20896 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20897 Prevent overflow.
20898 (grub_reed_solomon_recover): Likewise.
20899
20900 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20903
20904 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20907 variable.
20908
20909 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
20910
20911 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20912 descriptions of extract_legacy_entries_source and
20913 extract_legacy_entries_configfile.
20914 Reported by: Seung Soo, Ha.
20915
20916 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
20917
20918 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20919 on devices that do not implement function 0.
20920
20921 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20922
20923 * grub-core/fs/hfsplus.c: Make parent unsigned.
20924 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20925 overflows.
20926 (grub_hfsplus_cmp_extkey): Likewise
20927
20928 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20929
20930 * util/grub-install.in: Correctly use bootloader_id and not
20931 GRUB_DISTRIBUTOR on efibootmgr line.
20932
20933 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20934
20935 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20936
20937 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
20938
20939 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20940 Xen and reorder menu item wording to make it clearer that this entry
20941 will launch Xen. Print separate messages when loading Xen and
20942 Linux.
20943
20944 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20947 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20948 loop in case of incorrect amiga partmap.
20949
20950 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20951
20952 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20953 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20954 Reported by:EHeM.
20955
20956 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20957
20958 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20959 spurious warning.
20960 Reported by: crocket
20961
20962 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20963
20964 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20965 Preload EFIemu.
20966 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20967
20968 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20969
20970 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20971 is loaded
20972 (grub_cmd_xnu_kextdir): Likewise.
20973 (grub_cmd_xnu_splash): Likewise.
20974
20975 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 Avoid using Reed-Solomon with 0 redundancy.
20978
20979 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20980 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20981 or 0 redundancy.
20982 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20983 (grub_reed_solomon_recover): Likewise.
20984
20985 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 Don't use disk subsystem in freebsd_boot.
20988
20989 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20990 (freebsd_biosdev): Likewise.
20991 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20992 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20993
20994 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 Handling of files of unknown size is currently limited. They can't be
20997 used e.g. for initrd or modules. Moreover gzip handling of not
20998 easily seekable files is buggy. Disable unknown file size for now. May
20999 be inefficient but works.
21000
21001 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21002 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21003
21004 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21005
21006 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21007 floppy probe.
21008
21009 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21010
21011 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21012
21013 2010-12-25 Shea Levy <shlevy>
21014
21015 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21016
21017 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21018
21019 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21020 Windows Server 2008.
21021 Reported by: Devin Giddings.
21022
21023 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21024
21025 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21026 writing an error message because of async power management.
21027 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21028 (grub_reboot): Likewise.
21029
21030 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21031
21032 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21033 keep unit tests from failing when they shouldn't.
21034
21035 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21036
21037 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21038 previous patch increased the size of the RS code by 20 bytes (at
21039 least with gcc-4.4), so increase this by 20 bytes to match.
21040 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21041
21042 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21043
21044 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21045 scratch area. Make sure to initialise chosen in standalone mode as
21046 well as non-standalone.
21047 Reported by: Robert Hooker and Andy Whitcroft.
21048 Tested by: Andy Whitcroft.
21049
21050 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21051
21052 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21053 constructing a new unescaped string and passing it to grub_xputs in
21054 one go, rather than passing characters to grub_printf one at a time.
21055
21056 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21057
21058 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21059 initialising utf16.
21060
21061 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21062
21063 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21064 comment. Add an extra layer of quotation, requiring the output of
21065 this function to be used in a printf format string.
21066 (gettext_printf): New function.
21067 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21068 Extract translatable strings from here-documents and use a temporary
21069 variable instead, so that xgettext can find them.
21070 * util/grub.d/10_kfreebsd.in: Likewise.
21071 * util/grub.d/10_linux.in: Likewise.
21072 * util/grub.d/20_linux_xen.in: Likewise.
21073
21074 * po/grub.d.sed: New file.
21075 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21076 arguments. Set c-format flags on all strings extracted from
21077 util/grub.d/ (xgettext refuses to include these itself for strings
21078 it extracted from a shell file, but these really are c-format).
21079
21080 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21083 Avoid next pointing to nowhere.
21084
21085 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21086
21087 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21088 rather than assuming than rootblock is exactly in the middle.
21089 (grub_affs_label): Likewise.
21090
21091 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21094 reserved_first_sector to 0.
21095 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21096 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21097 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21098
21099 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21100
21101 Fix handling of UTF-16 UDF labels.
21102
21103 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21104 (read_string): .. here.
21105 (grub_udf_label): Use read_string.
21106
21107 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21108
21109 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21110 editor under argument scope.
21111 Reported by: Jordan Uggla
21112
21113 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21114
21115 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21116
21117 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21118
21119 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21120 line, and other keys scroll an entire page (previous handling was
21121 for \r and \n to scroll a page and other keys to scroll two lines).
21122
21123 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21124
21125 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21126 Set ptrdest to correct get_physical_target_address rather than
21127 incorrect get_virtual_current_address.
21128
21129 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21130
21131 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21132 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21133
21134 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21135
21136 * .bzrignore: Ignore grub-core/rs_decoder.S.
21137
21138 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21139
21140 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21141 .mo/.mo.gz opening sequence to ...
21142 (grub_mofile_open_lang): ... here.
21143 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21144 * util/grub.d/00_header.in (grub_lang): Include country part of
21145 locale.
21146 Reported by: Mario Limonciello.
21147
21148 2010-12-09 Robert Millan <rmh@gnu.org>
21149
21150 * NEWS: Document addition of ZFS support.
21151
21152 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21153
21154 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21155 rather than `/ 2', as the latter requires -Wa,--divide which would
21156 require bumping our minimum binutils version.
21157
21158 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21159
21160 * util/grub-script-check.c (main): Print script line number on
21161 error.
21162
21163 2010-12-01 Robert Millan <rmh@gnu.org>
21164
21165 * grub-core/fs/zfs/zfs.c: New file.
21166 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21167 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21168 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21169 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21170
21171 * include/grub/zfs/dmu.h: Likewise.
21172 * include/grub/zfs/dmu_objset.h: Likewise.
21173 * include/grub/zfs/dnode.h: Likewise.
21174 * include/grub/zfs/dsl_dataset.h: Likewise.
21175 * include/grub/zfs/dsl_dir.h: Likewise.
21176 * include/grub/zfs/sa_impl.h: Likewise.
21177 * include/grub/zfs/spa.h: Likewise.
21178 * include/grub/zfs/uberblock_impl.h: Likewise.
21179 * include/grub/zfs/vdev_impl.h: Likewise.
21180 * include/grub/zfs/zap_impl.h: Likewise.
21181 * include/grub/zfs/zap_leaf.h: Likewise.
21182 * include/grub/zfs/zfs.h: Likewise.
21183 * include/grub/zfs/zfs_acl.h: Likewise.
21184 * include/grub/zfs/zfs_znode.h: Likewise.
21185 * include/grub/zfs/zil.h: Likewise.
21186 * include/grub/zfs/zio.h: Likewise.
21187 * include/grub/zfs/zio_checksum.h: Likewise.
21188
21189 * Makefile.util.def: Build ZFS into libgrubmods.
21190 * grub-core/Makefile.core.def: Build zfs.mod.
21191
21192 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21193
21194 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21195 variable.
21196 * grub-core/commands/wildcard.c (match_files): Likewise.
21197
21198 2010-11-30 Robert Millan <rmh@gnu.org>
21199
21200 * grub-core/loader/i386/bsd.c
21201 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21202 whether kernel is loaded using grub_loader_is_loaded(), rather
21203 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21204 certain error conditions.
21205
21206 2010-11-30 Robert Millan <rmh@gnu.org>
21207
21208 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21209 (grub_cmd_echo): Call grub_refresh() after printing a message.
21210
21211 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21212
21213 Avoid using tricks for initialising endian variables.
21214
21215 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21216 Make const.
21217 (GRUB_MOD_INIT): Don't byte-swap.
21218 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21219 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21220 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21221 (grub_swap_bytes32_compile_time): Likewise.
21222 (grub_cpu_to_le32_compile_time): Likewise.
21223 (grub_cpu_to_le16_compile_time): Likewise.
21224
21225 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * util/grub-setup.c (setup): Stop recommending --force. People who
21228 understand the dangers of blocklists are able to find this option
21229 anyway and the ones who don't shouldn't use it anyway.
21230
21231 2010-11-26 Robert Millan <rmh@gnu.org>
21232
21233 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21234 Update all users.
21235
21236 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21237
21238 Fix LVM-on-RAID probing.
21239
21240 * util/grub-probe.c (probe): Remember which disk was detected as
21241 RAID (perhaps an LVM physical volume). Use that disk's raidname
21242 rather than that of the top-level disk.
21243
21244 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21245
21246 Fix cmdline argument quotes for setparams command of menuentry
21247 definitions.
21248
21249 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21250 quotes for arguments.
21251 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21252 grub_strchrsub function instead.
21253
21254 * include/grub/misc.h (grub_strchrsub): New function.
21255
21256 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21259 effort by skipping "." and ".." entries up-front.
21260 Suggested by: Michael Lazarev.
21261
21262 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21265 ldflags to ldadd, to fix link line ordering.
21266 (none_decompress): Likewise.
21267
21268 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21269
21270 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21271 platforms.
21272 (grub-emu-lite): Remove kern/emu/cache.S.
21273
21274 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21275
21276 * util/deviceiter.c (compare_devices): If the by-id link for a
21277 device couldn't be resolved, fall back to sorting by the by-id link
21278 rather than segfaulting.
21279 Reported and tested by: Daniel Mierswa.
21280
21281 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21282
21283 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21284 ldflags, to fix link line ordering.
21285
21286 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21287
21288 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21289 linkers are picky about this.
21290
21291 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21292
21293 * grub-core/Makefile.am (command.lst): Adjust sed expression
21294 ordering so that extended and priority commands aren't treated as
21295 ordinary commands.
21296
21297 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21298
21299 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21300 Remove byte-swapping function calls, which are not valid in
21301 structure initialisers.
21302 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21303 non-const.
21304 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21305 grub_gpt_partition_type_bios_boot.
21306
21307 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21308
21309 Fix test program build on GNU/kFreeBSD.
21310
21311 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21312 $(LIBNVPAIR)' library dependencies.
21313
21314 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21315
21316 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21317
21318 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21319
21320 * util/grub-install.in: Remove excessive quoting that broke
21321 installations to RAID devices.
21322
21323 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21324
21325 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21326 bootloader version instead of 0.
21327
21328 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21329
21330 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21331 warning.
21332
21333 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21334
21335 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21336 retrieve the metadat sector if size isn't known.
21337 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21338
21339 2010-11-18 Robert Millan <rmh@gnu.org>
21340
21341 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21342 with grub_memcmp().
21343
21344 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21345
21346 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21347 arrow.
21348 Reported by: Jordan Uggla.
21349
21350 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21351
21352 Make better UTF compliant.
21353
21354 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21355 sequences as incorrect.
21356 (grub_is_valid_utf8): Likewise.
21357 (grub_utf8_to_ucs4): Likewise.
21358 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21359 (grub_ucs4_to_utf8_alloc): Likewise.
21360 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21361
21362 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 Make legacy_source behave like source.
21365
21366 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21367 grub_show_menu.
21368 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21369
21370 2010-11-16 Colin Watson <cjwatson@debian.org>
21371
21372 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21373 (-Wunused implies -Wunused-parameter, but not vice versa).
21374
21375 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21376
21377 * configure.ac: Make error messages less confusing by testing for
21378 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21379 accepted, but produces a diagnostic if something else is wrong).
21380
21381 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21382
21383 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21384 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21385 (now unused).
21386 (grub_keyboard_controller_init)
21387 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21388 read the initial state since controller isn't inited yet.
21389
21390 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21391
21392 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21393 allocate_regbeg may need to create new chunk header.
21394
21395 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21396
21397 Fix quoting in legacy parser.
21398
21399 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21400 single quotes.
21401 (grub_legacy_parse): Likewise.
21402 Reported by: Jordan Uggla.
21403 Tested by: Jordan Uggla.
21404
21405 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21406
21407 Don't add -lgcc on i386 and x86_64.
21408
21409 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
21410 * conf/Makefile.common (LDADD_KERNEL): Likewise.
21411 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
21412
21413 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * configure.ac: Add -Wno-trampolines when supported.
21416
21417 2010-11-14 Modestas Vainius <modax@debian.org>
21418
21419 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
21420 fakeraid.
21421
21422 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21423
21424 Add generic logical block size support for UDF.
21425
21426 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
21427 (GRUB_UDF_BLKSZ): Removed.
21428 (struct grub_udf_data): New field "lbshift" to hold the logical block
21429 size of the file system in log2 format. All users updated.
21430 (sblocklist): Change type to unsigned.
21431 (grub_udf_mount): Change type of "sblklist" to unsigned.
21432 Move AVDP search before VRS recognition, because the latter requires
21433 knowledge of the logical block size, which is detected during the
21434 former.
21435 Detect and validate logical block size during AVDP search, adding
21436 support for block sizes 512, 1024 and 4096.
21437 Make VRS recognition independent of block size.
21438
21439 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21440
21441 Properly handle deleted files on UDF.
21442
21443 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
21444 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
21445 set.
21446
21447 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
21448
21449 Support reading files larger than 2 GiB.
21450
21451 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
21452 "offset" to grub_off_t.
21453 (grub_udf_read_file): Likewise for parameter "pos".
21454
21455 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21456
21457 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
21458 unavailable.
21459 (Simple configuration): Refer to Changes from GRUB Legacy about
21460 save_env availability.
21461
21462 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 * util/grub-install.in: Ignore empty partition table detection
21465 instead of trying to include part_ module.
21466
21467 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
21470 LVM on RAID support.
21471
21472 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21473
21474 Properly define WORDS_BIGENDIAN in wrapped environments.
21475
21476 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
21477 definition.
21478 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
21479
21480 Reported by: Manoel Rebelo Abranches.
21481 Tested by: Manoel Rebelo Abranches.
21482
21483 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21484
21485 * util/grub-mkconfig.in: Fix quoting.
21486
21487 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21488
21489 Support big ext2 files.
21490
21491 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
21492 (grub_ext2_read_block): Support triple indirect blocks.
21493 (grub_ext2_read_file): Use 64-bit types and read size_high.
21494 (grub_ext2_open): Read size_high.
21495 Reported by: Ximin Luo.
21496 Tested by: Manoel Rebelo Abranches.
21497
21498 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21499
21500 * util/grub-install.in: Handle filenames containing spaces.
21501 Reported by: Jordan Uggla.
21502 Tested by: Jordan Uggla.
21503
21504 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21505
21506 * util/grub-mkconfig.in (grub_script_check): New variable.
21507 Use grub_script_check instead of grub-script-check.
21508 Reported by: Barry Jackson.
21509
21510 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 * docs/grub.texi (menu): Correct the order.
21513 Reported by: D. Hugh Redelmeier.
21514
21515 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
21518 jump.
21519
21520 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21521
21522 * include/grub/elfload.h (grub_elf32_size): New parameter.
21523 All users updated.
21524 Return maximum segments alignment.
21525 (grub_elf64_size): Likewise.
21526 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
21527 Return maximum segments alignment.
21528 (grub_elf64_size): Likewise.
21529 * grub-core/loader/powerpc/ieee1275/linux.c:
21530 (grub_linux_claimmap_iterate): New function. Uses the
21531 "available" property in the "memory" node for memory allocation
21532 for kernel in the PowerPC loader.
21533 (grub_linux_load32): Correctly find linux entry point offset.
21534 (grub_linux_load64): Likewise.
21535
21536 2010-11-07 Robert Millan <rmh@gnu.org>
21537
21538 On mips-yeeloong, build with -march=loongson2f when this flag is
21539 available (GCC >= 4.4).
21540 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
21541 `-march=mips3'.
21542 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
21543 or otherwise add -march=mips3.
21544
21545 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
21546
21547 Suppress shell expansion on echo '*' and echo "*" like cases.
21548 Reported by: Jordan Uggla.
21549
21550 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
21551 string arguments before shell expansion.
21552 * tests/grub_cmd_echo.in: New testcases.
21553
21554 2010-11-07 Robert Millan <rmh@gnu.org>
21555
21556 * conf/mips-qemu-mips.rmk: Remove stale file from previous
21557 transition.
21558
21559 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 * grub-core/kern/emu/hostdisk.c
21562 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
21563
21564 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21565
21566 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
21567 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
21568 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
21569
21570 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
21573
21574 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21575
21576 * util/grub-install.in: Replace useless recomendation to pass
21577 --modules with a recomendation to report a bug.
21578
21579 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
21580
21581 Properly register serial terminfo.
21582 Reported by: Jordan Uggla
21583
21584 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
21585 const.
21586 (grub_serial_terminfo_output_template): Likewise.
21587 (grub_cmd_serial): Register "serial" with terminfo.
21588 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
21589 grub_serial_terminfo_output.
21590
21591 2010-11-05 Robert Millan <rmh@gnu.org>
21592
21593 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
21594 needed).
21595
21596 2010-11-05 Robert Millan <rmh@gnu.org>
21597
21598 On Yeeloong, pass machine type information to Linux.
21599
21600 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
21601 (LOONGSON_MACHTYPE): New macro, set to
21602 "machtype=lemote-yeeloong-2f-8.9inches".
21603 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
21604 additional argument to Linux.
21605
21606 2010-11-04 Robert Millan <rmh@gnu.org>
21607
21608 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
21609 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
21610 (its SATA disks are detected as slaveless IDE master drives on
21611 kFreeBSD).
21612 Reported by Carsten Aulbert.
21613
21614 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
21615
21616 * util/bin2h.c (main): Fix spelling error in generated output.
21617
21618 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
21619
21620 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
21621
21622 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
21625 vga= option is supplied.
21626
21627 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21628
21629 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
21630 * util/grub.d/10_kfreebsd.in: Likewise.
21631 * util/grub.d/10_linux.in: Likewise.
21632 * util/grub.d/20_linux_xen.in: Likewise.
21633
21634 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21635
21636 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
21637 argument as an argument to no-argument option.
21638
21639 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * util/grub.d/10_linux.in: Add missing load_video with explicit
21642 GRUB_GFXPAYLOAD_LINUX.
21643
21644 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21645
21646 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
21647
21648 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21649
21650 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
21651 elements with invlid index.
21652 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21653 * grub-core/disk/raid.c (insert_array): Automatically reallocate
21654 members.
21655 * include/grub/raid.h (grub_raid_member): New struct.
21656 (grub_raid_array): Transform devices and start_sector into usage of
21657 grub_raid_member. All users updated
21658 (allocated_devs): New member.
21659
21660 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21661
21662 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
21663 is modified
21664
21665 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
21666
21667 NetBSD build fix for getline function conflict from gnulib.
21668
21669 * Makefile.util.def (libgrubkern.a): New library for grub kernel
21670 components that depend on gnulib headers.
21671 (libgrubmods.a): Renamed from earlier libgrub.a.
21672 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
21673
21674 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21675
21676 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
21677 install rather than creating a broken install.
21678
21679 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21680
21681 * util/grub-setup.c (argp): Remove misleading example of installing to
21682 a partition.
21683
21684 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * util/grub-setup.c (setup): Clarify the error message.
21687
21688 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
21691
21692 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21693
21694 * grub-core/kern/emu/misc.c
21695 (grub_make_system_path_relative_to_its_root)
21696 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
21697
21698 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
21699
21700 * grub-core/kern/emu/misc.c
21701 (grub_make_system_path_relative_to_its_root): Revert r2882.
21702
21703 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
21706 useless field head. All users updated.
21707 (free_subchunk): Correct handling of IN_REGION subchunk.
21708
21709 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
21710
21711 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
21712 (Supported kernels): Likewise.
21713
21714 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21715
21716 Make mktemp invocations portable.
21717
21718 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
21719 exit if mktemp fails.
21720 * tests/grub_script_blockarg.in: Likewise.
21721 * tests/partmap_test.in: Likewise.
21722 * tests/util/grub-shell-tester.in: Likewise.
21723 * tests/util/grub-shell.in: Likewise.
21724 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21725 * Makefile.am: Likewise, and chain shell commands with `&&'
21726 instead of ';'.
21727 * util/grub-mkrescue.in: Use the same explicit template as above, and
21728 exit if mktemp fails.
21729
21730 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
21731
21732 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
21733 Linux kernel, reported by Dennis Schridde.
21734
21735 2010-10-17 Szymon Janc <szymon@janc.net.pl>
21736
21737 * grub-core/normal/auth.c (grub_auth_check_authentication):
21738 Set-but-not-used variable removed.
21739
21740 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21741
21742 * docs/grub.texi (GNU/Linux): Document APM unavailability with
21743 32-bit linux protocol.
21744
21745 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
21748 cursor shape for sanity.
21749
21750 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21751
21752 * docs/grub.texi (Installation): Document buggy BIOS install.
21753
21754 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 * docs/grub.texi (Installation): Indent.
21757
21758 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 * util/grub-setup.c (setup): New parameter allow_floppy.
21761 (arguments): New member allow_floppy.
21762 (argp_parser): Handle --allow-floppy.
21763 (main): Pass allow_floppy.
21764 * util/grub-install.in: New option --allow-floppy passed though to
21765 grub-setup.
21766
21767 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21768
21769 * util/grub-install.in: Handle partitionless disks.
21770
21771 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
21772
21773 * util/grub-setup.c (setup): Don't clean blocklists before readability
21774 verfification.
21775
21776 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21777
21778 * docs/grub.texi (Installation): Document embedding zone. Remove
21779 obsolete grub-install example.
21780
21781 2010-10-16 Szymon Janc <szymon@janc.net.pl>
21782
21783 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21784 Set-but-not-used variable ifdef'ed.
21785 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21786 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21787 variable removed.
21788 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21789 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21790 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21791 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21792 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21793 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21794 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21795 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21796 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21797 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21798 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21799 Likewise.
21800
21801 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21802
21803 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21804 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21805 enum value.
21806
21807 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21808
21809 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21810 synonym to _S5_. Needed for some DSDTs.
21811
21812 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21813
21814 Userspace ACPI parser debugging.
21815
21816 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21817 headers and add relevant defines. Don't include standard headers.
21818 (main) [GRUB_DSDT_TEST]: New function.
21819 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21820 Don't declare functions.
21821
21822 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21823
21824 Remove dead grub_efi_mm_fini.
21825
21826 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21827 (ALLOCATED_PAGES_SIZE): Likewise.
21828 (MAX_ALLOCATED_PAGES): Likewise.
21829 (allocated_pages): Likewise.
21830 (grub_efi_allocate_pages): Don't record allocated pages.
21831 (grub_efi_free_pages): Likewise.
21832 (grub_efi_mm_init): Likewise.
21833 (grub_efi_mm_fini): Removed.
21834
21835 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21836
21837 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21838 (grub_efi_mm_init): Take into account the memory map size increase.
21839
21840 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21841
21842 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21843 (serial_hw_put): Wait based on real time rather than port reads. Don't
21844 roken ports.
21845 * include/grub/serial.h (grub_serial_port): New field broken.
21846
21847 2010-10-16 Robert Millan <rmh@gnu.org>
21848
21849 * grub-core/kern/emu/misc.c
21850 (grub_make_system_path_relative_to_its_root): Fix premature return
21851 when processing non-root ZFS filesystems.
21852 Reported by Sergio Talens-Oliag.
21853
21854 2010-10-15 Robert Millan <rmh@gnu.org>
21855
21856 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21857 guarantee compressed ones are processed first.
21858
21859 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21860
21861 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21862 grub_efiemu_autocore.
21863
21864 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21865
21866 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21867 rather than 0x1b.
21868 (grub_console_getkey): Use correct jae opcode rather than ja.
21869
21870 2010-10-12 Robert Millan <rmh@gnu.org>
21871
21872 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21873 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21874 variable. All references updated.
21875
21876 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21877
21878 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21879
21880 Correctly distinguish mdraid flavours.
21881
21882 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21883 (insert_array): New argument raid.
21884 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21885 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21886 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21887
21888 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21889
21890 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21891 handling of special keys.
21892
21893 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21894
21895 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21896 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
21897
21898 2010-10-02 Aleš Nesrsta <starous@volny.cz>
21899
21900 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21901 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21902 users updated.
21903 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
21904 Use right endpoint when querying descriptor.
21905
21906 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21907
21908 Clear out 0x80 color bit on EFI.
21909 Tested by: decoder
21910 Reported by: decoder and meta tech.
21911
21912 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21913 (grub_console_setcolorstate): Clear out 0x80 bit.
21914 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21915 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21916 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21917
21918 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21919
21920 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21921 Set to "auto".
21922
21923 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21924
21925 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21926 mo_file after freeing.
21927
21928 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21929
21930 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21931
21932 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21933
21934 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21935 flags.
21936
21937 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21938
21939 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21940 usage.
21941
21942 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21943
21944 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21945
21946 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21947 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21948 and terminfo.h when needed.
21949 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21950 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21951 (terminfo): Enable only on terminfokernel.
21952 (extcmd): Likewise.
21953 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21954 * include/grub/lib/arg.h: Likewise.
21955 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21956 incorrect usage of ->.
21957
21958 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21959
21960 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21961 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21962
21963 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21964
21965 Fix coreboot compilation.
21966
21967 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21968 Take VBE info into account even if only text is supported.
21969 (fill_vbe_info): Take into account the case when only VGA text
21970 is supported.
21971 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21972 on coreboot, multiboot and qemu.
21973
21974 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21977 debug messages.
21978 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21979
21980 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21981
21982 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21983 parameters.
21984
21985 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21988 if they were BSD-style.
21989
21990 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21991
21992 * grub-core/boot/i386/pc/lnxboot.S: Replace
21993 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21994 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21995
21996 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 Write embedding zone using Reed-Solomon.
21999
22000 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22001 * grub-core/Makefile.am (rs_decoder.S): New target.
22002 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22003 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22004 (multiboot): Move to RS part.
22005 (post_reed_solomon): New label.
22006 (grub_boot_drive): Move to non-RS part since it's modified in memory
22007 on boot.
22008 Include rs_decoder.S.
22009 * grub-core/lib/reed_solomon.c: New file.
22010 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22011 New definition.
22012 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22013 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22014 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22015 * include/grub/partition.h (grub_partition_map): Change prototype of
22016 embed to allow returning additional sectors.
22017 * include/grub/reed_solomon.h: New file.
22018 * util/grub-setup.c (setup): Handle Reed-Solomon.
22019
22020 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22021
22022 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22023 i386 and x86-64 definedness tests.
22024
22025 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22026
22027 Fix generation of kernel_syms.lst
22028
22029 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22030 ASM_PREFIX
22031
22032 2010-09-26 Robert Millan <rmh@gnu.org>
22033
22034 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22035
22036 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22037 the pool is an array of devices, iterate through it and return the
22038 first device that passes a stat() test (instead of blindly returning
22039 the first one).
22040
22041 2010-09-26 Robert Millan <rmh@gnu.org>
22042
22043 Build fixes for GNU/kFreeBSD.
22044
22045 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22046 to programs that require ZFS conversion.
22047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22048 kernels that don't have FLOPPY_MAJOR.
22049
22050 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22051
22052 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22053
22054 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22055
22056 Fix grub-emu build.
22057
22058 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22059 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22060 mdraid09 and mdraid1x.
22061
22062 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22063
22064 Re-enable grub-extras.
22065
22066 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22067 avoid confusing Automake. Run autogen only twice, once for the top
22068 level and once for grub-core. Add Makefile.util.def and
22069 Makefile.core.def from extra modules to the appropriate autogen
22070 invocations. If Makefile.common exists in an extra module, include
22071 it in both Makefile.util.am and grub-core/Makefile.core.am;
22072 similarly, include any Makefile.util.common file in Makefile.util.am
22073 and any Makefile.core.common file in grub-core/Makefile.core.am.
22074 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22075 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22076 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22077 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22078
22079 * gentpl.py (gvar_add): Turn GVARS into a set.
22080 (global_variable_initializers): Sort global variables on output.
22081 (vars_init): New function.
22082 (first_time): Likewise.
22083 (library): Ensure that non-global variable initialisations are
22084 emitted before the first time we emit code for a library block.
22085 Append to variables rather than setting them. Only emit
22086 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22087 each conditional path.
22088 (program): installdir() emits an Autogen macro, so must be passed to
22089 var_add rather than gvar_add.
22090 (data): Likewise.
22091 (script): Likewise.
22092 (rules): New function, centralising handling for different target
22093 types. Set up Guile association lists for first_time and vars_init,
22094 and send most output to a diversion so that variable initialisations
22095 can be emitted first.
22096 (module_rules): Use new rules function.
22097 (kernel_rules): Likewise.
22098 (image_rules): Likewise.
22099 (library_rules): Likewise.
22100 (program_rules): Likewise.
22101 (script_rules): Likewise.
22102 (data_rules): Likewise.
22103
22104 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22105
22106 * .bzrignore: Add contrib and grub-core/contrib. Remove
22107 grub-core/Makefile.gcry.am.
22108
22109 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22110
22111 * grub-core/lib/LzFind.c: Add missing include.
22112 * grub-core/lib/LzmaEnc.c: Likewise.
22113 * grub-core/script/lexer.c: Likewise.
22114 * grub-core/script/yylex.l: Likewise.
22115 * util/grub-macho2img.c: Likewise.
22116 * util/grub-menulst2cfg.c: Likewise.
22117 * util/grub-mklayout.c: Likewise.
22118 * util/grub-mkpasswd-pbkdf2.c
22119 * util/grub-mkrelpath.c: Likewise.
22120 * util/resolve.c: Likewise.
22121
22122 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22123
22124 * Makefile.util.def (example_unit_test): Add
22125 grub-core/gnulib/libgnu.a.
22126
22127 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22128
22129 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22130
22131 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22132
22133 Support xz compression on yeeloong.
22134
22135 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22136 * configure.ac: Check for LZMA.
22137 * grub-core/Makefile.core.def (xz_decompress): New target.
22138 (none_decompress): Likewise.
22139 * grub-core/boot/decompressor/minilib.c: New file.
22140 * grub-core/boot/decompressor/none.c: Likewise.
22141 * grub-core/boot/decompressor/xz.c: Likewise.
22142 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22143 * grub-core/kern/mips/cache_flush.S: Likewise.
22144 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22145 * grub-core/kern/mips/startup.S: Move first stage to ...
22146 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22147 nomacro.
22148 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22149 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22150 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22151 Allocate statically.
22152 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22153 Allocate statically or use scratch. Don't check CRC32.
22154 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22155 Allocate statically. Don't check CRC32.
22156 * include/grub/decompressor.h: New file.
22157 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22158 Removed.
22159 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22160 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22161 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22162 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22163 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22164 * util/grub-mkimage.c (grub_compression_t): New type.
22165 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22166 (image_target_desc): New field default_compression.
22167 (image_targets): Adjust yeeloong targets.
22168 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22169 (compress_kernel): New parameter comp.
22170 (generate_image): Likewise. Handle new compression case.
22171 (options): New option --compression
22172 (help): Likewise.
22173 (main): Handle new option.
22174
22175 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22176
22177 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22178
22179 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22180
22181 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22182 typo in __i386__ conditional.
22183
22184 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22185
22186 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22187 include.
22188
22189 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 Implement EFI and ACPI multiboot2 extensions.
22192
22193 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22194 new tags as supported.
22195 (acpiv2_size): New function.
22196 (grub_multiboot_get_mbi_size): Take new tags into account.
22197 (grub_multiboot_make_mbi): Add new tags.
22198 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22199
22200 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22201
22202 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22203 Added missing configuration of USB device.
22204
22205 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22206
22207 * grub-core/normal/menu_entry.c (run): Make sure we always return
22208 a value.
22209
22210 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22211
22212 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22213 NumberOfPages is UINT64 according to the UEFI specification, not
22214 UINTN. Fix printf format.
22215
22216 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22217
22218 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22219 `err' to grub_usb_err_t.
22220 Reported and tested by: KESHAV P.R.
22221
22222 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22223
22224 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22225 tpart non-const, so that we can assign to it. (Since this is a
22226 typedef, the constness refers to the pointer rather than what it
22227 points to.)
22228
22229 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22230
22231 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22232 $(top_srcdir)/grub-core/gnulib as well as
22233 $(top_builddir)/grub-core/gnulib.
22234 Reported by: KESHAV P.R.
22235
22236 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22237
22238 * util/grub-install.in: Fix the bootloader ID option to be
22239 consistently --bootloader-id, not --bootloader_id.
22240 Reported by: KESHAV P.R.
22241
22242 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22243
22244 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22245 check hash checksum." consistently translatable.
22246
22247 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22248
22249 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22250 $(top_builddir).
22251
22252 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22253
22254 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22255 (GRUB_MOD_INIT): Register sha1sum command.
22256 (GRUB_MOD_FINI): Unregister sha1sum command.
22257
22258 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22259
22260 Keep boot and grub directory names in sync with utils scripts
22261
22262 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22263 * config.h.in: Add previous macros.
22264 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22265 * util/grub-install.in: Use $bootdir and $grubdir variables.
22266
22267 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22268
22269 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22270 convert partition names to disk names if the new `convert' parameter
22271 is set.
22272 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22273 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22274 disk in its own right. This can happen with Xen disk images.
22275
22276 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22277
22278 * util/grub-editenv.c: Update strings to avoid warnings when generating
22279 grub.pot file.
22280 * util/grub-setup.c: Likewise.
22281
22282 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * configure.ac: Change version to 1.99~beta0.
22285
22286 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22289 Add BADRAM.
22290 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22291 Likewise.
22292 * include/multiboot.h: Resynced with specification.
22293 * include/multiboot2.h: Likewise.
22294
22295 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22296
22297 Fix po directory handling.
22298
22299 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22300 * grub-core/gnulib/Makefile.am: Import gettext module.
22301 * m4/gnulib-cache.m4: Likewise.
22302 * m4/gnulib-comp.m4: Likewise.
22303 * m4/gettext.m4: New file, from gnulib.
22304 * m4/glibc2.m4: Likewise.
22305 * m4/iconv.m4: Likewise.
22306 * m4/intdiv0.m4: Likewise.
22307 * m4/intl.m4: Likewise.
22308 * m4/intldir.m4: Likewise.
22309 * m4/intlmacosx.m4: Likewise.
22310 * m4/intmax.m4: Likewise.
22311 * m4/inttypes-pri.m4: Likewise.
22312 * m4/lcmessage.m4: Likewise.
22313 * m4/lib-ld.m4: Likewise.
22314 * m4/lib-link.m4: Likewise.
22315 * m4/lib-prefix.m4: Likewise.
22316 * m4/lock.m4: Likewise.
22317 * m4/nls.m4: Likewise.
22318 * m4/po.m4: Likewise.
22319 * m4/printf-posix.m4: Likewise.
22320 * m4/progtest.m4: Likewise.
22321 * m4/threadlib.m4: Likewise.
22322 * m4/uintmax_t.m4: Likewise.
22323 * m4/visibility.m4: Likewise.
22324 * po/Makefile.am: Remove.
22325 * po/Makefile.in.in: New file, from gettext.
22326 ($(DOMAIN).pot-update): Support POTFILES-shell.
22327 * po/Makevars: New file.
22328 * po/POTFILES-shell: Rename to ...
22329 * po/POTFILES-shell.in: ... this. Update.
22330 * po/POTFILES: Rename to ...
22331 * po/POTFILES.in: ... this. Update.
22332 * po/Rules-quot: New file, from gettext.
22333 * po/boldquot.sed: Likewise.
22334 * po/en@boldquot.header: Likewise.
22335 * po/en@quot.header: Likewise.
22336 * po/insert-header.sin: Likewise.
22337 * po/quot.sed: Likewise.
22338 * po/remove-potcdate.sin: Likewise.
22339
22340 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22343
22344 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * util/grub.d/20_linux_xen.in: Use submenus.
22347
22348 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 Support submenus.
22351
22352 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22353 parameter submenu. All users updated.
22354 * grub-core/normal/main.c (free_menu): Rename to ...
22355 (grub_normal_free_menu): ... this. Made global.
22356 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22357 if requested.
22358 * grub-core/normal/menu_entry.c (screen): New field submenu.
22359 (make_screen): Set submenu.
22360 (run): Open new context if requested.
22361 * include/grub/menu.h (grub_menu_entry): New field submenu.
22362 * include/grub/normal.h (grub_normal_free_menu): New proto.
22363
22364 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22365
22366 Menu entries extractor.
22367
22368 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22369 variants.
22370 (GRUB_MOD_INIT): Register new variants.
22371 (GRUB_MOD_FINI): Unregister new variants.
22372 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22373 into grub_cmd_legacy_source.
22374 (grub_cmd_legacy_source): Implement extractor variants.
22375 (GRUB_MOD_INIT): Register new variants.
22376 (GRUB_MOD_FINI): Unregister new variants.
22377 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22378 as an extractor.
22379 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22380 search as an extractor.
22381 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22382 test as an extractor.
22383 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22384 as an extractor.
22385 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22386 (grub_env_new_context): New function.
22387 (grub_env_context_open): Likewise.
22388 (grub_env_extractor_open): Likewise.
22389 (grub_env_extractor_close): Likewise.
22390 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22391 grub_extractor_level.
22392 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22393 * include/grub/env.h (grub_env_extractor_open): New proto.
22394 (grub_env_extractor_close): Likewise.
22395 * include/grub/normal.h (grub_extractor_level): New external variable.
22396
22397 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 Make cutmem accept a region specification.
22400 Suggested by: Samuel Thibault
22401
22402 * grub-core/mmap/mmap.c (parsemem): New function.
22403 (grub_cmd_cutmem): Handle new arguments.
22404
22405 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22406
22407 New command cutmem.
22408
22409 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
22410 (GRUB_MOD_INIT): Register new command.
22411 (GRUB_MOD_FINI): Unregister new command.
22412
22413 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22414
22415 Support some annoying BSD and Minix subpartitions.
22416
22417 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
22418 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
22419 Properly handle concatenation.
22420 * grub-core/kern/device.c (grub_device_iterate): Likewise.
22421 * grub-core/normal/completion.c (iterate_partition): Likewise.
22422 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
22423 contain partition. All users updated.
22424 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
22425 struct.
22426 (grub_openbsdlabel_partition_map): Likewise.
22427 (bsdlabel_partition_map_iterate): Rename to ..
22428 (iterate_real): ... this. New arguments sector, freebsd and pmap.
22429 (bsdlabel_partition_map_iterate): New function.
22430 (netopenbsdlabel_partition_map_iterate): Likewise.
22431 (netbsdlabel_partition_map_iterate): Likewise.
22432 (openbsdlabel_partition_map_iterate): Likewise.
22433 (GRUB_MOD_INIT): Register new partmaps.
22434 (GRUB_MOD_FINI): Unregister new partmaps.
22435 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
22436 (grub_partition_msdos_iterate): ... this. All users updated.
22437 Don't support embedding other than in a minix partition.
22438 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
22439 proto.
22440 * include/grub/partition.h (grub_partition): New field msdostype.
22441 * util/grub-install.in: Handle openbsd and netbsd types being in
22442 part_bsd module.
22443
22444 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
22447
22448 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
22449 * grub-core/Makefile.core.def (mdraid): Renamed to ...
22450 (mdraid09): ... this.
22451 (mdraid1x): New module.
22452 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
22453 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
22454
22455 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
22458 vsprintf.
22459
22460 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22461
22462 * grub-core/commands/efi/lsefimmap.c: Correct header.
22463 * NEWS: Update.
22464
22465 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22466
22467 * util/grub-editenv.c (argp_parser): Don't pass translated strings
22468 as printf format strings; the translations might contain '%' which
22469 could cause a crash.
22470 (main): Likewise.
22471 * util/grub-fstest.c (argp_parser): Likewise.
22472 * util/grub-setup.c (argp_parser): Likewise.
22473 (main): Likewise.
22474
22475 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 Use argp in grub-fstest.
22478
22479 * util/grub-fstest.c: Don't include getopt.h.
22480 Include argp.h.
22481 (root): New variable.
22482 (args_count): Likewise.
22483 (nparm): Likewise.
22484 (num_disks): Likewise.
22485 (images): Likewise.
22486 (cmd): Likewise.
22487 (debug_str): Likewise.
22488 (args): Likewise.
22489 (options): Transformed to argp.
22490 (usage): Removed.
22491 (main): Split argument parsing into ...
22492 (argp_parser): ... this. Changed to argp format.
22493 (argp): New variable.
22494 (main): Use argp_parse.
22495
22496 2010-09-20 Tristan Gingold <gingold@free.fr>
22497 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
22498 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22499
22500 * grub-core/commands/efi/lsefimmap.c: New file.
22501 * grub-core/Makefile.core.def (lsefimmap): New module.
22502 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
22503
22504 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22505
22506 Pause the execution (10s max) if any errors are displayed so the user
22507 has a chance to see them.
22508
22509 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
22510 (grub_print_error): Increment grub_err_printed_errors.
22511 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
22512 execution if any errors were displayed.
22513 (show_menu): Remove old code for pause.
22514 * grub-core/normal/menu_entry.c (run): Likewise.
22515 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
22516 users updated.
22517 (grub_normal_get_char_counter): Likewise.
22518 * include/grub/err.h (grub_err_printed_errors): New external variable.
22519 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
22520
22521 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22522
22523 Support multiboot VBE info.
22524
22525 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22526 Take VBE info into account.
22527 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
22528 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22529 Call fill_vbe_info when appropriate.
22530 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
22531 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
22532 as supported.
22533 (grub_multiboot_get_mbi_size): Take new tags into account.
22534 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
22535 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
22536 Call fill_vbe_tag when appropriate.
22537 (grub_multiboot_make_mbi): Properly align tags.
22538 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
22539 function.
22540 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
22541 proto.
22542 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
22543
22544 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22545
22546 Suport manual terminal geometry specification.
22547
22548 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
22549 Save state in grub_ofconsole_terminfo_output.
22550 (grub_ofconsole_term): Use grub_terminfo_getwh.
22551 (grub_ofconsole_getwh): Removed.
22552 * grub-core/term/serial.c (grub_serial_getwh): Removed.
22553 (grub_serial_term): Use grub_terminfo_getwh.
22554 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
22555 (options): New struct.
22556 (OPTION_*): New enum.
22557 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
22558 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
22559 width and height.
22560 (grub_terminfo_getwh): New proto.
22561 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
22562
22563 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 Handle legacy "terminal" command.
22566
22567 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
22568 and FLAG_TERMINAL.
22569 (legacy_commands): Add terminal and title.
22570 (grub_legacy_parse): Handle terminal. Simplify title handling.
22571
22572 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
22575 parameters overflow.
22576
22577 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22578
22579 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
22580 widthspec.h.
22581
22582 * docs/grub.texi (Shell-like scripting): Document `!'.
22583 (Network): Simplify using new i386-pc-pxe format. Mention
22584 grub-mknetdir.
22585
22586 * NEWS: Update.
22587
22588 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22589
22590 * Makefile.am (SUBDIRS): Restore "."; it's important to force
22591 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
22592 when needed.
22593
22594 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22595
22596 * grub-core/commands/efi/lsefisystab.c: Correct header.
22597 * grub-core/commands/efi/lssal.c: Likewise.
22598 * grub-core/commands/testload.c: Likewise.
22599
22600 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22601
22602 * util/grub-mkrescue.in: Add explicit root argument to --set to
22603 prevent the UUID being interpreted as an argument to --set (matches
22604 previous change to prepare_grub_to_access_device).
22605
22606 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
22607
22608 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
22609 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
22610 the verbosity of later #ifs.
22611 (find_partition_start): Define this function on FreeBSD too.
22612 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
22613 function.
22614 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
22615 on FreeBSD.
22616
22617 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22618
22619 * util/grub-editenv.c: Use argp instead of getopt.
22620
22621 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22622
22623 * util/grub-setup.c: Use argp instead of getopt.
22624
22625 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22626
22627 Use gnulib-tool to create gnulib source files.
22628
22629 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
22630 grub-core/gnulib directories
22631 * .bzignore: Add **/.deps and autogenerated gnulib files
22632 * configure.ac: Assign auxiliary directory to build-aux, add invocation
22633 of gnulib macros, add grub-core/gnulib/Makefile
22634 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
22635 include m4 directory to aclocal.
22636 * Makefile.util.def: Remove direct compilation of gnulib source files
22637 and use the new grub-core/gnulib/libgnu.a.
22638 * build-aux/config.rpath: move config.rpath from top directory to
22639 build-aux
22640 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
22641 in gnulib headers
22642 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
22643 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
22644 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
22645 header.
22646 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
22647 string.
22648
22649 2010-09-20 Yves Blusseau <blusseau@zetam.org>
22650
22651 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
22652 grub-core/genmod.sh and grub-core/gensyminfo.sh
22653
22654 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
22655
22656 Add a test for echo command options.
22657
22658 * tests/grub_cmd_echo.in: New test.
22659 * Makefile.util.def: Rules for new test.
22660
22661 2010-09-20 Szymon Janc <szymon@janc.net.pl>
22662
22663 Remove crc.mod and move crc command to hashsum.mod.
22664 Remove lib/crc.c - users updated to use gcrypt implementation.
22665
22666 * grub-core/commands/crc.c: Removed.
22667 * grub-core/Makefile.core.def (crc): Module removed.
22668 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
22669 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
22670 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
22671 * grub-core/lib/crc.c: Removed.
22672 * include/grub/lib/crc.h: Removed.
22673 * Makefile.util.def (crc): Remove lib/crc.c
22674 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
22675 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
22676 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
22677 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
22678 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
22679 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
22680
22681 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
22684
22685 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 Split config.h for util and core.
22688
22689 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
22690 (ADDR32): Likewise.
22691 (DATA32): Likewise.
22692 (BSS_START_SYMBOL): Likewise.
22693 (END_SYMBOL): Likewise.
22694 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
22695 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
22696 * config.h.in: New file.
22697 * configure.ac: Use config-util.h as config define file.
22698 Rename MACHINE into GRUB_MACHINE. All users updated.
22699 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
22700 updated.
22701 (NESTED_FUNC_ATTR): Likewise.
22702 Substitue new variables.
22703 (COND_HAVE_ASM_USCORE): New conditional.
22704 * grub-core/Makefile.am (ASM_PREFIX): New variable.
22705 (kernel_syms.lst): Use ASM_PREFIX.
22706 * grub-core/kern/emu/console.c: Include config-util.h.
22707 * grub-core/kern/emu/misc.c: Likewise.
22708 * grub-core/kern/emu/mm.c: Likewise.
22709 * include/grub/emu/misc.h: Likewise.
22710 * include/grub/libgcc.h: Likewise.
22711
22712 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22713
22714 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
22715 constants usage.
22716 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
22717 Fix GRUB_TERM_KEY_* constants usage.
22718 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
22719
22720 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22721
22722 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
22723 print pointer.
22724 * grub-core/bus/usb/uhci.c: Remove empty define.
22725 (grub_uhci_check_transfer): Add missing cast.
22726 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
22727 print pointer.
22728 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
22729 PRIuGRUB_SIZE.
22730 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
22731
22732 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22733
22734 * grub-core/Makefile.core.def (legacycfg): Add
22735 lib/i386/pc/vesa_modes_table.c on emu.
22736
22737 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22738
22739 Reduce number of temporary files generated by build system.
22740
22741 * grub-core/gencmdlist.sh: Removed.
22742 * grub-core/genfslist.sh: Removed.
22743 * grub-core/genhandlerlist.sh: Removed.
22744 * grub-core/genmodsrc.sh: Removed.
22745 * grub-core/genpartmaplist.sh: Removed.
22746 * grub-core/genparttoollist.sh: Removed.
22747 * grub-core/gentermiinallist.sh: Removed.
22748 * grub-core/genvideolist.sh: Removed.
22749
22750 * grub-core/genmod.sh.in: New file.
22751 * grub-core/gensyminfo.sh.in: New file.
22752
22753 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
22754 * conf/Makefile.extra-dist: Update with new files.
22755 * gentpl.py: Remove rules related to unnecessary temporary files.
22756 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
22757 and und-* files.
22758 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
22759 genmod.sh scripts.
22760 * grub-core/bus/usb/uhci.c: Remove empty #define.
22761 * grub-core/genmoddep.awk: Updated with new syminfo format.
22762 * util/bash-completion.d/Makefile.am: Add config.log to
22763 CLEANFILES.
22764
22765 2010-09-19 Yves Blusseau <blusseau@zetam.org>
22766
22767 * Makefile.util.def: Add forgotten $(LIBINTL) library.
22768
22769 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
22770
22771 * util/grub-mkconfig.in: Check the config script for syntax errors
22772 before saving.
22773
22774 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
22775 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22776
22777 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22778 platforms.
22779 * util/grub-install.in: Add EFI and IEEE1275 support.
22780 * util/i386/efi/grub-install.in: Removed.
22781 * util/ieee1275/grub-install.in: Likewise.
22782
22783 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22784
22785 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22786 (grub_cmd_cmosclean): Likewise.
22787 (GRUB_MOD_INIT): Register command cmosclean.
22788 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22789 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22790
22791 2010-09-18 Carles Pina i Estany <carles@pina.cat>
22792 2010-09-18 Aleš Nesrsta <starous@volny.cz>
22793 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22794
22795 Add keyboard layouts support.
22796
22797 * Makefile.util.def (grub-mklayout): New file.
22798 (grub-kbdcomp): New script.
22799 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22800 Add keyboard_layouts.h.
22801 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22802 commands/boot.c on yeeloong.
22803 (keylayouts): New module.
22804 * grub-core/bus/usb/ohci.c
22805 * grub-core/bus/usb/uhci.c
22806 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22807 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22808 (attach_root_port): Likewise.
22809 (poll_nonroot_hub): Likewise.
22810 (grub_usb_poll_devices): Likewise.
22811 (detach_device): Close transfer.
22812 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22813 function.
22814 (grub_usb_bulk_setup_readwrite): Likewise.
22815 (grub_usb_bulk_finish_readwrite): Likewise.
22816 * grub-core/commands/keylayouts.c: New file.
22817 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22818 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22819 aliases.
22820 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22821 support scancode 2.
22822 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22823 * include/grub/keyboard_layouts.h: New file.
22824 * util/grub-mklayout.c: New file.
22825 * util/grub-kbdcomp.in: Likewise.
22826
22827 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22828
22829 Unify memory types.
22830
22831 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22832 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22833 types.
22834 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22835 (grub_upper_mem): Likewise.
22836 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22837 * include/grub/memory.h (grub_memory_type_t): New enum.
22838 All users updated.
22839
22840 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22841
22842 * grub-core/Makefile.core.def (lsapm): New module.
22843 * grub-core/commands/i386/pc/lsapm.c: New file.
22844 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22845 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22846 Likewise.
22847 * include/grub/i386/pc/apm.h: New file.
22848 * include/multiboot.h (multiboot_apm_info): New struct.
22849
22850 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22851
22852 GRUB-legacy configuration file support.
22853
22854 * Makefile.util.def (grub-menulst2cfg): New util.
22855 * docs/man/grub-menulst2cfg.h2m: New file.
22856 * grub-core/Makefile.core.def (legacycfg): New module.
22857 * grub-core/commands/legacycfg.c: New file.
22858 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22859 (grub_normal_add_menu_entry): ... this.
22860 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22861 (grub_normal_set_password): ...this.
22862 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22863 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22864 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22865 * grub-core/lib/legacy_parse.c: New file.
22866 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22867 * include/grub/i386/pc/vesa_modes_table.h: New file.
22868 * include/grub/legacy_parse.h: Likewise.
22869 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22870 * util/grub-menulst2cfg.c: New file.
22871
22872 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22873
22874 * grub-core/kern/emu/hostdisk.c
22875 (convert_system_partition_to_system_disk): Initialise node.
22876
22877 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22878
22879 * grub-core/kern/emu/hostdisk.c
22880 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22881 leak.
22882 Reported and based on patch by: Modestas Vainius.
22883
22884 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
22885
22886 Fix DM-RAID probing with recent versions of device-mapper udev
22887 rules.
22888
22889 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22890 canonicalise device paths under /dev/mapper/.
22891 (convert_system_partition_to_system_disk): Compare the
22892 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22893 path, since device nodes under /dev/mapper/ are often symlinks.
22894
22895 2010-09-17 Yves Blusseau <blusseau@zetam.org>
22896
22897 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22898
22899 2010-09-16 Yves Blusseau <blusseau@zetam.org>
22900
22901 * configure.ac: Avoid some annoying error messages if freetype-config
22902 program is not found.
22903
22904 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22905
22906 Support RAID on virtio devices, and others.
22907
22908 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22909 Rename to ...
22910 [__MINGW32__] (grub_find_device): ... this.
22911 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22912 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22913 reasonable default if dir is NULL.
22914 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22915 ...
22916 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22917 (grub_guess_root_device): Update callers.
22918 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22919
22920 * util/raid.c (grub_util_getdiskname): Remove.
22921 (grub_util_raid_getmembers): Use grub_find_device rather than
22922 grub_util_getdiskname.
22923
22924 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22925
22926 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22927 needing to be compiled with serial support.
22928 (ls): Indicate that multiple files are accepted.
22929 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22930 indicate that multiple files are accepted.
22931
22932 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
22933
22934 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22935 libgrub_a_init.c, and util/bash-completion.d/grub.
22936
22937 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22938
22939 * util/grub-setup.c (setup): Fix incorrect container semantics.
22940
22941 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22942
22943 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22944 misusage.
22945 Reported by: J. Nick Terry
22946
22947 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22948
22949 Move embedding routines to partmap sources files.
22950
22951 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22952 [GRUB_UTIL]: New variable.
22953 (gpt_partition_map_iterate): Set part.parent.
22954 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22955 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22956 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22957 New function.
22958 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22959 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22960 (grub_partition_map) [GRUB_UTIL]: New field embed.
22961 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22962 (setup): Use ->embed.
22963
22964 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22965
22966 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22967 function.
22968 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22969 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22970
22971 2010-09-15 Yves Blusseau <blusseau@zetam.org>
22972
22973 Add function to get completions from usage.
22974
22975 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22976 completions from usage. Use LC_ALL=C to get options properly.
22977
22978 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 * grub-core/gnulib/basename-lgpl.c: Imported.
22981 * grub-core/gnulib/basename.c: Likewise.
22982 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22983 * grub-core/gnulib/dirname.c: Likewise.
22984 * grub-core/gnulib/dirname.h: Likewise.
22985 * grub-core/gnulib/stripslash.c: Likewise.
22986
22987 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 * grub-core/gnulib/error.c: Resynced.
22990 * grub-core/gnulib/getopt.c: Likewise.
22991 * grub-core/gnulib/getopt_int.h: Likewise.
22992 * grub-core/gnulib/regex.h: Likewise.
22993 * grub-core/gnulib/regex_internal.c: Likewise.
22994 * grub-core/gnulib/regex_internal.h: Likewise.
22995
22996 2010-09-15 Szymon Janc <szymon@janc.net.pl>
22997
22998 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22999 CRC calculations and validity checks.
23000 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23001 calculations.
23002
23003 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23004
23005 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23006
23007 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23008
23009 Fix incorrect echo options handling.
23010 Reported by: Yves Blusseau.
23011
23012 * include/grub/command.h (grub_command_flags_t): New flags
23013 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23014 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23015 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23016
23017 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23018
23019 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23020 users updated.
23021 (GRUB_COMMAND_FLAG_MENU): Likewise.
23022 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23023 (GRUB_COMMAND_FLAG_TITLE): Removed.
23024 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23025 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23026 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23027 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23028 (grub_command_flags_t): New enum. All users updated.
23029
23030 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23031
23032 Fix solaris compilation.
23033
23034 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23035 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23036 (grub-emu-list): Likewise.
23037
23038 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 Remove deprecated root command.
23041
23042 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23043 updated.
23044
23045 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * util/i386/pc/grub-setup.c: Merge this ...
23048 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23049 * util/grub-setup.c: ... into this.
23050 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23051 New struct.
23052
23053 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23056 possible.
23057
23058 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23059
23060 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23061 allocate p.
23062
23063 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23064
23065 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23066 explicit root argument to set to prevent UUID to be interpreted as
23067 argument to set.
23068
23069 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23072
23073 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23074
23075 Don't export grub_gate_a20.
23076
23077 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23078 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23079 to ...
23080 (grub_gate_a20): ... this. All users updated.
23081 * include/grub/i386/pc/init.h: Removed. All users updated.
23082
23083 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 Create euro.pf2 which supports most European languages.
23086
23087 * Makefile.am (grubdata_DATA): Add euro.pf2.
23088 (euro.pf2): New target.
23089 (CLEANFILES): Add euro.pf2.
23090
23091 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23092
23093 * configure.ac: Disable emu-usb by default to prevent inadvertent
23094 device takeover.
23095
23096 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23097
23098 Disable usbserial on grub-emu since our libusb code isn't good enough
23099 yet.
23100
23101 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23102 (usbserial_pl2303): Likewise.
23103 (usbserial_ftdi): Likewise.
23104
23105 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23106
23107 * include/grub/disk.h (grub_disk): Remove has_partitions.
23108 All users updated.
23109 * disk/loopback.c (grub_loopback): Remove has_partitions.
23110 All users updated.
23111 (options): Remove partitions. All users updated.
23112 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23113 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23114 actual partition table is found.
23115
23116 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 Remove readability checks (too many false negatives).
23119
23120 * util/grub-install.in: Remove readability checks.
23121 * util/grub-mkconfig.in: Likewise.
23122 * util/grub.d/10_hurd.in: Likewise.
23123 * util/grub.d/10_kfreebsd.in: Likewise.
23124 * util/grub.d/10_linux.in: Likewise.
23125 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23126 way.
23127
23128 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23129
23130 Enable acpi shutdown on all ACPI platforms.
23131
23132 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23133 on coreboo, multiboot and EFI.
23134 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23135 (grub_acpi_halt): Likewise.
23136 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23137 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23138 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23139 * grub-core/lib/i386/halt.c (grub_halt)
23140 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23141
23142 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23143
23144 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23145 context.
23146
23147 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23148
23149 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23150 * grub-core/video/efi_uga.c: Likewise.
23151
23152 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23153
23154 Filter devaliases and never open same device twice.
23155
23156 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23157 (last_ihandle): Likewise.
23158 (ofdisk_hash_ent): New member shortest.
23159 (ofdisk_hash_add): Add canonical path too.
23160 (scan): New function.
23161 (grub_ofdisk_iterate): Iterate over hashed entries.
23162 (compute_dev_path): Don't add :0.
23163 (grub_ofdisk_open): Don't really open the disk.
23164 (grub_ofdisk_close): Avoid closing unrelated disk.
23165 (grub_ofdisk_read): Implement reopen logic.
23166 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23167 New function.
23168 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23169 New proto.
23170
23171 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23172
23173 Fix sparc64.
23174
23175 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23176 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23177 right address. Add sparc64_ieee1275_ldflags.
23178 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23179 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23180 to grub_host_to_target_addr
23181 (load_image): Likewise.
23182
23183 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23184
23185 * grub-core/normal/completion.c (complete_file): Handle device
23186 containing slash.
23187 Fix based on patch by Doug Nazar.
23188
23189 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23190
23191 grub-mknetdir script.
23192
23193 * Makefile.util.def (grub-mknetdir): New module.
23194 * tests/util/grub-shell.in: Support boot=net
23195 * util/grub-mknetdir.in: New file.
23196
23197 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23198
23199 videoinfo on non-vbe.
23200
23201 * grub-core/Makefile.core.def (vbeinfo): Removed.
23202 (vbetest): Removed.
23203 (videoinfo): New module.
23204 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23205 * grub-core/commands/i386/pc/vbetest.c: Removed.
23206 * grub-core/commands/videoinfo.c: New file.
23207 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23208 specification.
23209 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23210 as vbetest.
23211 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23212 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23213 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23214 mode_number. New parameter mode. All users updated.
23215 (grub_video_gop_iterate): New function.
23216 (grub_video_efi_gop): New member iterate.
23217 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23218 (grub_vbe_set_video_mode): Remove setting useless fields.
23219 (vbe2videoinfo): New function.
23220 (grub_video_vbe_iterate): Likewise.
23221 (grub_video_vbe_setup): Use vbe2videoinfo.
23222 (grub_video_vbe_print_adapter_specific_info): New function.
23223 (grub_video_vbe_adapter): New fields iterate and
23224 print_adapter_specific_info.
23225 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23226 All users updated.
23227 (grub_video_mode_info): New field mode_number.
23228 (grub_video_adapter): New fields iterate and
23229 print_adapter_specific_info.
23230
23231 2010-09-13 Tristan Gingold <gingold@free.fr>
23232 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23233 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23234
23235 * grub-core/commands/efi/lsefisystab.c: New file.
23236 * grub-core/commands/efi/lssal.c: Likewise.
23237 * grub-core/Makefile.core.def (lsacpi): New module.
23238 (lsefisystab): Likewise.
23239 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23240 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23241 (grub_efi_sal_system_table): New struct.
23242 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23243 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23244 (grub_efi_sal_system_table_platform_features): Likewise.
23245 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23246 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23247 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23248 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23249
23250 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23251
23252 Support explicit user claim that a device is BIOS-visible.
23253
23254 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23255 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23256 * grub-core/kern/emu/hostdisk.c
23257 (convert_system_partition_to_system_disk): Support mdX.
23258 (find_system_device): New parameter add. All users updated.
23259 (grub_util_biosdisk_is_present): New function.
23260 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23261 proto.
23262
23263 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 Search hints support.
23266
23267 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23268 All users updated.
23269
23270 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23271
23272 Bash completion script for util commands
23273
23274 * Makefile.am: Add util/bash-completion.d directory
23275 * configure.ac: Likewise.
23276 * util/bash-completion.d/Makefile.am: New file.
23277 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23278
23279 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23280
23281 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23282 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23283 Reported by: Yves Blusseau.
23284
23285 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23288 partition size and offset.
23289
23290 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23291
23292 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23293
23294 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23295
23296 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23297
23298 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23301 (grub_xvasprintf): Likewise.
23302
23303 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23304
23305 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23306
23307 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23310 args ending with NULL.
23311
23312 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23315 pointer.
23316
23317 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23318
23319 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23320
23321 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23322
23323 Shutdown using ACPI.
23324
23325 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23326 * grub-core/commands/acpihalt.c: New file.
23327 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23328 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23329 (grub_acpi_halt): New proto.
23330 (GRUB_ACPI_SLP_EN): New const.
23331 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23332 (GRUB_ACPI_OPCODE_*): New enum.
23333 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23334
23335 2010-09-11 Tristan Gingold <gingold@free.fr>
23336 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23337 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 * commands/lsacpi.c: New file.
23340 * grub-core/Makefile.core.def (lsacpi): New module.
23341 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23342 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23343 (grub_acpi_madt_entry_header): New struct.
23344 (grub_acpi_madt): Likewise.
23345 (grub_acpi_madt_entry_interrupt_override): Likewise.
23346 (grub_acpi_madt_entry_sapic): Likewise.
23347 (grub_acpi_madt_entry_lsapic): Likewise.
23348 (grub_acpi_madt_entry_platform_int_source): Likewise.
23349 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23350 (PRIuGRUB_UINT32_T): Likewise.
23351 (PRIxGRUB_UINT64_T): Likewise.
23352
23353 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23354
23355 Implement loading palette on ieee1275_fb.
23356
23357 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23358 (have_setcolors): Likewise.
23359 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23360 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23361 (grub_video_ieee1275_set_palette): Implement.
23362
23363 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23364 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23365
23366 * util/grub-install.in (grub_partition): New variable.
23367 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23368 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23369 Fixes a bug reported by Yves Blusseau.
23370
23371 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23372
23373 Fix emu on mipsel.
23374
23375 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23376 =grub_cpu_flush_cache on all mips and not only yeeloong.
23377 * configure.ac (COND_mips): New conditional.
23378 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23379 platforms.
23380 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23381 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23382 [GRUB_LINKER_HAVE_INIT]: New function.
23383 (grub_emu_post_init): Likewise.
23384 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23385 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23386 * include/grub/cache.h (_mips): Include mips/cache.h.
23387 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23388 LVM and RAID prototypes.
23389 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23390 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23391 function.
23392
23393 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23394
23395 * util/grub-install.in: Don't try to verify core.img until after
23396 running grub-mkimage to create it.
23397
23398 2010-09-10 Robert Millan <rmh@gnu.org>
23399
23400 * util/grub.d/10_hurd.in: Add misc readability checks.
23401 * util/grub.d/10_kfreebsd.in: Likewise.
23402 * util/grub.d/10_linux.in: Likewise.
23403
23404 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23405
23406 * util/grub-install.in: ${imgext} won't be defined here until the
23407 install branch is merged. For the meantime, only verify core.img on
23408 i386-pc and sparc64-ieee1275 platforms.
23409
23410 2010-09-10 Robert Millan <rmh@gnu.org>
23411
23412 Solaris support in grub_find_zpool_from_dir(). Thanks
23413 Seth Goldberg for referring to getextmntent() facility.
23414
23415 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
23416 `sys/mkdev.h'.
23417 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
23418 `<sys/mnttab.h>'.
23419 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
23420 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
23421 method for finding zpool name.
23422
23423 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23424
23425 grub-fstest needs the host and hostfs modules while other utilities
23426 actively require those modules to be absent, so grub-fstest needs
23427 its own initialisation and finalisation code.
23428
23429 * Makefile.am (grub_fstest.pp): New target.
23430 (grub_fstest_init.lst): Likewise.
23431 (grub_fstest_init.c): Likewise.
23432 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
23433
23434 2010-09-10 Robert Millan <rmh@gnu.org>
23435
23436 * configure.ac: Check for `struct statfs.f_fstypename' and
23437 `struct statfs.f_mntfromname'.
23438
23439 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
23440 kFreeBSD-specific code.
23441
23442 2010-09-10 Robert Millan <rmh@gnu.org>
23443
23444 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
23445 on ZFS. Now non-main filesystems are supported as / too.
23446
23447 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
23448
23449 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
23450 and grub-core/disk/host.c to ...
23451 (grub-fstest): ... here. Having the host disk implementation
23452 present confuses grub-probe and other utility programs.
23453
23454 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
23455 when writing to a file, not when writing to stdout.
23456
23457 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
23458
23459 * tests/partmap_test.in: New test for partitions.
23460 * Makefile.util.def: Rules for new test.
23461
23462 2010-09-09 Robert Millan <rmh@gnu.org>
23463
23464 * util/grub-probe.c (probe): Fix a pair of unhandled error
23465 conditions.
23466
23467 2010-09-09 Robert Millan <rmh@gnu.org>
23468
23469 Basic Btrfs support (detection and UUID).
23470
23471 * grub-core/fs/btrfs.c: New file.
23472 * Makefile.util.def (library): Register btrfs.c.
23473 * grub-core/Makefile.core.def: Likewise.
23474
23475 2010-09-08 Robert Millan <rmh@gnu.org>
23476
23477 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
23478 with (optional) parameters to specify device and relative path.
23479 * util/grub-install.in: Use is_path_readable_by_grub() to
23480 verify readability of a few critical files.
23481 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
23482 verify readability of grub.cfg.new.
23483
23484 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23485
23486 Split minix.mod into minix.mod and minix2.mod.
23487
23488 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
23489 * grub-core/Makefile.core.def (minix2): New module.
23490 * grub-core/fs/minix.c: Use definitions instead of runtime version
23491 checking.
23492 * grub-core/fs/minix2.c: New file.
23493
23494 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23495
23496 Add new --boot-directory option to replace --root-directory
23497
23498 * util/grub-install.in: Add new --boot-directory option
23499 * util/grub-reboot.in: Likewise.
23500 * util/grub-set-default.in: Likewise.
23501
23502 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23503
23504 * util/grub-mkconfig.in: Use new variable.
23505
23506 2010-09-08 Yves Blusseau <blusseau@zetam.org>
23507
23508 * configure.ac: Define some useful variables.
23509
23510 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
23511
23512 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23513 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
23514 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
23515 Use terminfo and don't use cursor-on/cursor-off unless it's known
23516 to work.
23517 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
23518 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
23519
23520 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
23521
23522 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
23523 starts with "(,", fill the drive containing the loaded image in
23524 between those two characters, but expect that a full partition
23525 specification including partition map names will follow.
23526
23527 2010-09-08 Robert Millan <rmh@gnu.org>
23528
23529 * configure.ac: Remove `--enable-grub-fstest' option.
23530 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
23531
23532 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
23533 `grub-fstest' instead of `grub-probe' for readability verification.
23534 * util/grub-probe.c (probe): Remove readability verification kludge.
23535
23536 2010-09-08 Robert Millan <rmh@gnu.org>
23537
23538 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
23539 initializing `GRUB_FS'.
23540
23541 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
23542
23543 Not command (!) support to GRUB script.
23544
23545 * tests/grub_script_not.in: New test.
23546 * Makefile.util.def: Rules for new test.
23547
23548 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23549 ! command as a special case.
23550 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
23551
23552 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23553
23554 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
23555 grub_free.
23556
23557 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23558
23559 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
23560
23561 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
23562
23563 * docs/grub.texi (Shell-like scripting): Documentation for break,
23564 continue, shift and return commands.
23565
23566 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
23567
23568 Rename CD-ROM to cd on BIOS.
23569
23570 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
23571 "cd".
23572 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
23573
23574 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23575
23576 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
23577 * util/grub-probe.c (main): Likewise.
23578 * util/i386/pc/grub-setup.c (main): Likewise.
23579 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23580 Reported and debugged by: alexxy
23581
23582 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23583
23584 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
23585 diagnostic info.
23586
23587 2010-09-05 Jo Shields <directhex@apebox.org>
23588
23589 * util/grub.d/30_os-prober.in: Add missing classes.
23590
23591 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23592
23593 * docs/grub.texi (Theme file format): Document new position format.
23594
23595 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23596
23597 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
23598 a table. Use @code instead of @verbatim.
23599
23600 2010-09-05 Colin D Bennett <colin@gibibit.com>
23601
23602 Gfxmenu documentation.
23603
23604 * docs/grub.texi (Theme file format): New chapter.
23605
23606 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23607
23608 * grub-core/Makefile.core.def (xzio): New module.
23609 * grub-core/io/xzio.c: New file.
23610 * grub-core/lib/xzembed/xz.h: New file (from xembed).
23611 * grub-core/lib/xzembed/xz_config.h: Likewise.
23612 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
23613 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
23614 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
23615 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
23616 * grub-core/lib/xzembed/xz_private.h: Likewise.
23617 * grub-core/lib/xzembed/xz_stream.h: Likewise.
23618 * include/grub/file.h (grub_file_filter_id): New compression filter
23619 GRUB_FILE_FILTER_XZIO.
23620
23621 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23622
23623 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
23624 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
23625 size.
23626
23627 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23628
23629 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
23630 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
23631
23632 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23633
23634 Uncompressed checksum support.
23635
23636 * grub-core/commands/hashsum.c (options): Add option --uncompress.
23637 (check_list): New parameter uncompress.
23638 (grub_cmd_hashsum): Handle --uncompress.
23639
23640 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23641
23642 Reintroduce testload.
23643
23644 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
23645 from here ...
23646 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
23647 (GRUB_MOD_INIT): New function.
23648 (GRUB_MOD_FINI): Likewise.
23649 * grub-core/Makefile.core.def (testload): New module.
23650
23651 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23652
23653 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
23654 (uint8_t): New type.
23655 (uint16_t): Likewise.
23656 (uint32_t): Likewise.
23657 (uint64_t): Likewise.
23658
23659 2010-09-05 Szymon Janc <szymon@janc.net.pl>
23660
23661 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
23662
23663 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
23666 Made static.
23667 (grub_gzfile_open): Removed. All users updated.
23668 (GRUB_MOD_INIT): New function.
23669 (GRUB_MOD_FINI): Likewise.
23670 * grub-core/kern/file.c (grub_file_filters_all): New variable.
23671 (grub_file_filters_enabled): Likewise.
23672 (grub_file_open): Handle filters.
23673 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
23674 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
23675 * include/grub/file.h (grub_file_filter_id_t): New type.
23676 (grub_file_filter_t): Likewise.
23677 (grub_file_filters_all): New extern variable.
23678 (grub_file_filters_enabled): Likewise.
23679 (grub_file_filter_register): New inline function.
23680 (grub_file_filter_unregister): Likewise.
23681 (grub_file_filter_disable): Likewise.
23682 (grub_file_filter_disable_compression): Likewise.
23683 * include/grub/gzio.h: Removed.
23684
23685 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23686
23687 Filename expansion support for wildcards in GRUB script.
23688
23689 * tests/grub_script_expansion.in: New test.
23690 * Makefile.util.def: Rule for new test.
23691
23692 * grub-core/commands/wildcard.c: New file, implements filename
23693 expansion support for GRUB script.
23694 * grub-core/Makefile.core.def: Rule update for regexp.mod.
23695 * grub-core/script/argv.c: Cosmetic changes.
23696 * grub-core/script/execute.c (grub_script_arglist_to_argv):
23697 Refactored to perform wildcard expansion on arguments.
23698 * include/grub/script_sh.h (grub_script_wildcard_translator): New
23699 struct.
23700
23701 * tests/util/grub-shell.in: Fix quoting for read input.
23702
23703 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23704
23705 Support for updating environment variables with matched substrings
23706 of regexp.
23707
23708 * tests/grub_cmd_regexp.in: New test.
23709 * Makefile.util.def: Rule for new test.
23710
23711 * grub-core/commands/regexp.c: New option -s to update environment
23712 variables with regexp matches.
23713
23714 2010-09-04 Szymon Janc <szymon@janc.net.pl>
23715
23716 * include/grub/file.h (grub_file): New member not_easly_seekable.
23717 (grub_file_seekable): New inline function.
23718 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
23719 easily seekable.
23720 (grub_gzio_open): Set not_easly_seekable.
23721 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
23722 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
23723
23724 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23725
23726 Support for options to appear multiple times on cmdline.
23727
23728 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
23729 * grub-core/commands/extcmd.c: Support for repeatable option.
23730 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
23731 repeatable option support.
23732
23733 Refactor menuentry into a regular command.
23734
23735 * grub-core/commands/menuentry.c: New file, menuentry command
23736 implementation.
23737 * grub-core/Makefile.core.def: Rule update for normal.mod.
23738 * grub-core/normal/main.c: Moved menuentry creation to
23739 grub-core/commands/menuentry.c.
23740 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
23741 (grub_menu_execute_entry_real): Removed.
23742 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
23743 function.
23744 (grub_script_execute_menuentry): Removed.
23745 * grub-core/script/parser.y (menuentry): Removed.
23746 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
23747 * grub-core/script/yylex.l (menuentry): Removed.
23748 * include/grub/menu.h (grub_menu_init): New prototype.
23749 (grub_menu_fini): New prototype.
23750 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
23751 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
23752 (grub_script_execute_sourcecode): New prototype.
23753
23754 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23755
23756 "return" command for GRUB script functions.
23757
23758 * tests/grub_script_return.in: New test.
23759 * Makefile.util.def: Rules for new test.
23760
23761 * grub-core/script/execute.c (grub_script_return): New function.
23762 * grub-core/script/main.c: Register/unregister return commaond.
23763 * include/grub/script_sh.h (grub_script_return): New prototype.
23764
23765 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23766
23767 "setparams" command to update positional parameters.
23768
23769 * tests/grub_script_setparams.in: New test.
23770 * Makefile.util.def: Rules for new test.
23771
23772 * grub-core/script/argv.c (grub_script_argv_make): New function.
23773 * grub-core/script/execute.c (replace_scope): New function.
23774 (grub_script_setparams): New function.
23775 * grub-core/script/lexer.c: Remove unused variables.
23776 * grub-core/script/main.c: Register/unregister setparams command.
23777 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23778 (grub_script_setparams): New prototype.
23779
23780 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23781
23782 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23783 grub_free order.
23784
23785 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23786
23787 Support for passing block of commands as an argument to extcmds.
23788
23789 * Makefile.util.def: Rules for new test.
23790 * tests/grub_script_blockarg.in: New test.
23791 * grub-core/tests/test_blockarg.c: New file, block argument
23792 command used in the test.
23793
23794 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23795 (grub_register_extcmd_prio): New function prototype.
23796 (grub_extcmd_dispatcher): New function prototype.
23797 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23798 type.
23799 * include/grub/script_sh.h (struct grub_script): New members
23800 `children', `next_siblings' and `refcnt' for block arguments and
23801 reference counting.
23802 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23803 (grub_script_arg): New member `script' for block argument.
23804 (grub_script_argv): New member `script' for block argument.
23805 (grub_parser_param): New member `scripts' for block argument.
23806 (grub_script_mem_free): New extern function prototype.
23807 (grub_script_ref): New function prototype.
23808 (grub_script_unref): New function prototype.
23809
23810 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23811 extcmd form to support block arguments.
23812 * grub-core/script/argv.c: Block arguments support.
23813 * grub-core/script/execute.c: Likewise.
23814 * grub-core/script/lexer.c: Likewise.
23815 * grub-core/script/main.c: Likewise.
23816 * grub-core/script/script.c: Likewise.
23817 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23818 non-terminals.
23819
23820 * grub-core/commands/acpi.c: Update extcmd implementations with
23821 grub_extcmd_context_t.
23822 * grub-core/commands/cat.c: Likewise.
23823 * grub-core/commands/echo.c: Likewise.
23824 * grub-core/commands/extcmd.c: Likewise.
23825 * grub-core/commands/hashsum.c: Likewise.
23826 * grub-core/commands/hdparm.c: Likewise.
23827 * grub-core/commands/help.c: Likewise.
23828 * grub-core/commands/hexdump.c: Likewise.
23829 * grub-core/commands/i386/cpuid.c: Likewise.
23830 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23831 * grub-core/commands/i386/pc/halt.c: Likewise.
23832 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23833 * grub-core/commands/iorw.c: Likewise.
23834 * grub-core/commands/keystatus.c: Likewise.
23835 * grub-core/commands/loadenv.c: Likewise.
23836 * grub-core/commands/ls.c: Likewise.
23837 * grub-core/commands/lspci.c: Likewise.
23838 * grub-core/commands/memrw.c: Likewise.
23839 * grub-core/commands/probe.c: Likewise.
23840 * grub-core/commands/search_wrap.c: Likewise.
23841 * grub-core/commands/setpci.c: Likewise.
23842 * grub-core/commands/sleep.c: Likewise.
23843 * grub-core/disk/loopback.c: Likewise.
23844 * grub-core/hello/hello.c: Likewise.
23845 * grub-core/loader/i386/bsd.c: Likewise.
23846 * grub-core/loader/xnu.c: Likewise.
23847 * grub-core/term/gfxterm.c: Likewise.
23848 * grub-core/term/serial.c: Likewise.
23849 * grub-core/tests/lib/functional_test.c: Likewise.
23850
23851 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23852
23853 Multi-line quoted strings support.
23854
23855 * grub-core/script/lexer.c (append_newline): Removed.
23856 (grub_script_lexer_yywrap): Refactored.
23857 (grub_script_lexer_init): Refactored.
23858 * grub-core/script/yylex.l (yywrap): New function.
23859 (grub_lexer_resplit): New function.
23860 (grub_lexer_unput): New function.
23861 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23862 and resplit.
23863 * tests/grub_script_echo1.in: Added few more testcases.
23864
23865 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23866
23867 * grub-core/kern/misc.c: Don't add abort alias in utils.
23868 Reported by: echoline.
23869
23870 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23871
23872 Add missing files into "make dist" tarball for other platforms.
23873
23874 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23875 * conf/Makefile.common (dist_noinst_DATA): New variable.
23876 * conf/Makefile.extra-dist: Added missing make dist files.
23877 * grub-core/Makefile.core.def: Likewise.
23878
23879 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23880
23881 Compress grub_prefix.
23882
23883 * grub-core/boot/i386/pc/lnxboot.S: Use
23884 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23885 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23886 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23887 GRUB_MACHINE_PREFIX_END. All users updated.
23888 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23889 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23890 + 0x40.
23891 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23892 * util/grub-mkimage.c (image_target_desc): Change data_end to
23893 prefix_end. All users updated.
23894
23895 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23896
23897 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23898 value.
23899 (grub_openbsd_boot): Likewise.
23900 (grub_netbsd_boot): Likewise.
23901 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23902 (grub_xnu_boot): Likewise.
23903
23904 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23905
23906 * configure.ac: Clean LIBS variable after tests.
23907
23908 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23909
23910 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23911
23912 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23913
23914 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23915 echo if libdevmapper will be used.
23916
23917 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23918
23919 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23920 constant for the same file.
23921
23922 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23923
23924 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23925
23926 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23927
23928 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23929 grub-core/*.pp.
23930
23931 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
23932
23933 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23934 required by the boot protocol.
23935
23936 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23937 ebp and edi members.
23938 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23939 state.ebp and state.edi.
23940 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23941 %ebp and %edi according to grub_relocator32_ebp and
23942 grub_relocator32_edi respectively.
23943 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23944 and state.edi.
23945
23946 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23947
23948 Add i386-pc-pxe image target.
23949
23950 * util/grub-mkimage.c (image_target_desc): New enum value
23951 IMAGE_I386_PC_PXE.
23952 (image_targets): New target i386-pc-pxe.
23953 (generate_image): Handle i386-pc-pxe image.
23954
23955 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23956
23957 Fix grub_pxe_scan.
23958
23959 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23960 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23961 All users updated.
23962 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23963 (grub_pxe_pxenv): Correct type.
23964
23965 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23966
23967 * NEWS: Document most of the important changes since 1.98.
23968
23969 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23970
23971 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23972 generated manual page) a little.
23973
23974 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
23975
23976 * docs/grub.texi: Add myself as an author.
23977
23978 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23979
23980 * Makefile.util.def (libgrub.a): Add missing sunpc.
23981 Reported by: Seth Goldberg.
23982
23983 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23984
23985 Interrupt wrapping and code simplifications.
23986
23987 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23988 x86_noieee1275 which are functionaly equivalent in this case.
23989 (grub-install): Make source on each platform explicit. Enable on
23990 all noemu.
23991 * gentpl.py (x86_efi_pc): Removed group.
23992 (x86_noefi): Likewise.
23993 (i386_noefi): Likewise.
23994 (x86_noieee1275): Likewise.
23995 (i386_noieee1275): Likewise.
23996 (i386_noefi_noieee1275): Likewise.
23997 (i386_pc_qemu_coreboot): Likewise.
23998 (i386_coreboot_multiboot): Likewise.
23999 (i386_pc_coreboot_multiboot_qemu): Likewise.
24000 (x86_noefi_mips): Likewise.
24001 (noieee1275): Likewise.
24002 (ieee1275_mips): Likewise.
24003 (noemu_noieee1275): Likewise.
24004 (cmos): New group.
24005 (usb): Likewise.
24006 (videoinkernel): Likewise.
24007 (videomodules): Likewise.
24008 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24009 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24010 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24011 include/grub/loader.h, include/grub/msdos_partition.h,
24012 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24013 include/grub/machine/console.h, include/grub/machine/vga.h,
24014 include/grub/machine/vbe.h, include/grub/machine/init.h,
24015 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24016 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24017 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24018 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24019 * grub-core/Makefile.core.def (kernel): Explicit the source for
24020 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24021 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24022 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24023 Use videoinkernel tag.
24024 (usb): Enable on all usb.
24025 (usbserial_common): Likewise.
24026 (usbserial_pl2303): Likewise.
24027 (usbserial_ftdi): Likewise.
24028 (uhci): Enable on all x86.
24029 (ohci): Enable on all pci.
24030 (cmostest): Enable on all CMOS.
24031 (acpi): Include commands/acpi.c on all platforms.
24032 (halt): Add relevant lib/*/halt.c.
24033 (hdparm): Enable on all pci.
24034 (lspci): Likewise.
24035 (usbtest): Enable on all usb.
24036 (ata): Enable on all pci.
24037 (ata_pthru): Likewise.
24038 (usbms): Enable on all usb.
24039 (usb_keyboard): Likewise.
24040 (font): Use tag videomodules.
24041 (bufio): Likewise.
24042 (datetime): Use tag cmos. Enable on all noemu.
24043 (mmap): Use tags common and x86.
24044 (gfxterm): Use tag videomodules.
24045 (bitmap): Likewise.
24046 (bitmap_scale): Likewise.
24047 (video_fb): Likewise.
24048 (video): Likewise.
24049 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24050 adjust padding accordingly. All users updated.
24051 (grub_ohci_transaction): Fix bad format specification.
24052 (GRUB_MOD_INIT): Add asserts for struct size.
24053 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24054 (grub_alloc_td): Likewise.
24055 (grub_free_queue): Likewise.
24056 (grub_uhci_transfer): Likewise.
24057 (grub_uhci_transaction): Fix bad format specification.
24058 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24059 (grub_usb_bulk_readwrite): Likewise.
24060 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24061 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24062 Made static.
24063 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24064 Made static.
24065 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24066 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24067 Transformed into C.
24068 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24069 Moved from here ...
24070 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24071 ... here. Transformed into C. Made static.
24072 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24073 Moved from here ...
24074 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24075 ... here. Transformed into C. Made static.
24076 * grub-core/kern/i386/pc/startup.S
24077 (grub_biosdisk_check_int13_extensions): Moved from here ...
24078 * grub-core/disk/i386/pc/biosdisk.c
24079 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24080 Made static.
24081 * grub-core/kern/i386/pc/startup.S
24082 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24083 * grub-core/disk/i386/pc/biosdisk.c
24084 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24085 Transformed into C. Made static.
24086 * grub-core/kern/i386/pc/startup.S
24087 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24088 * grub-core/disk/i386/pc/biosdisk.c
24089 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24090 Transformed into C. Made static.
24091 * grub-core/kern/i386/pc/startup.S
24092 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24093 * grub-core/disk/i386/pc/biosdisk.c
24094 (grub_biosdisk_get_diskinfo_standard): ... here.
24095 Transformed into C. Made static.
24096 * grub-core/kern/i386/pc/startup.S
24097 (grub_biosdisk_get_num_floppies): Moved from here ...
24098 * grub-core/disk/i386/pc/biosdisk.c
24099 (grub_biosdisk_get_num_floppies): ... here.
24100 Transformed into C. Made static.
24101 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24102 New function.
24103 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24104 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24105 Transformed into C. Made static.
24106 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24107 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24108 Transformed into C. Made static.
24109 * grub-core/kern/i386/ieee1275/init.c: Removed.
24110 * grub-core/kern/i386/misc.S: Likewise.
24111 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24112 Splitted from here ...
24113 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24114 Transformed into C. Made static. All users updated.
24115 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24116 Transformed into C. Made static. All users updated.
24117 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24118 Moved from here...
24119 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24120 Transformed into C. Made static. All users updated.
24121 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24122 Moved from here...
24123 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24124 Transformed into C. Made static. All users updated.
24125 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24126 Removed (replaced by C version).
24127 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24128 Moved from here...
24129 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24130 Transformed into C. Made static.
24131 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24132 Moved from here...
24133 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24134 ... here. Transformed into C.
24135 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24136 Moved from here...
24137 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24138 ... here. Transformed into C.
24139 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24140 Moved from here...
24141 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24142 ... here. Transformed into C. Made static.
24143 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24144 Moved from here...
24145 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24146 ... here. Transformed into C.
24147 * grub-core/kern/i386/pc/startup.S
24148 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24149 * grub-core/video/i386/pc/vbe.c
24150 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24151 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24152 Moved from here...
24153 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24154 ... here. Transformed into C.
24155 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24156 Moved from here...
24157 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24158 ... here. Transformed into C.
24159 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24160 Moved from here...
24161 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24162 ... here. Transformed into C.
24163 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24164 Moved from here...
24165 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24166 ... here. Transformed into C.
24167 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24168 Moved from here...
24169 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24170 ... here. Transformed into C. Made static.
24171 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24172 Moved from here...
24173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24174 ... here. Transformed into C. Made static.
24175 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24176 Moved from here...
24177 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24178 ... here. Transformed into C. Made static.
24179 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24180 pxe_rm_entry as third argument.
24181 (grub_bios_interrupt): New function.
24182 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24183 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24184 of calling grub_stop.
24185 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24186 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24187 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24188 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24189 * grub-core/lib/i386/halt.c: Moved from here ...
24190 * grub-core/lib/i386/halt.c: ... here.
24191 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24192 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24193 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24194 grub_stop_floppy.
24195 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24196 * include/grub/i386/coreboot/init.h: Removed.
24197 * include/grub/i386/multiboot/init.h: Likewise.
24198 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24199 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24200 * include/grub/i386/pc/int.h: New file.
24201 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24202 (grub_pxe_scan): Removed.
24203 (grub_pxe_call): Update prototype.
24204 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24205 prototypes.
24206 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24207 * include/grub/i386/qemu/init.h: Removed.
24208 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24209 noreturn.
24210 (grub_halt): Likewise.
24211 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24212 (grub_reboot): Likewise.
24213 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24214 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24215 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24216
24217 2010-08-30 Robert Millan <rmh@gnu.org>
24218
24219 * NEWS: Document addition of ZFS support in `grub-install' and
24220 `grub-mkconfig'.
24221
24222 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24223
24224 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24225 dprintf output.
24226
24227 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24228
24229 Remove leftover embedding of font objects.
24230
24231 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24232 * util/grub-install.in (font): Removed.
24233 * util/grub-mkimage.c (generate_image): Remove font support. All users
24234 updated.
24235
24236 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24237
24238 Remove leftover embedding of font objects.
24239
24240 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24241 * util/grub-install.in (font): Removed.
24242 * util/grub-mkimage.c (generate_image): Remove font support. All users
24243 updated.
24244
24245 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24246
24247 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24248 Reported by: Ian Turner
24249
24250 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24251
24252 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24253 timeout to avoid indefinite boot stalling.
24254
24255 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24256
24257 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24258 (grub_env_write_color_highlight): Likewise.
24259
24260 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 * grub-core/normal/term.c (print_more): Return to normal and not
24263 to standard state after printing "---MORE---".
24264
24265 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24266
24267 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24268 Mask out the bit 0x80 since it has other meaning that specifiing color.
24269
24270 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24271
24272 New relocator. Allows for more kernel support and more straightforward
24273 loader writing.
24274
24275 * Makefile.am (BOOTTARGET): New variable.
24276 (QEMU32): Likewise.
24277 (linux.init.x86_64): New target.
24278 (linux.init.i386): Likewise.
24279 (multiboot.elf): Likewise.
24280 (kfreebsd.elf): Likewise.
24281 (kfreebsd.aout): Likewise.
24282 (pc-chainloader.elf): Likewise.
24283 (pc-chainloader.bin): Likewise.
24284 (ntldr.elf): Likewise.
24285 (ntldr.bin): Likewise.
24286 (multiboot2.elf): Likewise.
24287 (kfreebsd.init.x86_64): Likewise.
24288 (kfreebsd.init.i386): Likewise.
24289 (knetbsd.init.i386): Likewise.
24290 (kopenbsd.init.i386): Likewise.
24291 (knetbsd.init.x86_64): Likewise.
24292 (kopenbsd.init.x86_64): Likewise.
24293 (linux-initramfs.i386): Likewise.
24294 (linux-initramfs.x86_64): Likewise.
24295 (kfreebsd-mfsroot.i386.img): Likewise.
24296 (knetbsd.image.i386): Likewise.
24297 (kopenbsd.image.i386): Likewise.
24298 (kopenbsd.image.x86_64): Likewise.
24299 (knetbsd.miniroot-image.i386.img): Likewise.
24300 (kfreebsd-mfsroot.x86_64.img): Likewise.
24301 (knetbsd.image.x86_64): Likewise.
24302 (knetbsd.miniroot-image.x86_64.img): Likewise.
24303 (kfreebsd-mfsroot.i386.gz): Likewise.
24304 (bootcheck-kfreebsd-i386): Likewise.
24305 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24306 (bootcheck-kfreebsd-x86_64): Likewise.
24307 (knetbsd.miniroot-image.i386.gz): Likewise.
24308 (bootcheck-knetbsd-i386): Likewise.
24309 (bootcheck-kopenbsd-i386): Likewise.
24310 (bootcheck-kopenbsd-x86_64): Likewise.
24311 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24312 (bootcheck-knetbsd-x86_64): Likewise.
24313 (bootcheck-linux-i386): Likewise.
24314 (bootcheck-linux-x86_64): Likewise.
24315 (bootcheck-linux16-i386): Likewise.
24316 (bootcheck-linux16-x86_64): Likewise.
24317 (bootcheck-multiboot): Likewise.
24318 (bootcheck-multiboot2): Likewise.
24319 (bootcheck-kfreebsd-aout): Likewise.
24320 (bootcheck-pc-chainloader): Likewise.
24321 (bootcheck-ntldr): Likewise.
24322 (CLEANFILES): Add new targets.
24323 (BOOTCHECKS): New variable.
24324 (.PHONY): Add bootchecks.
24325 (SUCCESSFUL_BOOT_STRING): New variable.
24326 (BOOTCHECK_TIMEOUT): Likewise.
24327 (bootcheck): New target
24328 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24329 * configure.ac: Correct efiemu excuse.
24330 * docs/grub.texi (Supported kernels): New chapter.
24331 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24332 include/grub/mm_private.h. Simplify inclusion of
24333 include/grub/boot.h, include/grub/loader.h
24334 and include/grub/msdos_partition.h
24335 (KERNEL_HEADER_FILES) [i386_coreboot]:
24336 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24337 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24338 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24339 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24340 include/grub/machine/loader.h.
24341 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24342 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24343 extra_dist.
24344 (pci.mod): Enable on i386-multiboot.
24345 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24346 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24347 i386-qemu.
24348 (relocator.mod): Rewritten.
24349 (aout.mod): Enable on all x86.
24350 (bsd.mod): Likewise.
24351 (ntldr.mod): New module.
24352 (linux.mod): Use loader/i386/linux.c on all x86.
24353 (xnu.mod): Enable on all x86.
24354 (vga_text.mod): disable on EFI and QEMU.
24355 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24356 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24357 * grub-core/efiemu/loadcore.c: Likewise.
24358 * grub-core/efiemu/main.c: Likewise.
24359 (grub_efiemu_exit_boot_services): Removed.
24360 (grub_efiemu_finish_boot_services): Likewise.
24361 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24362 function.
24363 * grub-core/efiemu/i386/nocfgtables.c: New file.
24364 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24365 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24366 (grub_efi_finish_boot_services): Moved from here ...
24367 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24368 Fille finish memory map and related data.
24369 (finish_mmap_buf): New variable.
24370 (grub_efi_uintn_t finish_mmap_size): Likewise.
24371 (grub_efi_uintn_t finish_key): Likewise.
24372 (grub_efi_uintn_t finish_desc_size): Likewise.
24373 (grub_efi_uint32_t finish_desc_version): Likewise.
24374 (grub_efi_is_finished): Likewise.
24375 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24376 finished.
24377 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24378 (grub_elf64_phdr_iterate): Likewise.
24379 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24380 (grub_os_area_size): Likewise.
24381 (grub_machine_init): Don't reserve os area.
24382 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24383 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24384 * grub-core/kern/i386/loader.S: Removed.
24385 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24386 (grub_os_area_size): Likewise.
24387 (grub_machine_init): Don't reserve os area.
24388 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24389 Don't call grub_dl_unload_all.
24390 Don't include loader.S.
24391 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24392 Declare the memory after _end as available.
24393 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24394 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24395 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24396 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24397 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24398 * include/grub/mm_private.h (grub_mm_header): ... here.
24399 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24400 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24401 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24402 (grub_mm_region): ..here. Removed addr. Added pre_size.
24403 All users updated.
24404 * grub-core/kern/mm.c (base): Renamed to ...
24405 (grub_mm_base): ... this. Made global.
24406 (grub_real_malloc): Alloc from end of region.
24407 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24408 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24409 * grub-core/kern/powerpc/cache_flush.S: ... here.
24410 * grub-core/lib/efi/relocator.c: New file.
24411 * grub-core/lib/i386/relocator.c: Rewritten.
24412 * grub-core/lib/i386/relocator16.S: New file.
24413 * grub-core/lib/i386/relocator32.S: Likewise.
24414 * grub-core/lib/i386/relocator64.S: Likewise.
24415 * grub-core/lib/i386/relocator_asm.S: Rewritten.
24416 * grub-core/lib/i386/relocator_common.S: New file.
24417 * grub-core/lib/ieee1275/relocator.c: Likewise.
24418 * grub-core/lib/mips/relocator.c: Rewritten.
24419 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
24420 stylistic adjustments.
24421 * grub-core/lib/powerpc/relocator.c: New file.
24422 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
24423 * grub-core/lib/relocator.c: Rewritten.
24424 * grub-core/lib/x86_64/relocator_asm.S: New file.
24425 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
24426 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
24427 (bsd_tag): New struct.
24428 (tags): New variable.
24429 (tags_last): Likewise.
24430 (netbsd_module): New struct.
24431 (netbsd_mods): New variable.
24432 (netbsd_mods_last): Likewise.
24433 (openbsd_opts): New parameter "serial".
24434 (OPENBSD_SERIAL_ARG): New definition.
24435 (netbsd_opts): New parameter "serial".
24436 (NETBSD_SERIAL_ARG): New definition.
24437 (grub_freebsd_add_meta): Reorganised into ...
24438 (grub_bsd_add_meta): ...this. All users updated.
24439 (grub_freebsd_add_mmap): Reorganised into ...
24440 (generate_e820_mmap): ...this...
24441 (grub_bsd_add_mmap): ...and this. All users updated.
24442 (grub_freebsd_list_modules): Use tags.
24443 (grub_netbsd_add_meta_module): New function.
24444 (grub_netbsd_list_modules): Likewise.
24445 (grub_freebsd_boot): Use relocator and finish EFI.
24446 (grub_openbsd_boot): Likewise.
24447 (grub_netbsd_setup_video): New function.
24448 (grub_netbsd_add_modules): Likewise.
24449 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
24450 and finish EFI.
24451 (grub_bsd_unload): Unload tags.
24452 (grub_bsd_load_aout): Use relocator.
24453 (grub_bsd_elf32_size_hook): New function.
24454 (grub_bsd_elf32_hook): Use relocator.
24455 (grub_bsd_elf64_size_hook): New function.
24456 (grub_bsd_elf64_hook): Use relocator.
24457 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
24458 (grub_bsd_load): Zero-out openbsd_ramdisk.
24459 (grub_bsd_load): Use relocator.
24460 (grub_cmd_openbsd): Support serial.
24461 (grub_cmd_netbsd): Support modules.
24462 (grub_cmd_freebsd_module): Use relocator.
24463 (grub_netbsd_module_load): New function.
24464 (grub_cmd_netbsd_module): Likewise.
24465 (grub_cmd_openbsd_ramdisk): Likewise.
24466 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
24467 kopenbsd_ramdisk.
24468 (GRUB_MOD_FINI): Unregister new commands.
24469 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
24470 (grub_freebsd_load_elfmodule_obj): Use relocator.
24471 (grub_freebsd_load_elfmodule): Likewise.
24472 (grub_freebsd_load_elf_meta): Likewise.
24473 (grub_netbsd_load_elf_meta): New function.
24474 (grub_openbsd_find_ramdisk): Likewise.
24475 * grub-core/loader/i386/bsd_helper.S: Removed.
24476 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
24477 * grub-core/loader/i386/bsd_trampoline.S: Removed.
24478 * grub-core/loader/i386/efi/linux.c: Likewise.
24479 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
24480 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
24481 (DEFAULT_VIDEO_MODE): Likewise.
24482 (real_mode_target): New variable.
24483 (prot_mode_target): Likewise.
24484 (initrd_mem_target): Likewise.
24485 (relocator): Likewise.
24486 (efi_mmap_buf): Likewise.
24487 (efi_mmap_size): Likewise.
24488 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
24489 (free_pages): Use relocator.
24490 (allocate_pages): Account for efi_mmap and use relocator. Return error.
24491 (grub_linux_setup_video): Return error.
24492 (grub_linux_trampoline_start): Removed.
24493 (grub_linux_trampoline_end): Likewise.
24494 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
24495 andd video parameters depending on firmware.
24496 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
24497 [GRUB_MACHINE_EFI]: Pass EFI parameters.
24498 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
24499 (grub_cmd_initrd): Use relocator.
24500 * grub-core/loader/i386/linux_trampoline.S: Removed.
24501 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
24502 (elf_sec_entsize): Likewise.
24503 (elf_sec_shstrndx): Likewise.
24504 (elf_sections): Likewise.
24505 (grub_multiboot_load): Use relocator.
24506 (grub_multiboot_get_mbi_size): Account for sections.
24507 (grub_multiboot_make_mbi): Use relocator and support sections.
24508 (grub_multiboot_add_elfsyms): New function.
24509 (grub_multiboot_free_mbi): Free sections.
24510 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
24511 (grub_linux_real_target): Likewise.
24512 (grub_linux_real_chunk): Likewise.
24513 (grub_linux16_prot_size): Likewise.
24514 (grub_linux16_boot): Use relocator.
24515 (grub_linux_unload): Unload relocator.
24516 (grub_cmd_linux): Use relocator.
24517 (grub_cmd_initrd): Likewise.
24518 * grub-core/loader/i386/pc/ntldr.c: New file.
24519 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
24520 Don't try to guess CPU frequency.
24521 (grub_xnu_set_video): Stretch bitmap.
24522 (grub_xnu_boot): Use relocator.
24523 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
24524 (grub_linux_unload): Free relocator.
24525 (grub_linux_load32): Use relocator.
24526 (grub_linux_load64): Likewise.
24527 (grub_cmd_initrd): Likewise.
24528 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
24529 (grub_multiboot_unload): Unload relocator.
24530 (grub_cmd_multiboot): Use relocator.
24531 (grub_cmd_module): Likewise.
24532 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
24533 Use relocator and support sections.
24534 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
24535 (elf_sec_entsize): Likewise.
24536 (elf_sec_shstrndx): Likewise.
24537 (elf_sections): Likewise.
24538 (grub_multiboot_load): Use relocator.
24539 (grub_multiboot_get_mbi_size): Account for sections.
24540 (grub_multiboot_make_mbi): Use relocator and support sections.
24541 (grub_multiboot_add_elfsyms): New function.
24542 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
24543 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
24544 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
24545 Prototype changed. All users updated.
24546 (grub_xnu_align_heap): Simplified.
24547 (grub_xnu_writetree_toheap): Likewise.
24548 (grub_xnu_unload): Unload relocator.
24549 (grub_cmd_xnu_kernel): Use relocator.
24550 (grub_cmd_xnu_kernel64): Likewise.
24551 (grub_xnu_register_memory): Simplified.
24552 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
24553 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
24554 EFI is finished.
24555 (grub_console_checkkey): Likewise.
24556 (grub_console_getkey): Likewise.
24557 (grub_console_getwh): Likewise.
24558 (grub_console_getxy): Likewise.
24559 (grub_console_gotoxy): Likewise.
24560 (grub_console_cls): Likewise.
24561 (grub_console_setcolorstate): Likewise.
24562 (grub_console_setcursor): Likewise.
24563 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
24564 * grub-core/tests/boot/kbsd.init-i386.S: New file.
24565 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
24566 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
24567 * grub-core/tests/boot/kernel-8086.S: Likewise.
24568 * grub-core/tests/boot/kernel-i386.S: Likewise.
24569 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
24570 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
24571 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
24572 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
24573 * grub-core/tests/boot/knetbsd.cfg: Likewise.
24574 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
24575 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
24576 * grub-core/tests/boot/linux.cfg: Likewise.
24577 * grub-core/tests/boot/linux.init-i386.S: Likewise.
24578 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
24579 * grub-core/tests/boot/linux16.cfg: Likewise.
24580 * grub-core/tests/boot/multiboot.cfg: Likewise.
24581 * grub-core/tests/boot/multiboot2.cfg: Likewise.
24582 * grub-core/tests/boot/ntldr.cfg: Likewise.
24583 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
24584 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
24585 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
24586 New definition.
24587 * include/grub/dl.h (grub_dl_unload_all): Removed.
24588 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
24589 (grub_efi_finish_boot_services): Change prototype.
24590 (grub_efi_is_finished): New variable.
24591 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
24592 Changed prototype.
24593 (grub_efiemu_finish_boot_services): Removed.
24594 (grub_machine_efiemu_init_tables): New prototype.
24595 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
24596 (grub_elf64_phdr_iterate): Likewise.
24597 * include/grub/i386/bsd.h: Include relocator.h.
24598 (freebsd_tag_header): New struct.
24599 (grub_openbsd_bios_mmap): Removed.
24600 (grub_unix_real_boot): Removed.
24601 (grub_freebsd_load_elfmodule32): Changed prototype.
24602 (grub_freebsd_load_elfmodule_obj64): Likewise.
24603 (grub_freebsd_load_elf_meta32): Likewise.
24604 (grub_freebsd_load_elf_meta64): Likewise.
24605 (grub_freebsd_add_meta): Removed.
24606 (grub_netbsd_load_elf_meta32): New prototype.
24607 (grub_netbsd_load_elf_meta64): Likewise.
24608 (grub_bsd_add_meta): Likewise.
24609 (grub_openbsd_ramdisk_descriptor): New struct.
24610 (grub_openbsd_find_ramdisk32): New prototype.
24611 (grub_openbsd_find_ramdisk64): Likewise.
24612 * include/grub/i386/coreboot/loader.h: Removed.
24613 * include/grub/i386/efi/loader.h: Likewise.
24614 * include/grub/i386/ieee1275/loader.h: Likewise.
24615 * include/grub/i386/linux.h (linux_kernel_header): Change void *
24616 to grub_uint32_t.
24617 * include/grub/i386/loader.h: Removed.
24618 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
24619 value.
24620 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
24621 (grub_phys_addr_t): New type.
24622 (grub_vtop): New inline function.
24623 (grub_map_memory): Likewise.
24624 (grub_unmap_memory): Likewise.
24625 * include/grub/i386/multiboot/loader.h: Removed.
24626 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
24627 (NETBSD_BTINFO_CONSOLE): New definition.
24628 (NETBSD_BTINFO_SYMTAB): Likewise.
24629 (NETBSD_BTINFO_MODULES): Likewise.
24630 (NETBSD_BTINFO_FRAMEBUF): Likewise.
24631 (grub_netbsd_bootinfo): New struct.
24632 (grub_netbsd_btinfo_common): Use explicit bitsize.
24633 (grub_netbsd_btinfo_mmap_entry): Removed.
24634 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
24635 (grub_netbsd_btinfo_bootdisk): New struct.
24636 (grub_netbsd_btinfo_symtab): Likewise.
24637 (grub_netbsd_btinfo_serial): Likewise.
24638 (grub_netbsd_btinfo_modules): Likewise.
24639 (grub_netbsd_btinfo_framebuf): Likewise.
24640 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
24641 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
24642 Likewise.
24643 (grub_openbsd_bootargs): Use explicit bitsize.
24644 (grub_openbsd_bootarg_console): New struct.
24645 (GRUB_OPENBSD_COM_MAJOR): New definition.
24646 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
24647 * include/grub/i386/pc/efiemu.h: Removed.
24648 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
24649 * include/grub/i386/qemu/loader.h: Removed.
24650 * include/grub/i386/relocator.h: Rewritten.
24651 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
24652 * include/grub/mips/memory.h: New file.
24653 * include/grub/mips/multiboot.h: Rewritten.
24654 * include/grub/mips/relocator.h: Rewritten.
24655 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
24656 (grub_vtop): New function.
24657 (grub_map_memory): Likewise.
24658 (grub_unmap_memory): Likewise.
24659 * include/grub/misc.h (ALIGN_DOWN): New definition.
24660 * include/grub/mm.h (grub_mm_check_real): New proto.
24661 (GRUB_MM_CHECK): New definition.
24662 * include/grub/mm_private.h: New file.
24663 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
24664 (grub_multiboot_get_mbi_size): Removed.
24665 (grub_multiboot_make_mbi): Change prottype.
24666 (grub_multiboot_set_accepts_video): New proto.
24667 (grub_multiboot_add_elfsyms): Likewise.
24668 (grub_multiboot_payload_eip): New variable.
24669 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
24670 New prototype.
24671 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
24672 New definition.
24673 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
24674 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
24675 * include/grub/powerpc/ieee1275/loader.h: Removed.
24676 * include/grub/powerpc/memory.h: New file.
24677 * include/grub/powerpc/relocator.h: Likewise.
24678 * include/grub/relocator.h: Likewise.
24679 * include/grub/relocator_private.h: Likewise.
24680 * include/grub/sparc64/ieee1275/loader.h: Removed.
24681 * include/grub/x86_64/memory.h: New file.
24682 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
24683 (grub_xnu_heap_malloc): Likewise.
24684 (grub_xnu_heap_real_start): Removed.
24685 (grub_xnu_heap_start): Likewise.
24686 (grub_xnu_relocator): New variable.
24687 (grub_xnu_heap_target_start): Likewise.
24688 * tests/util/grub-shell.in: Support non-pc.
24689 * util/grub-mkimage.c (image_targets): Fix multiboot target.
24690
24691 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24692
24693 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
24694 on malloc error.
24695 (grub_bidi_logical_to_visual): Check that malloc succeded.
24696 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
24697 puts.
24698 (grub_xputs_normal): Likewise.
24699
24700 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24701
24702 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
24703 extra_dist.
24704
24705 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24706
24707 * grub-core/efiemu/runtime/efiemu.sh: Removed.
24708
24709 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24710
24711 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
24712
24713 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24714
24715 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
24716 dprintf.
24717
24718 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
24719
24720 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
24721
24722 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24723
24724 * grub-core/normal/term.c (print_more): Fix a memory leak.
24725 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
24726 (grub_xputs_normal): Likewise.
24727
24728 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24729
24730 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
24731 the begining of the string
24732
24733 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24734
24735 * grub-core/script/script.c (grub_script_parse): Free parsed on
24736 failure.
24737
24738 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24739
24740 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
24741 on failure.
24742
24743 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
24746 return.
24747
24748 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24749
24750 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
24751 (scroll_up): Fix a memory leak.
24752
24753 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24754
24755 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
24756 errors.
24757
24758 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
24759
24760 Handle USB pendrives exposed as floppies.
24761
24762 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
24763 floppy.
24764 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24765 Check for partitions on all devices.
24766
24767 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24768
24769 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
24770 (readkey): Likewise.
24771
24772 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
24773
24774 Multiple variable names support to "export" command.
24775
24776 * normal/context.c (grub_cmd_export): "export" command supports
24777 multiple variable names.
24778
24779 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24780
24781 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24782 --target=drive output to Mach device name.
24783
24784 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24785
24786 New Automake based build system for GRUB.
24787
24788 * ABOUT-NLS: New file.
24789 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24790 in Makefile.util.def file.
24791 * Makefile.util.def: New file. Autogen build definitions file for
24792 GRUB host utils.
24793 * conf/Makefile.common: New file. Common variables for GRUB host
24794 utils and target modules.
24795 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24796 * docs/Makefile.am: New file. Automake file for docs.
24797 * gentpl.py: New file. Python script to generate Autogen
24798 template.
24799 * grub-core/Makefile.am: New file. GRUB target modules' rules
24800 that doesn't fit in Makefile.core.def file.
24801 * grub-core/Makefile.core.def: New file. Autogen build
24802 definitions file for GRUB target modules.
24803 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24804 specific setjmp.S file.
24805 * po/Makefile.am: New file.
24806
24807 * .bzrignore: New ignores.
24808 * INSTALL: New requirements, without Ruby.
24809 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24810 * autogen.sh: Updated to invoke autogen as necessary.
24811 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24812 and defines for Automake conditionals.
24813 * geninit.sh: Refactoring.
24814
24815 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24816 necessary.
24817 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24818 New prototype.
24819
24820 * include/grub/test.h: Fix functional test modules' naming.
24821 * grub-core/tests/example_functional_test.c: Fix test module name.
24822
24823 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24824 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24825 * util/grub-editenv.c: Likewise.
24826 * util/grub-fstest.c: Likewise.
24827 * util/grub-mkdevicemap.c: Likewise.
24828 * util/grub-mkfont.c: Likewise.
24829 * util/grub-mkimage.c: Likewise.
24830 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24831 * util/grub-probe.c: Likewise.
24832 * util/grub-script-check.c: Likewise.
24833 * util/i386/pc/grub-setup.c: Likewise.
24834 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24835
24836 * tests/util/grub-shell.in: Fix override directory path.
24837 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24838 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24839
24840 * util/lvm.c: Update #includes.
24841 * util/raid.c: Likewise.
24842 * util/resolve.c: Likewise.
24843 * grub-core/bus/emu/pci.c: Likewise.
24844 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24845 * grub-core/lib/posix_wrap/string.h: Likewise.
24846 * grub-core/kern/emu/main.c: Likewise.
24847
24848 * grub-core/gensymlist.sh: New file. Script for generating kernel
24849 symbols file.
24850 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24851
24852 * grub-core/gentrigtables.c: Fix unused variable warnings.
24853
24854 * Makefile.in: Removed.
24855 * conf/any-emu.rmk: Removed.
24856 * conf/common.rmk: Removed.
24857 * conf/i386-coreboot.rmk: Removed.
24858 * conf/i386-efi.rmk: Removed.
24859 * conf/i386-ieee1275.rmk: Removed.
24860 * conf/i386-multiboot.rmk: Removed.
24861 * conf/i386-pc.rmk: Removed.
24862 * conf/i386-qemu.rmk: Removed.
24863 * conf/i386.rmk: Removed.
24864 * conf/mips-yeeloong.rmk: Removed.
24865 * conf/mips.rmk: Removed.
24866 * conf/powerpc-ieee1275.rmk: Removed.
24867 * conf/sparc64-ieee1275.rmk: Removed.
24868 * conf/tests.rmk: Removed.
24869 * conf/x86-efi.rmk: Removed.
24870 * conf/x86_64-efi.rmk: Removed.
24871 * gendistlist.sh: Removed.
24872 * geninitheader.sh: Removed.
24873 * genkernsyms.sh.in: Removed.
24874 * genmk.rb: Removed.
24875 * gensymlist.sh.in: Removed.
24876 * mkinstalldirs: Removed.
24877 * boot: Moved ...
24878 * grub-core/boot: ... to here.
24879 * bus: Moved ...
24880 * grub-core/bus: ... to here.
24881 * commands: Moved ...
24882 * grub-core/commands: ... to here.
24883 * disk: Moved ...
24884 * grub-core/disk: ... to here.
24885 * efiemu: Moved ...
24886 * grub-core/efiemu: ... to here.
24887 * font: Moved ...
24888 * grub-core/font: ... to here.
24889 * fs: Moved ...
24890 * grub-core/fs: ... to here.
24891 * gencmdlist.sh: Moved ...
24892 * grub-core/gencmdlist.sh: ... to here.
24893 * genemuinit.sh: Moved ...
24894 * grub-core/genemuinit.sh: ... to here.
24895 * genemuinitheader.sh: Moved ...
24896 * grub-core/genemuinitheader.sh: ... to here.
24897 * genfslist.sh: Moved ...
24898 * grub-core/genfslist.sh: ... to here.
24899 * genhandlerlist.sh: Moved ...
24900 * grub-core/genhandlerlist.sh: ... to here.
24901 * genmoddep.awk: Moved ...
24902 * grub-core/genmoddep.awk: ... to here.
24903 * genmodsrc.sh: Moved ...
24904 * grub-core/genmodsrc.sh: ... to here.
24905 * genpartmaplist.sh: Moved ...
24906 * grub-core/genpartmaplist.sh: ... to here.
24907 * genparttoollist.sh: Moved ...
24908 * grub-core/genparttoollist.sh: ... to here.
24909 * genterminallist.sh: Moved ...
24910 * grub-core/genterminallist.sh: ... to here.
24911 * gentrigtables.c: Moved ...
24912 * grub-core/gentrigtables.c: ... to here.
24913 * genvideolist.sh: Moved ...
24914 * grub-core/genvideolist.sh: ... to here.
24915 * gettext: Moved ...
24916 * grub-core/gettext: ... to here.
24917 * gfxmenu: Moved ...
24918 * grub-core/gfxmenu: ... to here.
24919 * gnulib: Moved ...
24920 * grub-core/gnulib: ... to here.
24921 * hello: Moved ...
24922 * grub-core/hello: ... to here.
24923 * hook: Moved ...
24924 * grub-core/hook: ... to here.
24925 * io: Moved ...
24926 * grub-core/io: ... to here.
24927 * kern: Moved ...
24928 * grub-core/kern: ... to here.
24929 * lib: Moved ...
24930 * grub-core/lib: ... to here.
24931 * loader: Moved ...
24932 * grub-core/loader: ... to here.
24933 * mmap: Moved ...
24934 * grub-core/mmap: ... to here.
24935 * normal: Moved ...
24936 * grub-core/normal: ... to here.
24937 * partmap: Moved ...
24938 * grub-core/partmap: ... to here.
24939 * parttool: Moved ...
24940 * grub-core/parttool: ... to here.
24941 * script: Moved ...
24942 * grub-core/script: ... to here.
24943 * term: Moved ...
24944 * grub-core/term: ... to here
24945 * tests/example_functional_test.c: Moved ...
24946 * grub-core/tests/example_functional_test.c: ... to here.
24947 * tests/lib/functional_test.c: Moved ...
24948 * grub-core/tests/lib/functional_test.c: ... to here.
24949 * tests/lib/test.c: Moved ...
24950 * grub-core/tests/lib/test.c: ... to here.
24951 * video: Moved ...
24952 * grub-core/video: ... to here.
24953
24954 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24955
24956 Replace --enable-grub-emu-modules with grub-emu-lite.
24957
24958 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24959 cache.S.
24960
24961 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24962 * kern/emu/full.c: New file. For grub-emu specific initialization.
24963 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24964 * kern/emu/main.c: Call initialization function grub_emu_init.
24965
24966 * Makefile.in: Include grub-emu-lite in install.
24967 * commands/parttool.c: Use grub_no_autoload to differentiate
24968 between grub-emu and grub-emu-lite.
24969 * include/grub/misc.h: New variable grub_no_autoload.
24970
24971 * conf/any-emu.rmk: New rules for grub-emu-lite.
24972 * configure.ac: Remove --enable-grub-emu-modules.
24973 * genmk.rb: Cleanup unnecessary rules.
24974 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24975
24976 * normal/main.c: Don't load list files on grub-emu-lite.
24977 * util/misc.c (grub_arch_sync_caches): Removed.
24978
24979 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
24980
24981 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24982 grub-mkimage rather than grub-mkelfimage.
24983 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24984
24985 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24986
24987 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24988 a key after CapsLock or NumLock. It's just a qemu bug.
24989
24990 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24991
24992 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24993 needed by libusb wrapper.
24994
24995 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24996
24997 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24998
24999 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25000
25001 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25002 --nounzip is passed.
25003
25004 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25005
25006 USB hotunplugging and USB serial support.
25007
25008 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25009 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25010 (grub_uhci_transfer): Respect timeout and set *actual.
25011 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25012 non-standard length.
25013 (grub_usb_device_attach): Autoload modules.
25014 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25015 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25016 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25017 users updated.
25018 (grub_usb_add_hub): Fill nports and children.
25019 (attach_root_port): Receive hub instead of controller.
25020 All users updated. Fill hub->devices.
25021 (grub_usb_root_hub): Allocate hub->devices.
25022 (detach_device): New function.
25023 (poll_nonroot_hub): Fill children and detach devices.
25024 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25025 actual arguments. All users updated.
25026 (grub_usb_bulk_read_extended): New function.
25027 * bus/usb/serial/common.c: New file.
25028 * bus/usb/serial/ftdi.c: Likewise.
25029 * bus/usb/serial/pl2303.c: Likewise.
25030 * commands/terminal.c (handle_command): Support wildcard.
25031 * commands/usbtest.c: Output "Unknown" instead of empty string.
25032 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25033 (usbserial_common_mod_SOURCES): New variable.
25034 (usbserial_common_mod_CFLAGS): Likewise.
25035 (usbserial_common_mod_LDFLAGS): Likewise.
25036 (pkglib_MODULES): Add usbserial_pl2303.mod.
25037 (usbserial_pl2303_mod_SOURCES): New variable.
25038 (usbserial_pl2303_mod_CFLAGS): Likewise.
25039 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25040 (pkglib_MODULES): Add usbserial_ftdi.mod.
25041 (usbserial_ftdi_mod_SOURCES): New variable.
25042 (usbserial_ftdi_mod_CFLAGS): Likewise.
25043 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25044 (pkglib_MODULES): Add serial.mod.
25045 (serial_mod_SOURCES): New variable.
25046 (serial_mod_CFLAGS): Likewise.
25047 (serial_mod_LDFLAGS): Likewise.
25048 * conf/i386-pc.rmk: Likewise.
25049 * conf/mips-yeeloong.rmk: Likewise.
25050 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25051 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25052 * disk/usbms.c (first_available_slot): New variable.
25053 (grub_usbms_attach): Don't reuse free slots due to potential cache
25054 problems.
25055 * include/grub/serial.h: Moved to ..
25056 * include/grub/ns8250.h: ...this.
25057 * include/grub/serial.h: New file.
25058 * include/grub/term.h (grub_term_poll_usb): New variable.
25059 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25060 readkey. All users updated.
25061 (grub_terminfo_output_state): Pass term to put.
25062 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25063 (grub_usb_controller_dev): Add timeout and actual arguments to
25064 transfer. All users updated.
25065 (grub_usb_interface): New field detach_data.
25066 (grub_usb_device): New fields children and nports.
25067 (grub_usb_ep_type_t): New type.
25068 (grub_usb_get_ep_type): New function.
25069 (grub_usb_bulk_read_extended): Likewise.
25070 * include/grub/usbdesc.h (grub_usb_desc): New type.
25071 * include/grub/usbserial.h: New file.
25072 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25073 * kern/term.c (grub_term_poll_usb): New variable.
25074 (grub_getkey): Call grub_term_poll_usb if set.
25075 (grub_checkkey): Likewise.
25076 (grub_getkeystatus): Likewise.
25077 * term/serial.c: Moved controller-specific parts to ...
25078 * term/ns8250.c: ... here.
25079 * term/serial.c: Mostly rewritten.
25080 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25081 according to spec.
25082
25083 2010-08-20 Robert Millan <rmh@gnu.org>
25084
25085 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25086 a separate module and maybe other interesting combinations.
25087
25088 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25089 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25090 (kfreebsd_entry): Add generic filesystem module load routine.
25091 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25092
25093 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25094
25095 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25096 "numcenter" (I misunderstood the purpose of this entry).
25097 * docs/grub.texi (sendkey): Likewise.
25098
25099 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25100
25101 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25102 status flag options; simply omitting the option is equivalent and
25103 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25104 (keysym_table): Rename "num5numlock" to "numlock".
25105 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25106 can uniformly say that only the last of multiple `sendkey'
25107 invocations has any effect.
25108 * docs/grub.texi (sendkey): New section.
25109
25110 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25111
25112 * commands/i386/pc/sendkey.c (options): Fix three typos.
25113
25114 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25115
25116 Implement sendkey support.
25117
25118 * commands/i386/pc/sendkey.c: New file.
25119 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25120 (sendkey_mod_SOURCES): New variable.
25121 (sendkey_mod_CFLAGS): Likewise.
25122 (sendkey_mod_LDFLAGS): Likewise.
25123
25124 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25125
25126 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25127 fix warnings from Autoconf.
25128
25129 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25130
25131 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25132 to avoid false positives with some assemblers that output things
25133 like "someprefix_func" as part of their output.
25134
25135 2010-08-15 Robert Millan <rmh@gnu.org>
25136
25137 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25138 errors.
25139 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25140 grub_get_libzfs_handle() errors.
25141
25142 2010-08-14 Robert Millan <rmh@gnu.org>
25143
25144 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25145 filesystem is not ZFS.
25146
25147 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25148
25149 Fix for misspelled color names defaulting to black/black (bug
25150 reported by Doug Nazar)
25151
25152 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25153 status to prototype.
25154 * normal/color.c (grub_parse_color_name_pair): Return failure
25155 status.
25156 (grub_env_write_color_normal): Ignore bad color names.
25157 (grub_env_write_color_highlight): Likewise.
25158 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25159
25160 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25161
25162 "shift" command support to GRUB script.
25163
25164 * include/grub/script_sh.h (grub_script_shift): New prototype.
25165 * script/execute.c (grub_script_shift): New function.
25166 * script/main.c (grub_script_init): Register shift command.
25167 (grub_script_fini): Unregister shift command.
25168 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25169
25170 * tests/grub_script_shift.in: New testcase.
25171 * conf/tests.rmk: Rules for new testcase.
25172
25173 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25174
25175 "continue" command support to GRUB script.
25176
25177 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25178 (grub_script_break): Continue support.
25179 * script/main.c (grub_script_init): Register continue command.
25180 (grub_script_fini): Unregister continue command.
25181
25182 * tests/grub_script_continue.in: New testcase.
25183 * conf/tests.rmk: Rules for new testcase.
25184
25185 2010-08-12 BVK Chaitanya <bvk@dbook>
25186
25187 "break" command support to GRUB script.
25188
25189 * conf/common.rmk: Rule updates to grub-script-check.
25190 * include/grub/misc.h (grub_min): New function.
25191 * include/grub/script_sh.h (grub_script_init): New prototype.
25192 (grub_script_fini): New prototype.
25193 (grub_script_break): New prototype.
25194 * script/main.c (grub_script_init): New function.
25195 (grub_script_fini): New function.
25196 * script/execute.c (grub_script_break): New function.
25197 * normal/main.c: Calls to grub_script_{init,fini}.
25198 * util/grub-script-check.c (grub_script_break): New function.
25199
25200 * tests/grub_script_break.in: New testcase.
25201 * conf/tests.rmk: Rules for new test case.
25202
25203 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25204
25205 Function parameters support to GRUB script.
25206
25207 * script/yylex.l (VARIABLE): Regular expression update.
25208 * script/function.c (grub_script_function_call): Moved ...
25209 * script/execute.c (grub_script_function_call): ... to here.
25210 (grub_script_execute_arglist_to_argv): Removed.
25211 (grub_script_arglist_to_argv): New function.
25212 * script/argv.c: New file.
25213 (grub_script_argv_free): New function.
25214 (grub_script_argv_next): Likewise.
25215 (grub_script_argv_append): Likewise.
25216 (grub_script_argv_split_append): Likewise.
25217 * include/grub/script_sh.h (grub_script_argv): New struct.
25218 (grub_script_argv_free): New function.
25219 (grub_script_argv_next): Likewise.
25220 (grub_script_argv_append): Likewise.
25221 (grub_script_argv_split_append): Likewise.
25222
25223 * conf/common.rmk (normal.mod): New source script/argv.c.
25224
25225 * tests/grub_script_echo1.in: More tests.
25226 * tests/grub_script_vars1.in: Likewise.
25227 * tests/grub_script_functions.in: New test case.
25228 * conf/tests.rmk: Rules for new testcase.
25229
25230 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25231
25232 Remove grub_script_cmdblock struct.
25233
25234 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25235 * script/parser.y: Likewise.
25236 * script/execute.c: Rename cmdblock suffix to cmdlist.
25237 * script/script.c: Likewise.
25238 * util/grub-script-check.c: Likewise.
25239
25240 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25241
25242 * .bzrignore: add grub-macho2img
25243
25244 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25245
25246 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25247
25248 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25249
25250 Remove the dump of sm712 initialisation sequence.
25251
25252 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25253 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25254 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25255 (GRUB_VGA_CR_*): Added many registers.
25256 (GRUB_VGA_SR_*): Likewise.
25257 (GRUB_VGA_GR_*): Likewise.
25258 (grub_vga_write_arx): New function.
25259 (grub_video_hw_config): New struct.
25260 (grub_vga_set_geometry): New function.
25261 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25262 GRUB_PCI_CLASS_SUBCLASS_VGA.
25263 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25264 * video/sm712.c (grub_sm712_write_reg): New function
25265 (grub_sm712_read_reg): Likewise.
25266 (grub_sm712_sr_write): Likewise.
25267 (grub_sm712_gr_write): Likewise.
25268 (grub_sm712_cr_write): Likewise.
25269 (grub_sm712_write_arx): Likewise.
25270 (grub_sm712_cr_shadow_write): Likewise.
25271 (grub_sm712_write_dda_lookup): Likewise.
25272 (grub_video_sm712_setup): Initialise the video rather then
25273 blindly replay the dump.
25274 (main) [TEST]: Add a routine to be able to compile as standalone for
25275 tests.
25276 * video/sm712_init.c (sm712_init): Removed.
25277 (sm712_sr_seq1): New array.
25278 (sm712_sr_seq2): Likewise.
25279
25280 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25281
25282 * include/grub/vga.h: Add missing grub/pci.h include.
25283
25284 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25285
25286 * util/grub-macho2img.c (main): fix typo
25287
25288 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25289
25290 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25291 (grub_vga_gr_read): Likewise.
25292 (grub_vga_cr_write): Likewise.
25293 (grub_vga_cr_read): Likewise.
25294 (grub_vga_sr_write): Likewise.
25295 (grub_vga_sr_read): Likewise.
25296 (grub_vga_palette_read): Likewise.
25297 (grub_vga_palette_write): Likewise.
25298 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25299 (grub_sm712_sr_read): New function.
25300 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25301 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25302
25303 2010-08-09 Robert Millan <rmh@gnu.org>
25304
25305 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25306 out unused variables on non-ZFS build.
25307
25308 2010-08-08 Robert Millan <rmh@gnu.org>
25309
25310 Fix path generation for sub-filesystems in ZFS.
25311
25312 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25313 missing slash.
25314
25315 2010-08-08 Robert Millan <rmh@gnu.org>
25316
25317 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25318
25319 2010-08-08 Robert Millan <rmh@gnu.org>
25320
25321 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25322 exist, issue a proper error message (rely on `ls' for translated
25323 strings).
25324
25325 2010-08-08 Robert Millan <rmh@gnu.org>
25326
25327 Fix grub-probe invocation.
25328
25329 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25330
25331 2010-08-04 Robert Millan <rmh@gnu.org>
25332
25333 * configure.ac: Remove checks for getfsstat() and getmntany().
25334 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25335 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25336 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25337 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25338 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25339 function.
25340 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25341 via find_mount_point_from_dir() and getfsstat() / getmntany().
25342
25343 2010-08-04 Robert Millan <rmh@gnu.org>
25344
25345 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25346 (grub_find_zpool_from_mount_point): Merge into ...
25347 (grub_find_zpool_from_dir): ... this.
25348 * kern/emu/misc.c: Likewise.
25349
25350 * kern/emu/misc.c
25351 (grub_make_system_path_relative_to_its_root): Replace
25352 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25353 with grub_find_zpool_from_dir().
25354 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25355
25356 2010-08-04 Robert Millan <rmh@gnu.org>
25357
25358 Support OpenSolaris in ZFS device resolution.
25359
25360 * configure.ac: Check for getmntany().
25361 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25362 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25363 support.
25364
25365 2010-08-03 Robert Millan <rmh@gnu.org>
25366
25367 Fix grub-emu build.
25368
25369 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25370 * include/grub/emu/misc.h: ... here.
25371
25372 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25373 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25374
25375 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25376 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25377 (grub_get_libzfs_handle): Move to ...
25378 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25379 (grub_get_libzfs_handle): ... here.
25380
25381 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25382
25383 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25384 as command name case.
25385
25386 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25387
25388 * disk/raid.c (insert_array): Select unique numbers for named arrays
25389 as well, for use as keys in the disk cache.
25390
25391 2010-08-01 Robert Millan <rmh@gnu.org>
25392
25393 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25394 kFreeBSD device name, except on ZFS where the filesystem label is
25395 used.
25396 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25397 `/boot/zfs/zpool.cache'.
25398 Set mountfrom kernel variable using ${kfreebsd_device}.
25399
25400 2010-08-01 Robert Millan <rmh@gnu.org>
25401
25402 Make it even harder to use uninitialized `libzfs_handle' (and
25403 make the interface a bit simpler).
25404
25405 * include/grub/util/misc.h (grub_util_init_libzfs)
25406 (libzfs_handle): Remove.
25407 (grub_get_libzfs_handle): New prototype.
25408
25409 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
25410 attribute.
25411 (grub_util_init_libzfs): Remove.
25412 (grub_get_libzfs_handle): New function.
25413
25414 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
25415 grub_get_libzfs_handle() to obtain a libzfs handle instead of
25416 accessing `libzfs_handle' directly.
25417
25418 2010-08-01 Robert Millan <rmh@gnu.org>
25419
25420 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25421 (grub_find_zpool_from_mount_point): New function prototypes.
25422
25423 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25424 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25425
25426 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25427 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25428 `static' attribute.
25429
25430 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25431 finding zpool from mount point into ...
25432 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25433
25434 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25435 requested path is part of a ZFS pool, use
25436 grub_find_zpool_from_mount_point() to detect its filesystem name,
25437 and generate a path with `/fsname@path' syntax.
25438
25439 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25440
25441 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
25442 (void) rather than () so that this is a proper prototype.
25443
25444 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25445
25446 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
25447
25448 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25449
25450 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
25451 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
25452
25453 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25454
25455 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
25456
25457 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25458
25459 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
25460
25461 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25462
25463 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
25464 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
25465 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
25466 disable gfxpayload.
25467 (Shell-like scripting): Add real content.
25468 (Serial terminal): Suggest `terminal_input serial; terminal_output
25469 serial' rather than putting the two commands on separate lines,
25470 since console input will be inoperative after the first command.
25471 (menuentry): Document --class, --users, and --hotkey options.
25472 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
25473 Vladimir Serbinenko).
25474
25475 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25476 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25477
25478 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
25479
25480 2010-08-01 Robert Millan <rmh@gnu.org>
25481
25482 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25483 (grub_find_zpool_from_mount_point): New function prototypes.
25484
25485 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
25486 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
25487
25488 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
25489 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
25490 `static' attribute.
25491
25492 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
25493 finding zpool from mount point into ...
25494 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
25495
25496 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
25497 requested path is part of a ZFS pool, use
25498 grub_find_zpool_from_mount_point() to detect its filesystem name,
25499 and generate a path with `/fsname@path' syntax.
25500
25501 2010-08-01 Robert Millan <rmh@gnu.org>
25502
25503 Prevent accidental use of uninitialized libzfs_handle.
25504
25505 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
25506 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
25507 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
25508
25509 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
25510
25511 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
25512 util/grub.d/10_linux.in). Fixes Debian bug #591093.
25513
25514 2010-08-01 Robert Millan <rmh@gnu.org>
25515
25516 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
25517
25518 2010-07-31 Robert Millan <rmh@gnu.org>
25519
25520 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
25521
25522 2010-07-31 Robert Millan <rmh@gnu.org>
25523
25524 * kern/emu/misc.c: Add missing license header.
25525
25526 2010-07-31 Robert Millan <rmh@gnu.org>
25527
25528 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
25529
25530 * include/grub/util/libnvpair.h: Include `<config.h>'.
25531 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
25532 declaring libnvpair prototypes ourselves.
25533 * include/grub/util/libzfs.h: Include `<config.h>'.
25534 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
25535 declaring libzfs prototypes ourselves.
25536
25537 (libzfs_handle): Moved to ...
25538 * include/grub/util/misc.h (libzfs_handle): ... here.
25539 Include `<grub/util/libzfs.h>'.
25540
25541 2010-07-30 Robert Millan <rmh@gnu.org>
25542
25543 * include/grub/emu/misc.h: Add missing license header.
25544
25545 2010-07-30 Robert Millan <rmh@gnu.org>
25546
25547 Enable `grub-probe -t device' resolution on ZFS.
25548
25549 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
25550 * include/grub/util/libnvpair.h: New file.
25551 * include/grub/util/libzfs.h: New file.
25552
25553 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
25554 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
25555 `<grub/util/libnvpair.h>'.
25556 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
25557
25558 (find_mount_point_from_dir): New static function.
25559 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
25560 function.
25561 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
25562 find_root_device_from_libzfs() before ressorting to find_root_device().
25563
25564 * include/grub/util/misc.h (grub_util_init_libzfs): New function
25565 prototype.
25566 * util/misc.c: Include `<grub/util/libzfs.h>'.
25567 (grub_util_init_libzfs): New function.
25568 [HAVE_LIBZFS] (libzfs_handle): New global variable.
25569 [HAVE_LIBZFS] (fini_libzfs): New static function.
25570 (grub_util_init_libzfs): New function.
25571 * util/grub-probe.c (main): Call grub_util_init_libzfs().
25572
25573 2010-07-30 Robert Millan <rmh@gnu.org>
25574
25575 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
25576 (xmalloc, xrealloc, xstrdup, xasprintf): Add
25577 `warn_unused_result' attribute.
25578 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
25579 (grub_xasprintf, grub_xvasprintf): Likewise.
25580 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
25581
25582 2010-07-29 Robert Millan <rmh@gnu.org>
25583
25584 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
25585 (probe): Handle `PRINT_FS_LABEL'.
25586 (main): Handle `-t fs_label'.
25587
25588 2010-07-29 Robert Millan <rmh@gnu.org>
25589
25590 * configure.ac: Remove grub-mkisofs checks.
25591
25592 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25593
25594 * util/ieee1275/grub-install.in: Don't use empty grub_device.
25595 Reported by: Lennart Sorensen.
25596
25597 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25598
25599 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
25600 prior to terminal_input/terminal_output separation. It's been over 1.5
25601 years and those versions weren't widely deployed.
25602
25603 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
25604
25605 * disk/raid.c (insert_array): Don't count named arrays when looking
25606 for unused array numbers.
25607 Reported and tested by: Michael Guntsche.
25608
25609 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25610
25611 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
25612 implementation of this so that grub-emu links again, with a note
25613 that this should support hotplugging in the future.
25614
25615 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25616
25617 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25618
25619 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25620
25621 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
25622 handle on failure.
25623 (grub_loopback_close): Remove empty function.
25624 (grub_loopback_dev): Remove close method.
25625
25626 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25627
25628 Disable EFI cursor when the EFI console becomes inactive.
25629
25630 * term/efi/console.c (grub_efi_console_init): New function.
25631 (grub_efi_console_fini): New function.
25632 (grub_console_term_output): Register init and fini methods.
25633
25634 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25635
25636 * tests/util/grub-shell-tester.in: Remove bashism and declare as
25637 sh script.
25638
25639 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25640
25641 * disk/loopback.c (grub_loopback): Replace filename with file.
25642 (delete_loopback): Handle new semantics.
25643 (grub_cmd_loopback): Likewise.
25644 (grub_loopback_iterate): Likewise.
25645 (grub_loopback_close): Likewise.
25646
25647 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25648
25649 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
25650 with -p "".
25651 Reported by: Tito Keitel.
25652
25653 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25654
25655 * docs/grub.texi (Naming convention): Document new naming convention.
25656
25657 2010-07-20 Vadim Solomin <vadic052@gmail.com>
25658 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25659
25660 Generate device.map in something closer to the old ordering.
25661
25662 * util/deviceiter.c (struct device): New declaration.
25663 (compare_file_names): Rename to ...
25664 (compare_devices): ... this. Sort by kernel name in preference to
25665 the stable by-id name, but keep the latter as a fallback comparison.
25666 Update header comment.
25667 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
25668 of `struct device' rather than of plain file names.
25669
25670 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
25671
25672 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
25673 on i386.
25674
25675 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25676
25677 * commands/acpi.c (setup_common_tables): Use sizeof instead of
25678 hardcoding size.
25679 (setv1table): Likewise.
25680
25681 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25682
25683 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
25684 removing the homehost if present.
25685 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
25686 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
25687 removing the homehost if present.
25688 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
25689 if possible.
25690 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
25691
25692 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
25693 parameter. Set its pointer target to 0.
25694 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
25695 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
25696 `data_offset' value from the superblock for 1.x metadata.
25697 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
25698 data on the device.
25699 (insert_array): Record the start sector of data on the device.
25700 (grub_raid_register): Pass start_sector parameters to
25701 grub_raid_list->detect and insert_array.
25702 * include/grub/raid.h (struct grub_raid_array): Add start_sector
25703 member.
25704 (struct grub_raid): Add start_sector parameter to `detect'.
25705
25706 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
25707 __attribute__ ((packed)), leaving a comment.
25708 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
25709 (grub_mdraid_detect_09): ... here and ...
25710 (grub_mdraid_detect_1x): ... here.
25711
25712 2010-07-20 Peter Henn <peter.henn@web.de>
25713
25714 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
25715 chunk size and disk size, which are already given as sector counts
25716 as distinct from the 0.90 units. Fetch the correct device number
25717 from the role table instead of using the table index.
25718
25719 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
25720
25721 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
25722 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
25723 (WriteMostly1): New macro.
25724 Set array->name to NULL for metadata format 0.90. Add support for
25725 metadata 1.x. Fix some comments.
25726 * disk/raid.c (): Add support for name based RAID arrays. Fix a
25727 few comments.
25728 * util/getroot.c (grub_util_get_grub_dev): Add support for
25729 /dev/md/name style devices.
25730
25731 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
25732
25733 * .bzrignore: Ignore 20_linux_xen.
25734
25735 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
25736
25737 * util/import_unicode.py: Remove unnecessary imports.
25738
25739 2010-07-17 Aleš Nesrsta <starous@volny.cz>
25740
25741 Hotplugging and USB hub support.
25742
25743 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
25744 (grub_ohci): Likewise.
25745 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
25746 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
25747 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
25748 (GRUB_OHCI_CTRL_EDS): Likewise.
25749 (GRUB_OHCI_BULK_EDS): Likewise.
25750 (GRUB_OHCI_TDS): Likewise.
25751 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
25752 (grub_ohci_ed_phys2virt): New function.
25753 (grub_ohci_virt_to_phys): Likewise.
25754 (grub_ohci_td_phys2virt): Likewise.
25755 (grub_ohci_td_virt2phys): Likewise.
25756 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
25757 attachment.
25758 (grub_ohci_find_ed): New function.
25759 (grub_ohci_alloc_td): Likewise.
25760 (grub_ohci_free_td): Likewise.
25761 (grub_ohci_free_tds): Likewise.
25762 (grub_ohci_transfer): Use previously allocated memory.
25763 (grub_ohci_portstatus): Reset status changed bit.
25764 (grub_ohci_detect_dev): Supply status changed.
25765 (grub_ohci_fini_hw): Free memory.
25766 (grub_ohci_restore_hw): Reallocate memory.
25767 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
25768 Reset status change.
25769 (grub_uhci_detect_dev): Supply status_change.
25770 * bus/usb/usb.c (attach_hooks): New var.
25771 (grub_usb_device_attach): New function.
25772 (grub_usb_register_attach_hook_class): Likewise.
25773 (grub_usb_unregister_attach_hook_class): Likewise.
25774 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25775 (grub_usb_add_hub): Reset connection changed bit.
25776 (attach_root_port): New function.
25777 (grub_usb_root_hub): Likewise.
25778 (poll_nonroot_hub): Likewise.
25779 (grub_usb_poll_devices): Likewise.
25780 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25781 * disk/usbms.c (grub_usbms_open): Use device hooks.
25782 (grub_usbms_iterate) :Poll devices.
25783 (grub_usbms_finddevs): Split into ...
25784 (grub_usbms_attach): ... this ...
25785 (grub_usbms_attach): ... and this.
25786 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25787 in detect_dev.
25788 (grub_usb_interface): New fields attached and detach_hook.
25789 (grub_usb_attach_hook_class): New type.
25790 (grub_usb_attach_desc): New struct.
25791 (grub_usb_register_attach_hook_class): New function.
25792 (grub_usb_unregister_attach_hook_class): Likewise.
25793 (grub_usb_poll_devices): Likewise.
25794 (grub_usb_device_attach): Likewise.
25795 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25796 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25797
25798 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25799
25800 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25801 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25802 delta determination style. Works with most NetBSD partitions too.
25803
25804 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25805
25806 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25807 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25808
25809 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25810
25811 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25812
25813 2010-07-14 Anton Blanchard <anton@samba.org>
25814
25815 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25816 ET_DYN files.
25817
25818 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25819
25820 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25821
25822 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25823
25824 * kern/partition.c (grub_partition_check_containment): New function to
25825 check that a partition is physically contained in a parent. Since
25826 offsets are relative (and non-negative), this reduces to checking that
25827 the partition ends before its parent.
25828 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25829 (grub_partition_iterate): Likewise.
25830 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25831 comments.
25832 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25833 partitions that start before their parent, and add debug printfs.
25834
25835 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25836
25837 * Makefile.in (.SUFFIX): Spell correctly, as ...
25838 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25839 bare module name without `.mod', e.g. `test') tried to invoke a
25840 Modula-2 compiler.
25841
25842 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
25843
25844 * README: Point to the Info manual.
25845
25846 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
25847
25848 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25849 2nd superblock position from partition size.
25850
25851 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
25852
25853 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25854 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25855 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25856 outputs.
25857
25858 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25859
25860 Restructure SCSI .id handling.
25861 Reported and tested by: Aleš Nesrsta.
25862
25863 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25864 (grub_atapi_dev): Changed .name to "ata". New field .id.
25865 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25866 (grub_usbms_dev): New field .id.
25867 * disk/scsi.c (grub_scsi_iterate): Generate name.
25868 (grub_scsi_open): Parse name.
25869 * include/grub/scsi.h (grub_make_scsi_id): New function.
25870 (grub_scsi_dev): Change iterate and open to number instead of naming
25871 busses. All users updated.
25872 (grub_scsi): Remove name. Add .bus.
25873
25874 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25875
25876 * commands/help.c (grub_cmd_help): Fix a typo.
25877
25878 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25879
25880 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25881 Reported and tested by: Colin Watson.
25882
25883 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25884
25885 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25886 in this context.
25887
25888 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25891
25892 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
25893
25894 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25895 indentation.
25896
25897 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25898
25899 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25900 and disk/raid6_recover.c.
25901 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25902 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25903
25904 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25905
25906 * term/gfxterm.c (repaint_schedulded): Rename to ...
25907 (repaint_scheduled): ... this. Update all callers.
25908 (repaint_was_schedulded): Rename to ...
25909 (repaint_was_scheduled): ... this. Update all callers.
25910
25911 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25912
25913 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25914 which we expect to be handled by upper layers.
25915
25916 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25917
25918 * bus/usb/usbhub.c: #include time.h header.
25919
25920 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25921
25922 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25923 entry_name also for entries without stat blocks (e.g. ".."); fixes
25924 corruption of the first entry in a directory.
25925
25926 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
25927
25928 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25929 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25930 doesn't work otherwise.
25931
25932 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25933
25934 * docs/grub.texi (Features): Update list of supported file systems.
25935 (GNU/Linux): Update for GRUB 2.
25936 (Serial terminal): Remove mention of --disable-serial, which was a
25937 GRUB Legacy configure option. Update instructions to use
25938 `terminal_input' and `terminal_output' rather than `terminal'.
25939 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25940 configuration' and `Installing GRUB using grub-install'.
25941 (Menu entry editor): Update for GRUB 2.
25942 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25943 Document new -a, -u, and -v options.
25944 (initrd): New section.
25945 (initrd16): New section.
25946 (linux): New section.
25947 (linux16): New section.
25948 (search): The `var' argument to `--set' is optional.
25949 (GRUB only offers a rescue shell): Go into a little more detail on
25950 drive ordering.
25951
25952 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25953
25954 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25955
25956 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25957
25958 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25959 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25960
25961 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
25962
25963 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25964 install_prefix, in line with install_dos_part and install_bsd_part.
25965 Add new prefix variable, which is copied to install_prefix after
25966 comparing core.img in memory with the one read from disk in the
25967 no-embedding case, and use that rather than overwriting
25968 install_prefix immediately when installing to a partition.
25969 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25970 Bicakci.
25971
25972 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25973
25974 * configure.ac: Avoid == in test command, it's not portable.
25975 * util/grub.d/30_os-prober.in: Likewise.
25976
25977 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
25978
25979 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25980
25981 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25982
25983 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25984 multiple (top-level) partmaps.
25985
25986 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25987
25988 * util/i386/efi/grub-install.in: Don't use empty grub_device.
25989 Reported by: Tino Keitel.
25990
25991 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25992
25993 Bidi and diacritics support.
25994
25995 * Makefile.in (widthspec.bin): New target.
25996 (widthspec.h): Likewise.
25997 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25998 * autogen.sh: Generate unidata.c.
25999 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26000 * commands/ls.c (grub_ls_list_devices): Likewise.
26001 (grub_ls_list_files): Likewise.
26002 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26003 (grub_mini_cmd_lsmod): Likewise.
26004 * commands/read.c: Likewise.
26005 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26006 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26007 * lib/arg.c (grub_arg_show_help): Likewise.
26008 * lib/crypto.c (grub_password_get): Likewise.
26009 * normal/auth.c (grub_username_get): Likewise.
26010 * normal/misc.c (grub_normal_print_device_info): Likewise.
26011 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26012 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26013 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26014 (normal/charset.c_DEPENDENCIES): New variable.
26015 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26016 (pkglib_MODULES): Remove charset.mod.
26017 (charset_mod_SOURCES): Removed.
26018 (charset_mod_CFLAGS): Likewise.
26019 (charset_mod_LDFLAGS): Likewise.
26020 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26021 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26022 and term/tparm.c.
26023 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26024 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26025 (kernel_img_HEADERS): Add terminfo.h.
26026 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26027 Fill ->font. Reverse ascii bitmaps.
26028 (grub_font_get_xheight): New function.
26029 * font/font.c (grub_font_get_string_width): Moved from here ...
26030 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26031 * font/font.c (grub_font_draw_string): Moved from here ...
26032 * gfxmenu/font.c (grub_font_draw_string): ... here.
26033 * font/font.c (grub_font_dup_glyph): New function.
26034 (grub_font_blit_glyph): Likewise.
26035 (grub_font_blit_glyph_mirror): Likewise.
26036 (blit_comb): Likewise.
26037 (grub_font_construct_dry_run): Likewise.
26038 (grub_font_get_constructed_device_width): Likewise.
26039 (grub_font_construct_glyph): Likewise.
26040 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26041 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26042 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26043 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26044 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26045 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26046 (grub_font_get_xheight): New proto.
26047 (grub_font_get_constructed_device_width): Likewise.
26048 (grub_font_construct_glyph): Likewise.
26049 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26050 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26051 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26052 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26053 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26054 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26055 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26056 (grub_console_getcharwidth): Likewise.
26057 * include/grub/misc.h (grub_xputs): New proto.
26058 (grub_puts): Inlined.
26059 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26060 (grub_normal_get_line_counter): Removed.
26061 (grub_install_newline_hook): Likewise.
26062 (grub_normal_get_char_counter): New proto.
26063 (grub_normal_reset_more): Likewise.
26064 (grub_xputs_normal): Likewise.
26065 * include/grub/powerpc/ieee1275/console.h: Removed.
26066 * include/grub/sparc64/ieee1275/console.h: Likewise.
26067 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26068 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26069 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26070 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26071 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26072 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26073 (grub_term_input): Pass reference to self. All users updated.
26074 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26075 Pass reference to self. New fields normal_color, highlight_color and
26076 data. All users updated.
26077 (grub_putchar): Removed.
26078 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26079 (grub_unicode_estimate_width): New function.
26080 (grub_term_getcharwidth): Add defaults.
26081 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26082 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26083 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26084 (grub_cls): Remove EXPORT_FUNC.
26085 (grub_setcolorstate): Inline.
26086 (grub_newline_hook): Removed.
26087 * include/grub/terminfo.h: Rewritten. All users updated.
26088 * include/grub/unicode.h: New file.
26089 * include/grub/video.h (grub_video_signed_rect): New type.
26090 * kern/emu/console.c (grub_console_highlight_color): Removed.
26091 (grub_console_normal_color): Likewise.
26092 (grub_console_standard_color): Made static.
26093 (grub_ncurses_putchar): Remove mapping.
26094 (grub_ncurses_getcharwidth): Removed.
26095 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26096 (grub_ncurses_setcolor): Removed.
26097 (grub_ncurses_getcolor): Likewise.
26098 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26099 (grub_console_putchar): ... this.
26100 (grub_console_putchar): Handle argument difference.
26101 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26102 console_init_early and console_init_lately.
26103 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26104 * kern/misc.c (grub_puts): Removed.
26105 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26106 (grub_vsnprintf_real): Remove str = NULL support.
26107 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26108 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26109 * kern/term.c (grub_putcode): Renamed to ...
26110 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26111 (grub_putchar): Removed.
26112 (grub_xputs_dumb): New function.
26113 (grub_xputs): New variable.
26114 * lib/charset.c: Move from here ...
26115 * normal/charset.c: ... to here.
26116 (grub_ucs4_to_utf8): New function.
26117 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26118 (join_types): New variable.
26119 (unpack_join): New function.
26120 (bidi_types): New variable.
26121 (unpack_bidi): New function.
26122 (get_bidi_type): Likewise.
26123 (get_join_type): Likewise.
26124 (is_mirrored): Likewise.
26125 (grub_unicode_get_comb_type): Likewise.
26126 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26127 (is_type_after): Likewise.
26128 (grub_unicode_aglomerate_comb): Likewise.
26129 (bidi_line_wrap): Likewise.
26130 (grub_bidi_line_logical_to_visual): Likewise.
26131 (grub_bidi_logical_to_visual): Likewise.
26132 (grub_unicode_mirror_code): Likewise.
26133 (grub_unicode_shape_code): Likewise.
26134 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26135 Don't use grub_putchar.
26136 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26137 (grub_normal_reader_init): Likewise.
26138 (grub_xputs_saved): New variable.
26139 (GRUB_MOD_INIT): Set grub_xputs.
26140 (GRUB_MOD_FINI): Restore grub_xputs.
26141 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26142 (menu_init): Avoid printing gfxmenu error.
26143 (show_menu): Use grub_normal_get_char_counter.
26144 * normal/menu_entry.c (update_screen): Fix out-of-array.
26145 (complete): Avoid NULL dereferencing.
26146 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26147 * normal/menu_text.c (print_spaces): Removed.
26148 (grub_print_ucs4): Likewise.
26149 (grub_print_message_indented): Use grub_print_ucs4.
26150 (print_message): Use grub_putcode.
26151 (print_entry): Hanlde diacritics.
26152 * normal/term.c (term_state): New type.
26153 (grub_more_lines): Removed.
26154 (term_states): New variable.
26155 (grub_normal_line_counter): Renamed to ..
26156 (grub_normal_char_counter): ...this. All users updated.
26157 (grub_normal_get_line_counter): Renamed to ...
26158 (grub_normal_get_char_counter): ... this.
26159 (grub_normal_reset_more): New function.
26160 (process_newline): Removed.
26161 (print_more): New function.
26162 (grub_install_newline_hook): Removed.
26163 (map_code): New function.
26164 (grub_puts_terminal): Use grub_print_ucs4.
26165 (putglyph): New function.
26166 (putcode_real): Likewise.
26167 (grub_putcode): Use putcode_real.
26168 (get_maxwidth): New function.
26169 (get_startwidth): Likewise.
26170 (print_ucs4_terminal): Likewise.
26171 (find_term_state): Likewise.
26172 (put_glyphs_terminal): Likewise.
26173 (print_backlog): Likewise.
26174 (print_ucs4_real): Likewise.
26175 (grub_print_ucs4): Likewise.
26176 (grub_xputs_normal): Likewise.
26177 * term/efi/console.c (grub_console_putchar): Output diacritics.
26178 (grub_console_getcharwidth): Removed.
26179 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26180 * term/gfxterm.c (clear_char): Free chars.
26181 (scroll_up): Avoid leaking memory.
26182 (grub_gfxterm_putchar): Support diacritics.
26183 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26184 * term/i386/pc/console.c (grub_console_term_output): Declare as
26185 GRUB_TERM_CODE_TYPE_VGA.
26186 * term/i386/pc/vga.c (grub_vga_term): Declare as
26187 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26188 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26189 GRUB_TERM_CODE_TYPE_VGA.
26190 * term/i386/vga_common.c (map_char): Removed.
26191 (grub_console_putchar): Likewise.
26192 (grub_console_getcharwidth): Likewise.
26193 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26194 (colors): Reordered to match terminfo.
26195 (grub_ofconsole_normal_color): Removed.
26196 (grub_ofconsole_writeesc): Likewise.
26197 (grub_ofconsole_highlight_color): Likewise.
26198 (grub_ofconsole_getcharwidth): Likewise.
26199 (grub_ofconsole_setcolorstate): Likewise.
26200 (grub_ofconsole_setcolor): Likewise.
26201 (grub_ofconsole_getcolor): Likewise.
26202 (grub_ofconsole_readkey): Renamed to ...
26203 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26204 key.
26205 (grub_ofconsole_checkkey): Removed.
26206 (grub_ofconsole_getkey): Likewise.
26207 (grub_ofconsole_getxy): Likewise.
26208 (grub_ofconsole_gotoxy): Likewise.
26209 (grub_ofconsole_cls): Likewise.
26210 (grub_ofconsole_refresh): Likewise.
26211 (grub_ofconsole_terminfo_input): New struct.
26212 (grub_ofconsole_terminfo_output): Likewise.
26213 (grub_ofconsole_term_input): Use terminfo.
26214 (grub_ofconsole_term_output): Likewise.
26215 (grub_console_init): Split into ...
26216 (grub_console_init_early): ...this and ...
26217 (grub_console_init_lately): ...this. Use terminfo.
26218 (grub_ofconsole_putchar): Renamed to ...
26219 (put): ... this. Remove mapping.
26220 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26221 * term/serial.c: Simplify using terminfo.
26222 (xpos): Removed.
26223 (ypos): Likewise.
26224 (keep_track): Likewise.
26225 (registered): Likewise.
26226 (input_buf): Likewise.
26227 (npending): Likewise.
26228 (serial_translate_key_sequence): Likewise.
26229 (fill_input_buf): Likewise.
26230 (grub_serial_checkkey): Likewise.
26231 (grub_serial_getkey): Likewise.
26232 (grub_serial_getxy): Likewise.
26233 (grub_serial_gotoxy): Likewise.
26234 (grub_serial_putchar): Likewise.
26235 (grub_serial_cls): Likewise.
26236 (grub_serial_setcolorstate): Likewise.
26237 (grub_serial_setcursor): Likewise.
26238 (serial_hw_init): Use serial_hw_fetch.
26239 (grub_serial_terminfo_input): New variable.
26240 (grub_serial_terminfo_output): Likewise.
26241 (grub_serial_term_input): Use terminfo.
26242 (grub_serial_term_output): Likewise.
26243 * term/terminfo.c (putstr): Use put.
26244 (grub_terminfo_all_free): New function
26245 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26246 (grub_terminfo_output_register): New function.
26247 (grub_terminfo_output_unregister): Likewise.
26248 (grub_terminfo_getxy): Likewise.
26249 (grub_terminfo_readkey): Likewise.
26250 (grub_terminfo_checkkey): Likewise.
26251 (grub_terminfo_getkey): Likewise.
26252 (grub_terminfo_input_init): Likewise.
26253 (print_terminfo): Likewise.
26254 (grub_cmd_terminfo): Handle encoding.
26255 (grub_terminfo_gotoxy): Track position.
26256 (grub_terminfo_cls): Likewise.
26257 (grub_terminfo_putchar): Likewise.
26258 (grub_terminfo_setcolorstate): Handle colors
26259 (grub_terminfo_cursor_on): This ...
26260 (grub_terminfo_cursor_off): ... and this merged into ...
26261 (grub_terminfo_setcursor): ... this.
26262 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26263 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26264 * unicode/BidiMirroring.txt: Likewise.
26265 * unicode/UnicodeData.txt: Likewise.
26266 * unicode/COPYING: Likewise.
26267 * util/grub-editenv.c (grub_putchar): Removed.
26268 (grub_xputs_real): New function.
26269 (grub_xputs): New variable.
26270 * util/grub-fstest.c (grub_putchar): Removed.
26271 (grub_xputs_real): New function.
26272 (grub_xputs): New variable.
26273 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26274 (grub_xputs_real): New function.
26275 (grub_xputs): New variable.
26276 * util/grub-probe.c (grub_putchar): Removed.
26277 (grub_xputs_real): New function.
26278 (grub_xputs): New variable.
26279 * util/grub-script-check.c (grub_putchar): Removed.
26280 (grub_xputs_real): New function.
26281 (grub_xputs): New variable.
26282 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26283 (grub_xputs_real): New function.
26284 (grub_xputs): New variable.
26285 * util/import_unicode.py: New file.
26286 * util/grub-mkfont.c (ft_errmsgs): New array.
26287 (grub_glyph_info): Make bitmap a pointer.
26288 (file_formats): New type WIDTH_SPEC.
26289 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26290 (options): Add width-spec.
26291 (help): Likewise.
26292 (add_char): Renamed to ...
26293 (add_glyph): ... this.
26294 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26295 (glyph_replace): New type.
26296 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26297 (add_char): New function.
26298 (add_subst): Likewise.
26299 (process_cursive): Likewise.
26300 (add_font): Handle GSUB.
26301 (write_font_width_spec): New function.
26302 (main): Sort glyphs.
26303 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26304 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26305 * kern/term.c (grub_cls): Moved from here...
26306 * normal/term.c (grub_cls): ... here.
26307
26308 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26309
26310 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26311 suitable for using within the format argument of printf when
26312 converting grub_size_t.
26313 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26314 "x" to convert grub_size_t arguments.
26315
26316 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26317
26318 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26319 too long captions.
26320 (list_get_minimal_size): Take selection box into account.
26321
26322 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26323
26324 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26325 NULL font.
26326
26327 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26328
26329 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26330 devices when iterating over /dev/disk/by-id; they will be handled
26331 later if appropriate, which they aren't always (e.g. LVM).
26332
26333 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26334
26335 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26336 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26337 fails.
26338 (grub_halt): Likewise.
26339 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26340 reset-all fails.
26341 (grub_halt): Don't return, even if all of shut-down, power-off, and
26342 poweroff fail.
26343
26344 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26345
26346 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26347 arguments, not three.
26348
26349 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26350
26351 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26352 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26353 LVM-on-RAID is handled correctly.
26354
26355 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26356
26357 * docs/grub.texi (Changes from GRUB Legacy): New section.
26358 (Future): Fix typo.
26359
26360 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26361
26362 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26363 grub.d/README accidentally ends up executable for one reason or
26364 another. Ignore it.
26365
26366 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26367
26368 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26369 (gpt_partition_map_iterate): Support non-512B sectors.
26370
26371 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26372
26373 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26374 Tested by: Seth Goldberg.
26375
26376 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26377
26378 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26379 Properly align mbi.
26380 Reported by: Seth Goldberg.
26381
26382 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26383
26384 * util/grub-mkrescue.in: Avoid module duplication.
26385
26386 2010-07-01 Sean Finney <seanius@seanius.net>
26387
26388 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26389
26390 2010-07-01 Sean Finney <seanius@seanius.net>
26391
26392 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26393
26394 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26395
26396 * disk/lvm.c (grub_lvm_checkvalue): New function.
26397 (grub_lvm_check_flag): Likewise.
26398
26399 2010-07-01 Robert Millan <rmh@gnu.org>
26400
26401 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26402 Support 'p' as partition separator on kernel of FreeBSD (used
26403 with GPT labels).
26404 (grub_util_biosdisk_get_grub_dev): Likewise.
26405
26406 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26407
26408 Yeeloong firmware port.
26409
26410 * boot/mips/yeeloong/fwstart.S: New file.
26411 * bus/cs5536.c (gpiodump): New const.
26412 (set_io_space): New function.
26413 (set_iod): Likewise.
26414 (set_p2d): Likewise.
26415 (grub_cs5536_init_geode): Likewise.
26416 * commands/mips/yeeloong/lsspd.c: New file.
26417 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
26418 (serial_mod_SOURCES): New variable.
26419 (serial_mod_CFLAGS): Likewise.
26420 (serial_mod_LDFLAGS): Likewise.
26421 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
26422 term/terminfo.c and term/tparm.c.
26423 (pkglib_IMAGES): Add fwstart.img.
26424 (fwstart_img_SOURCES): New variable.
26425 (fwstart_img_CFLAGS): Likewise.
26426 (fwstart_img_ASFLAGS): Likewise.
26427 (fwstart_img_LDFLAGS): Likewise.
26428 (fwstart_img_FORMAT): Likewise.
26429 (pkglib_MODULES): Add lsspd.mod.
26430 (lsspd_mod_SOURCES): New variable.
26431 (lsspd_mod_CFLAGS): Likewise.
26432 (lsspd_mod_LDFLAGS): Likewise.
26433 (pkglib_MODULES): Add halt.mod.
26434 (halt_mod_SOURCES): New variable.
26435 (halt_mod_CFLAGS): Likewise.
26436 (halt_mod_LDFLAGS): Likewise.
26437 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
26438 (serial_mod_SOURCES): Removed.
26439 (serial_mod_CFLAGS): Likewise.
26440 (serial_mod_LDFLAGS): Likewise.
26441 * disk/ata.c (check_device): New function.
26442 (grub_ata_device_initialize): Use check_device.
26443 (grub_ata_iterate): Recheck devices.
26444 (grub_ata_open): Likewise.
26445 (grub_atapi_iterate): Likewise.
26446 (grub_atapi_open): Likewise.
26447 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
26448 (GRUB_ATA_CH1_PORT1): Likewise.
26449 (GRUB_ATA_CH0_PORT2): Likewise.
26450 (GRUB_ATA_CH1_PORT2): Likewise.
26451 * include/grub/mips/loongson.h: New file.
26452 * include/grub/mips/yeeloong/ec.h: Likewise.
26453 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
26454 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
26455 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
26456 * include/grub/misc.h (grub_halt): Declare as noreturn.
26457 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
26458 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
26459 (UART_ENABLE_FIFO_TRIGGER1): New definition.
26460 (UART_ENABLE_DTRRTS): Likewise.
26461 (UART_ENABLE_MODEM): Removed.
26462 (UART_ENABLE_OUT2): New const.
26463 * include/grub/term.h (grub_term_register_input_active): New function.
26464 (grub_term_register_output_active): Likewise.
26465 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
26466 argument.
26467 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
26468 (init_pci): New function.
26469 (grub_machine_init): Execute platform init when firmware. Init serial.
26470 (grub_halt): Implement.
26471 (grub_exit): Likewise.
26472 (grub_reboot): Likewise.
26473 * term/serial.c (serial_hw_init): Update macros.
26474 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
26475 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
26476 (image_targets): New target mipsel-yeeloong-flash.
26477 (generate_image): Support IMAGE_YEELOONG_FLASH.
26478 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
26479 (grub_video_sm712_setup): Init card.
26480 (grub_video_sm712_set_palette): Removed.
26481 * video/sm712_init.c: New file.
26482
26483 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
26484
26485 * Makefile.in (install-local): Temporarily prepend $(builddir) to
26486 PATH when running help2man and then run it on the unadorned
26487 executable names, rather than passing $(builddir)/* paths to
26488 help2man. This avoids the build directory ending up in generated
26489 manual pages.
26490
26491 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26492
26493 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
26494 to avoid accidents when debugging with 'sh -x'.
26495 * util/grub-mkrescue.in: Likewise.
26496 * util/grub.d/00_header.in: Likewise.
26497 * util/grub.d/10_hurd.in: Likewise.
26498 * util/grub.d/10_kfreebsd.in: Likewise.
26499 * util/grub.d/10_linux.in: Likewise.
26500 * util/grub.d/10_netbsd.in: Likewise.
26501 * util/grub.d/10_windows.in: Likewise.
26502 * util/grub.d/20_linux_xen.in: Likewise.
26503 * util/grub.d/30_os-prober.in: Likewise.
26504 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26505
26506 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
26507
26508 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
26509 last character in the buffer.
26510 Reported by: Vladimir Serbinenko.
26511
26512 2010-06-29 Robert Millan <rmh@gnu.org>
26513
26514 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
26515 (Command-line and menu entry commands): Document `badram' command.
26516
26517 2010-06-28 Robert Millan <rmh@gnu.org>
26518
26519 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
26520 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
26521 command using ${GRUB_BADRAM} as parameter.
26522
26523 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26524
26525 * docs/grub.texi (Device map): New section.
26526 (Themes): New section (stub).
26527 * Makefile.in (docs/grub.info): The info documentation now builds
26528 without errors. Make sure it stays that way.
26529
26530 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26531
26532 Use normal parser for menu entries.
26533 Reported by: Thomas Frauendorfer
26534
26535 * include/grub/parser.h (grub_parser_execute): Don't export.
26536 * normal/menu.c (grub_menu_execute_entry_real): New function.
26537 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
26538
26539 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26540
26541 * docs/grub.texi (Embedded configuration): New section (replacing
26542 old "Preset Menu" stub).
26543 (Images): New section.
26544 (configfile): Note that any menu entries defined in `file' are shown
26545 immediately.
26546
26547 2010-06-28 Josh Triplett <josh@joshtriplett.org>
26548
26549 * mmap/i386/pc/mmap_helper.S: Set CF on return.
26550
26551 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26552
26553 * util/grub-install.in: Add --debug-image= option.
26554
26555 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26556
26557 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
26558 possible on Linux.
26559
26560 * util/deviceiter.c (check_device): Rename to ...
26561 (check_device_readable_unique): ... this. Update all callers.
26562 Maintain and check a list of which devices (by canonicalized name)
26563 have already been seen.
26564 (clear_seen_devices): New function.
26565 (compare_file_names) [__linux__]: New function.
26566 (grub_util_iterate_devices): Clear the list of seen devices on exit
26567 and (just in case) on entry.
26568 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
26569 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
26570 seen-devices list, superseded by general code in check_device.
26571
26572 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
26573
26574 * commands/cat.c (options): New variable.
26575 (grub_cmd_cat): Parse options. If the --dos option is given, print
26576 DOS-style "\r\n" line endings as simple newlines (Debian bug
26577 #586358).
26578 (GRUB_MOD_INIT): Use extcmd.
26579 (GRUB_MOD_FINI): Likewise.
26580 * docs/grub.texi (cat): Document --dos.
26581
26582 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26583
26584 XEN with Linux grub-mkconfig support.
26585
26586 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
26587 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
26588 GRUB_CMDLINE_XEN_DEFAULT.
26589 * util/grub.d/20_linux_xen.in: New file.
26590
26591 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 Initialise VGA video on qemu ourselves.
26594
26595 * boot/i386/qemu/boot.S: Don't call 0xc000.
26596 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
26597 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
26598 (kernel_img_HEADERS): Add pci.h.
26599 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
26600 * configure.ac: Force unifont on qemu and yeeloong.
26601 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
26602 (grub_vga_palette_write): Use correct register.
26603 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
26604 Call grub_qemu_init_cirrus.
26605 * kern/i386/qemu/init.c: New file.
26606 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
26607
26608 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
26609
26610 2010-06-26 Pavel Roskin <proski@gnu.org>
26611
26612 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
26613 13.
26614
26615 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26616
26617 * docs/grub.texi (Simple configuration): Explain that
26618 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
26619 set to `true' to disable their respective recovery entries, not
26620 merely set.
26621
26622 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
26623
26624 Make the `source' command slightly faster.
26625
26626 * normal/main.c (grub_normal_execute): Don't re-read list files when
26627 nested.
26628
26629 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26630
26631 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
26632 field position and mask size to red fields from mode_info, not
26633 green.
26634 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
26635 Remove redundant tag->common.framebuffer_type assignment.
26636 Reported by: Seth Goldberg.
26637
26638 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
26639
26640 Sync up other versions of the Linux loader with Robert Millan's
26641 change of 2010-01-09, "Make loader output a bit more user-friendly".
26642
26643 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
26644 grub_dprintf().
26645 (grub_cmd_linux): Likewise.
26646 (grub_cmd_initrd): Likewise.
26647 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
26648 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26649
26650 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
26651
26652 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
26653 larger than MEMORY_MAP_SIZE.
26654
26655 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
26656
26657 Fix parallel build.
26658
26659 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
26660 dependency.
26661 * script/parser.y: #include grub_script.tab.h header.
26662
26663 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26664
26665 Support >3GiB and <16MiB RAM in i386-qemu.
26666
26667 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
26668 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
26669 (grub_lower_mem): Removed.
26670 (grub_upper_mem): Likewise.
26671 (mem_size): Made static.
26672 (above_4g): New variable.
26673 (grub_machine_mmap_init): Detect small mem_size and above_4g.
26674 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
26675 support.
26676
26677 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26678
26679 Cirrus 5446 and Bochs video cards support.
26680
26681 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
26682 video_bochs.mod
26683 (video_cirrus_mod_SOURCES): New variable.
26684 (video_cirrus_mod_CFLAGS): Likewise.
26685 (video_cirrus_mod_LDFLAGS): Likewise.
26686 (video_bochs_mod_SOURCES): Likewise.
26687 (video_bochs_mod_CFLAGS): Likewise.
26688 (video_bochs_mod_LDFLAGS): Likewise.
26689 * include/grub/vga.h: New file.
26690 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
26691 (grub_video_fb_set_page_t): New type.
26692 (grub_video_fb_setup): New prototype.
26693 (grub_video_fb_swap_buffers): Likewise.
26694 (grub_video_fb_get_info_and_fini): Likewise.
26695 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
26696 (CRTC_DATA_PORT): Likewise.
26697 (CRTC_CURSOR): Likewise.
26698 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26699 (CRTC_CURSOR_ADDR_LOW): Likewise.
26700 (CRTC_CURSOR_DISABLE): Likewise.
26701 (update_cursor): Use grub_vga_cr_write.
26702 (grub_vga_text_setcursor): Likewise.
26703 * video/bochs.c: New file.
26704 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
26705 (palette): Likewise.
26706 (palette_size): Likewise.
26707 (framebuffer): New variable.
26708 (grub_video_fb_init): Use 'framebuffer'.
26709 (grub_video_fb_fini): Likewise.
26710 (grub_video_fb_get_info): Likewise.
26711 (grub_video_fb_get_palette): Likewise.
26712 (grub_video_fb_set_palette): Likewise.
26713 (grub_video_fb_set_viewport): Likewise.
26714 (grub_video_fb_get_viewport): Likewise.
26715 (grub_video_fb_map_color): Likewise.
26716 (grub_video_fb_map_rgb): Likewise.
26717 (grub_video_fb_map_rgba): Likewise.
26718 (grub_video_fb_unmap_color): Likewise.
26719 (grub_video_fb_unmap_color_int): Likewise.
26720 (grub_video_fb_fill_rect): Likewise.
26721 (grub_video_fb_blit_bitmap): Likewise.
26722 (grub_video_fb_blit_render_target): Likewise.
26723 (grub_video_fb_scroll): Likewise.
26724 (grub_video_fb_create_render_target): Likewise.
26725 (grub_video_fb_doublebuf_blit_init): Likewise.
26726 (grub_video_fb_set_active_render_target): Handle doublebuffering.
26727 (doublebuf_pageflipping_update_screen): New function.
26728 (doublebuf_pageflipping_init): Likewise.
26729 (grub_video_fb_setup): Likewise.
26730 (grub_video_fb_swap_buffers): Likewise.
26731 (grub_video_fb_get_info_and_fini): Likewise.
26732 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
26733 All users updated.
26734 (doublebuf_pageflipping_commit): Restructured into ...
26735 (doublebuf_pageflipping_set_page): ... this.
26736 (doublebuf_pageflipping_update_screen): Removed.
26737 (doublebuf_pageflipping_init): Likewise.
26738 (double_buffering_init): Likewise.
26739 (grub_video_vbe_setup): Use grub_video_fb_setup.
26740 (grub_video_vbe_swap_buffers): Removed.
26741 (grub_video_vbe_set_active_render_target): Likewise.
26742 (grub_video_vbe_get_active_render_target): Likewise.
26743 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
26744 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
26745 grub_video_fb_set_active_render_target and
26746 grub_video_fb_get_active_render_target.
26747 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
26748 (SEQUENCER_DATA_PORT): Likewise.
26749 (MAP_MASK_REGISTER): Likewise.
26750 (CRTC_ADDR_PORT): Likewise.
26751 (CRTC_DATA_PORT): Likewise.
26752 (START_ADDR_HIGH_REGISTER): Likewise.
26753 (START_ADDR_LOW_REGISTER): Likewise.
26754 (GRAPHICS_ADDR_PORT): Likewise.
26755 (GRAPHICS_DATA_PORT): Likewise.
26756 (READ_MAP_REGISTER): Likewise.
26757 (INPUT_STATUS1_REGISTER): Likewise.
26758 (INPUT_STATUS1_VERTR_BIT): Likewise.
26759 (get_map_mask): Use grub_vga_sr_read.
26760 (set_map_mask): Use grub_vga_sr_write.
26761 (set_read_map): Use grub_vga_gr_write.
26762 (set_start_address): Use grub_vga_cr_write.
26763 * video/sm712.c (framebuffer): Remove leftover fields.
26764
26765 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
26766
26767 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
26768 setting GRUB_VIDEO_BACKEND. Make it available as a user override
26769 instead. Replace the gfxterm backend check with a check that
26770 ${GRUB_PREFIX}/video.lst is non-empty.
26771 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
26772 again.
26773 (load_video): New generated function. Call it before loading
26774 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26775 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26776 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26777 * docs/grub.texi (Simple configuration): Document
26778 GRUB_VIDEO_BACKEND.
26779
26780 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26781
26782 Use video functions in linux and xnu loaders.
26783
26784 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26785 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26786 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26787 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26788 loader/i386/pc/linux.c.
26789 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26790 (find_line_len): Removed.
26791 (find_framebuf): Likewise.
26792 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26793 * loader/i386/efi/xnu.c: Removed.
26794 * loader/i386/pc/xnu.c: Moved from here...
26795 * loader/i386/xnu.c: ...here.
26796
26797 Enable priorities in video drivers.
26798
26799 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26800 (grub_video_adapter): New field prio.
26801 (grub_video_register): Respect prio when inserting.
26802 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26803 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26804 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26805 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26806 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26807 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26808 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26809
26810 Fix SDL driver ID.
26811
26812 * include/grub/video.h (grub_video_driver_id_t): New value
26813 GRUB_VIDEO_DRIVER_SDL.
26814 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26815
26816 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26817
26818 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26819 argument to printf.
26820 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26821
26822 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26823
26824 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26825 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26826
26827 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26828
26829 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26830 directly, and recommend grub-install instead.
26831 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26832
26833 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
26834
26835 Fix i386-pc prefix handling with nested partitions (Debian bug
26836 #585068). Note that the case where the core image is booted using
26837 multiboot and relocated from its original location still requires
26838 more work.
26839
26840 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26841 with "(,", fill the boot drive in between those two characters, but
26842 expect that a full partition specification including partition map
26843 names will follow.
26844 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26845 specified, write a prefix without the drive name but including a
26846 full partition specification.
26847
26848 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
26849
26850 * util/grub-mkconfig.in: Ignore non-option arguments, for
26851 compatibility with older versions (before 2010-06-12) which did the
26852 same. In particular, this makes it easier to ship an update-grub
26853 wrapper which is compatible with that used with GRUB Legacy (Debian
26854 bug #586056).
26855
26856 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26857
26858 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26859 for manual page generation.
26860
26861 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26862
26863 * po/POTFILES: Remove leftover commands/handler.c.
26864
26865 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26866
26867 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26868 left this script non-functional.
26869
26870 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
26871
26872 * docs/man/grub-emu.h2m: New file.
26873
26874 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
26875
26876 * docs/grub.texi (Commands): Document reduced command set in rescue
26877 mode.
26878 (cpuid): New section.
26879
26880 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26881
26882 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26883 new partition naming style.
26884 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26885
26886 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26887
26888 Add "-o grub.iso" like cmdline options support.
26889
26890 * util/grub-install.in: Improve cmdline option parsing.
26891 * util/grub-mkconfig.in: Likewise.
26892 * util/grub-mkrescue.in: Likewise.
26893 * util/grub-reboot.in: Likewise.
26894 * util/grub-set-default.in: Likewise.
26895 * util/i386/efi/grub-install.in: Likewise.
26896 * util/ieee1275/grub-install.in: Likewise.
26897 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26898
26899 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26900
26901 * .bzrignore: Ignore 41_custom.
26902
26903 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26904
26905 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26906
26907 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26908
26909 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26910 prototype declarations.
26911
26912 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26913 generating fs, partmap, and video lists.
26914 * include/grub/fs.h (grub_fs_register): Omit prototype if
26915 GRUB_LST_GENERATOR is defined.
26916 * include/grub/partition.h (grub_partition_map_register): Likewise.
26917 * include/grub/video.h (grub_video_register): Likewise.
26918
26919 2010-06-12 Javier Martín <lordhabbit@gmail.com>
26920
26921 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26922
26923 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26924
26925 * util/grub-mkrescue.in: Support --xorriso argument.
26926
26927 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26928
26929 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26930 Suggested by: Thomas Schmitt.
26931
26932 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26933
26934 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26935 Suggested by: Thomas Schmitt.
26936
26937 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26938
26939 custom.cfg support.
26940
26941 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26942 * util/grub.d/41_custom.in: New file.
26943
26944 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
26945
26946 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26947 been merged back into normal.
26948
26949 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26950
26951 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26952 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26953
26954 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
26955
26956 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26957 when generating manual pages.
26958 * docs/man/grub-bin2h.h2m: New file.
26959 * docs/man/grub-editenv.h2m: New file.
26960 * docs/man/grub-fstest.h2m: New file.
26961 * docs/man/grub-install.h2m: New file.
26962 * docs/man/grub-macho2img.h2m: New file.
26963 * docs/man/grub-mkconfig.h2m: New file.
26964 * docs/man/grub-mkdevicemap.h2m: New file.
26965 * docs/man/grub-mkfont.h2m: New file.
26966 * docs/man/grub-mkimage.h2m: New file.
26967 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26968 * docs/man/grub-mkrelpath.h2m: New file.
26969 * docs/man/grub-mkrescue.h2m: New file.
26970 * docs/man/grub-ofpathname.h2m: New file.
26971 * docs/man/grub-pe2elf.h2m: New file.
26972 * docs/man/grub-probe.h2m: New file.
26973 * docs/man/grub-reboot.h2m: New file.
26974 * docs/man/grub-script-check.h2m: New file.
26975 * docs/man/grub-set-default.h2m: New file.
26976 * docs/man/grub-setup.h2m: New file.
26977
26978 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26979
26980 Use FOR_* macros instead of *_iterate whenever possible.
26981
26982 * commands/handler.c: Removed.
26983 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26984 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26985 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26986 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26987 (grub_probe_SOURCES): Remove kern/parser.c.
26988 (util/grub-script-check.c_DEPENDENCIES): Removed.
26989 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26990 and grub_script_check_init.c.
26991 (grub_script_check_init.lst): Removed.
26992 (grub_script_check_init.h): Likewise.
26993 (grub_script_check_init.c): Likewise.
26994 (pkglib_MODULES): Remove handler.mod and sh.mod.
26995 (handler_mod_SOURCES): Removed.
26996 (handler_mod_CFLAGS): Likewise.
26997 (handler_mod_LDFLAGS): Likewise.
26998 (normal_mod_SOURCES): Remove normal/handler.c.
26999 Add script/main.c, script/script.c, script/execute.c,
27000 script/function.c, script/lexer.c, grub_script.tab.c
27001 and grub_script.yy.c.
27002 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27003 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27004 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27005 (grub_setup_SOURCES): Remove kern/parser.c.
27006 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27007 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27008 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27009 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27010 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27011 (grub_setup_SOURCES): Remove kern/parser.c.
27012 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27013 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27014 * include/grub/command.h (grub_command_iterate): Removed.
27015 (FOR_COMMANDS): New macro.
27016 * include/grub/dl.h (grub_dl): New member next.
27017 (grub_dl_iterate): Removed.
27018 (grub_dl_head): New variable declaration.
27019 (FOR_DL_MODULES): New macro.
27020 * include/grub/fs.h: Include list.h.
27021 (grub_fs): Make next first element.
27022 (grub_fs_list): New variable declaration.
27023 (grub_fs_register): Make inline.
27024 (grub_fs_unregister): Likewise.
27025 (grub_fs_iterate): Removed.
27026 (FOR_FILESYSTEMS): New macro.
27027 * include/grub/handler.h: Removed.
27028 * include/grub/list.h (grub_list_hook_t): Removed.
27029 (grub_list_test_t): Likewise.
27030 (grub_list_pop): Likewise.
27031 (grub_list_iterate): Likewise.
27032 (grub_list_insert): Likewise.
27033 (FOR_LIST_ELEMENTS): New macro.
27034 * include/grub/parser.h (grub_parser_class): Removed.
27035 (grub_parser_register): Likewise.
27036 (grub_parser_unregister): Likewise.
27037 (grub_parser_get_current): Likewise.
27038 (grub_parser_set_current): Likewise.
27039 (grub_register_rescue_parser): Likewise.
27040 (grub_rescue_parse_line): New function.
27041 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27042 * include/grub/script_sh.h (grub_script_function_list): New variable
27043 declaration.
27044 (FOR_SCRIPT_FUNCTIONS): New macro.
27045 (grub_script_function_iterate): Removed.
27046 (grub_normal_parse_line): New prototype.
27047 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27048 (FOR_DISABLED_TERM_INPUTS): Likewise.
27049 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27050 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27051 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27052 element.
27053 (grub_video_register): Inline.
27054 (grub_video_unregister): Likewise.
27055 (grub_video_adapter_list): New variable declaration.
27056 (grub_video_iterate): Removed.
27057 (FOR_VIDEO_ADAPTERS): New macro.
27058 * kern/dl.c (grub_dl_list): Removed. All users updated.
27059 (grub_dl_iterate): Removed.
27060 * kern/fs.c (grub_fs_list): Make global.
27061 (grub_fs_register): Removed.
27062 (grub_fs_unregister): Likewise.
27063 (grub_fs_iterate): Likewise.
27064 * kern/handler.c: Removed.
27065 * kern/list.c (grub_list_pop): Removed.
27066 (grub_list_iterate): Likewise.
27067 (grub_list_insert): Likewise.
27068 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27069 (grub_prio_list_insert): Don't use grub_list_insert.
27070 * kern/main.c (grub_register_rescue_parser): Don't call
27071 grub_register_rescue_parser.
27072 * kern/parser.c (grub_parser_class): Removed.
27073 (grub_parser_execute): Use grub_rescue_parse_line.
27074 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27075 (grub_rescue_parser): Removed.
27076 (grub_register_rescue_parser): Likewise.
27077 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27078 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27079 (grub_auth_check_authentication): Likewise.
27080 * normal/completion.c (iterate_command): Removed.
27081 (grub_normal_do_completion): Use FOR_COMMANDS.
27082 * normal/handler.c: Removed.
27083 * normal/main.c (read_config_file): Remove parser changing.
27084 (grub_normal_execute): Don't call read_handler_list.
27085 (grub_normal_read_line_real): Statically allocate prompt.
27086 (grub_cmdline_run): Use grub_normal_parse_line.
27087 (GRUB_MOD_FINI): Don't call free_handler_list.
27088 * normal/menu_entry.c (run): Likewise.
27089 * script/function.c (grub_script_function_list): Make global.
27090 (grub_script_function_iterate): Removed.
27091 * script/main.c (grub_normal_parse_line): Make global.
27092 (grub_sh_parser): Removed.
27093 (GRUB_MOD_INIT): Likewise.
27094 (GRUB_MOD_FINI): Likewise.
27095 * tests/lib/functional_test.c (grub_functional_test): Use
27096 FOR_LIST_ELEMENTS.
27097 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27098 (grub_test_run): Use FOR_LIST_ELEMENTS.
27099 * tests/lib/unit_test.c (main): Likewise.
27100 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27101 grub_list_pop.
27102 * util/grub-fstest.c (grub_term_input_class): Removed.
27103 (grub_term_output_class): Likewise.
27104 * util/grub-probe.c: Likewise.
27105 * util/i386/pc/grub-setup.c: Likewise.
27106 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27107 * util/grub-script-check.c (main): Don't call grub_init_all and
27108 grub_fini_all.
27109 * video/video.c (grub_video_adapter_list): Make global.
27110 (grub_video_register): Removed.
27111 (grub_video_unregister): Likewise.
27112 (grub_video_iterate): Likewise.
27113
27114 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27115
27116 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27117 reported by Henrique Ferreiro.
27118
27119 2010-06-09 Robert Millan <rmh@gnu.org>
27120
27121 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27122 ones, when both are available.
27123
27124 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27125
27126 Make --version uniform and avoid hard-coded program name.
27127
27128 * util/grub-mkimage.c (main): Use `program_name' instead of
27129 hard-coded string.
27130 * util/i386/pc/grub-setup.c (main): Likewise.
27131 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27132 * util/grub-install.in: Save the basename of $0 in $self, and use the
27133 latter in informational messages. Use the same format for --version
27134 as the binary programs.
27135 * util/grub-mkconfig.in: Likewise.
27136 * util/grub-mkrescue.in: Likewise.
27137 * util/grub-reboot.in: Likewise.
27138 * util/grub-set-default.in: Likewise.
27139 * util/i386/efi/grub-install.in: Likewise.
27140 * util/ieee1275/grub-install.in: Likewise.
27141 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27142
27143 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27144
27145 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27146 embedding area. Use <= instead of == when checking for non-emptiness.
27147
27148 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27149
27150 * configure.ac: Add `.' to the directories searched for unifont.
27151
27152 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27153
27154 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27155 grub_script.yy.h.
27156
27157 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27158
27159 * docs/grub.texi (History): Expand to cover GRUB 2.
27160 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27161 commands, not `terminal'.
27162 (serial): Likewise.
27163 (terminal_input): New section.
27164 (terminal_output): New section.
27165 (uppermem): New section (stub).
27166 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27167
27168 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27169
27170 * docs/grub.texi (Security): Menu entries are unrestricted by
27171 default, not restricted to superusers as I had previously thought.
27172 Reword to account for this.
27173
27174 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27175
27176 * kern/emu/misc.c (device_mapper_null_log): New function.
27177 (grub_device_mapper_supported): New function.
27178 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27179 prototype.
27180 * kern/emu/hostdisk.c (find_partition_start): Check whether
27181 device-mapper is supported before trying to use it.
27182 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27183
27184 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27185
27186 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27187 (File name syntax): Likewise.
27188 (help): --all is no longer supported in GRUB 2. Be more precise
27189 about pattern matching.
27190
27191 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27192
27193 * normal/completion.c (grub_normal_do_completion): When completing
27194 arguments to "set" and the current word contains an equals sign,
27195 skip to after the equals sign before starting completion.
27196
27197 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27198
27199 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27200
27201 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27202
27203 * docs/grub.texi (Network): New section.
27204 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27205 `(nd)' as in GRUB Legacy.
27206 (pxe_unload): New section.
27207
27208 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27209
27210 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27211 in the rescue shell, so recommend using `set' instead. Thanks,
27212 Jordan Uggla.
27213
27214 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27215
27216 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27217 (password): New section.
27218 (password_pbkdf2): New section.
27219 (search): New section.
27220 (Security): New section.
27221 (Troubleshooting): New section, currently very incomplete.
27222 (Invoking grub-mkpasswd-pbkdf2): New section.
27223 (Internals): New section, currently very incomplete.
27224
27225 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27226
27227 * util/grub.d/00_header.in: Add some more quoting (of
27228 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27229 work again.
27230 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27231
27232 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27233
27234 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27235 to `count', fixing variable shadowing that broke the -c option.
27236
27237 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27238
27239 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27240 in case they contain spaces.
27241
27242 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27243
27244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27245 "part_" to partmap module names, in line with grub-install.
27246 Reported by: Jindřich Makovička (Debian bug #584426).
27247
27248 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27249
27250 * util/grub-mkimage.c: Make target-related error messages slightly
27251 more helpful; -O talks about "format". Explicitly point to the use
27252 of -O if no target is specified.
27253 Reported by: Didier Raboud (Debian bug #584415).
27254
27255 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27256
27257 * INSTALL: Document several build requirements for optional features
27258 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27259
27260 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27261
27262 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27263 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27264 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27265
27266 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27267
27268 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27269 Thanks to Jordan Uggla for spotting this.
27270
27271 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27272
27273 Finally make USB usable.
27274
27275 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27276 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27277 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27278 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27279 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27280 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27281 (GRUB_OHCI_FSMPS): Likewise.
27282 (GRUB_OHCI_PERIODIC_START): Likewise.
27283 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27284 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27285 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27286 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27287 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27288 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27289 (grub_ohci_transaction): Likewise.
27290 (grub_ohci_transfer): Improve condition detection algorithms.
27291 Handle toggle property. Program the transactions correctly.
27292 Improve error handling. Various important fixups.
27293 (grub_ohci_portstatus): Put register writes in right order.
27294 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27295 (grub_uhci_transfer): Don't show "failed" message on success.
27296 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27297 array.
27298 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27299 determine its size.
27300 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27301 before initialization is completed. Use IN direction for empty
27302 transfers. Use last_trans and compute toggle.
27303 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27304 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27305 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27306 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27307 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27308 (grub_usb_device): Increase toggle to 256.
27309 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27310 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27311 GRUB_USBMS_SUBCLASS_SFF8070.
27312 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27313 (grub_scsi_inquiry): New member page and alloc_length.
27314 (grub_scsi_request_sense): New structure.
27315 (grub_scsi_request_sense_data): Likewise.
27316 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27317 control.
27318 * disk/scsi.c (grub_scsi_request_sense): New function.
27319 (grub_scsi_test_unit_ready): Likewise.
27320 (grub_scsi_inquiry): Fill new fields.
27321 (grub_scsi_read_capacity): Likewise.
27322 (grub_scsi_read10): Add request sense at the end.
27323 (grub_scsi_read12): Likewise.
27324 (grub_scsi_write10): Likewise.
27325 (grub_scsi_write12): Likewise.
27326 (grub_scsi_open): Add Test Unit Ready.
27327 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27328 Support additional subclasses. Con't clear halt yet. Activate the
27329 proper config. Calculate LUNs correctly.
27330 (grub_usbms_transfer): Various important fixups.
27331
27332 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27333
27334 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27335 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27336 (grub_ohci_fini_hw): New function.
27337 (grub_ohci_restore_hw): Likewise.
27338 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27339 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27340 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27341
27342 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27343
27344 Dedicated DMA allocations.
27345
27346 * bus/pci.c (grub_memalign_dma32): New function
27347 (grub_dma_free): Likewise.
27348 (grub_dma_get_virt): Likewise.
27349 (grub_dma_get_phys): Likewise.
27350 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27351 (grub_ohci_pci_iter): Use dma32_alloc.
27352 (grub_ohci_transfer): Likewise.
27353 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27354 (grub_usb_bulk_readwrite): Likewise.
27355 * include/grub/pci.h: Add declarations.
27356
27357 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27358
27359 CS5536 support.
27360
27361 * bus/cs5536.c: New file.
27362 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27363 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27364 (cs5536_mod_SOURCES): New variable.
27365 (cs5536_mod_CFLAGS): Likewise.
27366 (cs5536_mod_LDFLAGS): Likewise.
27367 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27368 machine/pci.h.
27369 (kernel_img_SOURCES): Add bus/cs5536.c.
27370 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27371 usb_keyboard.mod.
27372 (usb_mod_SOURCES): New variable.
27373 (usb_mod_CFLAGS): New variable.
27374 (usb_mod_LDFLAGS): New variable.
27375 (usbtest_mod_SOURCES): New variable.
27376 (usbtest_mod_CFLAGS): New variable.
27377 (usbtest_mod_LDFLAGS): New variable.
27378 (ohci_mod_SOURCES): New variable.
27379 (ohci_mod_CFLAGS): New variable.
27380 (ohci_mod_LDFLAGS): New variable.
27381 (usbms_mod_SOURCES): New variable.
27382 (usbms_mod_CFLAGS): New variable.
27383 (usbms_mod_LDFLAGS): New variable.
27384 (usb_keyboard_mod_SOURCES): New variable.
27385 (usb_keyboard_mod_CFLAGS): New variable.
27386 (usb_keyboard_mod_LDFLAGS): New variable.
27387 * include/grub/smbus.h: New file.
27388 * include/grub/cs5536.h: New file.
27389
27390 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27391
27392 * util/grub.d/00_header.in: Add safety check to make sure that
27393 ${locale_dir} exists before trying to probe it.
27394
27395 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27396
27397 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27398 per the GNU Coding Standards; this is now too obscure to be worth
27399 documenting.
27400 (QNX): Likewise.
27401 (chainloader): Remove cross-reference to `SCO UnixWare'.
27402
27403 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27404
27405 * docs/grub.texi (Chain-loading): New section.
27406 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27407 adjusted for GRUB 2.
27408 (SCO UnixWare): Likewise.
27409 (QNX): Likewise.
27410 (chainloader): Add reference to `Block list syntax'.
27411 (drivemap): New section.
27412 (parttool): New section.
27413
27414 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27415
27416 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
27417 the grub shell'.
27418 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
27419 (Installing GRUB using grub-install): Remove reference to the grub
27420 shell; mention `grub-mkimage' and `grub-setup' instead.
27421 (Invoking grub-install): Likewise.
27422 (Interface): Add reference to `Menu entry editor'.
27423 (serial): Remove `--device' option.
27424
27425 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27426
27427 * docs/grub.texi (Configuration): New section, documenting
27428 configuration file generation using grub-mkconfig. I've left a slot
27429 for documenting the full shell scripting format but have not yet
27430 started on writing that up.
27431 (Invoking grub-mkconfig): New section.
27432
27433 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27434
27435 * docs/grub.texi (direntry): Remove grub-terminfo reference.
27436 (GNU GRUB manual): Likewise.
27437 (General commands): Update description of `terminfo' for GRUB 2.
27438
27439 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27440
27441 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
27442 (GRUB_MOD_INIT): Fix capitalisation.
27443 * docs/grub.texi (Command-line and menu entry commands): Document
27444 gettext and gptsync commands.
27445
27446 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27447
27448 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
27449 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
27450
27451 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
27452
27453 Add btrfs probing support, currently only in the single-device case.
27454
27455 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
27456 function.
27457 (grub_guess_root_device): Call find_root_device_from_mountinfo
27458 before looking in /dev.
27459
27460 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
27463 GRUB_DISK_SIZE_UNKNOWN.
27464 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
27465
27466 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
27467
27468 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
27469 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
27470 corrupted or not synced properly.
27471
27472 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27473
27474 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
27475 Reported by: Seth Goldberg.
27476
27477 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27478
27479 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
27480 addition of dest.
27481 Reported by: Seth Goldberg.
27482
27483 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27484
27485 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
27486 Reported by: Seth Goldberg.
27487
27488 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
27489
27490 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
27491 64-bit address as signed on MIPS.
27492
27493 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27494
27495 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
27496 to the empty string.
27497
27498 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
27499
27500 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
27501
27502 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
27503 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
27504 * kern/misc.c (__enable_execute_stack): Disable on
27505 GRUB_MACHINE_EMU.
27506
27507 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
27508
27509 Make grub-probe work with symbolic links under /dev/mapper as well
27510 as with real block devices. The Linux world seems to be (at best)
27511 in transition here, and GRUB shouldn't get caught in the middle.
27512
27513 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
27514 /dev/mapper.
27515
27516 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27517
27518 * util/grub-script-check.c (main): Ensure defined behaviour on empty
27519 input files (in which case exit zero).
27520
27521 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27522
27523 * kern/emu/misc.c (canonicalize_file_name): realpath can still
27524 return NULL for various reasons even if it has a maximum-length
27525 buffer: for example, there might be a symlink loop, or the path
27526 might exceed PATH_MAX. If this happens, return NULL.
27527
27528 2010-05-27 Robert Millan <rmh@gnu.org>
27529
27530 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
27531 partmap module to handle cross-partmap setups.
27532 Reported by Orestes Mas. Gràcies!
27533
27534 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
27535
27536 * util/grub-mkrescue.in: Initialise override_dir rather than
27537 assuming that it's unset or empty in the environment.
27538
27539 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
27540
27541 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
27542 variable index into p_index to suppress a warning with -Wshadow.
27543
27544 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
27545
27546 * INSTALL: Added flex >= 2.5.35 requirement.
27547
27548 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27549
27550 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
27551
27552 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27553
27554 cmostest support.
27555
27556 * commands/i386/cmostest.c: New file.
27557 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
27558 (cmostest_mod_SOURCES): New variable.
27559 (cmostest_mod_CFLAGS): Likewise.
27560 (cmostest_mod_LDFLAGS): Likewise.
27561 * conf/i386-pc.rmk: Likewise.
27562 * docs/grub.texi (Vendor power-on keys): New section.
27563 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
27564 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27565 and GRUB_BUTTON_CMOS_ADDRESS.
27566 * util/grub.d/00_header.in: Handle powering-on by separate button.
27567
27568 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27569
27570 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
27571 Removed drawing_scrollbar argument. All users updated
27572 Fixes #29792.
27573 Reported by Jo Shields
27574
27575 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27576
27577 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
27578 buffer since gfxterm handles double repaint.
27579
27580 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
27581
27582 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
27583 * term/gfxterm.c (real_scroll): Likewise.
27584
27585 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27586
27587 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
27588 before calling BIOS.
27589
27590 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27591
27592 * include/grub/i18n.h: Always enable grub_gettext.
27593
27594 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
27595
27596 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
27597 partition naming style.
27598
27599 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
27600
27601 * util/grub-mkconfig.in: Fix handling of -o so that it works when
27602 not the first option.
27603
27604 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27605
27606 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
27607
27608 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
27609
27610 * util/misc.c: Move inclusion of <limits.h> to ...
27611 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
27612
27613 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
27614
27615 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
27616 Fix merge error in NetBSD code.
27617 (find_partition_start) [__NetBSD__]: Likewise.
27618
27619 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
27620
27621 Fix grub-mkrescue usage unit testing.
27622
27623 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
27624
27625 2010-05-18 Christian Franke <franke@computer.org>
27626
27627 * util/grub.d/10_windows.in: Use path names instead of
27628 drive letters to prevent warning from Cygwin 1.7.
27629 Add drivemap command to menuentry if needed.
27630
27631 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
27632
27633 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
27634 gnumach and gnumach.gz.
27635
27636 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27637
27638 * include/grub/i18n.h (gettext): Inline instead of using #define.
27639 (grub_gettext): Likewise.
27640 (_): Likewise.
27641
27642 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27643
27644 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
27645 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
27646 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
27647 (main): Add a slash after pkglibdirroot.
27648
27649 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27650
27651 * util/grub-install.in: Add missing "in" keyword.
27652
27653 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
27656 Reported by: Seth Goldberg.
27657
27658 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
27659
27660 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
27661
27662 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27663
27664 * configure.ac: Check for Linux device-mapper support.
27665
27666 * util/hostdisk.c (device_is_mapped): New function.
27667 (find_partition_start): New function, partly broken out from
27668 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
27669 device-mapper support added.
27670 (linux_find_partition): Use find_partition_start.
27671 (convert_system_partition_to_system_disk): Add `st' argument.
27672 Support Linux /dev/mapper/* devices if device-mapper support is
27673 available; only DM-RAID devices are understood at present.
27674 (find_system_device): Add `st' argument. Pass it to
27675 convert_system_partition_to_system_disk.
27676 (grub_util_biosdisk_get_grub_dev): Pass stat result to
27677 find_system_device and convert_system_partition_to_system_disk. Use
27678 find_partition_start.
27679
27680 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
27681 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
27682 * util/deviceiter.c [__linux__]: Define MINOR.
27683 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
27684 * util/mkdevicemap.c (grub_putchar): New function.
27685 (grub_getkey): New function.
27686 (grub_refresh): New function.
27687 (main): Set debug=all if -v -v is used.
27688
27689 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27690
27691 Fix build with non-GNU libcs.
27692
27693 * util/misc.c (canonicalize_file_name): Move to ...
27694 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
27695 grub_make_system_path_relative_to_its_root.
27696
27697 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
27698
27699 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
27700 we handle finding grub-mkimage. Default to finding grub-mkimage in
27701 ${bindir} with program_transform_name applied, and provide a
27702 --grub-mkimage option to override this.
27703
27704 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27705
27706 Remove grub-mkisofs.
27707
27708 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
27709 (grub_mkisofs_SOURCES): Removed.
27710 (grub_mkisofs_CFLAGS): Removed.
27711 * util/mkisofs/defaults.h: Removed.
27712 * util/mkisofs/eltorito.c: Likewise.
27713 * util/mkisofs/exclude.h: Likewise.
27714 * util/mkisofs/hash.c: Likewise.
27715 * util/mkisofs/include/: Likewise.
27716 * util/mkisofs/include/fctldefs.h: Likewise.
27717 * util/mkisofs/include/mconfig.h: Likewise.
27718 * util/mkisofs/include/prototyp.h: Likewise.
27719 * util/mkisofs/include/statdefs.h: Likewise.
27720 * util/mkisofs/iso9660.h: Likewise.
27721 * util/mkisofs/joliet.c: Likewise.
27722 * util/mkisofs/match.c: Likewise.
27723 * util/mkisofs/match.h: Likewise.
27724 * util/mkisofs/mkisofs.c: Likewise.
27725 * util/mkisofs/mkisofs.h: Likewise.
27726 * util/mkisofs/msdos_partition.h: Likewise.
27727 * util/mkisofs/multi.c: Likewise.
27728 * util/mkisofs/name.c: Likewise.
27729 * util/mkisofs/rock.c: Likewise.
27730 * util/mkisofs/tree.c: Likewise.
27731 * util/mkisofs/write.c: Likewise.
27732
27733 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27734
27735 Unify grub-mkimage accross platforms.
27736
27737 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
27738 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
27739 (grub_mkelfimage_SOURCES): Removed.
27740 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
27741 (util/grub-mkimage.c_DEPENDENCIES): .. this.
27742 (bin_UTILITIES): Add grub-mkimage.
27743 (grub_mkimage_SOURCES): New variable.
27744 (kernel_img_HEADERS): Remove machine/kernel.h.
27745 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
27746 (pkglib_PROGRAMS): Add kernel.img.
27747 (kernel_img_HEADERS): Add machine/kernel.h.
27748 (kernel_img_FORMAT): Removed.
27749 (bin_UTILITIES): Remove grub-mkimage.
27750 (grub_mkimage_SOURCES): Removed.
27751 (grub_mkimage_CFLAGS): Likewise.
27752 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27753 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
27754 (pkglib_PROGRAMS): Add kernel.img.
27755 (bin_UTILITIES): Remove grub-mkimage.
27756 (grub_mkimage_SOURCES): Removed.
27757 (grub_mkimage_CFLAGS): Likewise.
27758 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27759 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
27760 (pkglib_PROGRAMS): Add kernel.img.
27761 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
27762 (pkglib_PROGRAMS): Add kernel.img.
27763 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
27764 (grub_mkimage_SOURCES): Removed.
27765 (grub_mkimage_CFLAGS): Likewise.
27766 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27767 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
27768 (pkglib_PROGRAMS): Add kernel.img.
27769 (bin_UTILITIES): Remove grub-mkimage.
27770 (grub_mkimage_SOURCES): Removed.
27771 (grub_mkimage_CFLAGS): Likewise.
27772 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27773 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
27774 (grub_mkimage_SOURCES): Removed.
27775 (grub_mkimage_CFLAGS): Likewise.
27776 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27777 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27778 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27779 (grub_pe32_optional_header): ... this.
27780 (grub_pe64_optional_header): ... and this. All users updated.
27781 (GRUB_PE32_PE32_MAGIC): Split into ..
27782 (GRUB_PE32_PE32_MAGIC): .. this.
27783 (GRUB_PE32_PE64_MAGIC): .. and this.
27784 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27785 * include/grub/elf.h (PT_GNU_STACK): New definition.
27786 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27787 * include/grub/i386/efi/kernel.h: Likewise.
27788 * include/grub/i386/kernel.h: Likewise.
27789 * include/grub/i386/pc/kernel.h: Likewise.
27790 * include/grub/i386/qemu/boot.h: Likewise.
27791 * include/grub/mips/kernel.h: Likewise.
27792 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27793 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27794 * include/grub/powerpc/kernel.h: Likewise.
27795 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27796 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27797 * include/grub/sparc64/kernel.h: Likewise.
27798 * include/grub/x86_64/efi/kernel.h: Likewise.
27799 * include/grub/x86_64/kernel.h: Likewise.
27800 * include/grub/offsets.h: New file.
27801 * include/grub/kernel.h (grub_module_info): Split into ...
27802 (grub_module_info32): ... this.
27803 (grub_module_info64): ... and this.
27804 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27805 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27806 (grub_boot_blocklist): Moved from here ...
27807 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27808 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27809 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27810 * include/grub/types.h (grub_target_to_host16): Removed.
27811 (grub_target_to_host32): Likewise.
27812 (grub_target_to_host64): Likewise.
27813 (grub_host_to_target16): Likewise.
27814 (grub_host_to_target32): Likewise.
27815 (grub_host_to_target64): Likewise.
27816 (grub_host_to_target_addr): Likewise.
27817
27818 Support grub-mkrescue for efi, coreboot and qemu.
27819
27820 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27821 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27822 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27823 * util/grub-mkrawimage.c: Moved from here ...
27824 * util/grub-mkimage.c: ... here. All users updated.
27825 (ALIGN_ADDR): Use image_target.
27826 (TARGET_NO_FIELD): New const.
27827 (image_target_desc): New type.
27828 (image_targets): New array.
27829 (grub_target_to_host64): Use image_target.
27830 (grub_target_to_host32): Likewise.
27831 (grub_target_to_host16): Likewise.
27832 (grub_host_to_target64): Likewise.
27833 (grub_host_to_target32): Likewise.
27834 (grub_host_to_target16): Likewise.
27835 (grub_host_to_target_addr): Likewise.
27836 (generate_image): Handle multiimage.
27837 (main): Require -O parameter. All users updated.
27838 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27839 util/efi/grub-mkimage.c
27840 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27841 New option --rom-directory.
27842 Use xorriso.
27843 * util/i386/efi/grub-mkimage.c: Removed.
27844 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27845 (grub_target_to_host32): Likewise.
27846 (grub_target_to_host64): Likewise.
27847 (grub_host_to_target16): Likewise.
27848 (grub_host_to_target32): Likewise.
27849 (grub_host_to_target64): Likewise.
27850 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27851 (grub_target_to_host32): Likewise.
27852 (grub_target_to_host64): Likewise.
27853 (grub_host_to_target16): Likewise.
27854 (grub_host_to_target32): Likewise.
27855 (grub_host_to_target64): Likewise.
27856
27857 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27858
27859 Source tree is reorganized for emu build.
27860
27861 * include/grub/util/console.h: Move from here...
27862 * include/grub/emu/console.h: ...to here.
27863 * include/grub/util/getroot.h: Move from here...
27864 * include/grub/emu/getroot.h: ...to here.
27865 * include/grub/util/hostdisk.h: Move from here...
27866 * include/grub/emu/hostdisk.h: ...to here.
27867 * util/console.c: Move from here...
27868 * kern/emu/console.c: ...to here.
27869 * util/getroot.c: Move from here...
27870 * kern/emu/getroot.c: ...to here.
27871 * util/grub-emu.c: Move from here...
27872 * kern/emu/main.c: ...to here.
27873 * util/hostdisk.c: Move from here...
27874 * kern/emu/hostdisk.c: ...to here.
27875 * util/hostfs.c: Move from here...
27876 * kern/emu/hostfs.c: ...to here.
27877 * util/mm.c: Move from here...
27878 * kern/emu/mm.c: ...to here.
27879 * util/pci.c: Move from here...
27880 * bus/emu/pci.c: ...to here.
27881 * util/sdl.c: Move from here...
27882 * video/emu/sdl.c: ...to here.
27883 * util/time.c: Move from here...
27884 * kern/emu/time.c: ...to here.
27885 * util/usb.c: Move from here...
27886 * bus/usb/emu/usb.c: ...to here.
27887
27888 * include/grub/emu/misc.h: New header for grub-emu functions.
27889 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27890
27891 * conf/any-emu.rmk: Rule updates for above renames.
27892 * conf/common.rmk: Likewise.
27893 * conf/i386-pc.rmk: Likewise.
27894 * conf/i386-qemu.rmk: Likewise.
27895 * conf/mips.rmk: Likewise.
27896 * conf/sparc64-ieee1275.rmk: Likewise.
27897 * conf/x86-efi.rmk: Likewise.
27898
27899 * disk/lvm.h: #include updates for above renames.
27900 * util/grub-mkrelpath.c: Likewise.
27901 * util/grub-probe.c: Likewise.
27902 * util/i386/pc/grub-setup.c: Likewise.
27903 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27904 * kern/emu/console.c: Likewise.
27905 * kern/emu/getroot.c: Likewise.
27906 * kern/emu/hostdisk.c: Likewise.
27907 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27908
27909 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27910 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27911 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27912 * util/misc.c: Remove grub-emu functions.
27913
27914 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27915
27916 Fix gfxmenu crash.
27917 Reported by: Thorsten Grützmacher.
27918
27919 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27920 timeout hook.
27921 (circprog_set_property): Register and unregister timeout hook.
27922 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27923 (label_destroy): Free template. and unregister hook.
27924 (label_set_state): New function.
27925 (label_set_property): Handle templates and hooks.
27926 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27927 timeout hook.
27928 (progress_bar_set_property): Register and unregister timeout hook.
27929 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27930 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27931 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27932 (update_timeout_visit): Removed.
27933 (update_timeouts): New function.
27934 (redraw_timeouts): Likewise.
27935 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27936 (grub_gfxmenu_clear_timeout): Likewise.
27937 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27938 (grub_gfxmenu_timeout_notify): Likewise.
27939 (grub_gfxmenu_timeout_notifications): New external variable.
27940 (grub_gfxmenu_timeout_register): New function.
27941 (grub_gfxmenu_timeout_unregister): Likewise.
27942
27943 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27944
27945 Transform (broken) vga terminal into (working) vga video driver.
27946
27947 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27948 video/i386/pc/vga.c.
27949 * include/grub/video.h (grub_video_driver_id):
27950 Add GRUB_VIDEO_DRIVER_VGA.
27951 * term/i386/pc/vga.c: Renamed to ...
27952 * video/i386/pc/vga.c: ...this
27953 (DEBUG_VGA): Removed.
27954 (CHAR_WIDTH): Likewise.
27955 (CHAR_HEIGHT): Likewise.
27956 (TEXT_WIDTH): Likewise.
27957 (TEXT_HEIGHT): Likewise.
27958 (DEFAULT_FG_COLOR): Likewise.
27959 (DEFAULT_BG_COLOR): Likewise.
27960 (colored_char): Likewise.
27961 (xpos): Likewise.
27962 (ypos): Likewise.
27963 (cursor_state): Likewise.
27964 (fg_color): Likewise.
27965 (bg_color): Likewise.
27966 (text_buf): Likewise.
27967 (page): Likewise.
27968 (font): Likewise.
27969 (framebuffer): New variable.
27970 (set_read_map): Disabled.
27971 (setup): New variable.
27972 (is_target): Likewise.
27973 (grub_vga_mod_init): Likewise.
27974 (grub_vga_mod_fini): Likewise.
27975 (check_vga_mem): Likewise.
27976 (write_char): Likewise.
27977 (write_cursor): Likewise.
27978 (scroll_up): Likewise.
27979 (grub_vga_putchar): Likewise.
27980 (grub_vga_getcharwidth): Likewise.
27981 (grub_vga_getwh): Likewise.
27982 (grub_vga_getxy): Likewise.
27983 (grub_vga_gotoxy): Likewise.
27984 (grub_vga_cls): Likewise.
27985 (grub_vga_setcolorstate): Likewise.
27986 (grub_vga_setcursor): Likewise.
27987 (grub_video_vga_init): New function.
27988 (grub_video_vga_setup): Likewise.
27989 (grub_video_vga_fini): Likewise.
27990 (update_target): Likewise.
27991 (grub_video_vga_blit_bitmap): Likewise.
27992 (grub_video_vga_blit_render_target): Likewise.
27993 (grub_video_vga_set_active_render_target): Likewise.
27994 (grub_video_vga_get_active_render_target): Likewise.
27995 (grub_video_vga_swap_buffers): Likewise.
27996 (grub_video_vga_set_palette): Likewise.
27997 (grub_video_vga_get_info_and_fini): Likewise.
27998 (grub_vga_term): Removed.
27999 (grub_video_vga_adapter): New variable.
28000 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28001 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28002
28003 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28004
28005 * video/readers/jpeg.c: Indented.
28006
28007 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28008
28009 Various jpeg cleanups.
28010
28011 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28012 (grub_jpeg_decode_quan_table): Use sizeof.
28013 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28014
28015 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28016
28017 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28018 tables. Ignore non-last ac bit.
28019 (grub_jpeg_decode_quan_table): Likewise.
28020
28021 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28022
28023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28024 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28025 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28026 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28027 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28028 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28029
28030 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28031
28032 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28033 error.
28034
28035 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28036
28037 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28038
28039 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28040
28041 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28042 condition.
28043
28044 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28045
28046 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28047 part.
28048
28049 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28050
28051 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28052 pointers.
28053
28054 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28055
28056 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28057
28058 2010-05-01 Christian Franke <franke@computer.org>
28059
28060 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28061 Remove broken Cygwin path conversion.
28062 * util/misc.c: [__CYGWIN__] Add include and define.
28063 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28064 for Cygwin 1.7.
28065 (make_system_path_relative_to_its_root): Simplify loop, replace early
28066 return by break.
28067 [__CYGWIN__] Add conversion to win32 path.
28068 Include "/" case in trailing slash removal.
28069
28070 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28073 Reported by: Seth Goldberg
28074
28075 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28076
28077 * commands/help.c (grub_cmd_help): Fix a typo.
28078 Reported by: Seth Goldberg
28079
28080 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28081
28082 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28083 name and add N_.
28084 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28085 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28086 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28087 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28088 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28089 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28090 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28091 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28092 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28093 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28094 * normal/context.c (GRUB_MOD_INIT): Likewise.
28095 * normal/main.c (GRUB_MOD_INIT): Likewise.
28096 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28097 * term/serial.c (GRUB_MOD_INIT): Likewise.
28098 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28099
28100 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28101
28102 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28103 extra == 0.
28104
28105 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28106
28107 * commands/iorw.c: New file.
28108 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28109 (iorw_mod_SOURCES): New variable.
28110 (iorw_mod_CFLAGS): Likewise.
28111 (iorw_mod_LDFLAGS): Likewise.
28112
28113 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28114
28115 Hotkey support
28116
28117 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28118 * normal/main.c (hotkey_aliases): New variable.
28119 (grub_normal_add_menu_entry): Parse "--hotkey".
28120 * normal/menu_text.c (run_menu): Handle hotkeys.
28121
28122 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28123
28124 * kern/i386/coreboot/init.c (grub_machine_init): Call
28125 grub_machine_mmap_init on qemu.
28126
28127 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28128
28129 * boot/i386/qemu/boot.S: Add a missing .code16.
28130
28131 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28132
28133 Use LBIO on coreboot.
28134
28135 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28136 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28137 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28138 New declaration.
28139 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28140 grub_machine_mmap_init on coreboot.
28141 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28142 GRUB_LINUXBIOS_MEMBER_LINK.
28143 (grub_machine_mmap_iterate): Fix declaration.
28144 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28145
28146 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28147
28148 Split coreboot and multiboot ports.
28149
28150 * conf/i386-multiboot.rmk: New file.
28151 * configure.ac: Add multiboot port.
28152 * include/grub/i386/multiboot/boot.h: New file.
28153 * include/grub/i386/multiboot/console.h: Likewise.
28154 * include/grub/i386/multiboot/init.h: Likewise.
28155 * include/grub/i386/multiboot/kernel.h: Likewise.
28156 * include/grub/i386/multiboot/loader.h: Likewise.
28157 * include/grub/i386/multiboot/memory.h: Likewise.
28158 * include/grub/i386/multiboot/serial.h: Likewise.
28159 * include/grub/i386/multiboot/time.h: Likewise.
28160 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28161 * loader/multiboot.c: Likewise.
28162 * loader/multiboot_mbi2.c: Likewise.
28163 * util/grub-mkrescue.in: Generate multiboot rescue.
28164
28165 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28166
28167 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28168
28169 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28170
28171 Merge handling of input and output terminals. Fix a hang.
28172
28173 * commands/terminal.c (abstract_terminal): New struct.
28174 (handle_command): New function. Based on grub_cmd_terminal_input.
28175 (grub_cmd_terminal_input): Use handle_command.
28176 (grub_cmd_terminal_output): Use handle_command.
28177
28178 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28179
28180 Fix comment handling.
28181
28182 * tests/grub_script_comments.in: New testcase.
28183 * conf/tests.rmk: Rules for new testcase.
28184 * script/yylex.l: Updated flex rules.
28185
28186 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28187
28188 * docs/grub.texi (play): Document that zero pitches produce rests.
28189 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28190 if argc is 1.
28191
28192 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28193
28194 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28195 autogen issues.
28196
28197 2010-04-26 Christian Franke <franke@computer.org>
28198
28199 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28200 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28201 (grub_get_prefix): Remove function.
28202 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28203 make_system_path_relative_to_its_root ().
28204 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28205
28206 2010-04-24 Christian Franke <franke@computer.org>
28207
28208 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28209 (kernel_img_LDFLAGS): Remove -static-libgcc.
28210
28211 2010-04-24 Christian Franke <franke@computer.org>
28212
28213 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28214 and CHECK_END_SYMBOL if grub-emu is built.
28215 Unset TARGET_OBJ2ELF if grub-emu is built
28216 without module support.
28217
28218 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28219
28220 Nilfs2 support.
28221
28222 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28223 (grub_fstest_SOURCES): Likewise.
28224 (pkglib_MODULES): Add nilfs2.mod.
28225 (nilfs2_mod_SOURCES): New variable.
28226 (nilfs2_mod_CFLAGS): Likewise.
28227 (nilfs2_mod_LDFLAGS): Likewise.
28228 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28229 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28230 * fs/nilfs2.c: New file.
28231
28232 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28233
28234 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28235 is not supported.
28236
28237 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28238
28239 Add grub-mkconfig support for NetBSD.
28240
28241 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28242 * util/grub-mkconfig.in: export new NetBSD specific variables.
28243 * po/POTFILES-shell: added 10_netbsd.in.
28244 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28245
28246 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28247
28248 Fix emu build with grub-emu-pci and grub-emu-modules.
28249
28250 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28251 functions.
28252 * include/grub/libpciaccess.h: New file.
28253 * conf/any-emu.rmk: Update kernel headers for emu build.
28254
28255 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28256
28257 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28258
28259 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28260
28261 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28262
28263 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28264
28265 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28266 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28267 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28268 util/ieee1275/ofpath.c.
28269 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28270 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28271 * include/grub/sparc64/ieee1275/boot.h
28272 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28273 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28274 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28275 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28276 const char *.
28277 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28278 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28279 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28280 install.
28281
28282 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28283
28284 * util/grub-mkconfig.in: Corrected two == equality tests.
28285 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28286 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28287 expect a number appended to it.
28288 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28289 expects a number appended to it.
28290
28291 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28292
28293 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28294
28295 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28296
28297 * util/hostdisk.c (make_device_name): Change to new partition naming.
28298
28299 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28300
28301 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28302
28303 2010-04-17 Christian Franke <franke@computer.org>
28304
28305 * Makefile.in: Add missing localedir setting.
28306
28307 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28308
28309 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28310 mistake in r2156. Noticed by Anthony Fok.
28311
28312 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28313 @localedir@.
28314 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28315
28316 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28317
28318 Fix a spurious, uninitialized variable warning.
28319
28320 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28321 Initialize variable, shdr.
28322 (grub_freebsd_load_elfmodule): Likewise.
28323 (grub_freebsd_load_elf_meta): Likewise.
28324
28325 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28326
28327 Fix for escaped dollar in double quoted strings.
28328
28329 * script/yylex.l: Updated flex rules.
28330 * conf/tests.rmk: Rule for new testcase.
28331 * tests/grub_script_dollar.in: New testcase.
28332
28333 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28334 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28335
28336 Enclose all translated strings in grub.cfg in single quotes, and
28337 escape them appropriately (Ubuntu bug #552921).
28338
28339 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28340 * util/grub.d/10_hurd.in: Use it.
28341 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28342 * util/grub.d/10_linux.in (linux_entry): Likewise.
28343
28344 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28345
28346 Fix cygwin compilation.
28347
28348 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28349 * include/grub/misc.h (__register_frame_info)
28350 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28351 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28352 * kern/misc.c (__register_frame_info)
28353 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28354 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28355
28356 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28357
28358 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28359
28360 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28361
28362 Unify libgcc processing.
28363
28364 * Makefile.in (kernel_img_LDFLAGS): New variable.
28365 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28366 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28367 overwriting.
28368 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28369 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28370 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28371 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28372 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28373 overwriting. Remove -lgcc and -static-libgcc
28374 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28375 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28376 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28377 (kernel_img_LDFLAGS): Append instead of overwriting.
28378 Remove -lgcc and -static-libgcc
28379 * conf/sparc64-ieee1275.rmk: Likewise.
28380 * include/grub/powerpc/libgcc.h: Move to ...
28381 * include/grub/libgcc.h: .. this.
28382 * include/grub/libgcc.h: Don't export most of the function on x86.
28383 (__bswapsi2): New export.
28384 (__bswapdi2): Likewise.
28385 * include/grub/mips/libgcc.h: Removed.
28386 * include/grub/sparc64/libgcc.h: Likewise.
28387
28388 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28389
28390 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28391 disk_info_msg (conflicts with gettexting into languages with cases).
28392
28393 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28394
28395 Add grub-probe support for NetBSD.
28396
28397 * util/getroot.c (find_root_device): Convert block device to
28398 character device on NetBSD.
28399 * util/probe.c (probe): Require character device on NetBSD.
28400 * util/hostdisk.c: NetBSD specific headers.
28401 (configure_device_driver): new function to tune device driver
28402 parameters (currently only for NetBSD floppy driver).
28403 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28404 via disklabel ioctl).
28405 (open_device): call configure_device_driver on NetBSD.
28406 (convert_system_partition_to_system_disk): NetBSD specific code.
28407 (device_is_wholedisk): Likewise.
28408 (grub_util_biosdisk_get_grub_dev): Likewise.
28409 (make_device_name): Fixed a typo in bsd_part_str.
28410 * configure.ac: check for opendisk() and getrawpartition() on
28411 NetBSD and set LIBUTIL.
28412 * Makefile.in: add LIBUTIL to LIBS.
28413
28414 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28415
28416 Documentation fix.
28417
28418 * util/grub-script-check.c: Better help message.
28419
28420 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
28421
28422 Fix FreeBSD build.
28423
28424 * configure.ac: Flex version check.
28425 * conf/common.rmk: Add -Wno-error to sh.mod.
28426 * script/yylex.l: Remove all #pragma.
28427
28428 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28429
28430 * include/grub/util/misc.h (canonicalise_file_name): Add missing
28431 prototype.
28432 Reported by: Seth Goldberg.
28433
28434 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28435
28436 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
28437 Rename "module" to "module2".
28438 Reported by: Seth Goldberg.
28439
28440 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28441
28442 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
28443 EXPORT_FUNC.
28444 Reported by: Seth Goldberg.
28445
28446 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28447
28448 * lib/posix_wrap/locale.h: Add missing file.
28449 Reported by: Seth Goldberg.
28450
28451 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28452
28453 grub-emu module load support.
28454
28455 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
28456 NO_DYNAMIC_MODULES switched to this.
28457 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
28458 (CFLAGS): Likewise.
28459 * conf/any-emu.rmk: Generate symlist.
28460 (kernel_img_HEADERS): Add util/datetime.h.
28461 (kernel_img_HEADERS) [sdl]: Add sdl.h.
28462 (kernel_img_HEADERS) [libusb]: Add libusb.h.
28463 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
28464 kern/$(target_cpu)/cache.S.
28465 * configure.ac (grub-emu-modules): New option.
28466 * genmk.rb: Handle multiple source lists.
28467 * include/grub/sdl.h: New file.
28468 * include/grub/libusb.h: Likewise.
28469 * util/grub-emu.c (main): Hanle (host) root.
28470 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
28471 GRUB_ERR_UNKNOWN_DEVICE.
28472 * util/misc.c: Move mm functions to ...
28473 * util/mm.c: ... here. All users updated.
28474
28475 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28476
28477 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
28478 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
28479 missing files.
28480 (maintainer-clean): Remove libgcrypt-grub.
28481
28482 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28483
28484 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
28485
28486 2010-04-09 EFI Coder <eficoder@hotmail.com>
28487
28488 * normal/menu_text.c (print_message): Clean up the message and show
28489 the Fn information when on EFI
28490 * term/efi/console.c (grub_console_checkkey): Add F4 support.
28491
28492 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28493
28494 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
28495 All users updated.
28496 * normal/crypto.c (read_crypto_list): Likewise.
28497 * normal/dyncmd.c (read_command_list): Likewise.
28498 * normal/term.c (read_terminal_list): Likewise.
28499 * normal/main.c (read_lists): Use explicit prefix.
28500 (read_lists_hook): Use read_lists.
28501 (grub_normal_execute): Likewise.
28502
28503 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28504
28505 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
28506 Reported by: Thomas Schmitt.
28507 Add -no-emul-boot to grub-mkisofs parameters.
28508
28509 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28510
28511 * font/font.c: Indented.
28512
28513 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28514
28515 Elif support to GRUB script (by Deepak Vankadaru).
28516
28517 * tests/grub_script_if.in: New testcase.
28518 * conf/tests.rmk: Rule for new testcase.
28519 * script/parser.y: Grammar rules for elif.
28520
28521 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
28522
28523 While and until loops support to GRUB script.
28524
28525 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
28526 (grub_script_create_cmdwhile): New function prototype.
28527 (grub_script_execute_cmdwhile): New function prototype.
28528 * script/execute.c (grub_script_execute_cmdwhile): New function.
28529 * script/parser.y (command): New commands.
28530 (whilecmd): New grammar rule.
28531 (untilcmd): New grammar rule.
28532 * script/script.c (grub_script_create_cmdwhile): New function.
28533 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
28534 function.
28535
28536 * tests/grub_script_while1.in: New testcase.
28537 * conf/tests.rmk: Rule for new testcase.
28538
28539 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28540
28541 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
28542 as *.jpg.
28543
28544 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
28545
28546 GRUB_BACKGROUND support.
28547
28548 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
28549 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
28550
28551 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28552
28553 Load fonts and modules for gfxmenu in grub-mkconfig.
28554 Idea by: Mario Vazquez
28555
28556 * util/grub.d/00_header.in: Load pf2 and image modules.
28557
28558 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28559
28560 grub-mkconfig multiple terminal support.
28561
28562 * util/grub-mkconfig.in: Handle multiple terminals correctly.
28563 * util/grub.d/00_header.in: Likewise.
28564
28565 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
28566
28567 * Makefile.in: Specify files explicitly instead of using $< and $@ since
28568 we use cd $(srcdir).
28569
28570 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
28571
28572 * util/grub.d/10_linux.in: Only use the first word of
28573 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
28574 spaces in GRUB_DISTRIBUTOR.
28575 * util/grub.d/10_kfreebsd.in: Likewise.
28576 * util/grub.d/10_hurd.in: Likewise.
28577
28578 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
28579
28580 Fix unit testing framework for Qemu 0.12.
28581
28582 * tests/util/grub-shell.in: Remove -serial stdio option.
28583
28584 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28585
28586 POSIX header file wrappers.
28587
28588 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
28589 equivalents.
28590 * lib/posix_wrap/ctype.h: Likewise.
28591 * lib/posix_wrap/errno.h: Likewise.
28592 * lib/posix_wrap/langinfo.h: Likewise.
28593 * lib/posix_wrap/limits.h: Likewise.
28594 * lib/posix_wrap/localcharset.h: Likewise.
28595 * lib/posix_wrap/stdint.h: Likewise.
28596 * lib/posix_wrap/stdio.h: Likewise.
28597 * lib/posix_wrap/stdlib.h: Likewise.
28598 * lib/posix_wrap/string.h: Likewise.
28599 * lib/posix_wrap/sys/types.h: Likewise.
28600 * lib/posix_wrap/unistd.h: Likewise.
28601 * lib/posix_wrap/wchar.h: Likewise.
28602 * lib/posix_wrap/wctype.h: Likewise.
28603 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
28604 (grub_script.yy.h): Likewise.
28605 * script/yylex.l: Remove POSIX emulation #defines.
28606 * Makefile.in (POSIX_CFLAGS): New variable.
28607 (GNULIB_UTIL_CFLAGS): Likewise.
28608
28609 Regexp support.
28610
28611 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
28612 (regexp_mod_SOURCES): New variable.
28613 (regexp_mod_CFLAGS): Likewise.
28614 (regexp_mod_LDFLAGS): Likewise.
28615 * commands/regexp.c: New file.
28616 * gnulib/regcomp.c: New file. Imported from gnulib.
28617 * gnulib/regex.c: Likewise.
28618 * gnulib/regex_internal.c: Likewise.
28619 * gnulib/regex_internal.h: Likewise.
28620 * gnulib/regexec.c: Likewise.
28621 * gnulib/regex.h: Likewise.
28622
28623 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28624
28625 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
28626 unsupported video mode types.
28627
28628 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28629
28630 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
28631
28632 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28633
28634 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
28635 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
28636
28637 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28638
28639 Remove unused grub_vga_get_font.
28640
28641 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
28642 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
28643
28644 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28645
28646 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
28647 * include/grub/misc.h: Likewise.
28648
28649 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28650
28651 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
28652 for which failure is fatal.
28653
28654 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28655
28656 * util/grub-install.in: Use mkdir -p to create grub directory.
28657 * util/i386/efi/grub-install.in: Likewise.
28658 * util/ieee1275/grub-install.in: Likewise.
28659
28660 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28661
28662 * Makefile.in (LEX): new variable.
28663
28664 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
28665
28666 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
28667 `=' and added double quotes on operands of this equality test.
28668
28669 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28670
28671 * Makefile.in (uninstall): Remove a leftover debug echo.
28672 Reported by: Grégoire Sutre
28673
28674 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
28675
28676 MIPS multiboot2 support.
28677
28678 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
28679 (multiboot2_mod_SOURCES): New variable.
28680 (multiboot2_mod_CFLAGS): Likewise.
28681 (multiboot2_mod_LDFLAGS): Likewise.
28682 (multiboot2_mod_ASFLAGS): Likewise.
28683 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
28684 definition.
28685 (MULTIBOOT_ENTRY_REGISTER): Likewise.
28686 (MULTIBOOT_MBI_REGISTER): Likewise.
28687 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
28688 (MULTIBOOT_ELF32_MACHINE): Likewise.
28689 (MULTIBOOT_ELF64_MACHINE): Likewise.
28690 * include/grub/mips/multiboot.h: New file.
28691 * include/grub/video.h (grub_video_driver_id): New type
28692 GRUB_VIDEO_DRIVER_SM712.
28693 (grub_video_get_info_and_fini): Export.
28694 (grub_video_get_palette): Likewise.
28695 (grub_video_get_driver_id): Likewise.
28696 * include/multiboot2.h: Resynced with spec.
28697 * loader/i386/multiboot.c: Moved from here ...
28698 * loader/multiboot.c: ... here. All users updated.
28699 (grub_multiboot_boot): Use platform-specific macros.
28700 * loader/i386/multiboot_elfxx.c: Moved from here ...
28701 * loader/multiboot_elfxx.c: ... here. All users updated.
28702 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
28703 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
28704 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
28705
28706 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
28707
28708 Import gnulib argp module.
28709
28710 * gnulib/argp-ba.c: New file.
28711 * gnulib/argp-eexst.c: Likewise.
28712 * gnulib/argp-fmtstream.c: Likewise.
28713 * gnulib/argp-fmtstream.h: Likewise.
28714 * gnulib/argp-fs-xinl.c: Likewise.
28715 * gnulib/argp-help.c: Likewise.
28716 * gnulib/argp-namefrob.h: Likewise.
28717 * gnulib/argp-parse.c: Likewise.
28718 * gnulib/argp-pin.c: Likewise.
28719 * gnulib/argp-pv.c: Likewise.
28720 * gnulib/argp-pvh.c: Likewise.
28721 * gnulib/argp-version-etc.c: Likewise.
28722 * gnulib/argp-version-etc.h: Likewise.
28723 * gnulib/argp-xinl.c: Likewise.
28724 * gnulib/argp.h: Likewise.
28725
28726 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * kern/device.c (grub_device_iterate): Clear errors after failed
28729 opening device.
28730
28731 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
28734 returned by firmware.
28735
28736 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
28737
28738 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
28739 compilation on coreboot and qemu
28740
28741 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28742
28743 * include/multiboot2.h: Resync with spec.
28744
28745 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
28746
28747 Multiboot2 tag support
28748
28749 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
28750 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
28751 Remove loader/multiboot_loader.c.
28752 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
28753 (grub_multiboot2_real_boot): Likewise.
28754 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
28755 (grub_get_multiboot_mmap_count): New proto.
28756 (grub_fill_multiboot_mmap): Likewise.
28757 (grub_multiboot_set_video_mode): Likewise.
28758 (grub_multiboot_set_console): Likewise.
28759 (grub_multiboot_load): Likewise.
28760 (grub_multiboot_load_elf): Likewise.
28761 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
28762 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
28763 * include/multiboot.h: Resynced with specification.
28764 * include/multiboot2.h: Resynced with specification.
28765 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
28766 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
28767 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
28768 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
28769 users updated.
28770 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
28771 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
28772 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
28773 Removed.
28774 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28775 Moved from here...
28776 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28777 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28778 Moved from here...
28779 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28780 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28781 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28782 All users updated.
28783 * loader/i386/multiboot_mbi2.c: New file.
28784
28785 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28786
28787 Resync with gnulib.
28788
28789 * Makefile.in (GNULIB_CFLAGS): New variable.
28790 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28791 (grub_script_check_CFLAGS): New variable.
28792 * gnulib/alloca.h: Resync with gnulib.
28793 * gnulib/error.c: Likewise.
28794 * gnulib/error.h: Likewise.
28795 * gnulib/fnmatch.c: Likewise.
28796 * gnulib/fnmatch_loop.c: Likewise.
28797 * gnulib/getdelim.c: Likewise.
28798 * gnulib/getline.c: Likewise.
28799 * gnulib/getopt.c: Likewise.
28800 * gnulib/getopt1.c: Likewise.
28801 * gnulib/getopt_int.h: Likewise.
28802 * gnulib/gettext.h: Likewise.
28803 * gnulib/progname.c: Likewise.
28804 * gnulib/progname.h: Likewise.
28805
28806 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28807
28808 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28809 which is the case with --disabled-nls.
28810
28811 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28812 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28813 * util/misc.c: Likewise.
28814 * util/mkisofs/mkisofs.c: Likewise.
28815 * util/mkisofs/mkisofs.h: Likewise.
28816
28817 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28818
28819 Simplify Apple CC support.
28820
28821 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28822 Add 0 byte at the end not to have a symbol with empty target.
28823 * mmap/i386/pc/mmap_helper.S: Likewise.
28824 * genmk.rb: Ignore errors 2030 and 2050.
28825 * kern/i386/pc/startup.S: Use LOCAL when possible.
28826
28827 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28828
28829 Testcase and the fix for final semicolon on cmdline.
28830
28831 * tests/grub_script_final_semicolon.in: New testcase.
28832 * conf/tests.rmk: Rules for the new testcase.
28833 * script/parser.y: Grammar fix.
28834
28835 2010-03-26 BVK Chaitanya <bvk@localhost>
28836
28837 Blank lines testcase for GRUB script.
28838
28839 * tests/grub_script_blanklines.in: New testcase.
28840 * conf/tests.rmk: Rules for the new testcase.
28841
28842 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28843
28844 Don't use __FILE__.
28845
28846 * genmk.rb: Add -DGRUB_FILE to all C targets.
28847 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28848 * include/grub/list.h: Likewise.
28849 * include/grub/misc.h: Likewise.
28850 * include/grub/mm.h: Likewise.
28851 * include/grub/test.h: Likewise.
28852 * kern/mm.c: Likewise.
28853 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28854
28855 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 Sunpc partitions support.
28858
28859 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28860 (grub_fstest_SOURCES): Likewise.
28861 (pkglib_MODULES): Add part_sunpc.mod.
28862 (part_sunpc_mod_SOURCES): New variable.
28863 (part_sunpc_mod_CFLAGS): Likewise.
28864 (part_sunpc_mod_LDFLAGS): Likewise.
28865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28866 * partmap/sunpc.c: New file.
28867
28868 2010-03-26 BVK Chaitanya <bvk@localhost>
28869
28870 For loop support to GRUB script.
28871
28872 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28873 (grub_script_create_cmdfor): New function prototype.
28874 (grub_script_execute_cmdfor): New function prototype.
28875 * script/execute.c (grub_script_execute_cmdfor): New function.
28876 * script/parser.y (command): New for command.
28877 (forcmd): New grammar rule.
28878 * script/script.c (grub_script_create_cmdfor): New function.
28879 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28880 function.
28881 * tests/grub_script_for1.in: New testcase.
28882 * conf/tests.rmk: Rules for new testcase.
28883
28884 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28885
28886 Nested partitions
28887
28888 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28889 'partition' is NULL, grub_partition_get_start already does that.
28890 * commands/loadenv.c (check_blocklists): Likewise.
28891 (write_blocklists): Likewise.
28892 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28893 (grub_fstest_SOURCES): Likewise.
28894 (pkglib_MODULES): Add part_bsd.mod.
28895 (part_bsd_mod_SOURCES): New variable.
28896 (part_bsd_mod_CFLAGS): Likewise.
28897 (part_bsd_mod_LDFLAGS): Likewise.
28898 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28899 (grub_emu_SOURCES): Likewise.
28900 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28901 * include/grub/bsdlabel.h: New file.
28902 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28903 'get_name'.
28904 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28905 (grub_partition_map_list): New variable.
28906 (grub_partition_map_register): Inline.
28907 (grub_partition_map_unregister): Likewise.
28908 (FOR_PARTITION_MAPS): New macro.
28909 (grub_partition_map_iterate): Removed.
28910 (grub_partition_get_start): Handle nested partitions.
28911 * include/grub/msdos_partition.h: Remove bsd-related entries.
28912 (grub_pc_partition): Remove.
28913 * kern/disk.c (grub_disk_close): Free partition data.
28914 (grub_disk_adjust_range): Handle nested partitions.
28915 * kern/partition.c (grub_partition_map_probe): New function.
28916 (grub_partition_probe): Parse name to number, handle subpartitions.
28917 (get_partmap): New function.
28918 (grub_partition_iterate): Handle subpartitions.
28919 (grub_partition_get_name): Likewise.
28920 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28921 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28922 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28923 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28924 Set 'number'.
28925 (acorn_partition_map_probe): Remove.
28926 (acorn_partition_map_get_name): Likewise.
28927 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28928 Set 'number'.
28929 Set 'index' to 0 since there can be only one partition entry per sector.
28930 (amiga_partition_map_probe): Remove.
28931 (amiga_partition_map_get_name): Likewise.
28932 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28933 Set 'number'.
28934 Set 'offset' and 'index' to real positions of partitions.
28935 (apple_partition_map_probe): Remove.
28936 (apple_partition_map_get_name): Likewise.
28937 * partmap/bsdlabel.c: New file.
28938 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28939 Set 'number'.
28940 Allocate 'data' so it can be correctly freed.
28941 Set 'index' to offset inside sector.
28942 (gpt_partition_map_probe): Remove.
28943 (gpt_partition_map_get_name): Likewise.
28944 * partmap/msdos.c (grub_partition_parse): Remove.
28945 (pc_partition_map_iterate): Don't force raw access.
28946 Set 'number'.
28947 Make 'ext_offset' a local variable.
28948 (pc_partition_map_probe): Remove.
28949 (pc_partition_map_get_name): Remove.
28950 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28951 Set 'number'.
28952 (sun_partition_map_probe): Remove.
28953 (sun_partition_map_get_name): Likewise.
28954 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28955 (grub_pcpart_type): Likewise.
28956 * util/hostdisk.c (open_device): Handle new numbering scheme.
28957 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28958 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28959 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28960 * util/grub-install.in: Insert all subpartition modules.
28961 * util/ieee1275/grub-install.in: Likewise.
28962
28963 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28964
28965 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28966 grammar.
28967
28968 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
28969
28970 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28971
28972 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
28973
28974 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28975 match where 'make install' puts them.
28976 * util/i386/efi/grub-install.in: Likewise.
28977
28978 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
28979
28980 * .bzrignore: Add gentrigtables, grub-script-check,
28981 grub_script_check_init.c, grub_script_check_init.h, and
28982 trigtables.c.
28983
28984 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28985
28986 * kern/parser.c: Indented.
28987
28988 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28989
28990 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28991
28992 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28993
28994 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28995 alpha_mask_size == 0 case.
28996
28997 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28998
28999 GRUB shell lexer and parser improvements.
29000
29001 * conf/any-emu.rmk: Build rule updates.
29002 * conf/common.rmk: Likewise.
29003 * conf/i386-coreboot.rmk: Likewise.
29004 * conf/i386-efi.rmk: Likewise.
29005 * conf/i386-ieee1275.rmk: Likewise.
29006 * conf/i386-pc.rmk: Likewise.
29007 * conf/powerpc-ieee1275.rmk: Likewise.
29008 * conf/x86_64-efi.rmk: Likewise.
29009
29010 * configure.ac: Configure check for flex.
29011
29012 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29013 types.
29014 (grub_lexer_param): Struct member updates.
29015 (grub_parser_param): Likewise.
29016 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29017 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29018 (grub_script_lexer_init): Prototype update.
29019 (grub_script_lexer_record_start): Likewise.
29020 (grub_script_lexer_record_stop): Likewise.
29021 (grub_script_lexer_yywrap): New function prototype.
29022 (grub_script_lexer_fini): Likewise.
29023 (grub_script_execute_argument_to_string): Removed by...
29024 (grub_script_execute_argument_to_argv): ...better version.
29025
29026 * script/execute.c (ROUND_UPTO): New macro.
29027 (grub_script_execute_cmdline): Out of memory fixes.
29028 (grub_script_execute_menuentry): Likewise.
29029 (grub_script_execute_argument_to_string): Removed. Update all
29030 users by...
29031 (grub_script_execute_argument_to_argv): ...better version.
29032 * script/function.c (grub_script_function_create): Use
29033 grub_script_execute_argument_to_argv instead of
29034 grub_script_execute_argument_to_string.
29035
29036 * script/lexer.c (check_varstate): Removed.
29037 (check_textstate): Removed.
29038 (grub_script_lexer_record_start): Likewise.
29039 (grub_script_lexer_record_stop): Likewise.
29040 (recordchar): Replaced with...
29041 (grub_script_lexer_record): ...new function.
29042 (nextchar): Removed.
29043 (grub_script_lexer_init): Rewritten.
29044 (grub_script_yylex): Rewritten.
29045 (append_newline): New function.
29046 (grub_script_lexer_yywrap): New function.
29047 (grub_script_lexer_fini): New function.
29048 (grub_script_yyerror): Sets error flag.
29049
29050 * script/yylex.l: New file.
29051 (grub_lexer_yyfree): Wrapper for flex yyffre.
29052 (grub_lexer_yyalloc): Likewise.
29053 (grub_lexer_yyrealloc): Likewise.
29054 * script/parser.y: Refactored.
29055
29056 * script/script.c (grub_script_arg_add): Out of memory fixes.
29057 (grub_script_add_arglist): Likewise.
29058 (grub_script_create_cmdline): Likewise.
29059 (grub_script_create_cmdmenu): Likewise.
29060 (grub_script_add_cmd): Likewise.
29061 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29062 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29063 unnecessary code.
29064
29065 * tests/grub_script_echo1.in: New testcase.
29066 * tests/grub_script_vars1.in: New testcase.
29067 * tests/grub_script_echo_keywords.in: New testcase.
29068
29069 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29070
29071 Remove some redundancy in build system.
29072
29073 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29074 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29075 (TARGET_LDFLAGS): Add -nostdlib.
29076 (TARGET_IMG_LDFLAGS): Likewise.
29077 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29078 anything since mmap isn't available.
29079 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29080 Add util/time.c.
29081 (pkglib_MODULES): Remove reboot.mod.
29082 (reboot_mod_SOURCES): Removed.
29083 (reboot_mod_CFLAGS): Likewise.
29084 (reboot_mod_LDFLAGS): Likewise.
29085 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29086 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29087 (DEFSYMFILES): Add kernel_syms.lst.
29088 (kernel_img_HEADERS): Add common headers.
29089 (symlist.c): New target.
29090 (kernel_syms.lst): Likewise.
29091 (pkglib_MODULES): Add memdisk.mod.
29092 (memdisk_mod_SOURCES): New variable.
29093 (memdisk_mod_CFLAGS): Likewise.
29094 (memdisk_mod_LDFLAGS): Likewise.
29095 (pkglib_MODULES): Add reboot.mod.
29096 (reboot_mod_SOURCES): New variable.
29097 (reboot_mod_CFLAGS): Likewise.
29098 (reboot_mod_LDFLAGS): Likewise.
29099 (pkglib_MODULES): Add date.mod.
29100 (date_mod_SOURCES): New variable.
29101 (date_mod_CFLAGS): Likewise.
29102 (date_mod_LDFLAGS): Likewise.
29103 (pkglib_MODULES): Add datehook.mod.
29104 (datehook_mod_SOURCES): New variable.
29105 (datehook_mod_CFLAGS): Likewise.
29106 (datehook_mod_LDFLAGS): Likewise.
29107 (pkglib_MODULES): Add lsmmap.mod.
29108 (lsmmap_mod_SOURCES): New variable.
29109 (lsmmap_mod_CFLAGS): Likewise.
29110 (lsmmap_mod_LDFLAGS): Likewise.
29111 (pkglib_MODULES): Add boot.mod.
29112 (boot_mod_SOURCES): New variable.
29113 (boot_mod_CFLAGS): Likewise.
29114 (boot_mod_LDFLAGS): Likewise.
29115 * conf/i386-coreboot.rmk: Removed redundant parts.
29116 * conf/i386-ieee1275.rmk: Likewise.
29117 * conf/i386-pc.rmk: Likewise.
29118 * conf/mips-yeeloong.rmk: Likewise.
29119 * conf/mips.rmk: Likewise.
29120 * conf/powerpc-ieee1275.rmk: Likewise.
29121 * conf/sparc64-ieee1275.rmk: Likewise.
29122 * conf/x86_64-efi.rmk: Likewise.
29123 * conf/i386-coreboot.rmk: Moved qemu parts ..
29124 * conf/i386-qemu.rmk: ... here
29125 * conf/i386-efi.rmk: Moved common parts to...
29126 * conf/x86-efi.rmk: ... here.
29127 * conf/i386.rmk: Added modules common to all x86 variants.
29128 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29129 * disk/memdisk.c: Remove grub/machine/kernel.h.
29130 * gensymlist.sh.in: Include symbol.h.
29131 * hook/datehook.c: Correct module name.
29132 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29133 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29134 * include/grub/i386/efi/serial.h: New file.
29135 * include/grub/x86_64/efi/serial.h: Likewise.
29136 * util/time.c: Likewise.
29137 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29138
29139 2010-03-14 Colin King <colin.king@ubuntu.com>
29140 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29141
29142 Shrink the pre-partition-table part of boot.img by eight bytes.
29143
29144 * boot/i386/pc/boot.S (ERR): New macro.
29145 (chs_mode): Use ERR.
29146 (geometry_error): Likewise.
29147 (hd_probe_error): Remove. This is only used once, so we wrwite
29148 it inline instead.
29149 (read_error): Instead of printing read_error_string, just set up
29150 %si and fall through to ...
29151 (error_message): ... this new function, also used by ERR.
29152
29153 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29154
29155 Speed up consecutive hostdisk operations on the same device.
29156
29157 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29158 (grub_util_biosdisk_open): Initialise disk->data.
29159 (struct linux_partition_cache): New structure.
29160 (linux_find_partition): Cache partition start positions; these are
29161 expensive to compute on every read and write.
29162 (open_device): Cache open file descriptor in disk->data, so that we
29163 don't have to reopen it and flush the buffer cache for consecutive
29164 operations on the same device.
29165 (grub_util_biosdisk_close): New function.
29166 (grub_util_biosdisk_dev): Set `close' member.
29167
29168 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29169 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29170 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29171 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29172 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29173
29174 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29175
29176 Compile parts of grub-emu as modules.
29177
29178 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29179 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29180 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29181 (all-local): Add $(GRUB_EMU).
29182 (install-local): Install $(GRUB_EMU).
29183 (uninstall): Uninstall $(GRUB_EMU).
29184 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29185 * kern/dl.c: Likewise.
29186 * commands/sleep.c: Not include machine/time.h.
29187 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29188 (COMMON_CFLAGS): Likewise.
29189 (sbin_UTILITIES): Remove grub-emu.
29190 (grub_emu_SOURCES): Removed.
29191 (kernel_img_RELOCATABLE): New variable.
29192 (pkglib_PROGRAMS): Add kernel.img.
29193 (kernel_img_SOURCES): New variable
29194 (kernel_img_CFLAGS): Likewise.
29195 (kernel_img_LDFLAGS): Likewise.
29196 (TARGET_NO_STRIP): Likewise.
29197 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29198 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29199 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29200 (grub-emu): New target.
29201 (GRUB_EMU): New variable.
29202 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29203 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29204 * loader/xnu.c: Likewise.
29205 * include/grub/pci.h: Likewise.
29206 * genemuinit.sh: New file.
29207 * genemuinitheader.sh: Likewise.
29208 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29209 Support TARGET_NO_DYNAMIC_MODULES.
29210 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29211 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29212 * disk/loopback.c: Likewise.
29213 * font/font_cmd.c: Likewise.
29214 * partmap/acorn.c: Likewise.
29215 * partmap/amiga.c: Likewise.
29216 * partmap/apple.c: Likewise.
29217 * partmap/gpt.c: Likewise.
29218 * partmap/msdos.c: Likewise.
29219 * partmap/sun.c: Likewise.
29220 * parttool/msdospart.c: Likewise.
29221 * term/gfxterm.c: Likewise.
29222 * video/bitmap.c: Likewise.
29223 * video/readers/jpeg.c: Likewise.
29224 * video/readers/png.c: Likewise.
29225 * video/readers/tga.c: Likewise.
29226 * video/video.c: Likewise.
29227 * util/grub-emu.c (read_command_list): Removed.
29228 (main): Don't call util_init_nls.
29229 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29230 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29231
29232 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29233
29234 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29235 date.mod, datehook.mod.
29236 (datetime_mod_SOURCES): New variable.
29237 (datetime_mod_CFLAGS): Likewise.
29238 (datetime_mod_LDFLAGS): Likewise.
29239 (date_mod_SOURCES): Likewise.
29240 (date_mod_CFLAGS): Likewise.
29241 (date_mod_LDFLAGS): Likewise.
29242 (datehook_mod_SOURCES): Likewise.
29243 (datehook_mod_CFLAGS): Likewise.
29244 (datehook_mod_LDFLAGS): Likewise.
29245 * conf/sparc64-ieee1275.rmk: Likewise.
29246 * lib/ieee1275/datetime.c: New file.
29247
29248 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29249
29250 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29251 (ieee1275_fb_mod_SOURCES): New variable.
29252 (ieee1275_fb_mod_CFLAGS): Likewise.
29253 (ieee1275_fb_mod_LDFLAGS): Likewise.
29254 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29255 New proto.
29256 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29257 (HEAP_MAX_ADDR): Likewise.
29258 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29259 type.
29260 Correct stop condition.
29261 (grub_ieee1275_devices_iterate): New function.
29262 * video/ieee1275.c: New file.
29263
29264 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29265
29266 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29267
29268 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29269 as scratch.
29270 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29271 SCRATCH_PAD_DISKBOOT as scratch.
29272 (bootit): Pass Openfirmware pointer in %o4.
29273 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29274 of 0x200000.
29275 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29276 with util/grub-mkrawimage.c.
29277 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29278 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29279 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29280 (grub_aout_load) [GRUB_UTIL]: Likewise.
29281 * include/grub/kernel.h (grub_modules_get_end): New proto.
29282 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29283 (SCRATCH_PAD_BOOT): New definition.
29284 (SCRATCH_PAD_DISKBOOT): Likewise.
29285 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29286 * include/grub/sparc64/ieee1275/ieee1275.h
29287 (grub_ieee1275_original_stack): New variable
29288 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29289 New definition
29290 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29291 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29292 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29293 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29294 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29295 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29296 (grub_platform_image_format_t): New type.
29297 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29298 * kern/main.c (grub_modules_get_end)
29299 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29300 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29301 (codestart): Switch stacks.
29302 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29303 variable.
29304 (grub_heap_init): Use grub_modules_get_end.
29305 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29306 stack.
29307 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29308 (main): Likewise.
29309 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29310
29311 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29312
29313 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29314
29315 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29316
29317 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29318 bug #559005).
29319
29320 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29321
29322 * genmoddep.awk: Output all missing symbols and not only first.
29323
29324 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 * NEWS: Put the date of 1.98 release.
29327
29328 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29329
29330 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29331 ft2build.h.
29332
29333 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29334
29335 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29336 completition in the middle of string.
29337
29338 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29339
29340 * util/grub-mkrescue.in: Use mktemp with explicit template.
29341
29342 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29343
29344 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29345
29346 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29347
29348 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29349 right pointer.
29350
29351 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29352
29353 Fix FreeBSD compilation.
29354
29355 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29356 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29357
29358 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29359
29360 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29361
29362 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29363
29364 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29365
29366 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29367
29368 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29369
29370 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29371
29372 Support relative image path in theme file.
29373
29374 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29375 (image_set_property): Handle theme_dir and relative path.
29376
29377 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29378
29379 * configure.ac: Alias amd64 to x86_64.
29380
29381 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29382
29383 * NEWS: mention multiboot on EFI.
29384
29385 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 * kern/main.c (grub_load_modules): Handle errors from init functions of
29388 embeded modules.
29389
29390 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29391
29392 * normal/autofs.c (autoload_fs_module): Handle errors.
29393
29394 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29395
29396 Disable linux.mod on qemu-mips since it's not functional and leads
29397 to compilation failure.
29398
29399 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29400 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29401 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29402 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29403 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29404 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29405 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29406 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29407 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29408 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29409 Reported by: BVK Chaitanya
29410
29411 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
29412
29413 * INSTALL: Add gettext as a dependency and add qemu to a new section
29414 "Prerequisites for make-check".
29415
29416 2010-03-04 Christian Franke <franke@computer.org>
29417
29418 * util/grub-pe2elf.c: Add missing include "progname.h".
29419
29420 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29421
29422 * normal/crypto.c (read_crypto_list): Fix a typo.
29423 Reported by: Seth Goldberg.
29424
29425 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29426
29427 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
29428 Reported by: Seth Goldberg.
29429
29430 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29431
29432 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
29433 ascii.bitmaps.
29434
29435 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29436
29437 * genmk.rb: Remove terminal*.lst in make clean.
29438 Reported by: Seth Goldberg.
29439
29440 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29441
29442 * util/i386/efi/grub-install.in: Copy gettext files.
29443
29444 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
29447
29448 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29449
29450 Wait for user entry basing on presence of output rather than on errors.
29451
29452 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
29453 (grub_install_newline_hook): Likewise.
29454 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
29455 * normal/menu.c (show_menu): Check line_counter to determine presence
29456 of output.
29457 * normal/term.c (grub_normal_line_counter): New variable.
29458 (grub_normal_get_line_counter): New function.
29459 (grub_install_newline_hook): Likewise.
29460
29461 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29462
29463 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
29464
29465 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
29466
29467 * configure.ac: Update version to 1.98.
29468
29469 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
29470
29471 * util/grub.d/10_linux.in (linux_entry): Don't default to
29472 gfxpayload=keep if Linux doesn't support video handover.
29473
29474 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
29475
29476 Don't compile video modules on yeeloong since video subsystem is part
29477 of kernel.
29478
29479 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
29480 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
29481 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
29482 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
29483 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
29484 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
29485 * include/grub/bitmap_scale.h: Likewise.
29486 * include/grub/bufio.h: Likewise.
29487 * include/grub/font.h: Likewise.
29488 * include/grub/gfxterm.h: Likewise.
29489 * include/grub/video.h: Likewise.
29490 * include/grub/vbe.h: Don't include video_fb.h.
29491 * video/i386/pc/vbe.c: Include video_fb.h.
29492 * commands/i386/pc/vbetest.c: Include video.h.
29493
29494 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
29495
29496 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
29497 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
29498 default entry if GRUB_SAVEDEFAULT=true. This allows using
29499 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
29500 saving a new default on every boot.
29501
29502 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29503
29504 * normal/crypto.c (read_crypto_list): Fix a memory leak.
29505 * normal/term.c (read_terminal_list): Likewise.
29506 * normal/main.c (grub_normal_init_page): Likewise.
29507 (grub_normal_read_line_real): Likewise.
29508
29509 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
29510
29511 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
29512 memory leak.
29513 Reported by: Seth Goldberg.
29514
29515 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
29516
29517 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
29518 duplicate declaration of `start'.
29519
29520 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29521
29522 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
29523 filename.
29524 Reported by: Georgy Buranov
29525
29526 2010-02-20 Carles Pina i Estany <carles@pina.cat>
29527
29528 * util/grub-mkrawimage.c (usage): Change string formatting to
29529 improve gettext.
29530
29531 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
29532
29533 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
29534 backspace keys.
29535
29536 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
29537
29538 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
29539 Reported by: Michael Suchanek.
29540
29541 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
29542
29543 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
29544 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
29545
29546 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
29547
29548 Remove any reference to non-free fonts.
29549
29550 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
29551 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
29552 uses non-free components.
29553 * font/font.c (grub_font_get_name): Remove example name.
29554 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
29555 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
29556 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
29557 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
29558
29559 2010-02-16 Georgy Buranov <gburanov@gmail.com>
29560
29561 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
29562
29563 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29564
29565 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
29566 Double divisor.
29567 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
29568 features.
29569 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
29570
29571 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
29572
29573 * gensymlist.sh.in: Use TARGET_CC instead of CC.
29574
29575 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29576
29577 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
29578 * docs/grub.texi (Command-line and menu entry commands): Document play
29579 command.
29580
29581 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29582
29583 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
29584 parse arguments as inline tempo and notes. Move code for playing notes
29585 to...
29586 (play): ... new function.
29587
29588 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
29589
29590 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
29591 grub_uint16_t instead of short.
29592 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
29593 disk from little endian to cpu endianness.
29594
29595 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29596
29597 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
29598 GRUB_TICKS_PER_SECOND instead of 120.
29599
29600 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29601
29602 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
29603 escape sequence after \e.
29604
29605 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29606
29607 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
29608 non-ASCII characters.
29609
29610 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29611
29612 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
29613 set root in single quotes to prevent \, from being unescaped.
29614
29615 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29616
29617 Prevent unknown commands from stopping menuentry execution.
29618
29619 * script/execute.c (grub_script_execute_cmdline): Print error after
29620 unknown command.
29621
29622 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29623
29624 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
29625 Reported by: Pavel Pisa.
29626
29627 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29628
29629 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
29630
29631 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29632
29633 Merge grub_ieee1275_map_physical into grub_map and rename to
29634 grub_ieee1275_map
29635
29636 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
29637 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
29638 Remove.
29639 * kern/ieee1275/openfw.c (grub_map): Rename to ...
29640 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
29641 necessary.
29642 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
29643
29644 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29645
29646 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
29647 opening and not after.
29648
29649 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29650
29651 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
29652 constants.
29653
29654 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29655
29656 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
29657 (alloc_phys): Use ALIGN_UP instead of align_addr.
29658
29659 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29660
29661 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
29662
29663 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29664
29665 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
29666
29667 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29668
29669 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
29670 verbose dprintf.
29671
29672 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29673
29674 Fix over-4GiB seek on sparc64.
29675
29676 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
29677 Replace pos_i and pos_lo with pos. All users updated.
29678 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29679 New constant.
29680 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
29681 Likewise.
29682 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
29683 and pos_lo.
29684
29685 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29686
29687 * util/grub-mkrawimage.c (main): Call set_program_name.
29688
29689 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29690
29691 Properly align 64-bit targets.
29692
29693 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
29694 (generate_image): Use ALIGN_ADDR.
29695
29696 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29697
29698 Properly create cross-endian images.
29699
29700 * include/grub/types.h (grub_host_to_target_addr): New macro
29701 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
29702
29703 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
29704
29705 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
29706
29707 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29708
29709 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
29710
29711 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
29712 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
29713 (grub_linux_boot): Divide by 64K when on VESA.
29714
29715 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29716
29717 Support GRUB_GFXPAYLOAD_LINUX.
29718
29719 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
29720 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
29721
29722 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
29723
29724 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
29725 to show messages instead of discarding them.
29726 Process errors after executing command and not before. Keep old method
29727 too as precaution.
29728
29729 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
29730
29731 * configure.ac: Check for ft2build.h.
29732
29733 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29734
29735 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
29736
29737 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29738
29739 * genkernsyms.sh.in: Use TARGET_CC.
29740
29741 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
29742
29743 * NEWS: Update.
29744
29745 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29746
29747 * include/grub/multiboot2.h: Remove leftover file.
29748 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
29749 * include/grub/partition.h [GRUB_UTIL]: Likewise.
29750
29751 2010-02-07 Yves Blusseau <blusseau@zetam.org>
29752
29753 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
29754
29755 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29756
29757 Fix warnings in grub-emu when compiling with maximum warning options.
29758
29759 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
29760 (grub_arch_modules_addr): Return 0 and not NULL.
29761 * util/misc.c (ENABLE_RELOCATABLE): New definition.
29762 (xstrdup): Use newstr instead of dup.
29763 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
29764 of disk to dsk to avoid shadowing.
29765 (find_free_slot): Fix prototype.
29766 * util/getroot.c (grub_util_is_dmraid): Make static.
29767 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
29768 Add missing prototype.
29769 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
29770
29771 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29772
29773 * loader/i386/linux.c (grub_linux_setup_video): Handle error
29774 appropriately.
29775
29776 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29777
29778 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29779 code out.
29780
29781 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29782
29783 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29784 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29785 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29786 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29787 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29788 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29789
29790 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29791
29792 * include/grub/err.h (grub_err_printf): Don't export.
29793
29794 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29795
29796 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29797
29798 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29799
29800 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29801 * kern/misc.c (grub_gettext_dummy): Make static.
29802
29803 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29804
29805 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29806 by non-valid ones.
29807 * kern/term.c (grub_putchar): Likewise.
29808
29809 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29810
29811 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29812 buggy hook call and memory leak.
29813
29814 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29815
29816 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29817
29818 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29819
29820 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29821
29822 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29823
29824 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29825 modevar.
29826 Return grub_errno on allocation error.
29827
29828 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29829
29830 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29831
29832 2010-02-06 Yves Blusseau <blusseau@zetam.org>
29833
29834 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29835 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29836
29837 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29838
29839 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29840 non-pxe disk.
29841 (grub_pxefs_open): Likewise.
29842
29843 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29844
29845 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29846 * util/grub.d/10_kfreebsd.in: Likewise.
29847 * util/grub.d/10_linux.in: Likewise.
29848
29849 2010-02-06 Colin D Bennett <colin@gibibit.com>
29850
29851 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29852 (gfxmenu_mod_SOURCES): New variable.
29853 (gfxmenu_mod_CFLAGS): Likewise.
29854 (gfxmenu_mod_LDFLAGS): Likewise.
29855 * include/grub/term.h (grub_term_set_current_output): Declare
29856 argument as const.
29857 * docs/gfxmenu-theme-example.txt: New file.
29858 * gfxmenu/gfxmenu.c: Likewise.
29859 * gfxmenu/gui_box.c: Likewise.
29860 * gfxmenu/gui_canvas.c: Likewise.
29861 * gfxmenu/gui_circular_progress.c: Likewise.
29862 * gfxmenu/gui_image.c: Likewise.
29863 * gfxmenu/gui_label.c: Likewise.
29864 * gfxmenu/gui_list.c: Likewise.
29865 * gfxmenu/gui_progress_bar.c: Likewise.
29866 * gfxmenu/gui_string_util.c: Likewise.
29867 * gfxmenu/gui_util.c: Likewise.
29868 * gfxmenu/icon_manager.c: Likewise.
29869 * gfxmenu/model.c: Likewise.
29870 * gfxmenu/named_colors.c: Likewise.
29871 * gfxmenu/theme_loader.c: Likewise.
29872 * gfxmenu/view.c: Likewise.
29873 * gfxmenu/widget-box.c: Likewise.
29874 * include/grub/gfxmenu_model.h: Likewise.
29875 * include/grub/gfxmenu_view.h: Likewise.
29876 * include/grub/gfxwidgets.h: Likewise.
29877 * include/grub/gui.h: Likewise.
29878 * include/grub/gui_string_util.h: Likewise.
29879 * include/grub/icon_manager.h: Likewise.
29880
29881 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29882
29883 Agglomerate scrolling in gfxterm.
29884
29885 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29886 (grub_virtual_screen_setup): Initialise 'total_screen'.
29887 (write_char): Split to ...
29888 (paint_char): ... this ...
29889 (write_char): ... and this.
29890 (paint_char): Handle delayed scrolling.
29891 (draw_cursor): Likewise.
29892 (scroll_up): Split to ...
29893 (real_scroll): ... this ...
29894 (scroll_up): ... and this.
29895 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29896 characters.
29897 (grub_gfxterm_refresh): Call real_scroll.
29898
29899 2010-02-06 Colin D Bennett <colin@gibibit.com>
29900
29901 * include/grub/misc.h (grub_iscntrl): New inline function.
29902 (grub_isalnum): Likewise.
29903 (grub_strtol): Likewise.
29904
29905 2010-02-06 Colin D Bennett <colin@gibibit.com>
29906
29907 * normal/menu_text.c (get_entry_number): Move from here ...
29908 * normal/menu.c (get_entry_number): ... moved here.
29909 * include/grub/menu.h (grub_menu_get_default_entry_index):
29910 New prototype.
29911 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29912 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29913 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29914 (grub_menu_viewer_should_return): Likewise.
29915 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29916 * normal/menu_text.c (run_menu): Enable menu switching.
29917 * normal/menu_viewer.c (should_return): New variable.
29918 (menu_viewer_changed): Likewise.
29919 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29920 (grub_menu_viewer_should_return): New function.
29921 (menuviewer_write_hook): Likewise.
29922 (grub_menu_viewer_init): Likewise.
29923
29924 2010-02-06 Colin D Bennet <colin@gibibit.com>
29925 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29926
29927 Support for gfxterm in a window.
29928
29929 * include/grub/gfxterm.h: New file.
29930 * include/grub/video.h (struct grub_video_rect): New declaration.
29931 (grub_video_rect_t): Likewise.
29932 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29933 (refcount): New variable.
29934 (render_target): Likewise.
29935 (window): Likewise.
29936 (repaint_callback): Likewise.
29937 (grub_virtual_screen_setup): Use 'render_target'.
29938 (init_window): New function.
29939 (grub_gfxterm_init_window): Likewise.
29940 (grub_gfxterm_init): Check reference counter.
29941 Use init_window.
29942 (destroy_window): New function.
29943 (grub_gfxterm_destroy_window): Likewise.
29944 (grub_gfxterm_fini): Check reference counter.
29945 Use destroy_window.
29946 (redraw_screen_rect): Restore viewport.
29947 Use 'render_target' and 'window'.
29948 Call 'repaint_callback'.
29949 (write_char): Use 'render_target'.
29950 (draw_cursor): Likewise.
29951 (scroll_up): Restore viewport.
29952 Use 'render_target' and 'window'.
29953 Call 'repaint_callback'.
29954 (grub_gfxterm_cls): Likewise.
29955 (grub_gfxterm_refresh): Use 'window'.
29956 (grub_gfxterm_set_repaint_callback): New function.
29957 (grub_gfxterm_background_image_cmd): Use 'window'.
29958 (grub_gfxterm_get_term): New function.
29959 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29960
29961 2010-02-06 Colin D Bennett <colin@gibibit.com>
29962
29963 Bitmap scaling support.
29964
29965 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29966 (bitmap_scale_mod_SOURCES): New variable.
29967 (bitmap_scale_mod_CFLAGS): Likewise.
29968 (bitmap_scale_mod_LDFLAGS): Likewise.
29969 * include/grub/bitmap_scale.h: New file.
29970 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29971 (background_image_cmd_options): New variable.
29972 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29973 (cmd): Rename and change type to ...
29974 (background_image_cmd_handle): ... this. All users updated.
29975 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29976 * video/bitmap_scale.c: New file.
29977
29978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29979
29980 SDL support.
29981
29982 * Makefile.in (LIBSDL): New variable.
29983 (enable_grub_emu_sdl): Likewise.
29984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29985 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29986 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29987 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29988 * util/sdl.c: New file.
29989
29990 2010-02-06 Colin D Bennett <colin@gibibit.com>
29991 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29992
29993 Double buffering support.
29994
29995 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29996 * include/grub/video.h: Update comment.
29997 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29998 New type.
29999 (grub_video_fb_doublebuf_blit_init): New prototype.
30000 * term/gfxterm.c (scroll_up): Support double buffering.
30001 (grub_gfxterm_refresh): Likewise.
30002 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30003 (grub_video_fb_doublebuf_blit_init): Likewise.
30004 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30005 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30006 'displayed_page', 'render_page' and 'update_screen'.
30007 (grub_video_vbe_fini): Free offscreen buffer.
30008 (doublebuf_pageflipping_commit): New function.
30009 (doublebuf_pageflipping_update_screen): Likewise.
30010 (doublebuf_pageflipping_init): Likewise.
30011 (double_buffering_init): Likewise.
30012 (grub_video_vbe_setup): Enable doublebuffering.
30013 (grub_video_vbe_swap_buffers): Implement.
30014 (grub_video_vbe_set_active_render_target): Handle double buffering.
30015 (grub_video_vbe_get_active_render_target): Likewise.
30016 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30017 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30018 (grub_video_vbe_enable_double_buffering): Likewise.
30019 (grub_video_vbe_swap_buffers): Use update_screen.
30020 (grub_video_set_mode): Use double buffering.
30021
30022 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30023
30024 * maintainance/gentrigtables.py: Remove.
30025 * lib/trig.c: Likewise.
30026
30027 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30028
30029 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30030 `trigtables.c'.
30031 (trigtables.c): New rule.
30032 (gentrigtables): Likewise.
30033 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30034
30035 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30036
30037 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30038 integer constants.
30039
30040 2010-02-06 Colin D Bennet <colin@gibibit.com>
30041
30042 Trigonometry support.
30043
30044 * include/grub/trig.h: New file.
30045 * lib/trig.c: Likewise.
30046 * maintainance/gentrigtables.py: Likewise.
30047 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30048 (trig_mod_SOURCES): New variable.
30049 (trig_mod_CFLAGS): Likewise.
30050 (trig_mod_LDFLAGS): Likewise.
30051
30052 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30053
30054 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30055 disk devices.
30056
30057 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30058
30059 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30060 error.
30061
30062 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30063
30064 * util/hostdisk.c (open_device): Don't use partition device when reading
30065 before the partition.
30066 (grub_util_biosdisk_read): Don't read from partition and before the
30067 partition in single operation.
30068 (grub_util_biosdisk_write): Don't write to partition and before the
30069 partition in single operation.
30070
30071 2010-02-03 Torsten Landschoff <torsten@debian.org>
30072
30073 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30074 last sectors.
30075
30076 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30077
30078 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30079 CDROM reads.
30080 (grub_biosdisk_write): Refuse to write to CDROM.
30081
30082 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30083
30084 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30085
30086 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30087
30088 * font/font.c (find_glyph): Check that bmp_idx is available before
30089 using it.
30090 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30091 with (font == NULL).
30092
30093 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30094
30095 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30096
30097 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30098
30099 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30100 * util/grub-script-check.c (getline): Fix empty lines case.
30101
30102 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30103
30104 * Makefile.in (check): Exit with fail status when one of the tests
30105 fails.
30106 * tests/example_functional_test.c (example_test): Fix reversed assert.
30107 * tests/example_unit_test.c (example_test): Likewise.
30108
30109 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30110
30111 * util/grub.d/10_linux.in: This script does not use any of the
30112 contents of gettext.sh, only the external command `gettext', so stop
30113 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30114 the same prefix as GRUB.)
30115 * util/grub.d/10_kfreebsd.in: Likewise.
30116
30117 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30118
30119 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30120 of the line.
30121
30122 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30123
30124 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30125 last sectors.
30126
30127 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30128
30129 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30130 having a 4KiB and not 32KiB buffer size.
30131
30132 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30133
30134 * util/hostfs.c: Include `<errno.h>'.
30135 (grub_hostfs_read): Handle errors from fseeko() and fread().
30136
30137 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30138
30139 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30140 loop when using read hooks on files whose size isn't sector-aligned.
30141
30142 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30143
30144 Remove unused parameter.
30145
30146 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30147 (grub_iso9660_open): Remove initialization of `data->length'.
30148
30149 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30150
30151 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30152 memleak conditions.
30153
30154 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30155
30156 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30157 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30158
30159 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30160
30161 * util/bin2h.c (usage): Fix warning (space after backslash).
30162
30163 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30164
30165 * font/font.c: Include `grub/fontformat.h.
30166 Remove font file format constants.
30167 (grub_font_load): Use the new macros.
30168 * include/grub/fontformat.h: New file.
30169 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30170 (write_font_pf2): Use the new macros.
30171
30172 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30173
30174 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30175 does.
30176
30177 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30178
30179 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30180
30181 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30182 (_start): Macroify `0x7F'.
30183
30184 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30185 (make_install_device): Use "(pxe)" as fallback prefix when booting
30186 via PXE.
30187
30188 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30189
30190 * configure.ac: Reset LIBS after check for libgcc symbols.
30191
30192 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30193
30194 * util/hostdisk.c (open_device): Add trailing newline to debug
30195 message.
30196
30197 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30198
30199 * configure.ac: Check for `limits.h'.
30200 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30201
30202 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30203
30204 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30205 capitalize error strings.
30206
30207 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30208
30209 * util/grub.d/10_hurd.in: Add a recovery mode.
30210
30211 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 * configure.ac: Check for libgcc symbols with -nostdlib.
30214
30215 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30216
30217 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30218
30219 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30220
30221 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30222 stack since heap may be unavailable at that point.
30223 (grub_ofconsole_gotoxy): Likewise.
30224
30225 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30226
30227 * configure.ac: Check for _restgpr_14_x.
30228 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30229 and _savegpr_* prototypes.
30230
30231 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30232
30233 Use generic grub_reboot() for i386-efi.
30234
30235 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30236 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30237 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30238
30239 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30242 presence of "prefix" variable as it breaks when normal.mod is
30243 embedded.
30244
30245 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30246
30247 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30248 stack since heap is unavailable at that point.
30249
30250 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30251
30252 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30253 (grub_freebsd_bootinfo): Rewritten.
30254 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30255
30256 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30257
30258 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30259
30260 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30261
30262 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30263 domain now.
30264
30265 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30266
30267 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30268 around for handling "/" to the correct fix. Fix a memory leak. Use
30269 xstrdup instead of strdup.
30270
30271 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30272
30273 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30274
30275 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30276
30277 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30278
30279 * font/font.c (struct grub_font): New member 'bmp_idx'.
30280 (font_init): Initialise 'bmp_idx'.
30281 (load_font_index): Fill 'bmp_idx'.
30282 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30283
30284 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30285
30286 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30287 unnecessary calls.
30288
30289 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30290
30291 Move context handling out of the kernel.
30292
30293 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30294 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30295 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30296 * conf/i386-efi.rmk: Likewise.
30297 * conf/i386-ieee1275.rmk: Likewise.
30298 * conf/i386-pc.rmk: Likewise.
30299 * conf/powerpc-ieee1275.rmk: Likewise.
30300 * conf/sparc64-ieee1275.rmk: Likewise.
30301 * conf/x86_64-efi.rmk: Likewise.
30302 * include/grub/env.h: Include grub/menu.h.
30303 (grub_env_var_type): Removed.
30304 (grub_env_var): Replaced field 'type' with 'global'.
30305 (grub_env_find): New prototype.
30306 (grub_env_context_open): Remove EXPORT_FUNC.
30307 (grub_env_context_close): Likewise.
30308 (grub_env_export): Likewise.
30309 (grub_env_set_data_slot): Removed.
30310 (grub_env_get_data_slot): Likewise.
30311 (grub_env_unset_data_slot): Likewise.
30312 (grub_env_unset_menu): New prototype.
30313 (grub_env_set_menu): Likewise.
30314 (grub_env_get_menu): Likewise.
30315 * include/grub/env_private.h: New file.
30316 * include/grub/normal.h (grub_context_init): New prototype.
30317 (grub_context_fini): Likewise.
30318 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30319 * normal/context.c (grub_cmd_export): ... to here.
30320 * kern/env.c: Include env_private.h.
30321 (HASHSZ): Moved to include/grub/env_private.h.
30322 (grub_env_context): Likewise.
30323 (grub_env_sorted_var): Likewise.
30324 (current_context): Renamed from this ...
30325 (grub_current_context): ...to this. 'static' removed. All users updated.
30326 (grub_env_find): Removed 'static'.
30327 (grub_env_context_open): Moved to normal/context.c.
30328 (grub_env_context_close): Likewise.
30329 (grub_env_export): Likewise.
30330 (mangle_data_slot_name): Removed.
30331 (grub_env_set_data_slot): Likewise.
30332 (grub_env_get_data_slot): Likewise.
30333 (grub_env_unset_data_slot): Likewise.
30334 * kern/main.c (grub_set_root_dev): Don't export root.
30335 It will be done later.
30336 (grub_main): Don't export prefix.
30337 It will be done later.
30338 * normal/context.c: New file.
30339 * normal/main.c (free_menu): Use grub_env_unset_menu.
30340 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30341 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30342 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30343 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30344
30345 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30346
30347 setpci support.
30348
30349 * commands/setpci.c: New file.
30350 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30351 (setpci_mod_SOURCES): New variable.
30352 (setpci_mod_CFLAGS): Likewise.
30353 (setpci_mod_LDFLAGS): Likewise.
30354
30355 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30356
30357 Byte-addressable PCI configuration space.
30358
30359 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30360 dword address.
30361 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30362 GRUB_PCI_REG_CACHELINE.
30363 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30364 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30365 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30366 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30367 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30368 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30369 grub_pci_make_address.
30370 (lock_rom_area): Likewise.
30371 * commands/lspci.c (grub_lspci_iter): Use macroses
30372 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30373 of grub_pci_make_address.
30374 * disk/ata.c (grub_ata_pciinit): Likewise.
30375 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30376 (GRUB_PCI_REG_VENDOR): Likewise.
30377 (GRUB_PCI_REG_DEVICE): Likewise.
30378 (GRUB_PCI_REG_COMMAND): Likewise.
30379 (GRUB_PCI_REG_STATUS): Likewise.
30380 (GRUB_PCI_REG_REVISION): Likewise.
30381 (GRUB_PCI_REG_CLASS): Likewise.
30382 (GRUB_PCI_REG_CACHELINE): Likewise.
30383 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30384 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30385 (GRUB_PCI_REG_BIST): Likewise.
30386 (GRUB_PCI_REG_ADDRESSES): Likewise.
30387 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30388 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30389 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30390 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30391 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30392 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30393 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30394 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30395 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30396 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30397 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30398 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30399 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30400 (GRUB_PCI_REG_MIN_GNT): Likewise.
30401 (GRUB_PCI_REG_MAX_LAT): Likewise.
30402 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30403 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30404 * video/efi_uga.c (find_framebuf): Likewise.
30405 * video/sm712.c (grub_video_sm712_setup): Likewise.
30406 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30407 space.
30408
30409 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30410
30411 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
30412 can be reliably determined to be supported.
30413
30414 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30415
30416 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
30417 that VESA is supported.
30418 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
30419 supported.
30420
30421 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30422
30423 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
30424
30425 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30426
30427 * util/misc.c (make_system_path_relative_to_its_root): Work around
30428 special-casing of "/", as previous incarnation of this routine did.
30429
30430 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30431
30432 Fix any-emu compilation.
30433
30434 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
30435 * grub_bin2h_SOURCES: New variable.
30436
30437 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30438
30439 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
30440
30441 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
30442
30443 * util/grub.d/00_header.in: Fix handling of locale_dir.
30444
30445 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
30448 as possible unifont location (Gentoo).
30449 Reported by: Alexander Brüning
30450
30451 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30452
30453 Don't try to generate lists for kernel.img.
30454
30455 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
30456 (pkglib_MODULES): Remove kernel.img.
30457 (kernel_img_EXPORTS): Removed.
30458 (kernel_img_RELOCATABLE): New variable.
30459 * conf/x86_64-efi.rmk: Likewise.
30460 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
30461
30462 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30463
30464 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
30465 grub_xasprintf or grub_snprintf.
30466 (grub_vsprintf): Likewise.
30467 (grub_snprintf): New proto.
30468 (grub_vsnprintf): Likewise.
30469 (grub_xasprintf): Likewise.
30470 (grub_xvasprintf): Likewise.
30471 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
30472 (grub_sprintf): Removed.
30473 (grub_vsnprintf): New function.
30474 (grub_snprintf): Likewise.
30475 (grub_xvasprintf): Likewise.
30476 (grub_xasprintf): Likewise.
30477 (grub_vsprintf): Renamed to ...
30478 (grub_vsnprintf_real): ...this. New argument max_len.
30479
30480 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
30481
30482 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
30483 fix grub-script-check warning.
30484
30485 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * include/grub/font.h (grub_font_load): Fix prototype.
30488
30489 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30490
30491 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
30492
30493 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30494
30495 * include/grub/x86_64/at_keyboard.h: New file.
30496
30497 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 * loader/mips/linux.c: Include missing grub/i18n.h.
30500
30501 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30502
30503 * normal/menu.c (notify_execution_failure): Clarify error message.
30504
30505 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30506
30507 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
30508 return value (and revert all return statements). Update users.
30509
30510 2010-01-20 Dan Merillat <debian@dan.merillat.org>
30511
30512 * kern/device.c (grub_device_iterate): Allocate new part_ent
30513 structure based on sizeof (*p) rather than sizeof (p->next), to
30514 account for structure padding.
30515
30516 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
30517 disk is NULL, which might happen for LVM physical volumes with no
30518 LVM signature.
30519
30520 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30521
30522 * loader/mips/linux.c (grub_cmd_initrd)
30523 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
30524
30525 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
30526
30527 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
30528 (grub_video_video_init, grub_video_bitmap_init)
30529 (grub_font_manager_init, grub_term_gfxterm_init)
30530 (grub_at_keyboard_init): New extern declarations.
30531 (grub_machine_init): Initialize gfxterm and at_keyboard.
30532
30533 * kern/main.c (grub_main): Revert grub_printf delay kludge.
30534
30535 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
30536 `gfxterm.mod' into core image.
30537
30538 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30539 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30540 (kernel_img_FORMAT): Copy to ...
30541
30542 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30543 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30544 (kernel_img_FORMAT): ... here, and ...
30545
30546 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
30547 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30548 (kernel_img_FORMAT): ... here.
30549
30550 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
30551 and input (at_keyboard) terminals in kernel.
30552 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
30553
30554 (pkglib_MODULES): Remove `pci.mod'.
30555 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
30556 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
30557 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30558 (at_keyboard_mod_LDFLAGS): Remove variables.
30559
30560 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
30561
30562 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
30563
30564 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
30565
30566 * include/grub/mips/libgcc.h: Only export symbols for functions
30567 that libgcc provides.
30568
30569 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
30570
30571 MIPS support.
30572
30573 * bus/bonito.c: New file.
30574 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
30575 GRUB_PCI_NUM_DEVICES.
30576 * term/i386/pc/serial.c: Move to ...
30577 * term/serial.c: ... here. All users updated.
30578 * util/i386/pc/grub-mkimage.c: Move to ...
30579 * util/grub-mkrawimage.c: ... here. All users updated.
30580 * term/i386/pc/at_keyboard.c: Move to ...
30581 * term/at_keyboard.c: ... here. All users updated.
30582 * conf/mips-qemu-mips.rmk: New file.
30583 * conf/mips-yeeloong.rmk: Likewise.
30584 * conf/mips.rmk: Likewise.
30585 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
30586 mipsel-qemu-mips.
30587 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
30588 to port addresses.
30589 (grub_ata_pciinit): Support CS5536.
30590 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
30591 * font/font_cmd.c (loadfont_command): Open file before passing it to
30592 grub_font_load.
30593 (pseudo_file_read): New function.
30594 (pseudo_file_close): Likewise.
30595 (pseudo_fs): New structure.
30596 (load_font_module): New function.
30597 (GRUB_MOD_INIT(font_manager)): Load embedded font.
30598 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
30599 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
30600 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
30601 * include/grub/i386/at_keyboard.h: Split into ...
30602 * include/grub/at_keyboard.h: ... this ...
30603 * include/grub/i386/at_keyboard.h: ... and this.
30604 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
30605 New prototype.
30606 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
30607 updated.
30608 (grub_elf64_size): Likewise.
30609 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
30610 filename.
30611 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
30612 * include/grub/i386/coreboot/serial.h: Rewritten.
30613 * include/grub/i386/ieee1275/serial.h: Include
30614 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
30615 * include/grub/i386/pc/serial.h: Moved from here ...
30616 * include/grub/serial.h: ... to here. All users updated.
30617 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
30618 (GRUB_PCI_NUM_BUS): Likewise.
30619 (GRUB_PCI_NUM_DEVICES): Likewise.
30620 (grub_pci_device_map_range): Add missing volatile keyword.
30621 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
30622 * include/grub/mips/at_keyboard.h: New file.
30623 * include/grub/mips/cache.h: Likewise.
30624 * include/grub/mips/io.h: Likewise.
30625 * include/grub/mips/kernel.h: Likewise.
30626 * include/grub/mips/libgcc.h: Likewise.
30627 * include/grub/mips/pci.h: Likewise.
30628 * include/grub/mips/qemu-mips/boot.h: Likewise.
30629 * include/grub/mips/qemu-mips/kernel.h: Likewise.
30630 * include/grub/mips/qemu-mips/loader.h: Likewise.
30631 * include/grub/mips/qemu-mips/memory.h: Likewise.
30632 * include/grub/mips/qemu-mips/serial.h: Likewise.
30633 * include/grub/mips/qemu-mips/time.h: Likewise.
30634 * include/grub/mips/relocator.h: Likewise.
30635 * include/grub/mips/time.h: Likewise.
30636 * include/grub/mips/types.h: Likewise.
30637 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
30638 * include/grub/mips/yeeloong/boot.h: Likewise.
30639 * include/grub/mips/yeeloong/kernel.h: Likewise.
30640 * include/grub/mips/yeeloong/loader.h: Likewise.
30641 * include/grub/mips/yeeloong/memory.h: Likewise.
30642 * include/grub/mips/yeeloong/pci.h: Likewise.
30643 * include/grub/mips/yeeloong/serial.h: Likewise.
30644 * include/grub/mips/yeeloong/time.h: Likewise.
30645 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
30646 * kern/elf.c (grub_elf32_size): New parameter. All users
30647 updated.
30648 (grub_elf64_size): Likewise.
30649 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
30650 Load modules before saying "Welcome to GRUB!".
30651 Call grub_refresh after saying "Welcome to GRUB!".
30652 * kern/mips/cache.S: New file.
30653 * kern/mips/cache_flush.S: Likewise.
30654 * kern/mips/dl.c: Likewise.
30655 * kern/mips/init.c: Likewise.
30656 * kern/mips/qemu-mips/init.c: Likewise.
30657 * kern/mips/startup.S: Likewise.
30658 * kern/mips/yeeloong/init.c: Likewise.
30659 * kern/term.c (grub_putcode): Handle NULL terminal.
30660 (grub_getcharwidth): Likewise.
30661 (grub_getkey): Likewise.
30662 (grub_checkkey): Likewise.
30663 (grub_getkeystatus): Likewise.
30664 (grub_getxy): Likewise.
30665 (grub_getwh): Likewise.
30666 (grub_gotoxy): Likewise.
30667 (grub_cls): Likewise.
30668 (grub_setcolorstate): Likewise.
30669 (grub_setcolor): Likewise.
30670 (grub_getcolor): Likewise.
30671 (grub_refresh): Likewise.
30672 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
30673 (write_jump): Add hatch nop.
30674 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
30675 * lib/mips/setjmp.S: New file.
30676 * loader/mips/linux.c: Likewise.
30677 * term/i386/pc/at_keyboard.c: Move from here ...
30678 * term/at_keyboard.c: ... to here.
30679 * term/i386/pc/serial.c: Moved from here ...
30680 * term/serial.c: ... to here. All users updated.
30681 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
30682 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
30683 (serial_translate_key_sequence): Avoid deadlock.
30684 (grub_serial_getkey): Handle backspace.
30685 (grub_serial_putchar): Fix newline handling.
30686 * util/i386/pc/grub-mkimage.c: Move from here ...
30687 * util/grub-mkrawimage.c: ... to here. All users updated.
30688 (generate_image): New parameters 'font_path' and 'format'.
30689 Support embedding font.
30690 Use grub_host_to_target* instead of grub_cpu_to_le*.
30691 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
30692 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
30693 (options): New option "--font".
30694 (usage): Likewise.
30695 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
30696 (main): Handle "--font".
30697 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
30698 (grub_virtual_screen_setup): Set bg_color_display.
30699 (redraw_screen_rect): Use bg_color_display instead of incorrect
30700 bg_color.
30701 (grub_gfxterm_cls): Likewise.
30702 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
30703 Support embedding config file.
30704 (add_segments): Likewise.
30705 (options): New option "--config".
30706 (main): Handle "--config".
30707 * video/sm712.c: New file.
30708
30709 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30710
30711 Fix parallel builds.
30712
30713 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
30714 font.c depend on ascii.h).
30715
30716 2010-01-12 Carles Pina i Estany <carles@pina.cat>
30717
30718 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
30719
30720 2010-01-11 Carles Pina i Estany <carles@pina.cat>
30721
30722 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
30723 By default: disabled.
30724 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
30725 parameter.
30726
30727 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30728
30729 * font/font.c: Update copyright years.
30730 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
30731
30732 2010-01-10 Carles Pina i Estany <carles@pina.cat>
30733
30734 * font/font.c: Include `ascii.h'.
30735 (ASCII_BITMAP_SIZE): New macro.
30736 (ascii_font_glyph): Define.
30737 (ascii_glyph_lookup): New function.
30738 (grub_font_get_string_width): Change comment. If glyph not found, use
30739 ascii_glyph_lookup.
30740 (grub_font_get_glyph_with_fallback): If glyph not available returns
30741 ascii_glyph_lookup.
30742 * util/grub-mkfont.c (file_formats): New enum.
30743 (options): Add `ascii-bitmaps' new option.
30744 (usage): Add `asii-bitmaps' new option.
30745 (write_font_ascii_bitmap): New function.
30746 (write_font): Rename to ...
30747 (write_font_p2): ... this. Remove print_glyphs call.
30748 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
30749 used. Call print_glyphs.
30750 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
30751
30752 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30753
30754 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
30755 (grub_bin2h_SOURCES): New variable.
30756 * util/bin2h.c: New file.
30757
30758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30759
30760 * include/multiboot.h: Resynced with spec.
30761 * include/multiboot2.h: Likewise.
30762 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
30763 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
30764
30765 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30766
30767 * include/grub/term.h (grub_term_register_input,
30768 grub_term_register_output): Check return of terminal init()
30769 routines, and abort if errors are raised.
30770
30771 * commands/terminal.c: Update copyright year.
30772
30773 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30774
30775 * commands/terminal.c (grub_cmd_terminal_input)
30776 (grub_cmd_terminal_output): Check return of terminal init()
30777 routines, and abort if errors are raised.
30778
30779 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30780
30781 * include/grub/i386/bsd.h: Fix include pathes.
30782
30783 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30784
30785 Add missing *BSD copyright headers.
30786
30787 * include/grub/aout.h: Add BSD licence.
30788 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30789 * include/grub/i386/freebsd_linker.h: ... here,
30790 * include/grub/i386/freebsd_reboot.h: ... here,
30791 * include/grub/i386/netbsd_bootinfo.h: ... here,
30792 * include/grub/i386/netbsd_reboot.h: ... here,
30793 * include/grub/i386/openbsd_bootarg.h: ... here,
30794 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30795 licence to each file.
30796
30797 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30798
30799 * acinclude.m4: Remove `nop' assembly instruction; it's not
30800 implemented by all architectures.
30801
30802 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30803
30804 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30805 ELILO. This is no longer necessary.
30806
30807 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30808
30809 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30810
30811 * util/grub-script-check.c: grub-script-check tool.
30812 * conf/common.rmk: Make rules for grub-script-check.
30813
30814 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30815
30816 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30817 spotting it back in 2008. Shame on me for forgetting he did.
30818
30819 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30820
30821 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30822
30823 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30824 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30825 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30826 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30827 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30828 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30829
30830 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30831
30832 * include/grub/test.h: Add license header.
30833 * tests/example_functional_test.c: Likewise.
30834 * tests/example_unit_test.c: Likewise.
30835 * tests/lib/functional_test.c: Likewise.
30836 * tests/lib/test.c: Likewise.
30837 * tests/lib/unit_test.c: Likewise.
30838
30839 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30840
30841 Use flag-based instead of hook-based video mode selection and "auto"
30842 keyword.
30843
30844 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30845 (grub_video_set_mode): Changed prototype. All users updated.
30846 (grub_video_check_mode_flag): New inline function.
30847 * video/video.c (parse_modespec): New function.
30848 (grub_video_set_mode): Parse flags and keywords.
30849
30850 2010-01-17 Carles Pina i Estany <carles@pina.cat>
30851
30852 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30853 fprintf call.
30854
30855 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30856
30857 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30858
30859 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30860
30861 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30862 string.
30863 * util/grub-emu.c (usage): Likewise.
30864 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30865 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30866 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30867 * util/i386/pc/grub-setup.c (usage): Likewise.
30868
30869 2010-01-16 Carles Pina i Estany <carles@pina.cat>
30870
30871 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30872 the message.
30873 (grub_util_info): Likewise.
30874 (grub_util_error): Likewise.
30875 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30876 and/or new lines in `grub_util_warna', `grub_util_info',
30877 `grub_util_error' calls.
30878 * util/getroot.c: Likewise.
30879 * util/grub-editenv.c: Likewise.
30880 * util/grub-emu.c: Likewise.
30881 * util/grub-fstest.c: Likewise.
30882 * util/grub-mkdevicemap.c: Likewise.
30883 * util/grub-mkfont.c: Likewise.
30884 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30885 * util/grub-mkrelpath.c: Likewise.
30886 * util/grub-pe2elf.c: Likewise.
30887 * util/grub-probe.c: Likewise.
30888 * util/hostdisk.c: Likewise.
30889 * util/i386/efi/grub-mkimage.c: Likewise.
30890 * util/i386/pc/grub-mkimage.c: Likewise.
30891 * util/i386/pc/grub-setup.c: Likewise.
30892 * util/ieee1275/ofpath.c: Likewise.
30893 * util/mkisofs/eltorito.c: Likewise.
30894 * util/mkisofs/rock.c: Likewise.
30895 * util/mkisofs/write.c: Likewise.
30896 * util/raid.c: Likewise.
30897 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30898 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30899
30900 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30901
30902 Enable multiboot on non-pc.
30903
30904 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30905 multiboot.mod and multiboot2.mod to ...
30906 * conf/i386.rmk (pkglib_MODULES): ... here.
30907 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30908 Moved to ...
30909 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30910 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30911 Moved to ...
30912 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30913 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30914 Moved to ...
30915 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30916 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30917 Moved to ...
30918 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30919 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30920 relocator.mod.
30921 (ata_mod_SOURCES): Removed.
30922 (ata_mod_CFLAGS): Likewise.
30923 (ata_mod_LDFLAGS): Likewise.
30924 (relocator_mod_SOURCES): Removed.
30925 (relocator_mod_CFLAGS): Likewise.
30926 (relocator_mod_ASFLAGS): Likewise.
30927 (relocator_mod_LDFLAGS): Likewise.
30928 Include i386.mk.
30929 * include/grub/x86_64/multiboot.h: New file.
30930 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30931 Terminate EFI.
30932
30933 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30934
30935 Video multiboot support.
30936
30937 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30938 New prototype.
30939 * include/multiboot.h: Resynced with multiboot specification.
30940 * include/multiboot2.h: Likewise.
30941 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30942 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30943 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30944 (HAS_VGA_TEXT): Likewise.
30945 (accepts_video): New variable.
30946 (grub_multiboot_set_accepts_video): New function.
30947 (grub_multiboot_get_mbi_size): Account for video structures.
30948 (set_video_mode): New function.
30949 (retrieve_video_parameters): Likewise.
30950 (grub_multiboot_make_mbi): Fill video fields.
30951
30952 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30953
30954 Video driver ids.
30955
30956 * include/grub/video.h (grub_video_driver_id): New type.
30957 (grub_video_adapter): New member 'id'. All users updated.
30958 (grub_video_get_driver_id): New proto.
30959 * video/video.c (grub_video_get_driver_id): New function.
30960
30961 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30962
30963 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30964 `var=val'.
30965
30966 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30967
30968 * normal/cmdline.c (print_completion): Gettextizze.
30969
30970 2001-01-14 Carles Pina i Estany <carles@pina.cat>
30971
30972 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30973
30974 2010-01-14 Carles Pina i Estany <carles@pina.cat>
30975
30976 * gettext/gettext.c (grub_gettext_translate): Push and pop
30977 grub_errno.
30978 (grub_gettext_delete_list): Change comment style.
30979 * kern/err.c (grub_error): Gettextizze.
30980 (grub_fatal): Gettextizze.
30981
30982 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30983
30984 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30985 (grub_linux16_real_boot): ... this.
30986 * kern/i386/loader.S: Likewise.
30987 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30988 (grub_linux16_boot): New function. Switches to text mode and calls
30989 grub_linux16_real_boot().
30990
30991 * loader/i386/bsd.c: Include `<grub/video.h>'.
30992 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30993 text mode before calling grub_unix_real_boot().
30994
30995 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30996 (grub_multiboot_boot): Switch to text mode before calling
30997 grub_relocator32_boot().
30998
30999 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31000 (grub_chainloader_boot): Switch to text mode before calling
31001 grub_chainloader_real_boot().
31002
31003 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31004 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31005
31006 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31007 non-empty value.
31008
31009 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31010 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31011
31012 * util/grub.d/00_header.in: Define a "savedefault" function for use
31013 in menu entries.
31014 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31015
31016 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31017 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31018
31019 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31020 saved_entry if boot_once is unset.
31021 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31022 previous saved entry (i.e. grub-reboot).
31023
31024 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31025
31026 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31027
31028 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31029
31030 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31031 `var=val'.
31032 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31033
31034 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31035
31036 * util/grub-reboot.in: Fix --version output.
31037 * util/grub-set-default.in: Likewise.
31038
31039 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31040
31041 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31042 blocks.
31043
31044 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31045
31046 * util/grub.d/00_header.in: Quote the value assigned to `default',
31047 in case it contains spaces.
31048
31049 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31050
31051 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31052 `save_default_entry' call from the macosx case to the linux case.
31053
31054 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31055 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31056
31057 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31058 in `chosen' environment variable.
31059 * normal/menu_text.c (get_entry_number): Check if the variable
31060 matches the title of a menu entry.
31061 (run_menu): Pass menu to get_entry_number.
31062
31063 * util/grub-reboot.in: New file.
31064 * util/grub-set-default.in: New file.
31065 * conf/common.rmk (grub-reboot): New utility.
31066 (grub-set-default): New utility.
31067
31068 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31069 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31070 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31071 move it to `saved_entry' for the next boot. Load environment on
31072 initialisation.
31073 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31074 * util/grub.d/10_hurd.in: Likewise.
31075 * util/grub.d/10_linux.in (linux_entry): Likewise.
31076 * util/grub.d/10_windows.in: Likewise.
31077 * util/grub.d/30_os-prober.in: Likewise.
31078
31079 * util/grub-install.in: Create environment block.
31080 * util/i386/efi/grub-install.in: Likewise.
31081 * util/ieee1275/grub-install.in: Likewise.
31082 * util/sparc64/ieee1275/grub-install.in: Likewise.
31083
31084 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31085
31086 Unit testing framework for GRUB.
31087
31088 * Makefile.in: Test framework build rules for 'make check'.
31089 * conf/tests.rmk: Build rules for individual tests and framework.
31090
31091 * include/grub/test.h: Header file for whitebox tests.
31092 * tests/lib/functional_test.c: Framework support for whitebox
31093 functional tests.
31094 * tests/lib/test.c: Common whitebox testing code for unit and
31095 functional tests.
31096 * tests/lib/unit_test.c: Framework support for whitebox unit
31097 tests.
31098
31099 * tests/util/grub-shell-tester.in: Support utility for grub-script
31100 tests.
31101 * tests/util/grub-shell.in: Utility to execute grub-script
31102 commands in a Qemu instance.
31103
31104 * tests/example_functional_test.c: Example whitebox functional
31105 test.
31106 * tests/example_grub_script_test.in: Example grub-script test.
31107 * tests/example_scripted_test.in: Example scripted test.
31108 * tests/example_unit_test.c: Example whitebox unit test.
31109
31110 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31111
31112 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31113 Add loader/i386/multiboot_mbi.c.
31114 (multiboot2_mod_SOURCES): Likewise.
31115 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31116 (multiboot2_mod_SOURCES): Likewise.
31117 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31118 (grub_multiboot_make_mbi): Likewise.
31119 (grub_multiboot_free_mbi): Likewise.
31120 (grub_multiboot_init_mbi): Likewise.
31121 (grub_multiboot_add_module): Likewise.
31122 (grub_multiboot_set_bootdev): Likewise.
31123 * loader/i386/multiboot.c (mbi): Removed.
31124 (mbi_dest): Likewise.
31125 (alloc_mbi): New variable.
31126 (grub_multiboot_payload_size): Removed. All users updated.
31127 (grub_multiboot_pure_size): New variable.
31128 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31129 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31130 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31131 (grub_fill_multiboot_mmap): Likewise.
31132 (grub_multiboot_get_bootdev): Likewise.
31133 (grub_multiboot): Use multiboot_mbi functions.
31134 * loader/i386/multiboot_mbi.c: New file.
31135
31136 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31137
31138 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31139 it would result in module crash.
31140
31141 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31142
31143 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31144 (grub_ofconsole_getwh): Split to ...
31145 (grub_ofconsole_getwh): ... this.
31146 (grub_ofconsole_dimensions): ...and this.
31147 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31148
31149 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31150
31151 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31152
31153 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31154
31155 * loader/i386/pc/multiboot2.c: Removed stalled file.
31156
31157 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31158
31159 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31160 Reported by: Grégoire Sutre
31161
31162 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31163
31164 * util/misc.c (canonicalize_file_name): New function.
31165 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31166 instead of realpath().
31167
31168 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31169
31170 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31171 and make it clearer that it's optional. Based on confusion
31172 witnessed on IRC.
31173
31174 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31175
31176 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31177 in premature implicit newline.
31178
31179 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31180
31181 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31182 which resulted in garbled command line at the end of screen.
31183
31184 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31185
31186 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31187 initialization with similar approach as with other Linux loaders.
31188
31189 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31190
31191 Fix i386-ieee1275 build.
31192
31193 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31194 and grub_term_height() for video_{width,height} initialization.
31195
31196 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31197
31198 Fix grub-emu build.
31199
31200 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31201
31202 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31203 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31204
31205 Support for multiple terminals.
31206
31207 * Makefile.in (pkglib_DATA): terminal.lst.
31208 (terminal.lst): New target.
31209 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31210 (GRUB_MOD_INIT(handler)): Likewise.
31211 (GRUB_MOD_FINI(handler)): Likewise.
31212 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31213 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31214 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31215 (grub_cmd_sleep): Use grub_term_save_pos.
31216 * commands/terminal.c: New file.
31217 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31218 commands/terminal.c and lib/charset.c.
31219 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31220 (pkglib_MODULES): Add terminal.mod.
31221 (terminal_mod_SOURCES): New variable.
31222 (terminal_mod_CFLAGS): Likewise.
31223 (terminal_mod_LDFLAGS): Likewise.
31224 * genhandlerlist.sh: Don't handle terminals.
31225 * genmk.rb: Generate terminal-*.lst.
31226 * genterminallist.sh: New file.
31227 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31228 (grub_is_valid_utf8): Likewise.
31229 (grub_utf8_to_ucs4_alloc): Likewise.
31230 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31231 (grub_menu_register_viewer): Changed argument.
31232 (grub_menu_try_text): New proto.
31233 (grub_gfxmenu_try_hook): New declaration.
31234 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31235 (grub_menu_init_page): Additional argument term.
31236 (grub_normal_init_page): Likewise.
31237 (grub_cmdline_get): Arguments simplified.
31238 (grub_utf8_to_ucs4_alloc): Removed.
31239 (grub_print_ucs4): Additional argument term.
31240 (grub_getstringwidth): Likewise.
31241 (grub_print_message_indented): Likewise.
31242 (grub_menu_text_register_instances): New proto.
31243 (grub_show_menu): Likewise.
31244 (read_terminal_list): Likewise.
31245 (grub_set_more): Likewise.
31246 * include/grub/parser.h: Include handler.h.
31247 * include/grub/reader.h: Rewritten.
31248 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31249 (GRUB_TERM_WIDTH): Changed to function.
31250 (GRUB_TERM_HEIGHT): Likewise.
31251 (GRUB_TERM_BORDER_WIDTH): Likewise.
31252 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31253 (GRUB_TERM_NUM_ENTRIES): Likewise.
31254 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31255 (GRUB_TERM_CURSOR_X): Likewise.
31256 (grub_term_input_class): Likewise.
31257 (grub_term_output_class): Likewise.
31258 (grub_term_outputs_disabled): New declaration.
31259 (grub_term_inputs_disabled): Likewise.
31260 (grub_term_outputs): Likewise.
31261 (grub_term_inputs): Likewise.
31262 (grub_term_register_input): Rewritten.
31263 (grub_term_register_output): Likewise.
31264 (grub_term_unregister_input): Likewise.
31265 (grub_term_unregister_output): Likewise.
31266 (FOR_ACTIVE_TERM_INPUTS): New macro.
31267 (FOR_DISABLED_TERM_INPUTS): Likewise.
31268 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31269 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31270 * include/grub/terminfo.h: Add oterm argument to all protypes.
31271 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31272 Use grub_rescue_run.
31273 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31274 All users updated.
31275 * kern/reader.c: Removed. All users updated.
31276 * kern/rescue_reader.c (grub_rescue_init): Removed.
31277 (grub_rescue_reader): Likewise.
31278 (grub_register_rescue_reader): Likewise.
31279 (grub_rescue_run): New function based on kern/reader.c.
31280 * kern/term.c: Adapted for multiterm.
31281 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31282 (grub_is_valid_utf8): Likewise.
31283 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31284 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31285 right terminal.
31286 * loader/i386/linux.c (grub_linux_boot): Likewise.
31287 * normal/auth.c (grub_username_get): New function.
31288 (grub_auth_check_authentication): Use grub_username_get.
31289 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31290 * normal/color.c: Adapt for multiterm.
31291 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31292 (grub_normal_init_page): Additional argument term.
31293 (read_lists): Call read_terminal_lists.
31294 (grub_enter_normal_mode): Call grub_cmdline_run.
31295 Handle grub_normal_exit_level.
31296 (grub_cmd_normal): Make reentrant.
31297 (grub_cmd_normal_exit): New function.
31298 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31299 * normal/menu.c: Adapt for multiterm.
31300 * normal/menu_entry.c: Likewise.
31301 * normal/menu_text.c: Likewise.
31302 * normal/menu_viewer.c: Removed. All users updated.
31303 * normal/term.c: New file.
31304 * util/console.c: Change order of includes to workaround a bug in
31305 ncurses headers.
31306 * term/terminfo.c: New argument oterm on all exported functions.
31307 All users updated.
31308 * util/grub-editenv.c (grub_term_input_class): Removed.
31309 (grub_term_output_class): Likewise.
31310
31311 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31312
31313 Make loader output a bit more user-friendly.
31314
31315 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31316 is being loaded. Likewise for the Hurd.
31317
31318 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31319 that kernel of FreeBSD ${version} is being loaded.
31320
31321 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31322 grub_dprintf().
31323 (grub_cmd_initrd): Likewise.
31324 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31325 that Linux ${version} is being loaded. Likewise for initrd.
31326
31327 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31328
31329 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31330
31331 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31332
31333 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31334 (GRUB_MOD_INIT): Gettextizze.
31335 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31336 (GRUB_MOD_INIT): Gettextizze.
31337 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31338 (grub_cmd_linux): Capitalise Linux.
31339 (GRUB_MOD_INIT): Gettextizze.
31340 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31341 (grub_cmd_linux): Capitalise Linux.
31342 (GRUB_MOD_INIT): Gettextizze.
31343 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31344 (grub_cmd_linux): Capitalise Linux.
31345 (GRUB_MOD_INIT): Gettextizze.
31346 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31347 (GRUB_MOD_INIT): Gettextizze.
31348 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31349 (grub_cmd_linux): Capitalise Linux.
31350 (GRUB_MOD_INIT): Gettextizze.
31351 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31352 (grub_cpu_xnu_init): Gettextizze.
31353 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31354 (GRUB_MOD_INIT): Gettextizze.
31355 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31356 (GRUB_MOD_INIT): Gettextizze.
31357 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31358 (grub_linux_load64): Capitalise Linux.
31359 (GRUB_MOD_INIT): Gettextizze.
31360 * loader/xnu.c: Include `<grub/i18n.h>'.
31361 (GRUB_MOD_INIT): Gettextizze.
31362 * po/POTFILES: Add `loader/efi/appleloader.c',
31363 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31364 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31365 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31366 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31367 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31368 and `loader/xnu.c'.
31369
31370 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31371
31372 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31373
31374 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31375
31376 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31377 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31378 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31379
31380 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31381
31382 Reset Multiboot 2 support. New loader implements the draft in
31383 /branches/multiboot2 and shares as much code as possible with the
31384 production Multiboot 1 implementation.
31385
31386 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31387 * loader/multiboot2.c: Likewise.
31388 * loader/i386/multiboot_helper.S: Likewise.
31389 * include/multiboot2.h: Replace with latest version from the draft
31390 in /branches/multiboot2.
31391
31392 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31393 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31394 and `loader/multiboot2.c'.
31395 (pkglib_MODULES): Add `multiboot2.mod'.
31396 (multiboot2_mod_SOURCES): New variable.
31397 (multiboot2_mod_LDFLAGS): Likewise.
31398 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31399
31400 * conf/i386-pc.rmk: Likewise.
31401
31402 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31403 (multiboot_mod_SOURCES): Remove variable.
31404 (multiboot_mod_LDFLAGS): Likewise.
31405 (multiboot_mod_CFLAGS): Likewise.
31406
31407 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31408 `<multiboot2.h>' instead of `<multiboot.h>'.
31409 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
31410 (MULTIBOOT_HEADER_MAGIC): New macros.
31411
31412 * loader/multiboot_loader.c (module_version_status): Remove variable.
31413 (find_multi_boot2_header): Remove function.
31414 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
31415 logic. Always check for the Multiboot version we're compiling for.
31416 (grub_cmd_module_loader): Likewise.
31417 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
31418 command instead of `multiboot'.
31419
31420 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31421
31422 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
31423 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
31424 all users.
31425
31426 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31427 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31428
31429 Fix breakage introduced with previous commit.
31430
31431 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
31432 commands.
31433 * normal/handler.c (read_handler_list): Revert part of previous commit
31434 affecting this file.
31435 * normal/main.c (read_lists): Move read_handler_list() call back to ...
31436 (grub_normal_execute): ... here.
31437
31438 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31439
31440 Merge prefix-redefinition-fix branch.
31441
31442 * normal/autofs.c (read_fs_list): Make function capable of being
31443 run multiple times, gracefuly replacing the previous data
31444 structures.
31445 * normal/dyncmd.c (read_command_list): Likewise.
31446 * normal/handler.c (read_handler_list): Likewise.
31447 * normal/main.c (read_lists): New function. Calls all the
31448 list reading functions.
31449 (grub_normal_execute): Use read_lists() instead of calling all
31450 list reading functions explicitly. Register read_lists() as a
31451 variable hook attached to ${prefix}.
31452
31453 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31454
31455 Merge crypto branch.
31456
31457 * Makefile.in (pkglib_DATA): Add crypto.lst.
31458 (crypto.lst): New target.
31459 * commands/hashsum.c: New file.
31460 * commands/password.c (check_password): Use grub_crypto_memcmp.
31461 * commands/password_pbkdf2.c: New file.
31462 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
31463 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
31464 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
31465 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
31466 -I$(srcdir)/lib/libgcrypt_wrap.
31467 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
31468 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
31469 password_pbkdf2.mod.
31470 (crypto_mod_SOURCES): New variable.
31471 (crypto_mod_CFLAGS): Likewise.
31472 (crypto_mod_LDFLAGS): Likewise.
31473 (hashsum_mod_SOURCES): New variable.
31474 (hashsum_mod_CFLAGS): Likewise.
31475 (hashsum_mod_LDFLAGS): Likewise.
31476 (pbkdf2_mod_SOURCES): New variable.
31477 (pbkdf2_mod_CFLAGS): Likewise.
31478 (pbkdf2_mod_LDFLAGS): Likewise.
31479 (password_pbkdf2_mod_SOURCES): New variable.
31480 (password_pbkdf2_mod_CFLAGS): Likewise.
31481 (password_pbkdf2_mod_LDFLAGS): Likewise.
31482 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
31483 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
31484 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
31485 Include conf/gcry.rmk.
31486 * include/grub/auth.h: Rewritten.
31487 * include/grub/crypto.h: New file.
31488 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
31489 * include/grub/normal.h (read_crypto_list): New prototype.
31490 * lib/crypto.c: New file.
31491 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
31492 * lib/pbkdf2.c: Likewise.
31493 * normal/auth.c (grub_auth_strcmp): Removed.
31494 (grub_iswordseparator): Likewise.
31495 (grub_auth_strword): Likewise.
31496 (is_authenticated): Use grub_strword.
31497 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
31498 and grub_strword. Pass entered password to authentication callback.
31499 * normal/crypto.c: New file.
31500 * normal/main.c: Call read_crypto_list.
31501 * util/grub-mkpasswd-pbkdf2.c: New file.
31502 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
31503
31504 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
31505
31506 Fix descent and ascent calculation.
31507
31508 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
31509 (options): New option "asce".
31510 (usage): Likewise.
31511 (add_char): Ignore invalid glyphs for descent calculation.
31512 Calculate ascent from actual content.
31513 (print_glyphs): Use 'asce'.
31514 (write_font): Likewise. Allow ascent override.
31515 (main): Handle "asce" option.
31516
31517 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31518
31519 * kern/err.c: Include `<grub/i18n.h>'.
31520 (grub_print_error): Add full stop. Gettextizze.
31521 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
31522 (grub_bsd_load_elf): Capitalise ELF.
31523 (grub_cmd_freebsd_loadenv): Add `s' in error string.
31524 (grub_cmd_freebsd_module): Likewise.
31525 (grub_cmd_freebsd_module_elf): Likewise.
31526 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
31527
31528 2010-01-06 Carles Pina i Estany <carles@pina.cat>
31529
31530 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
31531 * commands/search_file.c (HELP_MESSAGE): New macro.
31532 * commands/search_label.c (HELP_MESSAGE): Likewise.
31533 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
31534 * po/POTFILES: Add `commands/search_file.c',
31535 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
31536 `commands/search.c'.
31537
31538 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31539
31540 * config.rpath: Update from Gnulib.
31541
31542 2010-01-05 Yves Blusseau <blusseau@zetam.org>
31543
31544 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
31545
31546 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
31547
31548 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
31549
31550 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31551
31552 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
31553 arguments to fread so that we get a return value in bytes, rather
31554 than something that will normally be rounded down to 0.
31555 Adjust error handling to avoid producing garbage when size_t is not
31556 the same size as long long.
31557
31558 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31559
31560 * util/mkisofs/write.c (padblock_write): Check return value of
31561 fread.
31562
31563 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
31564
31565 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
31566 floppy images now.
31567
31568 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
31569
31570 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31571
31572 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
31573 instead of manual alignment.
31574 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
31575 verbose). Avoid attempts to read past end of the device
31576 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
31577 but GRUB_DISK_CACHE_SIZE may exceed that).
31578
31579 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
31580
31581 * commands/crc.c (grub_cmd_crc): Abort on read errors.
31582 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
31583 it to upper layer.
31584
31585 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31586
31587 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
31588 New constant.
31589 (grub_efi_piwg_device_path): New structure
31590 (grub_efi_piwg_device_path_t): New type.
31591 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
31592 (devpath_1): Transform to a structure. All users updated.
31593 (devpath_2): Likewise.
31594 (devpath_3): Likewise.
31595 (devpath_4): Likewise.
31596 (devpath_5): Likewise.
31597
31598 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
31599
31600 * loader/efi/appleloader.c: Restored. Update all users.
31601
31602 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31603
31604 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
31605
31606 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
31607 (struct boot_blocklist): Move from here ...
31608 * include/grub/i386/pc/boot.h [ASM_FILE]
31609 (struct grub_boot_blocklist): ... to here. Update all users.
31610 (setup): Only initialize `start' member of `first_block'
31611 structure. Add assert() calls to verify the other members.
31612
31613 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
31614 (generate_image): Fix broken blocklist length initialization.
31615 Add assert() call to verify blocklist `segment' field.
31616
31617 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31618
31619 * loader/efi/appleloader.c: Remove. Update all users.
31620
31621 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
31622
31623 * boot/i386/pc/boot.S: Update copyright year.
31624 * boot/i386/pc/cdboot.S: Likewise.
31625 * boot/i386/pc/diskboot.S: Likewise.
31626 * boot/i386/pc/lnxboot.S: Likewise.
31627 * boot/i386/pc/pxeboot.S: Likewise.
31628 * bus/pci.c: Likewise.
31629 * commands/cmp.c: Likewise.
31630 * commands/help.c: Likewise.
31631 * commands/hexdump.c: Likewise.
31632 * commands/i386/pc/halt.c: Likewise.
31633 * commands/i386/pc/play.c: Likewise.
31634 * commands/i386/pc/vbeinfo.c: Likewise.
31635 * commands/ls.c: Likewise.
31636 * commands/test.c: Likewise.
31637 * disk/dmraid_nvidia.c: Likewise.
31638 * disk/i386/pc/biosdisk.c: Likewise.
31639 * disk/ieee1275/nand.c: Likewise.
31640 * disk/ieee1275/ofdisk.c: Likewise.
31641 * disk/lvm.c: Likewise.
31642 * disk/raid.c: Likewise.
31643 * disk/raid6_recover.c: Likewise.
31644 * disk/scsi.c: Likewise.
31645 * fs/affs.c: Likewise.
31646 * fs/cpio.c: Likewise.
31647 * fs/ext2.c: Likewise.
31648 * fs/hfs.c: Likewise.
31649 * fs/iso9660.c: Likewise.
31650 * fs/ntfs.c: Likewise.
31651 * fs/sfs.c: Likewise.
31652 * fs/udf.c: Likewise.
31653 * fs/ufs.c: Likewise.
31654 * fs/xfs.c: Likewise.
31655 * gencmdlist.sh: Likewise.
31656 * genmk.rb: Likewise.
31657 * include/grub/disk.h: Likewise.
31658 * include/grub/efi/api.h: Likewise.
31659 * include/grub/efi/efi.h: Likewise.
31660 * include/grub/efi/pe32.h: Likewise.
31661 * include/grub/elf.h: Likewise.
31662 * include/grub/fs.h: Likewise.
31663 * include/grub/i386/at_keyboard.h: Likewise.
31664 * include/grub/i386/pc/memory.h: Likewise.
31665 * include/grub/i386/pc/vbe.h: Likewise.
31666 * include/grub/i386/pci.h: Likewise.
31667 * include/grub/i386/tsc.h: Likewise.
31668 * include/grub/ieee1275/ieee1275.h: Likewise.
31669 * include/grub/ntfs.h: Likewise.
31670 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31671 * include/grub/sparc64/libgcc.h: Likewise.
31672 * include/grub/symbol.h: Likewise.
31673 * include/grub/types.h: Likewise.
31674 * include/multiboot2.h: Likewise.
31675 * io/gzio.c: Likewise.
31676 * kern/device.c: Likewise.
31677 * kern/disk.c: Likewise.
31678 * kern/efi/efi.c: Likewise.
31679 * kern/efi/mm.c: Likewise.
31680 * kern/elf.c: Likewise.
31681 * kern/file.c: Likewise.
31682 * kern/i386/dl.c: Likewise.
31683 * kern/i386/pc/init.c: Likewise.
31684 * kern/i386/pc/startup.S: Likewise.
31685 * kern/ieee1275/ieee1275.c: Likewise.
31686 * kern/ieee1275/init.c: Likewise.
31687 * kern/main.c: Likewise.
31688 * kern/mm.c: Likewise.
31689 * kern/powerpc/dl.c: Likewise.
31690 * kern/sparc64/dl.c: Likewise.
31691 * kern/x86_64/dl.c: Likewise.
31692 * lib/hexdump.c: Likewise.
31693 * loader/efi/appleloader.c: Likewise.
31694 * loader/i386/ieee1275/linux.c: Likewise.
31695 * loader/i386/pc/chainloader.c: Likewise.
31696 * loader/i386/pc/linux.c: Likewise.
31697 * loader/i386/pc/multiboot2.c: Likewise.
31698 * loader/ieee1275/multiboot2.c: Likewise.
31699 * loader/multiboot2.c: Likewise.
31700 * loader/multiboot_loader.c: Likewise.
31701 * loader/powerpc/ieee1275/linux.c: Likewise.
31702 * normal/completion.c: Likewise.
31703 * normal/menu_entry.c: Likewise.
31704 * partmap/apple.c: Likewise.
31705 * util/grub.d/10_hurd.in: Likewise.
31706 * util/hostfs.c: Likewise.
31707 * video/readers/png.c: Likewise.
31708
31709 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
31710
31711 * include/grub/misc.h (GNUC_PREREQ): New macro.
31712 (ATTRIBUTE_ERROR): New macro.
31713 * include/grub/list.h (grub_bad_type_cast_real): Use
31714 ATTRIBUTE_ERROR.
31715
31716 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31717
31718 * normal/menu_text.c (print_message): Change messages.
31719
31720 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31721
31722 * normal/menu_entry.c (store_completion): Gettextizze.
31723
31724 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31725
31726 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
31727
31728 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31729
31730 * po/POTFILES: Sort correctly.
31731
31732 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31733
31734 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
31735 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
31736 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
31737 full stop.
31738 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
31739 summary. Gettextizze the strings.
31740 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
31741 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
31742 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
31743 full stop.
31744 (GRUB_MOD_INIT): Remove command name from summary.
31745 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
31746 summary.
31747 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
31748 * term/i386/pc/serial.c (options): Add full stops.
31749 (GRUB_MOD_INIT): Remove command name from the summary.
31750
31751 2010-01-03 Carles Pina i Estany <carles@pina.cat>
31752
31753 * commands/acpi.c: Gettextizze help strings and/or options. Include
31754 `grub/i18n.h' if needed.
31755 * commands/blocklist.c: Likewise.
31756 * commands/boot.c: Likewise.
31757 * commands/cat.c: Likewise.
31758 * commands/cmp.c: Likewise.
31759 * commands/configfile.c: Likewise.
31760 * commands/crc.c: Likewise.
31761 * commands/date.c: Likewise.
31762 * commands/echo.c: Likewise.
31763 * commands/efi/fixvideo.c: Likewise.
31764 * commands/efi/loadbios.c: Likewise.
31765 * commands/gptsync.c: Likewise.
31766 * commands/halt.c: Likewise.
31767 * commands/handler.c: Likewise.
31768 * commands/hdparm.c: Likewise.
31769 * commands/hexdump.c: Likewise.
31770 * commands/i386/cpuid.c: Likewise.
31771 * commands/i386/pc/drivemap.c: Likewise.
31772 * commands/i386/pc/halt.c: Likewise.
31773 * commands/i386/pc/pxecmd.c: Likewise.
31774 * commands/i386/pc/vbeinfo.c: Likewise.
31775 * commands/i386/pc/vbetest.c: Likewise.
31776 * commands/ieee1275/suspend.c: Likewise.
31777 * commands/keystatus.c: Likewise.
31778 * commands/loadenv.c: Likewise.
31779 * commands/ls.c: Likewise.
31780 * commands/lsmmap.c: Likewise.
31781 * commands/lspci.c: Likewise.
31782 * commands/memrw.c: Likewise.
31783 * commands/minicmd.c: Likewise.
31784 * commands/parttool.c: Likewise.
31785 * commands/password.c: Likewise.
31786 * commands/probe.c: Likewise.
31787 * commands/read.c: Likewise.
31788 * commands/reboot.c: Likewise.
31789 * commands/search.c: Likewise.
31790 * commands/sleep.c: Likewise.
31791 * commands/test.c: Likewise.
31792 * commands/true.c: Likewise.
31793 * commands/usbtest.c: Likewise.
31794 * commands/videotest.c: Likewise.
31795 * commands/xnu_uuid.c: Likewise.
31796 * disk/loopback.c: Likewise.
31797 * hello/hello.c: Likewise.
31798 * loader/i386/bsd.c: Likewise.
31799 * term/i386/pc/serial.c: Likewise.
31800 * po/POTFILES: Add new files.
31801
31802 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
31803
31804 * term/i386/pc/at_keyboard.c
31805 (keyboard_controller_wait_untill_ready): Rename to ...
31806 (keyboard_controller_wait_until_ready): ... this. Update all users.
31807
31808 2010-01-01 Carles Pina i Estany <carles@pina.cat>
31809
31810 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31811 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31812 string using string width.
31813 * normal/menu_text.c (grub_print_message_indented): Use
31814 grub_print_spaces and not print_spaces.
31815 (print_timeout): Likewise.
31816 (print_spaces): Move to...
31817 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31818
31819 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31820
31821 Import from Gnulib.
31822
31823 * gnulib/getdelim.c: New file.
31824 * gnulib/getline.c: Likewise.
31825
31826 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31827
31828 * include/grub/list.h (grub_assert_fail): Removed.
31829 (grub_bad_type_cast_real): New function.
31830 (grub_bad_type_cast): New macro.
31831 (GRUB_AS_LIST): Use grub_bad_type_cast.
31832 (GRUB_AS_LIST_P): Likewise.
31833 (GRUB_AS_NAMED_LIST): Likewise.
31834 (GRUB_AS_NAMED_LIST_P): Likewise.
31835 (GRUB_AS_PRIO_LIST): Likewise.
31836 (GRUB_AS_PRIO_LIST_P): Likewise.
31837 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
31838
31839 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31840
31841 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31842 Fix syntax error.
31843
31844 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31845
31846 * configure.ac: Check for TARGET_CFLAGS initialization before we
31847 initialize it ourselves (sigh).
31848 Move a few modifications to TARGET_CFLAGS to be unconditional
31849 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31850 eh_frame)
31851
31852 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31853 * term/i386/pc/at_keyboard.c
31854 (keyboard_controller_wait_untill_ready): Likewise.
31855 (keyboard_controller_led): Rename `led_status' paramter to avoid
31856 name conflict.
31857
31858 2009-12-28 Carles Pina i Estany <carles@pina.cat>
31859
31860 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31861 quotes.
31862
31863 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31864
31865 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31866
31867 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31868
31869 * normal/menu_text.c (grub_print_message_indented): Prevent
31870 past-the-end-of-array dereference.
31871
31872 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31873
31874 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31875 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31876
31877 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31878
31879 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31880 * normal/main.c (grub_normal_read_line): Remove a space from the
31881 default prompt.
31882
31883 2009-12-27 Carles Pina i Estany <carles@pina.cat>
31884
31885 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31886 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31887 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31888 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31889 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31890 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31891 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31892
31893 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31894
31895 * video/readers/jpeg.c (cmd): Declare.
31896 (grub_cmd_jpegtest): Use `grub_command_t' type.
31897 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31898 Assign to `cmd'.
31899 (GRUB_MOD_FINI): Use `cmd' to unregister.
31900 * video/readers/png.c (cmd): Declare.
31901 (grub_cmd_pngtest): Use `grub_command_t' type.
31902 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31903 Assign to `cmd'.
31904 (GRUB_MOD_FINI): Use `cmd' to unregister.
31905 * video/readers/tga.c (cmd): Declare.
31906 (grub_cmd_tgatest): Use `grub_command_t' type.
31907 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31908 Assign to `cmd'.
31909 (GRUB_MOD_FINI): Use `cmd' to unregister.
31910
31911 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31912
31913 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31914 stops.
31915 * kern/corecmd.c (grub_register_core_commands): Likewise.
31916 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31917 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31918 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31919 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31920 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31921 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31922 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31923 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31924 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31925 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31926 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31927 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31928 * normal/handler.c (insert_handler): Likewise.
31929 * normal/main.c (GRUB_MOD_INIT): Likewise.
31930 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31931
31932 2009-12-26 Carles Pina i Estany <carles@pina.cat>
31933
31934 * commands/help.c (grub_cmd_help): Print the command name before the
31935 summary.
31936 (GRUB_MOD_INIT): Remove command name from the summary.
31937 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
31938 string as summary.
31939 * lib/arg.c (find_long): Print the command name before the summary.
31940 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31941 summary.
31942 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31943 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31944 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31945 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31946 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31947 * commands/date.c (GRUB_MOD_INIT): Likewise.
31948 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31949 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31950 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31951 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31952 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31953 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31954 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31955 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31956 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31957 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31958 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31959 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31960 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31961 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31962 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31963 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31964 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31965 * commands/password.c (GRUB_MOD_INIT): Likewise.
31966 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31967 * commands/read.c (GRUB_MOD_INIT): Likewise.
31968 * commands/search.c (GRUB_MOD_INIT): Likewise.
31969 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31970 * commands/test.c (GRUB_MOD_INIT): Likewise.
31971 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31972 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31973 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31974 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31975 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31976 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31977 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31978 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31979 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31980 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31981 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31982 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31983 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31984 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31985
31986 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31987
31988 Use search command for preliminar UUID search.
31989
31990 * commands/search.c: Split into ...
31991 * commands/search_wrap.c: ...this
31992 * commands/search.c: ...and this.
31993 * commands/search_file.c: New file.
31994 * commands/search_label.c: New file.
31995 * commands/search_uuid.c: New file.
31996 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31997 Add commands/search_wrap.c, commands/search_file.c,
31998 commands/search_label.c and commands/search_uuid.c.
31999 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32000 (search_mod_SOURCES): Set to commands/search_wrap.c.
32001 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32002 search_label.mod.
32003 (search_fs_file_mod_SOURCES): New variable.
32004 (search_fs_file_mod_CFLAGS): Likewise.
32005 (search_fs_file_mod_LDFLAGS): Likewise.
32006 (search_label_mod_SOURCES): Likewise.
32007 (search_label_mod_CFLAGS): Likewise.
32008 (search_label_mod_LDFLAGS): Likewise.
32009 (search_fs_uuid_mod_SOURCES): New variable.
32010 (search_fs_uuid_mod_CFLAGS): Likewise.
32011 (search_fs_uuid_mod_LDFLAGS): Likewise.
32012 (fs_file_mod_SOURCES): Removed.
32013 (fs_file_mod_CFLAGS): Likewise.
32014 (fs_file_mod_LDFLAGS): Likewise.
32015 (fs_uuid_mod_SOURCES): Removed.
32016 (fs_uuid_mod_CFLAGS): Likewise.
32017 (fs_uuid_mod_LDFLAGS): Likewise.
32018 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32019 Set to util/grub-install.in.
32020 * disk/fs_file.c: Removed.
32021 * disk/fs_uuid.c: Likewise.
32022 * include/grub/search.h: New file.
32023 * util/grub-install.in: Handle sparc64.
32024 Create and use load.cfg.
32025 * util/sparc64/ieee1275/grub-install.in: Removed.
32026
32027 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32028
32029 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32030 Ignore return status if CF is cleared.
32031 (grub_biosdisk_get_diskinfo_standard): Likewise.
32032
32033 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32034
32035 * term/i386/pc/at_keyboard.c
32036 (keyboard_controller_wait_untill_ready): New function.
32037 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32038 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32039 for keyboard polling, rather than duplicate the same loop. This
32040 saves a few bytes in code size.
32041
32042 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32043
32044 Support for (pxe[:server[:gateway]]) syntax and
32045 use environment variable for PXE.
32046
32047 * commands/i386/pc/pxecmd.c (options): Removed.
32048 (print_ip): Removed.
32049 (grub_cmd_pxe): Removed
32050 (grub_cmd_pxe_unload): New function.
32051 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32052 (grub_pxe_your_ip): Made static.
32053 (grub_pxe_default_server_ip): Likewise.
32054 (grub_pxe_default_gateway_ip): Likewise.
32055 (grub_pxe_blksize): Likewise.
32056 (parse_ip): New function.
32057 (grub_pxe_open): Support server and gateway specification.
32058 (grub_pxe_close): Free disk->data.
32059 (grub_pxefs_open): Use disk->data.
32060 (grub_pxefs_read): Likewise.
32061 (grub_env_write_readonly): New function.
32062 (set_mac_env): Likewise.
32063 (set_env_limn_ro): Likewise.
32064 (parse_dhcp_vendor): Likewise.
32065 (grub_pxe_detect): Set the environment variables.
32066 (set_ip_env): New function.
32067 (write_ip_env): Likewise.
32068 (grub_env_write_pxe_default_server): Likewise.
32069 (grub_env_write_pxe_default_gateway): Likewise.
32070 (grub_env_write_pxe_blocksize): Likewise.
32071 (GRUB_MOD_INIT(pxe)): Set environment variables.
32072 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32073 (grub_pxe_mac_addr_t): ... this. All users updated.
32074 (grub_pxe_your_ip): Removed.
32075 (grub_pxe_server_ip): Likewise.
32076 (grub_pxe_gateway_ip): Likewise.
32077 (grub_pxe_blksize): Likewise.
32078
32079 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32080
32081 * commands/help.c: Include `<grub/i18n.h>'.
32082 (grub_cmd_help): Gettextizze.
32083 (GRUB_MOD_INIT): Likewise.
32084 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32085 (GRUB_MOD_INIT): Gettextizze.
32086 * commands/search.c: Include `<grub/i18n.h>'.
32087 (options): Gettextizze.
32088 (GRUB_MOD_INIT): Gettextizze.
32089 * lib/arg.c: Include `<grub/i18n.h>'.
32090 (help_options): Gettextizze.
32091 (find_long): Likewise.
32092 (grub_arg_show_help): Likewise.
32093 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32094 (read_command_list): Gettextizze.
32095 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32096 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32097
32098 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32099
32100 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32101 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32102 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32103 (led_status): New variable.
32104 (keyboard_controller_led): New function.
32105 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32106 update led status for caps lock, num lock and scroll lock.
32107
32108 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32109
32110 * util/hostdisk.c (open_device): Fix a comment.
32111
32112 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32113
32114 * util/grub-install.in (host_os): New variable.
32115 * util/i386/efi/grub-install.in (host_os): Likewise.
32116
32117 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32118
32119 * util/mkisofs/write.c (padblock_write): Abort when given an
32120 excedingly large embed image, instead of silently truncating it.
32121
32122 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32123
32124 * include/multiboot.h: Indentation fixes.
32125
32126 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32127
32128 * include/multiboot.h (struct multiboot_aout_symbol_table)
32129 (struct multiboot_elf_section_header_table): New structure
32130 declarations (stolen from GRUB Legacy).
32131 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32132 table information.
32133
32134 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32135 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32136 type aliases.
32137
32138 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32139
32140 * include/multiboot.h: Make comments src2texi-friendly.
32141
32142 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32143
32144 For consistency with [multiboot]/docs/boot.S.
32145
32146 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32147 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32148 (MULTIBOOT_MAGIC2): Rename from this ...
32149 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32150
32151 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32152
32153 * include/multiboot.h: Remove `<grub/types.h>'.
32154 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32155 types. Update all users.
32156
32157 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32158
32159 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32160 `couldn't' and `can not' by `cannot'.
32161 * commands/i386/pc/drivemap.c: Likewise.
32162 * disk/ata.c: Likewise.
32163 * disk/ieee1275/nand.c: Likewise.
32164 * fs/affs.c: Likewise.
32165 * fs/fat.c: Likewise.
32166 * fs/hfs.c: Likewise.
32167 * fs/hfsplus.c: Likewise.
32168 * fs/iso9660.c: Likewise.
32169 * fs/jfs.c: Likewise.
32170 * fs/minix.c: Likewise.
32171 * fs/reiserfs.c: Likewise.
32172 * fs/sfs.c: Likewise.
32173 * fs/udf.c: Likewise.
32174 * fs/ufs.c: Likewise.
32175 * fs/xfs.c: Likewise.
32176 * loader/powerpc/ieee1275/linux.c: Likewise.
32177 * loader/sparc64/ieee1275/linux.c: Likewise.
32178 * util/grub-probe.c: Likewise.
32179 * util/misc.c: Likewise.
32180
32181 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32182
32183 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32184 grub_errno calls.
32185 * commands/acpi.c: Likewise.
32186 * commands/blocklist.c: Likewise.
32187 * commands/efi/loadbios.c: Likewise.
32188 * commands/i386/pc/drivemap.c: Likewise.
32189 * commands/loadenv.c: Likewise.
32190 * commands/memrw.c: Likewise.
32191 * commands/password.c: Likewise.
32192 * commands/videotest.c: Likewise.
32193 * disk/ata.c: Likewise.
32194 * disk/ata_pthru.c: Likewise.
32195 * disk/dmraid_nvidia.c: Likewise.
32196 * disk/ieee1275/nand.c: Likewise.
32197 * disk/ieee1275/ofdisk.c: Likewise.
32198 * disk/loopback.c: Likewise.
32199 * disk/lvm.c: Likewise.
32200 * disk/mdraid_linux.c: Likewise.
32201 * disk/raid.c: Likewise.
32202 * disk/raid6_recover.c: Likewise.
32203 * disk/scsi.c: Likewise.
32204 * efiemu/main.c: Likewise.
32205 * efiemu/mm.c: Likewise.
32206 * efiemu/pnvram.c: Likewise.
32207 * efiemu/symbols.c: Likewise.
32208 * font/font.c: Likewise.
32209 * fs/cpio.c: Likewise.
32210 * fs/hfsplus.c: Likewise.
32211 * fs/iso9660.c: Likewise.
32212 * fs/jfs.c: Likewise.
32213 * fs/minix.c: Likewise.
32214 * fs/ntfs.c: Likewise.
32215 * fs/ntfscomp.c: Likewise.
32216 * fs/reiserfs.c: Likewise.
32217 * fs/ufs.c: Likewise.
32218 * fs/xfs.c: Likewise.
32219 * gettext/gettext.c: Likewise.
32220 * include/grub/auth.h: Likewise.
32221 * kern/elf.c: Likewise.
32222 * kern/file.c: Likewise.
32223 * kern/ieee1275/init.c: Likewise.
32224 * kern/ieee1275/mmap.c: Likewise.
32225 * kern/ieee1275/openfw.c: Likewise.
32226 * kern/powerpc/dl.c: Likewise.
32227 * kern/sparc64/dl.c: Likewise.
32228 * lib/arg.c: Likewise.
32229 * loader/i386/bsd.c: Likewise.
32230 * loader/i386/bsdXX.c: Likewise.
32231 * loader/i386/efi/linux.c: Likewise.
32232 * loader/i386/efi/xnu.c: Likewise.
32233 * loader/i386/ieee1275/linux.c: Likewise.
32234 * loader/i386/linux.c: Likewise.
32235 * loader/i386/multiboot.c: Likewise.
32236 * loader/i386/pc/linux.c: Likewise.
32237 * loader/i386/pc/multiboot2.c: Likewise.
32238 * loader/i386/xnu.c: Likewise.
32239 * loader/ieee1275/multiboot2.c: Likewise.
32240 * loader/macho.c: Likewise.
32241 * loader/machoXX.c: Likewise.
32242 * loader/multiboot2.c: Likewise.
32243 * loader/multiboot_loader.c: Likewise.
32244 * loader/powerpc/ieee1275/linux.c: Likewise.
32245 * loader/sparc64/ieee1275/linux.c: Likewise.
32246 * loader/xnu.c: Likewise.
32247 * loader/xnu_resume.c: Likewise.
32248 * mmap/i386/pc/mmap.c: Likewise.
32249 * normal/menu_viewer.c: Likewise.
32250 * partmap/acorn.c: Likewise.
32251 * partmap/amiga.c: Likewise.
32252 * partmap/apple.c: Likewise.
32253 * script/lexer.c: Likewise.
32254 * term/gfxterm.c: Likewise.
32255 * term/i386/pc/serial.c: Likewise.
32256 * term/i386/pc/vga.c: Likewise.
32257 * term/ieee1275/ofconsole.c: Likewise.
32258 * term/terminfo.c: Likewise.
32259 * video/bitmap.c: Likewise.
32260 * video/efi_gop.c: Likewise.
32261 * video/efi_uga.c: Likewise.
32262 * video/fb/video_fb.c: Likewise.
32263 * video/i386/pc/vbe.c: Likewise.
32264 * video/readers/tga.c: Likewise.
32265 * video/video.c: Likewise.
32266
32267 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32268
32269 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32270 * commands/lspci.c: Likewise.
32271 * commands/probe.c: Likewise.
32272 * commands/xnu_uuid.c: Likewise.
32273 * conf/i386-coreboot.rmk: Likewise.
32274 * conf/i386-efi.rmk: Likewise.
32275 * conf/i386-ieee1275.rmk: Likewise.
32276 * conf/i386-pc.rmk: Likewise.
32277 * conf/powerpc-ieee1275.rmk: Likewise.
32278 * conf/sparc64-ieee1275.rmk: Likewise.
32279 * conf/x86_64-efi.rmk: Likewise.
32280 * fs/i386/pc/pxe.c: Likewise.
32281 * gettext/gettext.c: Likewise.
32282 * include/grub/efi/graphics_output.h: Likewise.
32283 * include/grub/i386/pc/memory.h: Likewise.
32284 * kern/env.c: Likewise.
32285 * kern/i386/qemu/startup.S: Likewise.
32286 * lib/i386/pc/biosnum.c: Likewise.
32287 * lib/i386/relocator.c: Likewise.
32288 * lib/i386/relocator_asm.S: Likewise.
32289 * lib/relocator.c: Likewise.
32290 * loader/i386/bsd.c: Likewise.
32291 * loader/i386/multiboot.c: Likewise.
32292 * loader/i386/pc/chainloader.c: Likewise.
32293 * loader/i386/xnu.c: Likewise.
32294 * loader/xnu.c: Likewise.
32295 * normal/main.c: Likewise.
32296 * normal/menu_text.c: Likewise.
32297 * util/getroot.c: Likewise.
32298 * util/grub-mkconfig_lib.in: Likewise.
32299 * util/grub.d/00_header.in: Likewise.
32300 * util/i386/pc/grub-mkimage.c: Likewise.
32301 * util/mkisofs/eltorito.c: Likewise.
32302 * util/mkisofs/exclude.h: Likewise.
32303 * util/mkisofs/hash.c: Likewise.
32304 * util/mkisofs/iso9660.h: Likewise.
32305 * util/mkisofs/joliet.c: Likewise.
32306 * util/mkisofs/mkisofs.c: Likewise.
32307 * util/mkisofs/mkisofs.h: Likewise.
32308 * util/mkisofs/multi.c: Likewise.
32309 * util/mkisofs/name.c: Likewise.
32310 * util/mkisofs/rock.c: Likewise.
32311 * util/mkisofs/tree.c: Likewise.
32312 * util/mkisofs/write.c: Likewise.
32313 * video/efi_gop.c: Likewise.
32314
32315 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32316
32317 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32318 size counting.
32319
32320 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32321
32322 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32323 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32324
32325 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32326
32327 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32328 (GRUB_MOD_INIT(memrw)): Update help line.
32329
32330 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32331
32332 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32333 Use grub_extcmd_t. All users updated.
32334 (options): New variable.
32335 (grub_cmd_read): Restructure for readability. Support "-v" option.
32336 (grub_cmd_write): Restructure for readability.
32337
32338 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32339
32340 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32341
32342 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32343
32344 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32345 with the actual contents of the correspondending make variable.
32346 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32347 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32348 specifying `*.lst' and `efiemu??.o'
32349
32350 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32351
32352 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32353 after function name.
32354 Noticed by Rene Engelhard <rene@debian.org>.
32355
32356 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32357
32358 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32359 (options): New variable.
32360 (iospace): Likewise.
32361 (grub_lspci_iter): List IO spaces if "-i" was given.
32362 (grub_cmd_lspci): Parse options.
32363 (GRUB_MOD_INIT(lspci)): Use extcmd.
32364 (GRUB_MOD_FINI(lspci)): Likewise.
32365
32366 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32367
32368 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32369 `function' keyword.
32370 Patch by Tony Mancill <tmancill@debian.org>.
32371
32372 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32373
32374 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32375 (grub_uhci_portstatus): Likewise.
32376 (grub_uhci_portstatus): Add necessary delay.
32377 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32378
32379 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32380
32381 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32382 (GRUB_MOD_INIT): Likewise.
32383 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32384 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32385 * commands/echo.c (options): Fix capitalizations and/or full stops.
32386 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32387 (enable_rom_area): Likewise.
32388 (GRUB_MOD_INIT): Likewise.
32389 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32390 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32391 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32392 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32393 * commands/hexdump.c (options): Likewise.
32394 * commands/i386/cpuid.c (options): Likewise.
32395 (GRUB_MOD_INIT): Likewise.
32396 * commands/i386/pc/drivemap.c (options): Likewise.
32397 (GRUB_MOD_INIT): Likewise.
32398 * commands/i386/pc/halt (options): Likewise.
32399 (GRUB_MOD_INIT): Likewise.
32400 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32401 * commands/i386/pc/pxecmd.c (options): Likewise.
32402 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32403 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32404 * commands/keystatus.c (options): Likewise.
32405 (GRUB_MOD_INIT): Likewise.
32406 * commands/loadenv.c (options): Likewise.
32407 * commands/ls.c (options): Likewise.
32408 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32409 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32410 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32411 * commands/parttool.c (helpmsg): Likewise.
32412 * commands/probe.c (options): Likewise.
32413 * commands/read.c (GRUB_MOD_INIT): Likewise.
32414 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
32415 * commands/search.c (options): Likewise.
32416 * commands/sleep.c (options): Likewise.
32417 * commands/test.c (GRUB_MOD_INIT): Likewise.
32418 * commands/true.c (GRUB_MOD_INIT): Likewise.
32419 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
32420 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
32421 * lib/arg.c (help_options): Likewise.
32422 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
32423 `$(XGETTEXT)'.
32424 * po/POTFILES: Add `commands/loadenv.c'.
32425
32426 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
32427
32428 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
32429 instead of specifying them explicit.
32430
32431 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32432
32433 * NEWS: Add grub-probe support for GNU/Hurd.
32434
32435 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32436
32437 * NEWS: gettext was added after 1.97.
32438
32439 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32440
32441 * util/mkisofs/msdos_partition.h: New file (based on
32442 include/grub/msdos_partition.h).
32443 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
32444 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
32445 (ld_options, main): Recognize --protective-msdos-label.
32446 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
32447 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
32448 (padblock_write): If `use_protective_msdos_label' is set, patch a
32449 protective DOS-style label in the output image.
32450
32451 * util/grub-mkrescue.in: Use --protective-msdos-label.
32452
32453 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32454
32455 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
32456 boot.
32457
32458 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32459
32460 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
32461 variables.
32462 (ld_options, main): Recognize `--embedded-boot'.
32463 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
32464 declarations.
32465 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
32466 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
32467 (padblock_write): Likewise. Rewrite to support embedded boot image.
32468
32469 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
32470 for BIOS-based disk boot instead of only ElTorito.
32471
32472 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32473
32474 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
32475 build (not needed for bootstrap).
32476
32477 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32478
32479 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
32480 from i386-pc build (not needed for bootstrap).
32481 Rewrite a pair of strings.
32482
32483 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
32484
32485 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
32486
32487 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
32488
32489 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
32490
32491 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32492
32493 * kern/env.c (grub_env_context_open): Mark exported variable for
32494 reexport.
32495
32496 2009-12-21 Andreas Born <futur.andy@googlemail.com>
32497
32498 * kern/env.c (grub_env_export): Create nonexistent variables before
32499 exporting.
32500
32501 2009-12-20 Carles Pina i Estany <carles@pina.cat>
32502
32503 * include/grub/auth.h: Include `<grub/i18n.h>'.
32504 (GRUB_GET_PASSWORD): Gettextizze string.
32505 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
32506 menu_text.c.
32507 (grub_utf8_to_ucs4_alloc): Fix indentation.
32508 (grub_print_ucs4): Likewise.
32509 (grub_getstringwidth): Likewise.
32510 (print_message_indented): New declaration.
32511 * normal/auth.c: Include `<grub/i18n.h>'.
32512 (grub_auth_check_authentication): Gettexttize string.
32513 * normal/cmdline.c: Include `<grub/i18n.h>'.
32514 (grub_cmdline_get): Gettextizze.
32515 * normal/color.c: Include `<grub/i18n.h>'.
32516 (grub_parse_color_name_pair): Gettexttize strings.
32517 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
32518 string (use `print_message_indented').
32519 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
32520 `include/grub/normal.h'.
32521 (print_message_indented): Renamed to ...
32522 (grub_print_message_indented): ... this. Remove `static' qualifer (now
32523 used in normal/main.c).
32524 (print_message): Use `grub_print_message_indented' instead of
32525 `print_message_indented'.
32526 (print_timeout): Likewise.
32527 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
32528 (grub_normal_print_device_info): Gettexttize strings.
32529 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
32530
32531 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32532
32533 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
32534 of arguments. Return number of tokens and not arguments. All users
32535 updated.
32536
32537 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
32538
32539 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
32540 non-MSDOS paritions.
32541
32542 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
32543
32544 * include/grub/types.h (UNUSED): Removed since it conflicts with
32545 NetBSD headers. All users changed to direct __attribute__ ((unused)).
32546 Reported by Grégoire Sutre.
32547
32548 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32549
32550 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
32551 (grub_print_ucs4_alloc): Likewise.
32552 (grub_getstringwidth): Likewise.
32553 * normal/main.c (grub_normal_init_page): Gettextize version string.
32554 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
32555 (getstringwidth): Renamed to ...
32556 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
32557 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
32558 (grub_print_ucs4): Remove `static' qualifer (now used in
32559 normal/main.c).
32560 * po/POTFILES: Add normal/main.c.
32561
32562 2009-12-19 Carles Pina i Estany <carles@pina.cat>
32563
32564 * normal/menu_text.c (STANDARD_MARGIN): New macro.
32565 (print_message_indented): Add `margin_left' and `margin_right'
32566 parameters.
32567 (print_message): Update `print_message_indented' calls. Adds '\n' to the
32568 strings.
32569 (print_timeout): Use `print_message_indented' to print the message.
32570 Deletes `second_stage' parameter.
32571 (run_menu): Update `print_timeout' calls.
32572
32573 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32574
32575 Fix console palette on OpenFirmware.
32576
32577 * term/ieee1275/ofconsole.c (MAX): Removed.
32578 (colors): Redone based on VGA palette.
32579 (grub_ofconsole_setcolor): Discard brightness bit since only 8
32580 colors are supported.
32581 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
32582
32583 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32584
32585 Fix potential EfiEmu double prepare.
32586
32587 * efiemu/main.c (prepared): New variable
32588 (grub_efiemu_unload): Set prepare to '0'.
32589 (grub_efiemu_prepare): Return if already prepared. Set prepared.
32590
32591 set_virtual_address_map support.
32592
32593 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
32594 prototype.
32595 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
32596 prototype.
32597 (grub_efiemu_crc32): Likewise.
32598 (grub_efiemu_crc64): Likewise.
32599 (grub_efiemu_set_virtual_address_map): Likewise.
32600 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
32601 New definition.
32602 (grub_autoefi_set_virtual_address_map): Likewise.
32603 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
32604 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
32605 Restructure flow to accomodate it.
32606 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
32607 (grub_efiemu_crc): Recompute CRC32.
32608 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
32609 (efiemu_ptv_relocated): ... this. Made global. All users updated.
32610 * efiemu/symbols.c (relocated_handle): New variable.
32611 (grub_efiemu_free_syms): Free relocated_handle.
32612 (grub_efiemu_alloc_syms): Allocate relocated_handle.
32613 (grub_efiemu_write_sym_markers): New function.
32614 (grub_efiemu_set_virtual_address_map): Likewise.
32615
32616 Newer XNU parameters.
32617
32618 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
32619 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
32620 (grub_xnu_fill_devicetree): New prototype.
32621 (grub_xnu_heap_real_start): New variable.
32622 * loader/xnu.c (get_name_ptr): New function.
32623 (grub_xnu_load_driver): Fill namelen and name.
32624
32625 64-bit xnu support.
32626
32627 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
32628 and 'loader/macho64.c'.
32629 * conf/i386-pc.rmk: Likewise.
32630 * conf/x86_64-efi.rmk: Likewise.
32631 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
32632 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
32633 * include/grub/macho.h (grub_macho_segment64): New structure.
32634 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
32635 (grub_macho_size32): ... to this.
32636 (grub_macho32_get_entry_point): Renamed from ...
32637 (grub_macho_get_entry_point32): ... to this.
32638 (grub_macho_contains_macho64): New prototype.
32639 (grub_macho_size64): Likewise.
32640 (grub_macho_get_entry_point64): Likewise.
32641 (grub_macho32_load): Renamed from ...
32642 (grub_macho_load32): ... to this.
32643 (grub_macho32_filesize): Renamed from ...
32644 (grub_macho_filesize32): ... to this.
32645 (grub_macho32_readfile): Renamed from ...
32646 (grub_macho_readfile32): ... to this.
32647 (grub_macho_filesize64): New prototype.
32648 (grub_macho_readfile64): Likewise.
32649 (grub_macho_parse32): Likewise.
32650 (grub_macho_parse64): Likewise.
32651 * loader/macho.c: Split into ...
32652 * loader/machoXX.c: ... and this. Replace 32 with XX.
32653 * loader/macho32.c: New file.
32654 * loader/macho64.c: Likewise.
32655 * loader/xnu.c (grub_xnu_is_64bit): New variable.
32656 (grub_cmd_xnu_kernel): Make 32-bit only.
32657 (grub_cmd_xnu_kernel64): New function.
32658 (grub_xnu_load_driver): Support Mach-O 64.
32659 (grub_cmd_xnu_mkext): Likewise.
32660 * util/grub.d/30_os-prober.in (osx_entry): New function.
32661 Generate entries for 64-bit boot too.
32662
32663 Eliminate ad-hoc tree format in XNU and EfiEmu.
32664
32665 * efiemu/main.c (grub_efiemu_prepare): Update comment.
32666 * efiemu/pnvram.c: Rewritten to use environment variables.
32667 All users updated.
32668
32669 Inline utf16_to_utf8.
32670
32671 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
32672 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
32673 All users updated.
32674 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
32675
32676 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
32677 * commands/usbtest.c (grub_usb_get_string): ... move here.
32678 (usb_print_str): Fix error handling.
32679 * include/grub/usb.h (grub_usb_get_string): Remove.
32680
32681 UTF-8 to UTF-16 transformation.
32682
32683 * conf/common.rmk (pkglib_MODULES): Add charset.mod
32684 (charset_mod_SOURCES): New variable.
32685 (charset_mod_CFLAGS): Likewise.
32686 (charset_mod_LDFLAGS): Likewise.
32687 * include/grub/utf.h: New file.
32688 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
32689
32690 Support for device properties.
32691
32692 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
32693 (grub_xnu_devprop_device_header): Likewise.
32694 (grub_xnu_devprop_device_descriptor): Likewise.
32695 (grub_xnu_devprop_add_device): New prototype.
32696 (grub_xnu_devprop_remove_device): Likewise.
32697 (grub_xnu_devprop_remove_property): Likewise.
32698 (grub_xnu_devprop_add_property_utf8): Likewise.
32699 (grub_xnu_devprop_add_property_utf16): Likewise.
32700 (grub_cpu_xnu_init): Likewise.
32701 (grub_cpu_xnu_fini): Likewise.
32702 (grub_cpu_xnu_unload): Likewise.
32703 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
32704 (property_descriptor): Likewise.
32705 (devices): New variable.
32706 (grub_xnu_devprop_remove_property): New function.
32707 (grub_xnu_devprop_add_device): Likewise.
32708 (grub_xnu_devprop_remove_device): Likewise.
32709 (grub_xnu_devprop_add_property): Likewise.
32710 (grub_xnu_devprop_add_property_utf8): Likewise.
32711 (grub_xnu_devprop_add_property_utf16): Likewise.
32712 (hextoval): Likewise.
32713 (grub_cpu_xnu_fill_devprop): Likewise.
32714 (grub_cmd_devprop_load): Likewise.
32715 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
32716 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
32717 (cmd_devprop_load): New variable.
32718 (grub_cpu_xnu_init): New function.
32719 (grub_cpu_xnu_fini): Likewise.
32720 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
32721 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
32722 (grub_cmd_xnu_devtree): Likewise.
32723 (hextoval): New function.
32724 (unescape): Likewise.
32725 (grub_xnu_fill_devicetree): Likewise.
32726
32727 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
32728 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
32729
32730 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
32731
32732 Workaround for broken ATI VBE.
32733
32734 * video/i386/pc/vbe.c (last_set_mode): New variable.
32735 (grub_vbe_set_video_mode): Set 'last_set_mode'.
32736 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
32737 (grub_video_vbe_setup): Don't check for reserved flag.
32738
32739 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
32740
32741 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
32742 the `find' command.
32743
32744 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
32745
32746 UUID support for HFS.
32747
32748 * fs/hfs.c (grub_hfs_uuid): New function.
32749 (grub_hfs_fs): New value .uuid.
32750 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
32751
32752 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
32753
32754 Fix a segfault with parsing unknown long options.
32755
32756 * util/grub-mkrelpath.c (options): Zero terminate it.
32757
32758 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32759
32760 * include/grub/misc.h (grub_puts): New declaration.
32761 (grub_puts_): Likewise.
32762 * kern/misc.c (grub_puts): New definition.
32763 (grub_puts_): Likewise.
32764
32765 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32766
32767 * util/grub-probe.c (probe): Improve error message.
32768
32769 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
32770
32771 * loader/i386/multiboot_elfxx.c
32772 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
32773 initialization.
32774
32775 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32776
32777 Relocator framework
32778
32779 * loader/i386/xnu_helper.S: Removed. All users updated.
32780 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32781 (relocator_mod_SOURCES): New variable.
32782 (relocator_mod_CFLAGS): Likewise.
32783 (relocator_mod_LDFLAGS): Likewise.
32784 (relocator_mod_ASFLAGS): Likewise.
32785 * conf/x86_64.rmk: Likewise.
32786 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32787 (grub_multiboot_payload_entry_offset): Likewise.
32788 (grub_multiboot_forward_relocator): Likewise.
32789 (grub_multiboot_forward_relocator_end): Likewise.
32790 (grub_multiboot_backward_relocator): Likewise.
32791 (grub_multiboot_backward_relocator_end): Likewise.
32792 (grub_multiboot_payload_eip): New variable.
32793 (grub_multiboot_payload_orig): Likewise.
32794 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32795 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32796 * include/grub/i386/memory.h
32797 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32798 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32799 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32800 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32801 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32802 * include/grub/i386/relocator.h: New file.
32803 * include/grub/x86_64/relocator.h: Likewise.
32804 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32805 (XNU_RELOCATOR): New macro.
32806 (grub_xnu_launcher_start): Remove.
32807 (grub_xnu_launcher_end): Likewise.
32808 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32809 (grub_xnu_heap_real_start): Remove.
32810 (grub_xnu_heap_start): Change to void *. All users updated.
32811 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32812 * lib/i386/relocator.c: New file.
32813 * lib/i386/relocator_asm.S: Likewise.
32814 * lib/i386/relocator_backward.S: Likewise.
32815 * lib/mips/relocator.c: Likewise.
32816 * lib/mips/relocator_asm.S: Likewise.
32817 * lib/relocator.c: Likewise.
32818 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32819 (entry): Removed.
32820 (playground): Likewise.
32821 (grub_multiboot_payload_orig): New variable.
32822 (grub_multiboot_payload_dest): Likewise.
32823 (grub_multiboot_payload_size): Likewise.
32824 (grub_multiboot_payload_eip): Likewise.
32825 (grub_multiboot_payload_esp): Likewise.
32826 (grub_multiboot_boot): Use grub_relocator32_boot.
32827 (grub_multiboot_unload): Free relocators.
32828 (grub_multiboot): Setup stack. Use relocators.
32829 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32830 (grub_multiboot_load_elfXX): Use relocators.
32831 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32832 (grub_multiboot_payload_size): Likewise.
32833 (grub_multiboot_payload_dest): Likewise.
32834 (grub_multiboot_payload_entry_offset): Likewise.
32835 (grub_multiboot_forward_relocator): Likewise.
32836 (grub_multiboot_backward_relocator): Likewise.
32837 (grub_multiboot_real_boot): Likewise.
32838 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32839 (grub_xnu_entry_point): Likewise.
32840 (grub_xnu_arg1): Likewise.
32841 (grub_xnu_stack): Likewise.
32842 (grub_xnu_launch): Removed.
32843 (grub_xnu_boot_resume): New function.
32844 (grub_xnu_boot): Use relocators.
32845 * loader/i386/xnu_helper.S: Removed.
32846 * loader/xnu.c (grub_xnu_heap_start): New variable.
32847 (grub_xnu_heap_size): Likewise.
32848 (grub_xnu_heap_malloc): Use relocators.
32849 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32850
32851 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32852
32853 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32854 anything.
32855
32856 2009-12-13 Carles Pina i Estany <carles@pina.cat>
32857
32858 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32859 GRUB_ERR_NONE before calling grub_env_set.
32860
32861 2009-12-12 Robert Millan <rmh@aybabtu.com>
32862
32863 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32864 * genmk.rb (video): New variable.
32865 (CLEANFILES, VIDEOFILES): Add #{video}.
32866 (#{video}): New target rule.
32867 * genvideolist.sh: New file.
32868 * Makefile.in (pkglib_DATA): Add video.lst.
32869 (video.lst): New target rule.
32870 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32871 `video.lst'.
32872 * util/grub.d/30_os-prober.in: Replace `vbe' with
32873 ${GRUB_VIDEO_BACKEND}.
32874
32875 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32876
32877 * THANKS: Add David Miller.
32878
32879 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32880
32881 libpciaccess support.
32882
32883 * Makefile.in (LIBPCIACCESS): New variable.
32884 (enable_grub_emu_pci): Likewise.
32885 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32886 util/pci.c and commands/lspci.c.
32887 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32888 * configure.ac (grub-emu-pci): New option.
32889 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32890 (grub_pci_device_unmap_range): Likewise.
32891 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32892 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32893 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32894 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32895 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32896 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32897 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32898 * include/grub/pciutils.h: New file.
32899 * util/pci.c: Likewise.
32900
32901 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
32902
32903 * util/misc.c: Don't include <errno.h> twice.
32904
32905 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
32906
32907 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32908 name in an error message.
32909 (grub_biosdisk_rw): Likewise.
32910
32911 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32912
32913 Eliminate NTFS 4Gib barrier.
32914
32915 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32916 (read_run_data): Likewise.
32917 (grub_ntfs_read_run_list): Likewise.
32918 (grub_ntfs_read_block): Likewise.
32919 (grub_ntfs_iterate_dir): Likewise.
32920 (read_mft): Likewise.
32921 (read_data): Likewise.
32922 Use COM_LOG_LEN.
32923 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32924 to avoid 64-bit division
32925 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32926 (grub_ntfs_rlst): Use grub_disk_addr_t.
32927
32928 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32929
32930 Eliminate grub-fstest 4Gib barrier.
32931
32932 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32933 (read_file): Fix error reporting.
32934
32935 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32936
32937 Eliminate hexdump 4Gib barrier.
32938
32939 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32940 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32941
32942 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32943
32944 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32945 Fixes amarsh bug.
32946
32947 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32948
32949 Remove miscellaneous files in distclean target.
32950
32951 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32952
32953 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
32954
32955 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32956 if they're already set. This resolves the conflict between my
32957 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32958 fixing the --grub-probe option again.
32959 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32960 change on 2009-10-06, so that we now once again source
32961 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32962
32963 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32964
32965 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32966 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32967 `util/devicemap.c'.
32968
32969 2009-12-08 Carles Pina i Estany <carles@pina.cat>
32970
32971 * include/grub/misc.h (grub_printf_): New declaration.
32972 * kern/misc.c (grub_printf_): New definition.
32973 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32974 instead of `grub_printf' and `_'.
32975 * normal/menu_entry.c (store_completion): Likewise.
32976 (run): Likewise.
32977 (grub_menu_entry_run): Likewise.
32978 * normal/menu_text.c (grub_wait_after_message): Likewise.
32979 (notify_booting): Likewise.
32980 (notify_fallback): Likewise.
32981 (notify_execution_failure): Likewise.
32982
32983 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
32984
32985 * configure.ac: Check for vasprintf.
32986 * util/misc.c (asprintf): Move allocation from here ...
32987 (vasprintf): ... to here. New function.
32988 (xasprintf): New function.
32989 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32990 prototypes.
32991 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32992 * util/grub-mkfont.c (write_font): Likewise.
32993 * util/grub-probe.c (probe): Likewise.
32994 * util/hostdisk.c (make_device_name): Likewise.
32995
32996 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
32997
32998 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32999 anything even prefixed with 'cdrom' as a cdrom.
33000
33001 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33002
33003 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33004 mount points.
33005
33006 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33007
33008 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33009 grub_gettext_msg_list.
33010 (grub_gettext_gettranslation_from_position): Return const char *
33011 and not char *.
33012 (grub_gettext_translate): Add the translated strings into a list,
33013 returns from the list if existing there.
33014 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33015 (grub_gettext_delete_list): Delete the list.
33016 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33017 lang environment variable is changed.
33018 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33019
33020 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33021
33022 Rename kernel.mod to kernel.img.
33023
33024 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33025 (kernel_mod_EXPORTS): Rename to ...
33026 (kernel_img_EXPORTS): ... this.
33027 (kernel_mod_SOURCES): Rename to ...
33028 (kernel_img_SOURCES): ... this.
33029 (kernel_mod_HEADERS): Rename to ...
33030 (kernel_img_HEADERS): ... this. All users updated.
33031 (kernel_mod_CFLAGS): Rename to ...
33032 (kernel_img_CFLAGS): ... this.
33033 (kernel_mod_ASFLAGS): Rename to ...
33034 (kernel_img_ASFLAGS): ... this.
33035 (kernel_mod_LDFLAGS): Rename to ...
33036 (kernel_img_LDFLAGS): ... this.
33037 * conf/x86_64-efi.rmk: Likewise.
33038 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33039 (read_kernel_image): ... this. All users updated.
33040 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33041
33042 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33043
33044 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33045 (print_spaces): New function.
33046 (grub_print_ucs4): New function.
33047 (getstringwidth): New function.
33048 (print_message_indented): New function.
33049 (print_message): Gettexttize strings using print_message_indented.
33050 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33051 width.
33052 (get_entry_number): Gettextize and uses dynamic terminal width.
33053 (notify_booting, notify_fallback, notify_execution_failure):
33054 Gettextize.
33055 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33056 string.
33057 (run): Likewise.
33058 (grub_menu_entry_run): Likewise.
33059 * PO/POTFILES: Add normal/menu_entry.c.
33060
33061 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33062
33063 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33064
33065 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33066
33067 * util/grub-install.in: Install gettext .mo files.
33068 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33069
33070 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33071
33072 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33073 grub_dprintf.
33074
33075 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33076
33077 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33078 non-firmware-dependant one in realmode.S takes precedence.
33079
33080 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33081
33082 * commands/halt.c: Replace misc arch-specific headers with
33083 `<grub/misc.h>'.
33084 * commands/reboot.c: Likewise.
33085 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33086 `<grub/misc.h>'.
33087 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33088 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33089 (kernel_img_SOURCES): ... to here.
33090
33091 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33092 * include/grub/i386/pc/init.h: Likewise.
33093 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33094 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33095
33096 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33097
33098 * include/grub/i386/halt.h: Remove.
33099 * include/grub/i386/reboot.h: Likewise.
33100
33101 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33102
33103 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33104
33105 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33106 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33107 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33108 "progname.h"
33109 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33110 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33111 (usage): Add missing comma in printf.
33112
33113 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33114
33115 Use the same reboot approach on i386 coreboot and qemu as we do on
33116 BIOS.
33117
33118 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33119 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33120 * kern/i386/reboot.c: Remove.
33121 * include/grub/i386/reboot.h (grub_reboot): Export function.
33122 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33123 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33124 0xf000:0xfff0 instead of 0xffff:0x0000.
33125 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33126 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33127
33128 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33129
33130 Fix $srcdir != $objdir build.
33131
33132 * Makefile.in (po/%.po): Rewrite as ...
33133 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33134
33135 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33136
33137 Fix GNU/Hurd grub-install crash.
33138 * util/grub-probe.c (probe): Try to access `path' only when it is not
33139 NULL.
33140
33141 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33142
33143 Correct module naming.
33144
33145 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33146 (GRUB_MOD_INIT(efi_uga)): ... to this
33147 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33148 (GRUB_MOD_FINI(efi_uga)): ... to this
33149 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33150 (GRUB_MOD_INIT(efi_gop)): ... to this
33151 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33152 (GRUB_MOD_FINI(efi_gop)): ... to this
33153
33154 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33155
33156 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33157 translatable.
33158 (usage): Translate `arg' strings using gettext().
33159 Thanks to Jordi Mallach for the suggestion.
33160
33161 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33162
33163 GOP support. Based on patch from Bean
33164 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33165
33166 * video/efi_gop.c: New file.
33167 * include/grub/efi/graphics_output.h: Likewise.
33168 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33169 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33170 variables.
33171 * conf/x86_64-efi.rmk: Likewise.
33172
33173 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 Rename efi_fb to efi_uga.
33176
33177 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33178 'efi_uga.mod'.
33179 (efi_fb_mod_SOURCES): Rename this ...
33180 (efi_uga_mod_SOURCES): ... to this.
33181 (efi_fb_mod_CFLAGS): Rename this ...
33182 (efi_uga_mod_CFLAGS): ... to this.
33183 (efi_fb_mod_LDFLAGS): Rename this ...
33184 (efi_uga_mod_LDFLAGS): ... to this.
33185 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33186 'efi_uga.mod'.
33187 (efi_fb_mod_SOURCES): Rename this ...
33188 (efi_uga_mod_SOURCES): ... to this.
33189 (efi_fb_mod_CFLAGS): Rename this ...
33190 (efi_uga_mod_CFLAGS): ... to this.
33191 (efi_fb_mod_LDFLAGS): Rename this ...
33192 (efi_uga_mod_LDFLAGS): ... to this.
33193 * video/efi_fb.c: Move this ...
33194 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33195
33196 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33197
33198 * po/README: New file. Explain our PO file workflow.
33199
33200 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33201
33202 * po/ChangeLog: Remove. Move relevant entries back to ...
33203 * ChangeLog: ... here.
33204 * po/ca.po: Remove (now handled by TLP).
33205 * po/id.po: Likewise.
33206 * po/zh_CN.po: Likewise.
33207 * Makefile.in (LINGUAS): Initialize in a way that supports
33208 empty set.
33209
33210 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33211
33212 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33213 reliing on po/LINGUAS.
33214 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33215 (po/%.po): ... this.
33216
33217 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33218
33219 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33220 (main): Use `program_name' instead of nonexistent `progname'.
33221
33222 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33223
33224 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33225 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33226
33227 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33228
33229 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33230 commit.
33231 * conf/i386-efi.rmk: Likewise.
33232 * conf/i386-ieee1275.rmk: Likewise.
33233 * conf/powerpc-ieee1275.rmk: Likewise.
33234 * conf/sparc64-ieee1275.rmk: Likewise.
33235 * conf/x86_64-efi.rmk: Likewise.
33236
33237 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33238
33239 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33240
33241 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33242
33243 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33244
33245 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33246
33247 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33248 (grub_mkdevicemap_SOURCES): New variable.
33249 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33250 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33251 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33252 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33253 (grub_mkdevicemap_SOURCES): Remove.
33254 * conf/i386-efi.rmk: Likewise.
33255 * conf/i386-ieee1275.rmk: Likewise.
33256 * conf/i386-pc.rmk: Likewise.
33257 * conf/powerpc-ieee1275.rmk: Likewise.
33258 * conf/sparc64-ieee1275.rmk: Likewise.
33259 * conf/x86_64-efi.rmk: Likewise.
33260 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33261 (usage): Fix strings to use `program_name'.
33262 (main): Initialize gettext.
33263 * util/grub-editenv.c: Likewise.
33264 * util/grub-emu.c: Likewise.
33265 * util/grub-fstest.c: Likewise.
33266 * util/grub-mkdevicemap.c: Likewise.
33267 * util/grub-mkfont.c: Likewise.
33268 * util/grub-mkrelpath.c: Likewise.
33269 * util/grub-pe2elf.c: Likewise.
33270 * util/grub-probe.c: Likewise.
33271 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33272 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33273 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33274
33275 * util/misc.c: Include `"progname.h"'.
33276 (progname): Remove variable.
33277 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33278
33279 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33280
33281 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33282 printf and print a newline after the menuentry header line.
33283 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33284
33285 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33286
33287 autoconf >= 2.60 support $(localedir).
33288
33289 * INSTALL: Note that autoconf 2.60 is required.
33290 * configure.ac (AC_PREREQ): Bump to 2.60.
33291 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33292 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33293
33294 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33295
33296 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33297 aclocal is run.
33298
33299 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33300
33301 * normal/main.c (grub_normal_read_line): Fix off-by-one
33302 buffer overflow.
33303
33304 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33305
33306 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33307 "parser.grub" in grub_command_execute() call.
33308
33309 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33310
33311 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33312 * conf/i386-efi.rmk: Likewise.
33313 * conf/i386-ieee1275.rmk: Likewise.
33314 * conf/i386-pc.rmk: Likewise.
33315 * conf/powerpc-ieee1275.rmk: Likewise.
33316 * conf/sparc64-ieee1275.rmk: Likewise.
33317 * conf/x86_64-efi.rmk: Likewise.
33318 * gettext/gettex.c: Include <grub/i18n.h>.
33319 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33320 here ...
33321 * include/grub/i18n.h: ... to here
33322 * include/grub/i18n.h: ... to here.
33323 * kern/misc.c: Include <grub/i18n.h>
33324 (grub_gettext_dummy): Move above user.
33325
33326 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33327
33328 * util/Makefile.in (install-local): Convert a `for' into a normal
33329 shell expansion.
33330
33331 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33332
33333 * autogen.sh: Add automake call.
33334 * config.guess: Remove.
33335 * config.sub: Likewise.
33336 * install-sh: Likewise.
33337
33338 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33339
33340 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33341
33342 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33343
33344 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33345 function to a normal shell `for'.
33346
33347 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33348
33349 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33350
33351 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33352
33353 * util/grub-mkrelpath.c: New file.
33354 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33355 (grub_mkrelpath_SOURCES): New variable.
33356 * include/grub/util/misc.h: New function prototype.
33357 * util/misc.c (make_system_path_relative_to_its_root): New function.
33358
33359 * util/grub-mkconfig_lib.in (bindir): New variable.
33360 (grub_mkrelpath): Likewise.
33361 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33362
33363 * util/probe.c (probe): Make the file path relative to its root.
33364 Change a info message to use the GRUB path. Enable again the
33365 check if we can read the file with GRUB facilities.
33366
33367 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33368 to its root.
33369
33370 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33371
33372 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33373 platform.
33374
33375 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33376
33377 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33378 strncmp().
33379
33380 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33381
33382 * util/getroot.c (grub_util_is_dmraid): New function.
33383 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33384 devices as normal ones, not as LVM.
33385
33386 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33387
33388 * conf/common.rmk: Add grub-gettext_lib target and updates
33389 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33390 LDFLAGS.
33391 * gettext/gettext.c: New file. (Reads mo files).
33392 * include/grub/file.h (grub_file_pread): New prototype.
33393 * include/grub/i18n.h (_): New prototype.
33394 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33395 prototypes.
33396 * kern/misc.c (grub_gettext_dummy): New function.
33397 * normal/menu_text.c: Include <grub/i18n.h>.
33398 * normal/menu_text.c (print_timeout): Gettexttize string.
33399 * normal/menu_text.c (print_message): Gettexttize string.
33400 * po/POTFILES: Add `normal/menu_text.c'.
33401 * po/ca.po: Add new translations.
33402 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33403 gettext module and defines locale_dir and lang in grub.cfg.
33404 * NEWS: Add gettext support.
33405
33406 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33407
33408 * util/hostdisk.c: Include `<grub/i18n.h>'.
33409 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
33410 (make_device_name): Rewrite using asprintf.
33411 (convert_system_partition_to_system_disk): Replace 0 with NULL.
33412 (find_system_device): If a device is not found, generate one just
33413 by reusing the OS path name.
33414 (read_device_map): Make it permissible for device.map not to exist.
33415
33416 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33417
33418 * script/sh/execute.c: Move from here ...
33419 * script/execute.c: ... to here. Update all users.
33420 * script/sh/function.c: Move from here ...
33421 * script/function.c: ... to here. Update all users.
33422 * script/sh/lexer.c: Move from here ...
33423 * script/lexer.c: ... to here. Update all users.
33424 * script/sh/main.c: Move from here ...
33425 * script/main.c: ... to here. Update all users.
33426 * script/sh/parser.y: Move from here ...
33427 * script/parser.y: ... to here. Update all users.
33428 * script/sh/script.c: Move from here ...
33429 * script/script.c: ... to here. Update all users.
33430
33431 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33432
33433 * configure.ac: Detect all `emu' platforms. Define
33434 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
33435 --enable-grub-emu logic. Disable include/grub/machine
33436 symlink on `emu' platforms.
33437
33438 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
33439 * gensymlist.sh.in: Likewise.
33440
33441 * include/grub/i386/coreboot/machine.h: Remove file.
33442 * include/grub/i386/efi/machine.h: Likewise.
33443 * include/grub/i386/ieee1275/machine.h: Likewise.
33444 * include/grub/i386/pc/machine.h: Likewise.
33445 * include/grub/i386/qemu/machine.h: Likewise.
33446 * include/grub/powerpc/ieee1275/machine.h: Likewise.
33447 * include/grub/sparc64/ieee1275/machine.h: Likewise.
33448 * include/grub/x86_64/efi/machine.h: Likewise.
33449
33450 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
33451 * commands/halt.c: Likewise.
33452 * commands/reboot.c: Likewise.
33453 * include/grub/autoefi.h: Likewise.
33454 * include/grub/i386/at_keyboard.h: Likewise.
33455 * include/grub/i386/kernel.h: Likewise.
33456 * include/grub/i386/loader.h: Likewise.
33457 * include/grub/i386/pc/memory.h: Likewise.
33458 * kern/dl.c: Likewise.
33459 * kern/i386/coreboot/init.c: Likewise.
33460 * loader/i386/bsd.c: Likewise.
33461 * loader/i386/linux.c: Likewise.
33462 * loader/multiboot_loader.c: Likewise.
33463 * term/i386/pc/serial.c: Likewise.
33464 * term/usb_keyboard.c: Likewise.
33465
33466 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
33467 `<grub/machine/machine.h>'
33468 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
33469 * util/misc.c: Remove `<grub/machine/machine.h>' and
33470 `<grub/machine/time.h>'.
33471
33472 * Makefile.in (enable_grub_emu): Remove variable.
33473 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
33474
33475 * conf/any-emu.rmk: New file.
33476 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
33477 (grub_emu_init.c): Move from here ...
33478 * conf/any-emu.rmk: ... to here.
33479
33480 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
33481 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
33482 * conf/any-emu.rmk: ... to here.
33483
33484 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33485
33486 * include/grub/parser.h (grub_parser_register): Document need
33487 of `name' parameter.
33488 * normal/main.c (grub_normal_read_line): Simplify prompt string.
33489 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
33490 "sh" to "grub".
33491
33492 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33493
33494 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
33495 `$(XGETTEXT)'.
33496 * include/grub/i18n.h (N_): New macro.
33497 * util/mkisofs/mkisofs.h: Likewise.
33498 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
33499 around N_().
33500 (usage): Use gettext() to translate help strings when printing them.
33501
33502 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33503
33504 Based on patch from Bean
33505 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33506
33507 * video/efi_fb.c: New file.
33508 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
33509 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33510 variables.
33511 * conf/x86_64-efi.rmk: Likewise.
33512
33513 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
33514
33515 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
33516 * util/i386/pc/grub-setup.c: Likewise.
33517
33518 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
33519
33520 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
33521 <hurd/fs.h>
33522 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
33523 file_get_storage_info to implement grub_guess_root_device.
33524
33525 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33526
33527 * Makefile.in (target): Use make's builtin $(shell) function
33528 instead of calling directly $(SHELL) to create the locale directories,
33529 inside the $(foreach) function.
33530
33531 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33532
33533 * util/grub-mkrescue.in: Print an error and usage if output option
33534 has not been given.
33535
33536 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
33537
33538 Patch from Loïc Minier <loic.minier@ubuntu.com>.
33539 * util/grub.d/30_os-prober.in: Cope with Linux entries where
33540 root and /boot are on different devices.
33541
33542 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33543
33544 Fix build for srcdir != objdir.
33545
33546 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
33547 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
33548 $(srcdir).
33549 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
33550 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
33551 reference for input.
33552
33553 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33554
33555 * util/grub-mkrescue.in: Use source directory direcly (without copiing
33556 or hardlinking it). Remove -J option, Joliet is not compatible with
33557 multiple source directories.
33558
33559 2009-11-21 Carles Pina i Estany <carles@pina.cat>
33560 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
33561
33562 * util/grub-mkrescue.in: Recognize `--override-directory' option.
33563 (process_input_dir): New function. Process an arbitrary input
33564 directory.
33565 Misc adjustments to support both "override mode" and system-wide mode.
33566
33567 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33568
33569 * configure.ac (UNIFONT_BDF): Rename to ...
33570 (FONT_SOURCE): ... this. Update all users.
33571
33572 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
33573
33574 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
33575 to the list of unifont files to look for.
33576
33577 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33578
33579 Patch from Joe Auricchio <jauricchio@gmail.com>
33580 * commands/minicmd.c (grub_mini_cmd_clear): New function.
33581 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
33582 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
33583
33584 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33585
33586 * Makefile.in (install-local): Add a missing backslash.
33587
33588 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
33589
33590 * include/grub/x86_64/io.h: New file.
33591
33592 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33593
33594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
33595 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
33596 Include `"progname.h"'.
33597 (main): Initialize gettext.
33598 * util/i386/pc/grub-setup.c: Gettexttize.
33599 * util/i386/pc/grub-mkimage.c: Likewise.
33600
33601 * Makefile.in (po/*.po): Redefine as ...
33602 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
33603
33604 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
33605
33606 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
33607
33608 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
33609 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
33610 (program_name): Remove.
33611 (main): Initialize gettext support.
33612 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
33613 Include `<libintl.h>'.
33614 (_): New macro.
33615
33616 * util/mkisofs/eltorito.c: Gettexttize.
33617 * util/mkisofs/joliet.c: Likewise.
33618 * util/mkisofs/mkisofs.c: Likewise.
33619 * util/mkisofs/multi.c: Likewise.
33620 * util/mkisofs/rock.c: Likewise.
33621 * util/mkisofs/tree.c: Likewise.
33622 * util/mkisofs/write.c: Likewise.
33623
33624 * po/POTFILES: Update with new files.
33625
33626 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33627
33628 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
33629 * util/mkisofs/iso9660.h: Likewise.
33630 * util/mkisofs/joliet.c: Likewise.
33631 * util/mkisofs/mkisofs.c: Likewise.
33632 * util/mkisofs/mkisofs.h: Likewise.
33633 * util/mkisofs/rock.c: Likewise.
33634 * util/mkisofs/tree.c: Likewise.
33635 * util/mkisofs/write.c: Likewise.
33636
33637 * util/mkisofs/eltorito.c (rcsid): Remove.
33638 * util/mkisofs/hash.c: Likewise.
33639 * util/mkisofs/joliet.c: Likewise.
33640 * util/mkisofs/name.c: Likewise.
33641 * util/mkisofs/rock.c: Likewise.
33642 * util/mkisofs/tree.c: Likewise.
33643 * util/mkisofs/write.c: Likewise.
33644
33645 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33646
33647 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
33648 instead of static allocation.
33649 * util/mkisofs/match.h: Likewise.
33650
33651 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33652
33653 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
33654 and `util/grub.d/10_linux.in'.
33655 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
33656 translatable Shell files.
33657
33658 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
33659
33660 * Makefile.in ($(srcdir)/aclocal.m4): New target.
33661
33662 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33663
33664 * INSTALL: Document Automake is needed for bootstrap.
33665 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
33666 * util/grub.d/10_kfreebsd.in (bindir): New variable.
33667 Add gettext initialization.
33668 (kfreebsd_entry): Make menuentry output translatable.
33669
33670 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33671
33672 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
33673 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
33674 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
33675 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
33676 (LINGUAS): Auto-generate using `po/LINGUAS'.
33677 * po/LINGUAS: New file.
33678
33679 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33680
33681 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
33682 other things).
33683 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
33684 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
33685 bindtextdomain() calls for gettext initialization.
33686
33687 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33688
33689 * gnulib/progname.c: New file (imported from Gnulib).
33690 * gnulib/progname.h: Likewise.
33691 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33692 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
33693 (usage): Replace `progname' with `program_name'.
33694 (main): Use set_program_name() for program name initialization.
33695
33696 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33697
33698 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
33699 from here ...
33700 * Makefile.in (CPPFLAGS): ... to here.
33701
33702 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33703
33704 * aclocal.m4: Move from here ...
33705 * acinclude.m4: ... to here.
33706 * autogen.sh: Add call to `aclocal'.
33707 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
33708
33709 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33710
33711 * Makefile.in (CLEANFILES): Add `po/*.mo'.
33712 (LINGUAS): New variable.
33713 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
33714 (install-local): Install MO files.
33715 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
33716 * include/grub/i18n.h: New file.
33717 * po/POTFILES: New file.
33718 * po/ca.po: New file.
33719 * util/grub.d/10_linux.in (bindir): New variable.
33720 Add gettext initialization.
33721 (linux_entry): Make menuentry output translatable.
33722 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
33723 (usage): Make --help output translatable.
33724 (main): Initialize gettext.
33725
33726 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33727
33728 * import_gcry.py: New file (written by Vladimir with minor
33729 adjustments).
33730 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
33731 ciphers.
33732 * INSTALL: Document that Python is required for bootstrap.
33733
33734 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
33735
33736 Import ciphers from libgcrypt 1.4.4.
33737
33738 * lib/libgcrypt/cipher/ChangeLog
33739 * lib/libgcrypt/cipher/ac.c
33740 * lib/libgcrypt/cipher/arcfour.c
33741 * lib/libgcrypt/cipher/bithelp.h
33742 * lib/libgcrypt/cipher/blowfish.c
33743 * lib/libgcrypt/cipher/camellia-glue.c
33744 * lib/libgcrypt/cipher/camellia.c
33745 * lib/libgcrypt/cipher/camellia.h
33746 * lib/libgcrypt/cipher/cast5.c
33747 * lib/libgcrypt/cipher/cipher.c
33748 * lib/libgcrypt/cipher/crc.c
33749 * lib/libgcrypt/cipher/des.c
33750 * lib/libgcrypt/cipher/dsa.c
33751 * lib/libgcrypt/cipher/ecc.c
33752 * lib/libgcrypt/cipher/elgamal.c
33753 * lib/libgcrypt/cipher/hash-common.c
33754 * lib/libgcrypt/cipher/hash-common.h
33755 * lib/libgcrypt/cipher/hmac-tests.c
33756 * lib/libgcrypt/cipher/md.c
33757 * lib/libgcrypt/cipher/md4.c
33758 * lib/libgcrypt/cipher/md5.c
33759 * lib/libgcrypt/cipher/primegen.c
33760 * lib/libgcrypt/cipher/pubkey.c
33761 * lib/libgcrypt/cipher/rfc2268.c
33762 * lib/libgcrypt/cipher/rijndael-tables.h
33763 * lib/libgcrypt/cipher/rijndael.c
33764 * lib/libgcrypt/cipher/rmd.h
33765 * lib/libgcrypt/cipher/rmd160.c
33766 * lib/libgcrypt/cipher/rsa.c
33767 * lib/libgcrypt/cipher/seed.c
33768 * lib/libgcrypt/cipher/serpent.c
33769 * lib/libgcrypt/cipher/sha1.c
33770 * lib/libgcrypt/cipher/sha256.c
33771 * lib/libgcrypt/cipher/sha512.c
33772 * lib/libgcrypt/cipher/tiger.c
33773 * lib/libgcrypt/cipher/twofish.c
33774 * lib/libgcrypt/cipher/whirlpool.c
33775
33776 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33777
33778 Fix build for systems without error().
33779
33780 * gnulib/error.c: New file (imported from Gnulib).
33781 * gnulib/error.h: Likewise.
33782 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33783 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33784 (this variable is now used by error()).
33785
33786 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33787
33788 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33789 instead of relying that char is signed.
33790
33791 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33792
33793 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33794 blocksize different from specified.
33795 (grub_pxefs_read): Likewise.
33796
33797 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
33798
33799 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33800
33801 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33802 (grub_ata_readwrite): Likewise. Update 2 format strings.
33803 (grub_atapi_read): Likewise.
33804
33805 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33806 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33807 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33808 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33809 (ata_mod_LDFLAGS): Move from here ...
33810 * conf/i386.rmk: ... to here ...
33811 * conf/x86_64-efi.rmk: ... and here.
33812 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33813 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33814
33815 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33816
33817 Relicense multiboot.h, with RMS' blessing.
33818
33819 * include/multiboot.h: Change to X11 license.
33820
33821 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33822
33823 Support --version in grub-mkisofs.
33824
33825 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33826 (OPTION_VERSION): New macro.
33827 (ld_options): Recognize --version.
33828 (usage): Move `program_name' from here ...
33829 (program_name): ... to here. Add `static' qualifier.
33830 (main): Recognize `OPTION_VERSION'.
33831
33832 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
33833
33834 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33835 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33836
33837 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33838
33839 Fix help2man generation for mkisofs.
33840
33841 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33842 (usage): Send output to stdout (rather than stderr).
33843
33844 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33845
33846 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33847 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33848 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33849 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33850 (bin_SCRIPTS): Add `grub-mkfloppy'.
33851 (grub_mkfloppy_SOURCES): New variable.
33852
33853 * util/grub-mkrescue.in: New file.
33854 * util/i386/pc/grub-mkfloppy.in: New file.
33855
33856 * util/i386/coreboot/grub-mkrescue.in: Remove.
33857 * util/i386/pc/grub-mkrescue.in: Remove.
33858
33859 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33860
33861 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33862 from here ...
33863 * include/multiboot.h (struct multiboot_header): ... to here. Update
33864 all users.
33865 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33866 from here ...
33867 * include/multiboot.h (struct multiboot_info): ... to here. Update
33868 all users.
33869 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33870 from here ...
33871 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33872 Update all users.
33873 * include/grub/multiboot.h (struct grub_mod_list): Move
33874 from here ...
33875 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33876 Update all users.
33877
33878 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33879
33880 * include/multiboot2.h (multiboot_word): Rename from this ...
33881 (multiboot2_word): ... to this. Update all users.
33882 (multiboot_header): Rename from this ...
33883 (multiboot2_header): ... to this. Update all users.
33884 (multiboot_tag_header): Rename from this ...
33885 (multiboot2_tag_header): ... to this. Update all users.
33886 (multiboot_tag_start): Rename from this ...
33887 (multiboot2_tag_start): ... to this. Update all users.
33888 (multiboot_tag_name): Rename from this ...
33889 (multiboot2_tag_name): ... to this. Update all users.
33890 (multiboot_tag_module): Rename from this ...
33891 (multiboot2_tag_module): ... to this. Update all users.
33892 (multiboot_tag_memory): Rename from this ...
33893 (multiboot2_tag_memory): ... to this. Update all users.
33894 (multiboot_tag_unused): Rename from this ...
33895 (multiboot2_tag_unused): ... to this. Update all users.
33896 (multiboot_tag_end): Rename from this ...
33897 (multiboot2_tag_end): ... to this. Update all users.
33898
33899 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33900
33901 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33902 this platform we should support Multiboot1 first.
33903
33904 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33905 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33906 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33907
33908 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33909
33910 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33911 of write calls (converting them to fwrite() if they aren't already).
33912 (get_torito_desc): Likewise.
33913 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33914
33915 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33916
33917 * util/i386/pc/grub-install.in: Move from here ...
33918 * util/grub-install.in: ... to here. Update all users.
33919
33920 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
33921
33922 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33923
33924 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33925
33926 Support for El Torito without floppy emulation.
33927
33928 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33929 (init_boot_catalog): Improve error handling.
33930 (get_torito_desc): Don't use floppy emulation unless requested by
33931 user. Patch boot information table when requested via
33932 `-boot-info-table'.
33933 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33934 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33935 (use_boot_info_table): New variables.
33936 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33937 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33938 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33939 `--eltorito-emul-floppy'.
33940 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33941 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33942 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33943 (use_boot_info_table, get_731): New prototypes.
33944 * util/mkisofs/write.c (get_731): New function.
33945
33946 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
33947
33948 Fix the generation of the man page.
33949
33950 * util/pc/i386/grub-install.in: Source
33951 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33952
33953 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33954
33955 Large file support for grub-mkisofs.
33956
33957 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33958 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33959 (session_start): Upgrade type to `uint64_t'. Update all users.
33960 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33961 (struct directory_entry): Upgrade type of `starting_block' and
33962 `size' to `uint64_t'. Update all users.
33963 (struct deferred): Remove unused structure.
33964 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33965 Update all users.
33966 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33967 file is larger than `UINT32_MAX'.
33968 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33969 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33970 return value.
33971 (struct deferred_write): Upgrade type of `extent' and `size' to
33972 `uint64_t'. Update all users.
33973 (last_extent_written): Upgrade type to `uint64_t'. Update all
33974 users.
33975 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33976 Update all users. Upgrade type of `remain' to `int64_t' and
33977 `use' to `size_t'. Use error() to handle fread() errors.
33978 (write_files): Rely on write_one_file() rather than calling
33979 xfwrite() directly.
33980
33981 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
33982
33983 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33984
33985 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33986
33987 * util/mkisofs/fnmatch.c: Remove.
33988 * util/mkisofs/getopt1.c: Likewise.
33989 * util/mkisofs/getopt.c: Likewise.
33990 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33991 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33992 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33993 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33994 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33995
33996 * configure.ac: Detect `mingw32msvc' host_os.
33997 Check for lstat(), getuid() and getgid().
33998
33999 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34000 instances of `u_char' with `uint8_t'.
34001
34002 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34003 [!HAVE_GETUID] (getuid): New function (stub).
34004 [!HAVE_GETGID] (getgid): Likewise.
34005 [!HAVE_LSTAT] (lstat): Likewise.
34006 [!S_IROTH] (S_IROTH): New macro (dummy).
34007 [!S_IRGRP] (S_IRGRP): Likewise.
34008
34009 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34010
34011 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34012 conditional expression).
34013
34014 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34015
34016 Import from Gnulib.
34017
34018 * gnulib/fnmatch.c: New file.
34019 * gnulib/fnmatch.h: Likewise.
34020 * gnulib/fnmatch_loop.c: Likewise.
34021 * gnulib/getopt.c: Likewise.
34022 * gnulib/getopt.h: Likewise.
34023 * gnulib/getopt1.c: Likewise.
34024 * gnulib/getopt_int.h: Likewise.
34025 * gnulib/gettext.h: Likewise.
34026
34027 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34028
34029 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34030 * normal/handler.c (read_handler_list): Likewise.
34031
34032 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34033
34034 Misc cleanup.
34035
34036 * kern/command.c (grub_register_command_prio): Use
34037 grub_zalloc() instead of explicitly zeroing data.
34038 * kern/list.c: Include `<grub/mm.h>'.
34039 (grub_named_list_find): Replace `0' with `NULL'.
34040 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34041 (fs_module_list): Change type to `grub_named_list_t'. Update all
34042 users.
34043 * normal/dyncmd.c (read_command_list): Add space between function
34044 call and parenthesis.
34045 * normal/handler.c (read_handler_list): Likewise.
34046
34047 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34048
34049 * normal/auth.c (punishment_delay): Moved from here ...
34050 (grub_auth_strcmp): ... to here (inside function).
34051
34052 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34053
34054 * include/grub/list.h (struct grub_named_list): Remove `const'
34055 qualifier from `name'.
34056 (struct grub_prio_list): Likewise.
34057
34058 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34059
34060 * normal/auth.c: Include `<grub/time.h>'.
34061 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34062
34063 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34064
34065 * normal/auth.c (punishment_delay): New variable.
34066 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34067 (grub_auth_check_authentication): Punish failed login attempts with
34068 an incremental (2^N) delay.
34069
34070 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34071
34072 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34073 path with $(srcdir).
34074
34075 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34076
34077 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34078
34079 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34080
34081 * util/i386/coreboot/grub-mkrescue.in: New file.
34082 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34083 variables.
34084
34085 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34086 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34087 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34088 requirements.
34089 * util/mkisofs/defaults.h: New file.
34090 * util/mkisofs/eltorito.c: Likewise.
34091 * util/mkisofs/exclude.h: Likewise.
34092 * util/mkisofs/fnmatch.c: Likewise.
34093 * util/mkisofs/getopt.c: Likewise.
34094 * util/mkisofs/getopt1.c: Likewise.
34095 * util/mkisofs/hash.c: Likewise.
34096 * util/mkisofs/include/fctldefs.h: Likewise.
34097 * util/mkisofs/include/mconfig.h: Likewise.
34098 * util/mkisofs/include/prototyp.h: Likewise.
34099 * util/mkisofs/include/statdefs.h: Likewise.
34100 * util/mkisofs/iso9660.h: Likewise.
34101 * util/mkisofs/joliet.c: Likewise.
34102 * util/mkisofs/match.c: Likewise.
34103 * util/mkisofs/match.h: Likewise.
34104 * util/mkisofs/mkisofs.c: Likewise.
34105 * util/mkisofs/mkisofs.h: Likewise.
34106 * util/mkisofs/multi.c: Likewise.
34107 * util/mkisofs/name.c: Likewise.
34108 * util/mkisofs/rock.c: Likewise.
34109 * util/mkisofs/tree.c: Likewise.
34110 * util/mkisofs/write.c: Likewise.
34111
34112 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34113
34114 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34115 being insecure.
34116
34117 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34118
34119 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34120 `grub-mkimage' (and use $0 when possible).
34121
34122 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34123
34124 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34125 error message for excessively large memory map.
34126
34127 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34128
34129 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34130 executable bit.
34131
34132 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34133
34134 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34135 message for coreboot users.
34136
34137 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34138
34139 Fix build with GNU gold.
34140
34141 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34142 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34143 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34144 link addresses.
34145 * aclocal.m4: Likewise.
34146
34147 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34148
34149 * configure.ac (AC_PREREQ): Bump to 2.59d.
34150 * INSTALL: Make it more clear when Autoconf and Ruby are
34151 needed and when to run `./autogen.sh'.
34152
34153 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34154
34155 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34156 OSes.
34157
34158 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34159
34160 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34161
34162 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34163
34164 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34165 giving it to GNU Mach.
34166
34167 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34168
34169 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34170 GNU partition number to get internal GRUB partition number.
34171
34172 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34173
34174 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34175 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34176
34177 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34178
34179 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34180 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34181 case.
34182
34183 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34184
34185 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34186
34187 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34188
34189 Fix build problem.
34190
34191 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34192 `-isystem=$(srcdir)/include'.
34193
34194 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34195
34196 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34197 checked (grub-install doesn't currently rely on it).
34198
34199 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34200
34201 Revert SVN r2660.
34202
34203 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34204 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34205 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34206 * conf/i386-ieee1275.rmk: Likewise.
34207 * conf/i386-pc.rmk: Likewise.
34208 * conf/powerpc-ieee1275.rmk: Likewise.
34209 * conf/sparc64-ieee1275.rmk: Likewise.
34210 * conf/x86_64-efi.rmk: Likewise.
34211
34212 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34213
34214 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34215
34216 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34217
34218 * include/grub/misc.h: Stop checking for APPLE_CC.
34219
34220 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34221
34222 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34223 doesn't cause an infinite call loop.
34224
34225 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34226
34227 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34228 strings.
34229
34230 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34231
34232 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34233 variable.
34234 * Makefile.in: Likewise.
34235
34236 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34237
34238 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34239
34240 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34241
34242 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34243
34244 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34245
34246 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34247
34248 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34249
34250 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34251 from here ...
34252 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34253
34254 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34255
34256 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34257 in $(MAKEINFO) invocation. This makes it clear in output that
34258 errors are being ignored.
34259
34260 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34261
34262 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34263 from here ...
34264 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34265 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34266 * conf/i386-ieee1275.rmk: Likewise.
34267 * conf/i386-pc.rmk: Likewise.
34268 * conf/powerpc-ieee1275.rmk: Likewise.
34269 * conf/sparc64-ieee1275.rmk: Likewise.
34270 * conf/x86_64-efi.rmk: Likewise.
34271
34272 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34273
34274 * util/grub-editenv.c (main): If only a command is given, use
34275 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34276 (usage): FILENAME is now optional and has a default.
34277
34278 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34279
34280 Improve grub-mkconfig performance when there are several menu
34281 entries on a single filesystem.
34282
34283 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34284 prepare_grub_to_access_device.
34285 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34286 * util/grub.d/30_os-prober.in: Likewise.
34287
34288 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34289
34290 * util/grub.d/10_freebsd.in: Remove.
34291 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34292 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34293
34294 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34295
34296 * docs/grub.cfg: Fix example usage of *BSD loaders.
34297
34298 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34299
34300 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34301 grub_util_error() call.
34302
34303 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34304
34305 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34306 `reserved_first_sector' member.
34307 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34308 `reserved_first_sector' to 1.
34309 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34310 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34311 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34312 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34313 filesystems which begin at first sector.
34314 (options): New option --skip-fs-probe.
34315 (main): Handle --skip-fs-probe and pass it to setup().
34316
34317 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34318
34319 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34320 (memset): Fix function prototype.
34321
34322 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34323 2009-10-25 Vasily Averin <vvs@parallels.com>
34324
34325 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34326 `dirent.direntlen == 0'.
34327
34328 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34329
34330 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34331 `cpio'.
34332 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34333
34334 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34335
34336 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34337 `__trampoline_setup' and `__ucmpdi2'.
34338 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34339 that libgcc provides.
34340
34341 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34342
34343 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34344 * include/grub/sparc64/libgcc.h (memset): Likewise.
34345 * include/grub/misc.h (memset, memcmp): New function prototypes.
34346
34347 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34348
34349 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34350 `cpio'.
34351 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34352
34353 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34354
34355 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34356 * docs/grub.cfg: Compensate for recent change in multiboot
34357 loader (since 2009-08-14 it won't pass filename to payload).
34358 * util/grub.d/10_hurd.in: Likewise.
34359
34360 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34361
34362 * config.guess: Update to latest version from config git
34363 repository.
34364 * config.sub: Likewise.
34365
34366 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34367
34368 Fix build on sparc64.
34369
34370 * configure.ac: Perform checks for libgcc symbols before
34371 adding `-nostdlib' to LDFLAGS.
34372
34373 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34374
34375 Let user specify OpenBSD root device.
34376
34377 * loader/i386/bsd.c (openbsd_root): New variable.
34378 (openbsd_opts): New option 'root'.
34379 (OPENBSD_ROOT_ARG): New macro.
34380 (grub_openbsd_boot): Use 'openbsd_root'.
34381 (grub_cmd_openbsd): Fill 'openbsd_root'.
34382
34383 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34384
34385 * NEWS: Misc adjustments.
34386
34387 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34388
34389 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34390
34391 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34392
34393 * configure.ac: Bump version to 1.97.
34394
34395 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34396
34397 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34398 -mno-3dnow on x86 architectures. Some toolchains enable these
34399 features by default, but they rely on registers that aren't enabled
34400 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34401
34402 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34403
34404 Make entry text a bit more readable.
34405
34406 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34407
34408 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34409
34410 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
34411
34412 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34413
34414 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
34415 operations.
34416
34417 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34418
34419 * configure.ac: Add missing dollar.
34420
34421 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34422
34423 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
34424
34425 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
34426 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
34427 exports.
34428 * include/grub/sparc64/libgcc.h: Likewise. Use
34429 preprocessor conditionals.
34430
34431 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34432
34433 * conf/common.rmk (grub-dumpbios): Remove rule.
34434 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
34435 * util/grub-dumpbios.in: Remove file.
34436
34437 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
34438
34439 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
34440 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
34441
34442 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
34443 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
34444 users.
34445
34446 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
34447 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
34448 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
34449 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
34450 users.
34451
34452 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
34453
34454 * term/tparm.c: Switch to GPLv3.
34455
34456 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34457
34458 * include/grub/i386/cpuid.h: Add header protection.
34459
34460 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
34461
34462 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
34463
34464 * include/grub/i386/cpuid.h: New file.
34465 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
34466 (has_longmode): Rename to ...
34467 (grub_cpuid_has_longmode): ... this. Update all users. Remove
34468 `static' attribute.
34469 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
34470 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
34471 on a CPU that doesn't implement AMD64 instruction set.
34472
34473 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34474
34475 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
34476 that version.texi is rebuilt on version number changes.
34477
34478 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34479
34480 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
34481 Fixes bug #27602.
34482
34483 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
34484
34485 * util/i386/pc/grub-install.in: Source
34486 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
34487 that the --grub-probe option will work.
34488 * util/sparc64/ieee1275/grub-install.in: Likewise.
34489
34490 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
34491
34492 * configure.ac: Bump version to 1.97~beta4.
34493
34494 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
34495
34496 Resync grub-mkdevicemap in x86_64-efi.
34497
34498 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
34499 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
34500 `util/devicemap.c'.
34501
34502 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
34503
34504 * util/grub-editenv.c (create_envblk_file): Write new block with a
34505 .new suffix and then rename it into place, to ensure atomic
34506 creation.
34507
34508 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
34509
34510 Do not automatically install headers.
34511
34512 * Makefile.in (include_DATA): Remove. Update all users.
34513
34514 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
34515
34516 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
34517 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
34518
34519 * util/osdetect.lua: Remove.
34520 * script/lua/lauxlib.c: Likewise.
34521 * script/lua/ldebug.c: Likewise.
34522 * script/lua/grub_main.c: Likewise.
34523 * script/lua/lauxlib.h: Likewise.
34524 * script/lua/ldebug.h: Likewise.
34525 * script/lua/ltablib.c: Likewise.
34526 * script/lua/liolib.c: Likewise.
34527 * script/lua/lstrlib.c: Likewise.
34528 * script/lua/lualib.h: Likewise.
34529 * script/lua/ldo.c: Likewise.
34530 * script/lua/ldump.c: Likewise.
34531 * script/lua/ldo.h: Likewise.
34532 * script/lua/loslib.c: Likewise.
34533 * script/lua/lundump.c: Likewise.
34534 * script/lua/grub_lib.c: Likewise.
34535 * script/lua/ldblib.c: Likewise.
34536 * script/lua/lundump.h: Likewise.
34537 * script/lua/lmem.c: Likewise.
34538 * script/lua/grub_lib.h: Likewise.
34539 * script/lua/lmathlib.c: Likewise.
34540 * script/lua/lstate.c: Likewise.
34541 * script/lua/ltm.c: Likewise.
34542 * script/lua/lvm.c: Likewise.
34543 * script/lua/lmem.h: Likewise.
34544 * script/lua/lstate.h: Likewise.
34545 * script/lua/ltm.h: Likewise.
34546 * script/lua/ltable.c: Likewise.
34547 * script/lua/lvm.h: Likewise.
34548 * script/lua/llex.c: Likewise.
34549 * script/lua/lgc.c: Likewise.
34550 * script/lua/grub_lua.h: Likewise.
34551 * script/lua/loadlib.c: Likewise.
34552 * script/lua/lfunc.c: Likewise.
34553 * script/lua/lopcodes.c: Likewise.
34554 * script/lua/lparser.c: Likewise.
34555 * script/lua/ltable.h: Likewise.
34556 * script/lua/llex.h: Likewise.
34557 * script/lua/lgc.h: Likewise.
34558 * script/lua/lfunc.h: Likewise.
34559 * script/lua/lbaselib.c: Likewise.
34560 * script/lua/lopcodes.h: Likewise.
34561 * script/lua/lparser.h: Likewise.
34562 * script/lua/lzio.c: Likewise.
34563 * script/lua/linit.c: Likewise.
34564 * script/lua/lobject.c: Likewise.
34565 * script/lua/llimits.h: Likewise.
34566 * script/lua/lstring.c: Likewise.
34567 * script/lua/lzio.h: Likewise.
34568 * script/lua/lapi.c: Likewise.
34569 * script/lua/lcode.c: Likewise.
34570 * script/lua/lua.h: Likewise.
34571 * script/lua/lobject.h: Likewise.
34572 * script/lua/lstring.h: Likewise.
34573 * script/lua/lapi.h: Likewise.
34574 * script/lua/lcode.h: Likewise.
34575 * script/lua/luaconf.h: Likewise.
34576
34577 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
34578
34579 * docs/grub.texi (Command-line and menu entry commands): Document
34580 date and echo commands.
34581
34582 2009-09-24 Pavel Roskin <proski@gnu.org>
34583
34584 * include/grub/kernel.h (struct grub_module_header): Remove
34585 `grub_module_header_types'. Make `type' unsigned. Make `size'
34586 32-bit on all platforms.
34587 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
34588 8-bit field. Use grub_host_to_target32() for `size'.
34589 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
34590 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
34591 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
34592
34593 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34594
34595 Fix "lost keypress" bug in at_keyboard.
34596
34597 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
34598 Checks for readyness of input buffer (without flushing it).
34599 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
34600 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
34601
34602 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34603
34604 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
34605 size check within GRUB_MACHINE_PCBIOS section.
34606
34607 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
34608
34609 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
34610 return value.
34611 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
34612 KEYBOARD_ISREADY check.
34613 (grub_at_keyboard_checkkey): Rename to ...
34614 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
34615 Remove gratuitous cast.
34616
34617 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
34618
34619 * configure.ac: Call AC_PROG_MKDIR_P.
34620 * Makefile.in (docs/stamp-vti): Create docs directory. Create
34621 version.texi in $(builddir) rather than $(srcdir).
34622 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
34623 to makeinfo's @include search path.
34624
34625 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34626
34627 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
34628
34629 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
34630
34631 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
34632 for `*.dpkg-new'.
34633
34634 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
34635
34636 Build info documentation. Some code borrowed from Automake.
34637
34638 * configure.ac: Check for makeinfo.
34639 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
34640 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
34641 docs/version.texi.
34642 (MOSTLYCLEANFILES): Add vti.tmp.
34643 (docs/version.texi, docs/stamp-vti): Update automatically.
34644 (docs/grub.info): Build info documentation. Use --force and ignore
34645 errors for now.
34646 (all-local): Add $(INFOS).
34647 (install-local): Install info files.
34648 (uninstall): Uninstall info files.
34649 * docs/version.texi: Remove from revision control. This file is
34650 automatically generated on build now.
34651 * gendistlist.sh: Add `*.info'.
34652
34653 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34654
34655 * kern/term.c: Fix indentation.
34656
34657 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
34658
34659 * util/hostdisk.c: Fix a comment.
34660
34661 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
34662
34663 Fix regression introduced in r2539.
34664
34665 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
34666 to 0xA1.
34667
34668 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
34669
34670 * util/grub.d/30_os-prober.in: Don't throw away stderr from
34671 os-prober. Under normal operation, it does not print anything to
34672 stderr; if it does, we need to debug it, and throwing away stderr
34673 makes that excessively difficult.
34674
34675 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
34676
34677 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
34678
34679 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34680
34681 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
34682 AC_LANG_PROGRAM from autoconf.
34683 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
34684 prototypes (fixes warning).
34685
34686 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
34687 `--disable-werror' was used.
34688
34689 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
34690
34691 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
34692 uninitialized `lastaddr'.
34693
34694 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
34695
34696 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
34697
34698 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34699
34700 * commands/test.c (get_fileinfo): Return immediately if
34701 grub_fs_probe fails.
34702
34703 2009-09-14 José Martínez <xosemp@gmail.com>
34704
34705 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
34706
34707 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
34708
34709 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
34710 output.
34711
34712 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
34713
34714 * configure.ac: Remove --enable-grub-pe2elf. Only build
34715 grub-pe2elf when needed by the build system itself.
34716 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
34717
34718 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34719
34720 * configure.ac: Bump version to 1.97~beta3.
34721 * docs/version.texi: Likewise.
34722
34723 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34724
34725 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
34726 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
34727 from here ...
34728 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
34729 (grub_linux_setup_video): ... to here (with some adjustments).
34730
34731 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
34732
34733 Fix memory corruption issue (spotted by Colin Watson).
34734
34735 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
34736 causing returned size to be stored in an incorrect memory location.
34737 Fix use of uninitialized value when storing the returned size.
34738
34739 2009-09-12 Yves Blusseau <blusseau@zetam.org>
34740
34741 Change clean rules to properly remove files
34742
34743 * genmk.rb: add new clean rules
34744 * Makefile.in (clean): add the new targets
34745 (mostlyclean): likewise
34746
34747 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34748
34749 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
34750 to grub_uint64_t.
34751 * fs/ntfs.c (init_file): Understand 64-bit sizes for
34752 non-resident files.
34753
34754 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
34755
34756 * configure.ac: Don't look for help2man when cross-compiling. Fixes
34757 part of bug #27349.
34758
34759 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34760
34761 * util/grub-mkconfig.in: Make the created config mode 400 and
34762 print a warning if it fails.
34763
34764 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
34765
34766 * util/grub.d/40_custom.in: Ask user to type custom entries below
34767 comment, rather than below 'exec tail' line.
34768
34769 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34770
34771 * util/grub.d/40_custom.in: Make sure that the explanatory text is
34772 visible in grub.cfg.
34773
34774 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
34775
34776 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34777 file.
34778
34779 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
34780
34781 * docs/grub.cfg: Add an example menu entry for memtest86+.
34782
34783 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
34784
34785 * config.guess: Update to latest version from config git.
34786 * config.sub: Likewise.
34787
34788 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
34789
34790 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34791 unknown-command case. Fixes bug #27320.
34792
34793 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
34794
34795 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34796 `help' if the command exists.
34797
34798 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34799
34800 * INSTALL: Require GCC 4.1.3 or later.
34801
34802 2009-09-06 Yves Blusseau <blusseau@zetam.org>
34803
34804 * Makefile.in (RMKFILES): add i386-qemu.rmk
34805 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34806 $(srcdir)/stamp-h.in
34807
34808 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34809
34810 * util/grub-probe.c (probe): Comment out buggy codepath, which
34811 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34812 should be re-enabled after 1.97.
34813
34814 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
34815
34816 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34817 find searches for.
34818
34819 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34820
34821 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34822 unnecessary calls to grub_error.
34823
34824 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
34825
34826 * NEWS: Mention `keystatus' and Unicode fonts.
34827
34828 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34829
34830 * configure.ac: Bump version to 1.97~beta2.
34831 * docs/version.texi: Likewise.
34832
34833 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34834
34835 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34836 containing unwind information in some cases where it previously did
34837 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34838 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34839 discussion.
34840
34841 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34842
34843 Embedding loadenv module into grub-emu
34844
34845 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34846 commands/loadenv.c
34847 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34848 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34849 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34851 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34853
34854 2009-09-03 Magnus Granberg <zorry@ume.nu>
34855
34856 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34857 include -fPIE in the default specs.
34858 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34859 to TARGET_CFLAGS.
34860
34861 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
34862
34863 * INSTALL: Note that GNU Bison 2.3 or later is required.
34864
34865 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
34866
34867 * kern/i386/pc/startup.S: Fix typo.
34868
34869 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34870
34871 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34872 according to GCS.
34873
34874 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34875
34876 * docs/grub.texi (Naming convention): Describe one-based partition
34877 numbering.
34878 (Device syntax): Likewise.
34879 (File name syntax): Likewise.
34880 (Block list syntax): Likewise.
34881 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34882 menu.lst.
34883 (File name syntax): Likewise.
34884 (Command-line and menu entry commands): Document acpi, blocklist,
34885 crc, export, insmod, keystatus, ls, set, and unset commands.
34886
34887 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34888
34889 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34890 to avoid implying that only one of --shift, --ctrl, or --alt may be
34891 used.
34892
34893 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
34894
34895 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34896 rather than comparing against S_IFREG, which will almost never work.
34897
34898 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34899
34900 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34901 (write_blocklists): Likewise.
34902
34903 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
34904
34905 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34906 argument to grub_printf.
34907
34908 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
34909
34910 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
34911 non GNU test.
34912
34913 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34914
34915 * kern/file.c (grub_file_read): Spelling fix
34916
34917 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34918
34919 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34920 loading of headers in some cases.
34921
34922 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34923
34924 * configure.ac: Bump version to 1.97~beta1.
34925 * docs/version.texi: Likewise.
34926
34927 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
34928
34929 * include/grub/i386/xnu.h: Add license header.
34930 include grub/err.h explicitly.
34931
34932 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34933
34934 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34935 to `ufs' in the vfs.root.mountfrom kernel parameter.
34936
34937 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34938
34939 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34940
34941 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34942 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34943
34944 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34945 `ARRAY_SIZE' macro.
34946
34947 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34948
34949 * kern/file.c (grub_file_read): Check offset.
34950 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34951 * fs/jfs.c (grub_jfs_read_file): Likewise.
34952 * fs/ntfs.c (grub_ntfs_read): Likewise.
34953 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34954 * fs/minix.c (grub_minix_read_file): Correct offset check.
34955 * fs/ufs.c (grub_ufs_read_file): Likewise.
34956
34957 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34958
34959 * term/i386/pc/console.c (bios_data_area): Cast
34960 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34961
34962 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34963
34964 1-bit optimised blitters.
34965
34966 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34967 prototype.
34968 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34969 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34970 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34971 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34972 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34973 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34974 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34975 function.
34976 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34977 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34978 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34979 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34980 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34981 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34982 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34983 when possible.
34984 * video/video.c (grub_video_get_blit_format): Return
34985 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34986
34987 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34988
34989 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34990 the first argument to grub_printf.
34991
34992 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
34993 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34994
34995 Add `getkeystatus' terminal method. Add a new `keystatus' command
34996 to query it.
34997
34998 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34999 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35000 modifier key bitmasks.
35001 (struct grub_term_input): Add `getkeystatus' member.
35002 (grub_getkeystatus): Add prototype.
35003 * kern/term.c (grub_getkeystatus): New function.
35004
35005 * include/grub/i386/pc/memory.h
35006 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35007 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35008 Data Area layout.
35009 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35010 (grub_console_term_input): Set `getkeystatus' member.
35011 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35012 constants.
35013 (grub_usb_keyboard_getreport): Likewise.
35014 (grub_usb_keyboard_checkkey): Likewise.
35015 (grub_usb_keyboard_getkeystatus): New function.
35016 (grub_usb_keyboard_term): Set `getkeystatus' member.
35017
35018 * commands/keystatus.c: New file.
35019 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35020 (keystatus_mod_SOURCES): New variable.
35021 (keystatus_mod_CFLAGS): Likewise.
35022 (keystatus_mod_LDFLAGS): Likewise.
35023 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35024 commands/keystatus.c.
35025 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35026 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35027 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35029 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35030 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35031
35032 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35033
35034 Split befs.mod and afs.mod into *_be.mod and *.mod
35035
35036 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35037 (grub_fstest_SOURCES): Likewise.
35038 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35039 (afs_be_mod_SOURCES): New variable.
35040 (afs_be_mod_CFLAGS): Likewise.
35041 (afs_be_mod_LDFLAGS): Likewise.
35042 (befs_be_mod_SOURCES): Likewise.
35043 (befs_be_mod_CFLAGS): Likewise.
35044 (befs_be_mod_LDFLAGS): Likewise.
35045 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35046 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35047 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35048 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35049 (grub_emu_SOURCES): Likewise.
35050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35052 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35053 * fs/afs_be.c: New file.
35054 * fs/befs_be.c: New file.
35055 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35056 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35057 (U16): Replaced with ...
35058 (grub_afs_to_cpu16): ...this. All users updated.
35059 (U32): Replaced with ...
35060 (grub_afs_to_cpu32): ...this. All users updated.
35061 (U64): Replaced with ...
35062 (grub_afs_to_cpu64): ...this. All users updated.
35063 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35064 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35065 (grub_afs_validate_sblock): Check only one endianness.
35066 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35067 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35068 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35069 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35070 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35071 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35072 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35073 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35074
35075 2009-08-26 Bean <bean123ch@gmail.com>
35076
35077 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35078 64-bit number.
35079 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35080 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35081 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35082
35083 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35084
35085 NetBSD memory map support.
35086
35087 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35088 (grub_netbsd_btinfo_mmap_header): New structure.
35089 (grub_netbsd_btinfo_mmap_entry): Likewise.
35090 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35091
35092 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35093
35094 Enable bsd.mod on coreboot.
35095
35096 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35097 (bsd_mod_SOURCES): New variable.
35098 (bsd_mod_CFLAGS): Likewise.
35099 (bsd_mod_LDFLAGS): Likewise.
35100 (bsd_mod_ASFLAGS): Likewise.
35101 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35102 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35103
35104 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35105
35106 Cleanup NetBSD root support.
35107
35108 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35109 grub_bsd_get_device.
35110 Fix typo.
35111
35112 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35113
35114 * util/grub.d/00_header.in: Move check for the video backend of
35115 gfxterm from here ...
35116 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35117 a suitable video backend.
35118
35119 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35120
35121 Fix breakage in grub-setup.
35122
35123 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35124 "msdos_partition_map".
35125
35126 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35127
35128 Fix breakage in normal/auth.c.
35129
35130 * normal/auth.c (grub_iswordseparator): New function.
35131
35132 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35133
35134 Authentication support.
35135
35136 * commands/password.c: New file.
35137 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35138 (password_mod_SOURCES): New variable.
35139 (password_mod_CFLAGS): Likewise.
35140 (password_mod_LDFLAGS): Likewise.
35141 (normal_mod_SOURCES): Add normal/auth.c.
35142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35143 normal/auth.c.
35144 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35146 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35148 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35149 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35150 * include/grub/auth.h: New file.
35151 * include/grub/err.h (grub_err_t): New enum value
35152 GRUB_ERR_ACCESS_DENIED.
35153 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35154 'users'.
35155 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35156 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35157 users updated.
35158 * normal/auth.c: New file.
35159 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35160 (grub_cmdline_run): Don't allow to go to command line without
35161 authentication.
35162 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35163 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35164 menuentry without superuser rights.
35165 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35166 user isn't a superuser.
35167
35168 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35169
35170 Save space by inlining misc.c functions.
35171
35172 * kern/misc.c (grub_iswordseparator): Made static.
35173 * kern/misc.c (grub_strcat): Moved from here ...
35174 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35175 * kern/misc.c (grub_strncat): Moved from here ...
35176 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35177 * kern/misc.c (grub_strcasecmp): Moved from here ...
35178 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35179 * kern/misc.c (grub_strncasecmp): Moved from here ...
35180 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35181 * kern/misc.c (grub_isalpha): Moved from here ...
35182 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35183 * kern/misc.c (grub_isdigit): Moved from here ...
35184 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35185 * kern/misc.c (grub_isgraph): Moved from here ...
35186 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35187 * kern/misc.c (grub_tolower): Moved from here ...
35188 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35189
35190 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35191
35192 * script/sh/function.c (grub_script_function_find): Cut error message
35193 not to flood terminal.
35194 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35195 limit.
35196 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35197
35198 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35199
35200 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35201 `report' grub_uint8_t *.
35202 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35203 Use a 50-millisecond timeout rather than just repeating
35204 grub_usb_keyboard_getreport 50 times.
35205 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35206
35207 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35208
35209 Rename *_partition_map to part_*
35210
35211 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35212 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35213 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35214 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35215 All users updated.
35216 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35217 All users updated.
35218 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35219 * util/grub-probe.c (probe_partmap): Don't transform partition name
35220 to get module name.
35221
35222 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35223
35224 Fix OpenBSD and NetBSD support.
35225
35226 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35227 memory address conflict.
35228 (OPENBSD_MMAP_ACPI): New definition.
35229 (OPENBSD_MMAP_NVS): Likewise.
35230 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35231 and OPENBSD_MMAP_NVS.
35232 Add memory map terminator
35233 Explicit cast when calling grub_unix_real_boot.
35234 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35235
35236 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35237
35238 Let user specify NetBSD root device.
35239
35240 * loader/i386/bsd.c (netbsd_root): New variable.
35241 (netbsd_opts): New option 'root'.
35242 (NETBSD_ROOT_ARG): New macro.
35243 (grub_netbsd_boot): Use 'netbsd_root'.
35244 (grub_bsd_unload): Free 'netbsd_root'.
35245 (grub_cmd_netbsd): Fill 'netbsd_root'.
35246
35247 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35248
35249 Support for 64-bit NetBSD.
35250
35251 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35252 point when booting non-FreeBSD.
35253
35254 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35255
35256 Support --no-smp and --no-acpi for NetBSD.
35257
35258 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35259 (NETBSD_AB_NOACPI): Likewise.
35260 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35261 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35262
35263 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35264
35265 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35266 errors.
35267 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35268 errors. Call grub_error when needed.
35269
35270 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35271
35272 * commands/search.c (search_fs): Try searching without autoload first.
35273 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35274 filesystem module explicitly for faster booting.
35275
35276 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35277
35278 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35279
35280 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35281
35282 * util/grub.d/30_os-prober.in: Disable os-prober if
35283 `GRUB_DISABLE_OS_PROBER' was set to true.
35284
35285 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35286
35287 * partmap/pc.c: Rename to ...
35288 * partmap/msdos.c: ... this. Update all users.
35289 (grub_pc_partition_map): Rename to ...
35290 (grub_msdos_partition_map): ... this. Update all users.
35291
35292 * parttool/pcpart.c: Rename to ...
35293 * parttool/msdospart.c: ... this. Update all users.
35294
35295 * include/grub/pc_partition.h: Rename to ...
35296 * include/grub/msdos_partition.h: ... this. Update all users.
35297 (grub_pc_partition_bsd_entry): Rename to ...
35298 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35299 (grub_pc_partition_disk_label): Rename to ...
35300 (grub_msdos_partition_disk_label): ... this. Update all users.
35301 (grub_pc_partition_entry): Rename to ...
35302 (grub_msdos_partition_entry): ... this. Update all users.
35303 (grub_pc_partition_mbr): Rename to ...
35304 (grub_msdos_partition_mbr): ... this. Update all users.
35305 (grub_pc_partition): Rename to ...
35306 (grub_msdos_partition): ... this. Update all users.
35307 (grub_pc_partition_is_empty): Rename to ...
35308 (grub_msdos_partition_is_empty): ... this. Update all users.
35309 (grub_pc_partition_is_extended): Rename to ...
35310 (grub_msdos_partition_is_extended): ... this. Update all users.
35311 (grub_pc_partition_is_bsd): Rename to ...
35312 (grub_msdos_partition_is_bsd): ... this. Update all users.
35313
35314 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35315 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35316 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35317 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35318 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35319 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35320 (gpt_mod_LDFLAGS): Rename to ...
35321 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35322 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35323 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35324 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35325 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35326 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35327 (part_gpt_mod_LDFLAGS): ... this.
35328 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35329 `pcpart.mod' to `msdospart.mod'.
35330 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35331 to ...
35332 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35333 (msdospart_mod_LDFLAGS): ... this.
35334
35335 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35336
35337 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35338 (openbsd_opts): Likewise.
35339 (netbsd_opts): Likewise.
35340 (freebsd_flags): Added 0 terminator.
35341 (openbsd_flags): Likewise.
35342 (netbsd_flags): Likewise.
35343 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35344 (grub_cmd_freebsd): Transformed into extended command.
35345 (grub_cmd_openbsd): Likewise.
35346 (grub_cmd_netbsd): Likewise.
35347 (cmd_freebsd): Changed type to grub_extcmd_t.
35348 (cmd_openbsd): Likewise.
35349 (cmd_netbsd): Likewise.
35350 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35351 grub_cmd_openbsd as extended commands.
35352 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35353 cmd_netbsd and cmd_openbsd
35354
35355 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35356
35357 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35358
35359 2009-08-21 Pavel Roskin <proski@gnu.org>
35360
35361 * Makefile.in (install-local): When checking if a file is in the
35362 build directory, use "test -e" to detect symlinks.
35363
35364 * Makefile.in (install-local): Remove all files in
35365 $(DESTDIR)$(pkglibdir) before installing new files there.
35366
35367 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35368
35369 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35370 grub-mkelfimage.
35371
35372 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35373
35374 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35375 explicitly specified by the user.
35376
35377 2009-08-18 Pavel Roskin <proski@gnu.org>
35378
35379 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35380 grub_uint8_t pointer for data.
35381 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35382 Likewise.
35383 * video/fb/fbutil.c: Remove unnecessary casts.
35384
35385 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35386
35387 VBE cleanup.
35388
35389 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35390 (grub_vbe_set_video_mode): Save active mode info
35391 only after setting the mode.
35392 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35393 second argument.
35394
35395 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35396
35397 Rename variables for clarity.
35398
35399 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35400 (active_vbe_mode_info): ... this. All users updated.
35401 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35402 All users updated.
35403 (initial_mode): Rename to ...
35404 (initial_vbe_mode): ... this. All users updated.
35405 (mode_in_use): Rename to ..
35406 (vbe_mode_in_use): ... this. All users updated.
35407 (mode_list): Rename to ..
35408 (vbe_mode_list): ... this. All users updated.
35409 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
35410 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
35411 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
35412 'mode_list_size' to 'vbe_mode_list_size'.
35413 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
35414 'best_mode_info' to 'best_vbe_mode_info' and
35415 'best_mode' to 'best_vbe_mode'
35416
35417 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35418
35419 Remove duplicate grub_video_fb_get_video_ptr.
35420
35421 * include/grub/fbutil.h (get_data_ptr): Rename to ...
35422 (grub_video_fb_get_video_ptr): ... this.
35423 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
35424 * video/fb/fbutil.c: Add comment about addressing.
35425 (get_data_ptr): Rename to ...
35426 (grub_video_fb_get_video_ptr): ... this. All users updated.
35427 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
35428
35429 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35430
35431 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
35432 grub_dprintf() that was just added.
35433
35434 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
35435
35436 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
35437 (DEFAULT_VIDEO_MODE): Remove macros.
35438 (grub_linux_boot): Remove assumption that Linux has FB support,
35439 and use "text" as default video mode.
35440
35441 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
35442
35443 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
35444 grub_dprintf.
35445 * fs/fat.c (grub_fat_read_data): Likewise.
35446
35447 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35448
35449 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
35450 payload.
35451 (grub_module): Likewise.
35452
35453 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35454
35455 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
35456 mbi->cmdline but free playground.
35457
35458 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35459
35460 Handle group offset on UFS1.
35461
35462 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
35463 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
35464
35465 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35466
35467 Split ufs.mod into ufs1.mod and ufs2.mod.
35468
35469 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
35470 (grub_fstest_SOURCES): Likewise.
35471 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
35472 (ufs_mod_SOURCES): Remove.
35473 (ufs_mod_CFLAGS): Likewise.
35474 (ufs_mod_LDFLAGS): Likewise.
35475 (ufs1_mod_SOURCES): New variable.
35476 (ufs1_mod_CFLAGS): Likewise.
35477 (ufs1_mod_LDFLAGS): Likewise.
35478 (ufs2_mod_SOURCES): New variable.
35479 (ufs2_mod_CFLAGS): Likewise.
35480 (ufs2_mod_LDFLAGS): Likewise.
35481 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
35482 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35483 Likewise.
35484 (grub_emu_SOURCES): Likewise.
35485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35486 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35487 (grub_setup_SOURCES): Likewise.
35488 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35489 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
35490 (grub_setup_SOURCES): Likewise.
35491 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
35492 Likewise.
35493 * fs/ufs2.c: New file.
35494 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
35495
35496 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
35497
35498 Framebuffer split.
35499
35500 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
35501 subsystem at the end.
35502 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
35503 (video_fb_mod_SOURCES): New variable.
35504 (video_fb_mod_CFLAGS): Likewise.
35505 (video_fb_mod_LDFLAGS): Likewise.
35506 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
35507 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
35508 * video/i386/pc/vbeblit.c: Moved from here ...
35509 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
35510 * video/i386/pc/vbefill.c: Moved from here ...
35511 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
35512 * video/i386/pc/vbeutil.c: Moved from here ...
35513 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
35514 * include/grub/i386/pc/vbeblit.h: Moved from here ...
35515 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
35516 * include/grub/i386/pc/vbefill.h: Moved from here ...
35517 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
35518 * include/grub/i386/pc/vbeutil.h: Moved from here ...
35519 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
35520 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
35521 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
35522 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
35523 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
35524 (grub_video_adapter): Added 'get_info_and_fini'.
35525 (grub_video_get_info_and_fini): New prototype.
35526 (grub_video_set_mode): make modestring const char *.
35527 * loader/i386/linux.c (grub_linux_setup_video): Use
35528 grub_video_get_info_and_fini.
35529 (grub_linux_boot): Move modesetting just before booting.
35530 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
35531 grub_video_get_info_and_fini.
35532 * video/i386/pc/vbe.c: Moved framebuffer part ...
35533 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
35534 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
35535 grub_video_fbstd_colors and grub_video_fb_set_palette.
35536 (grub_video_vbe_init): Clear 'framebuffer' variable and use
35537 grub_video_fb_init.
35538 (grub_video_vbe_fini): Use grub_video_fb_fini.
35539 (grub_video_vbe_setup): Use framebuffer.render_target instead of
35540 render_target and use grub_video_fb_set_active_render_target and
35541 grub_video_fb_set_palette.
35542 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
35543 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
35544 (grub_video_vbe_adapter): Use framebuffer.
35545 * video/video.c (grub_video_get_info_and_fini): New function.
35546 (grub_video_set_mode): Make modestring const char *.
35547 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
35548 values are already initialised.
35549
35550 2009-08-14 Pavel Roskin <proski@gnu.org>
35551
35552 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
35553 ABS and APPLE_CC.
35554 * boot/i386/pc/diskboot.S: Likewise.
35555 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
35556 sectors allow compilation on MacOSX.
35557 * conf/i386-pc.rmk: Enable unconditional compilation of
35558 lnxboot.img.
35559
35560 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
35561
35562 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
35563 * util/grub.d/00_header.in: Enter interruptible sleep if
35564 GRUB_HIDDEN_TIMEOUT is set.
35565
35566 2009-08-13 Yves Blusseau <blusseau@zetam.org>
35567
35568 * include/grub/symbol.h: Add the LOCAL macro.
35569 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
35570 starting with "L_".
35571
35572 2009-08-13 Pavel Roskin <proski@gnu.org>
35573
35574 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
35575 any modern compilers we support.
35576
35577 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
35578 Use local labels starting with "L_" so that Apple assembler
35579 knows they are local.
35580
35581 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
35582
35583 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
35584 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
35585 (bsd_kernel_types): ... this enum.
35586
35587 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
35588 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
35589 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
35590
35591 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
35592 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
35593 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
35594 messages.
35595
35596 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35597
35598 * util/grub-dumpdevtree: Moved from here ...
35599 * util/i386/efi/grub-dumpdevtree: ... to here.
35600 (hexify): New function. Converts a string to its hex version.
35601 Generate hex versions of "efi" and "device-properties" by calling
35602 hexify() on the ASCII strings rather than by hardcoding numbers.
35603
35604 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
35605
35606 * fs/jfs.c: Update copyright year.
35607
35608 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35609
35610 * util/grub.d/00_header.in: Fix a comment.
35611 * util/grub.d/10_linux.in: Likewise.
35612 * util/grub.d/10_windows.in: Likewise.
35613 * util/grub.d/10_hurd.in: Likewise.
35614
35615 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
35616
35617 * util/grub-mkconfig.in: Allow the user to specify the used font
35618 with GRUB_FONT.
35619
35620 2009-08-08 Pavel Roskin <proski@gnu.org>
35621
35622 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
35623 available, xfs.mod needs it now.
35624
35625 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
35626 the "g" modifier in sed when the intention is to strip something
35627 once. This fixes comparison of kernels with multiple dashes.
35628
35629 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
35630 on it. Add missing space before closing bracket. Fix
35631 misleading formatting.
35632
35633 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35634
35635 * docs/grub.texi: Major overhaul. Remove all sections that are
35636 specific to GRUB Legacy, or mostly composed of Legacy-specific
35637 information.
35638
35639 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35640
35641 * docs/version.texi: New file. Provides version information for
35642 grub.texi.
35643
35644 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35645
35646 * docs/grub.texi: Update CVS information to SVN.
35647 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
35648
35649 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35650
35651 * util/grub-mkconfig.in: Remove a wrong `fi'.
35652
35653 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35654
35655 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
35656 (grub_jfs_uuid): New function.
35657 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
35658
35659 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35660
35661 * util/grub-mkconfig_lib.in (font_path): Move the functionality
35662 of it to ...
35663 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
35664 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
35665
35666 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35667
35668 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
35669 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
35670 Update all users.
35671
35672 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
35673 not just "vmlinu[zx]".
35674 Moved from here ...
35675 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
35676 all users.
35677
35678 * util/grub.d/10_linux.in (find_latest): Moved from here ...
35679 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
35680 all users.
35681
35682 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
35683
35684 * util/grub.d/10_freebsd.in: Use an absolute device path for
35685 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
35686
35687 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
35688
35689 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
35690 handling of multiple abstraction modules.
35691
35692 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
35693
35694 Fix a bug resulting in black screen when loading Linux using a
35695 packed video mode.
35696
35697 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
35698 function.
35699
35700 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
35701 (grub_vbe_bios_getset_dac_palette_width): New function.
35702 (grub_vbe_bios_get_dac_palette_width)
35703 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
35704 grub_vbe_bios_getset_dac_palette_width()).
35705
35706 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
35707 check for return status.
35708 (grub_vbe_get_video_mode_info): When getting information for a packed
35709 mode (<= 8 bpp), obtain DAC palette width using
35710 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
35711 {red,green,blue}_mark_size.
35712
35713 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
35714
35715 * commands/search.c (options): Fix help output to match actual code.
35716
35717 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
35718
35719 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
35720 of homegrown code.
35721
35722 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35723
35724 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
35725 on XFS or ReiserFS.
35726
35727 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35728
35729 Support Apple partition map with sector size different from 512 bytes.
35730
35731 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
35732 (apple_partition_map_iterate): Respect 'aheader.blocksize'
35733 and 'apart.partmap_size'.
35734
35735 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
35736 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
35737
35738 Fix cpuid command.
35739
35740 * commands/i386/cpuid.c (options): New variable.
35741 (grub_cmd_cpuid): Return real error.
35742 (GRUB_MOD_INIT(cpuid)): Declare options.
35743
35744 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
35745
35746 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
35747 valid.
35748
35749 2009-07-31 Bean <bean123ch@gmail.com>
35750
35751 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
35752 log2_inode.
35753 (grub_fshelp_node): Move inode field to the end.
35754 (grub_xfs_data): Remove inode field.
35755 (grub_xfs_inode_block): Calculate inode size using sblock.
35756 (grub_xfs_inode_offset): Likewise.
35757 (grub_xfs_read_inode): Calculate inode size using sblock.
35758 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
35759 (grub_xfs_iterate_dir): Calculate inode size using sblock.
35760 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
35761 to match inode size.
35762 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
35763 not accessible when data is null.
35764 (grub_xfs_open): Likewise.
35765
35766 2009-07-31 Bean <bean123ch@gmail.com>
35767
35768 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
35769 Don't change pv->disk if it's already set.
35770
35771 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
35772 (grub_raid_register): ... here.
35773 (grub_raid_rescan): Removed.
35774
35775 * include/grub/raid.h (grub_raid_rescan): Removed.
35776
35777 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35778 (fstest): Replace grub_raid_rescan with module fini function followed
35779 by init function.
35780
35781 * util/grub-probe.c: Add include file <grub/raid.h>.
35782 (probe_raid_level): New function.
35783 (probe): Detect abstraction by walking the disk device, support two
35784 level of abstraction (LVM on RAID) when detecting partition map.
35785
35786 2009-07-31 Pavel Roskin <proski@gnu.org>
35787
35788 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35789 to grub_zalloc(), it was erroneous.
35790 Reported by Bean <bean123ch@gmail.com>
35791
35792 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35793
35794 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
35795 embedding zone, not only the first one.
35796
35797 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
35798
35799 * term/gfxterm.c (clear_char): New function.
35800 (grub_virtual_screen_setup): Use clear_char.
35801 (scroll_up): Likewise.
35802 (grub_virtual_screen_cls): Likewise.
35803
35804 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
35805
35806 * util/deviceiter.c (get_acceleraid_disk_name): New static
35807 function.
35808 (grub_util_iterate_devices): Handle Accelraid devices.
35809 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35810
35811 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35812
35813 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35814 separator for the suggested gfxpayload string (';' collides with the
35815 parser and needs escaping).
35816
35817 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35818
35819 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35820 Clear direction flag before jumping to OS.
35821 (grub_multiboot2_real_boot): Likewise.
35822
35823 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35824
35825 * util/i386/pc/grub-install: Fix parsing of --disk-module
35826 option.
35827
35828 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
35829
35830 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35831 when embedding.
35832
35833 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
35834
35835 * util/grub-mkconfig.in (package_version): New variable.
35836 Use it do display the version.
35837
35838 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35839
35840 * kern/file.c (grub_file_open): Revert to previous check with
35841 grub_errno.
35842
35843 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35844
35845 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35846 from help line. It's out of sync with code.
35847
35848 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35849
35850 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35851 entries on failed boot.
35852
35853 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
35854
35855 * kern/file.c (grub_file_open): Fix an error check.
35856
35857 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35858
35859 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35860 partition map couldn't be identified.
35861
35862 2009-07-23 Pavel Roskin <proski@gnu.org>
35863
35864 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35865 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35866 case of little endian words becomes just an optimization.
35867 Respect const modifier.
35868 (md5_final): Use code that doesn't depend on endianness.
35869
35870 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35871 to avoid loss of upper bits if align is unsigned and shorter
35872 than addr.
35873
35874 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35875
35876 UUID support for UFS
35877
35878 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35879 (grub_ufs_uuid): New function.
35880 (grub_ufs_fs): add .uuid
35881
35882 2009-07-21 Pavel Roskin <proski@gnu.org>
35883
35884 * kern/dl.c (grub_dl_check_header): Make static.
35885
35886 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
35887
35888 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35889 add drivemap for Vista. It breaks Windows 7.
35890
35891 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35892
35893 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35894 128 bytes
35895
35896 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35897
35898 Add BFS support
35899
35900 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35901 (grub_fstest_SOURCES): Likewise.
35902 (pkglib_MODULES): Add befs.mod.
35903 (befs_mod_SOURCES): New variable.
35904 (befs_mod_CFLAGS): Likewise.
35905 (befs_mod_LDFLAGS): Likewise.
35906 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35907 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35908 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35909 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35910 (grub_setup_SOURCES): Likewise.
35911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35912 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35913 (grub_setup_SOURCES): Likewise.
35914 * fs/befs.c: New file.
35915 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35916 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35917 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35918 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35919 (B_KEY_INDEX_ALIGN): New declaration.
35920 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35921 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35922 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35923 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35924 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35925 (grub_afs_mount) [MODE_BFS]: Likewise.
35926 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35927 (grub_afs_fs): Use GRUB_AFS_FSNAME
35928 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35929 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35930 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35931 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35932
35933 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35934
35935 * util/getroot.c (find_root_device): Add support for MacOSX.
35936 * util/hostdisk.c: Likewise.
35937
35938 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35939
35940 * font/font.c (find_glyph): Check whether a font is present to avoid
35941 segmentation fault.
35942
35943 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
35944
35945 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35946
35947 2009-07-20 Pavel Roskin <proski@gnu.org>
35948
35949 * configure.ac: Trim excessively wordy excuses.
35950
35951 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35952
35953 Add symlink, mtime and label support to AtheFS.
35954
35955 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35956 (grub_afs_iterate_dir): Handle symlinks.
35957 (grub_afs_open): Use grub_afs_read_symlink.
35958 (grub_afs_dir): Likewise.
35959 Pass mtime.
35960 (grub_afs_label): New function.
35961 (grub_afs_fs): Add grub_afs_label.
35962 (grub_afs_read_symlink): New function.
35963
35964 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35965
35966 Fix AtheFS support.
35967
35968 * fs/afs.c: Fix comments style.
35969 (grub_afs_blockrun): Declare as packed.
35970 (grub_afs_datastream): Likewise.
35971 (grub_afs_bnode): Likewise.
35972 (grub_afs_btree): Likewise.
35973 (grub_afs_sblock): Likewise.
35974 Declare `name' as char.
35975 (grub_afs_inode): Declare as packed.
35976 Change void *vnode to grub_uint32_t unused.
35977 (grub_afs_iterate_dir): Check that key_size is positive.
35978 (grub_afs_mount): Don't read superblock twice.
35979 (grub_afs_dir): Don't free node in case of error,
35980 grub_fshelp_find_file already handles this.
35981 (grub_afs_open): Likewise.
35982
35983 2009-07-19 Pavel Roskin <proski@gnu.org>
35984
35985 * Makefile.in: Remove LIBLZO and enable_lzo.
35986 * conf/i386-pc.rmk: Remove lzo support.
35987 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35988 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35989 support.
35990 * kern/i386/pc/lzo1x.S: Remove.
35991 * kern/i386/pc/startup.S: Remove lzo support.
35992 * util/i386/pc/grub-mkimage.c: Likewise.
35993
35994 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35995
35996 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35997 * fs/xfs.c (grub_xfs_dir): Likewise.
35998 * fs/afs.c (grub_afs_dir): Likewise.
35999 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36000 (grub_iso9660_open): Likewise.
36001 * fs/jfs.c (grub_jfs_open): Likewise.
36002 * fs/ext2.c (grub_ext2_dir): Likewise.
36003 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36004 * script/sh/lexer.c (grub_script_yylex): Likewise.
36005
36006 2009-07-16 Pavel Roskin <proski@gnu.org>
36007
36008 * configure.ac: Never add "-c" to CFLAGS.
36009
36010 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36011
36012 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36013 grub_cv_cc_efiemu should be used.
36014
36015 * configure.ac: Typo fixes.
36016
36017 * kern/mm.c (grub_zalloc): New function.
36018 (grub_debug_zalloc): Likewise.
36019 * include/grub/mm.h: Declare grub_zalloc() and
36020 grub_debug_zalloc().
36021 * util/misc.c (grub_zalloc): New function.
36022 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36023 instead of grub_malloc(), remove unneeded initializations.
36024 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36025 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36026 * commands/parttool.c (grub_cmd_parttool): Likewise.
36027 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36028 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36029 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36030 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36031 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36032 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36033 (grub_cmd_efiemu_pnvram): Likewise.
36034 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36035 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36036 (grub_iso9660_iterate_dir): Likewise.
36037 * fs/jfs.c (grub_jfs_opendir): Likewise.
36038 * fs/ntfs.c (list_file): Likewise.
36039 (grub_ntfs_mount): Likewise.
36040 * kern/disk.c (grub_disk_open): Likewise.
36041 * kern/dl.c (grub_dl_load_core): Likewise.
36042 * kern/elf.c (grub_elf_file): Likewise.
36043 * kern/env.c (grub_env_context_open): Likewise.
36044 (grub_env_set): Likewise.
36045 (grub_env_set_data_slot): Likewise.
36046 * kern/file.c (grub_file_open): Likewise.
36047 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36048 * loader/i386/multiboot.c (grub_module): Likewise.
36049 * loader/xnu.c (grub_xnu_create_key): Likewise.
36050 (grub_xnu_create_value): Likewise.
36051 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36052 (read_config_file): Likewise.
36053 * normal/menu_entry.c (make_screen): Likewise.
36054 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36055 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36056 * script/sh/script.c (grub_script_parse): Likewise.
36057 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36058 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36059 * video/readers/png.c (grub_png_output_byte): Likewise.
36060 (grub_video_reader_png): Likewise.
36061
36062 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36063
36064 Enable all targets that can be built by default
36065
36066 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36067 grub-mkfont and grub-fstest if they can be built
36068
36069 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36070
36071 Fix hang and segmentation fault in grub-emu-usb
36072
36073 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36074 * util/usb.c (grub_libusb_devices): likewise
36075 (grub_libusb_init): rename to ...
36076 (GRUB_MOD_INIT (libusb)):...this
36077 (grub_libusb_fini): rename to ..
36078 (GRUB_MOD_FINI (libusb)):...this
36079 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36080 * include/grub/disk.h (grub_raid_init): removed, it's useless
36081 (grub_raid_fini): likewise
36082 (grub_lvm_init): likewise
36083 (grub_lvm_fini): likewise
36084 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36085 by grub_init_all
36086
36087 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36088
36089 Fix libusb
36090
36091 * Makefile.in (LIBUSB): new macro
36092 * genmk.rb (Utility/print_tail): new method
36093 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36094 (top level): call util.print_tail at the end.
36095
36096 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36097
36098 Make FreeBSD accept zpool.cache
36099
36100 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36101 type is /boot/zfs/zpool.cache
36102
36103 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36104
36105 Fix 64-bit efiemu
36106
36107 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36108 correct wrong typedef
36109 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36110
36111 2009-07-15 Pavel Roskin <proski@gnu.org>
36112
36113 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36114 * kern/disk.c (struct grub_disk_cache): Likewise.
36115
36116 * commands/probe.c (options): Typo fix.
36117
36118 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36119 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36120 accordingly.
36121 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36122
36123 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36124 the end of "Error" to make the message more readable.
36125
36126 * boot/i386/pc/boot.S (kernel_segment): Remove.
36127 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36128 for destination.
36129
36130 * boot/i386/pc/boot.S (boot_version): Remove.
36131 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36132 Remove.
36133
36134 * include/grub/i386/pc/boot.h: Sort all offsets.
36135 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36136 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36137 * boot/i386/pc/boot.S: Assert location of every offset listed in
36138 include/grub/i386/pc/boot.h.
36139
36140 2009-07-13 Pavel Roskin <proski@gnu.org>
36141
36142 * include/grub/i386/coreboot/machine.h: Rename
36143 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36144 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36145 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36146
36147 * kern/dl.c: Force native word size to suppress warnings when
36148 compiling grub-emu.
36149
36150 * kern/device.c (grub_device_iterate): Change struct part_ent to
36151 hold the name, not a pointer to it. Use one grub_malloc() per
36152 partition, not two. Free partition_name if grub_malloc() fails.
36153 Set ents to NULL only before grub_partition_iterate() is called.
36154
36155 2009-07-11 Bean <bean123ch@gmail.com>
36156
36157 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36158 childname.
36159
36160 2009-07-10 Bean <bean123ch@gmail.com>
36161 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36162
36163 * kern/ieee1275/openfw.c (grub_children_iterate)
36164 (grub_devalias_iterate): Fix size evaluation for property or path
36165 strings, which was broken since r2132.
36166
36167 2009-07-07 Pavel Roskin <proski@gnu.org>
36168
36169 * commands/search.c (search_file): Merge into ...
36170 (search_fs): ... this. Accept search type as argument.
36171 (grub_cmd_search): Pass search type to search_fs().
36172
36173 * include/grub/util/console.h: New file.
36174 * util/console.c: Use it instead of grub/machine/console.h.
36175 * util/grub-emu.c: Likewise.
36176
36177 * lib/arg.c (find_long_option): Remove.
36178 (find_long): Add `len' argument, make `s' const char *.
36179 (grub_arg_parse): Parse long options in place, not in a
36180 temporary buffer.
36181
36182 2009-07-06 Pavel Roskin <proski@gnu.org>
36183
36184 * commands/search.c (search_fs): Fix potential NULL pointer
36185 dereference.
36186
36187 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36188 function pointer.
36189
36190 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36191
36192 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36193 comparison.
36194
36195 2009-07-05 Pavel Roskin <proski@gnu.org>
36196
36197 * include/grub/i386/linux.h (struct linux_kernel_params):
36198 Restore padding3, it's still needed.
36199
36200 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36201 FreeBSD.
36202 * util/osdetect.lua: Likewise.
36203
36204 2009-07-05 Bean <bean123ch@gmail.com>
36205
36206 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36207
36208 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36209 (grub_lua_getenv): Likewise.
36210 (grub_lua_setenv): Likewise.
36211 (save_errno): New function.
36212 (push_result): Likewise.
36213 (grub_lua_enum_device): Likewise.
36214 (grub_lua_enum_file): Likewise.
36215 (grub_lua_file_open): Likewise.
36216 (grub_lua_file_close): Likewise.
36217 (grub_lua_file_seek): Likewise.
36218 (grub_lua_file_read): Likewise.
36219 (grub_lua_file_getline): Likewise.
36220 (grub_lua_file_getsize): Likewise.
36221 (grub_lua_file_getpos): Likewise.
36222 (grub_lua_file_eof): Likewise.
36223 (grub_lua_file_exist): Likewise.
36224 (grub_lua_add_menu): Likewise.
36225
36226 * script/lua/grub_lua.h (isupper): New inline function.
36227 (islower): Likewise.
36228 (ispunct): Likewise.
36229 (isxdigit): Likewise.
36230 (strcspn): Change to normal function.
36231 (strpbkr): New function declaration.
36232 (memchr): Likewise.
36233
36234 * script/lua/grub_main.c (scan_str): New function.
36235 (strcspn): Likewise.
36236 (strpbrk): Likewise.
36237 (memchr): Likewise.
36238
36239 * script/lua/linit.c (lualibs): Enable the string library.
36240
36241 * util/osdetect.lua: New file.
36242
36243 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36244
36245 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36246 `capabilities' member.
36247
36248 2009-07-02 Pavel Roskin <proski@gnu.org>
36249
36250 * genparttoollist.sh: Add missing newline at the end.
36251
36252 2009-07-01 Pavel Roskin <proski@gnu.org>
36253
36254 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36255
36256 * util/hostdisk.c (open_device): Remove `const' from
36257 `sysctl_size', as sysctlbyname() can change it (in this case it
36258 doesn't actually happen).
36259
36260 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36261 using signed long int constants.
36262
36263 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36264 constant to avoid a warning on FreeBSD.
36265
36266 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36267 where it's needed.
36268
36269 * Makefile.in: Install include/grub/machine symlink.
36270
36271 * Makefile.in: When installing symlinks, use "cp -fR", which
36272 works on FreeBSD and MacOSX.
36273 From Yves Blusseau <cl7m42e02@sneakemail.com>
36274
36275 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36276 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36277
36278 * util/misc.c: Move grub_reboot() and grub_halt() ...
36279 * util/grub-emu.c: ... here. Make main_env static.
36280 * include/grub/util/misc.h: Remove main_env.
36281
36282 * kern/mm.c: Use correct format to print size_t.
36283
36284 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36285 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36286 * kern/powerpc/dl.c: Likewise.
36287 * kern/sparc64/dl.c: Likewise.
36288 * kern/x86_64/dl.c: Likewise.
36289
36290 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36291
36292 Fix grub-emu build on sparc64-ieee1275.
36293
36294 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36296
36297 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36298
36299 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36300 (grub_reboot, grub_halt): New functions.
36301
36302 * util/i386/pc/misc.c: Delete. Update all users.
36303 * util/sparc64/ieee1275/misc.c: Likewise.
36304 * util/powerpc/ieee1275/misc.c: Likewise.
36305
36306 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36307
36308 * conf/i386.rmk (setjmp_mod_SOURCES)
36309 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36310 * conf/common.rmk (setjmp_mod_SOURCES)
36311 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36312 to use $(target_cpu).
36313 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36314 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36315 * conf/powerpc-ieee1275.rmk: Likewise.
36316 * conf/sparc64-ieee1275.rmk: Likewise.
36317
36318 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36319 $(target_cpu) for kern/$(target_cpu)/dl.c.
36320 * conf/i386-efi.rmk: Likewise.
36321 * conf/i386-ieee1275.rmk: Likewise.
36322 * conf/x86_64-efi.rmk: Likewise.
36323 * conf/i386-coreboot.rmk: Likewise.
36324 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36325 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36326 kern/$(target_cpu)/cache.S.
36327 * conf/sparc64-ieee1275.rmk: Likewise.
36328
36329 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36330
36331 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36332 type to `grub_uint8_t', and adjust `padding9' accordingly.
36333
36334 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36335
36336 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36337
36338 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36339 assembly in final jump, using register constraints.
36340
36341 (grub_linux_boot): For text mode, initialize `have_vga' using
36342 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36343
36344 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36345 right before the final jump.
36346
36347 Set `video_mode' to 0x3.
36348
36349 Document initialization of `video_page', `video_mode' and
36350 `video_ega_bx'.
36351
36352 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36353
36354 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36355 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36356 and set GRUB_LINUX_FLAG_QUIET appropriately.
36357
36358 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36359
36360 Fix build on Debian / sparc.
36361
36362 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36363
36364 2009-06-28 Pavel Roskin <proski@gnu.org>
36365
36366 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36367 fix a warning.
36368
36369 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36370
36371 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36372
36373 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36374 `err'.
36375
36376 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36377
36378 Revert r2338.
36379
36380 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36381 file can't be opened. grub_file_open() is already supposed to set
36382 grub_errno / grub_errmsg appropriately.
36383 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36384
36385 2009-06-27 Pavel Roskin <proski@gnu.org>
36386 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36387
36388 * include/grub/dl.h: Include grub/elf.h.
36389 (struct grub_dl): Add symtab field.
36390 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36391 GRUB_MODULES_MACHINE_READONLY.
36392 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36393 of the header for read-only modules.
36394 (grub_dl_unload): Free mod->symtab for read-only modules.
36395 * kern/i386/dl.c: Use mod->symtab.
36396 * kern/powerpc/dl.c: Likewise.
36397 * kern/sparc64/dl.c: Likewise.
36398 * kern/x86_64/dl.c: Likewise.
36399
36400 * conf/i386-qemu.rmk: New file.
36401 * kern/i386/qemu/startup.S: Likewise.
36402 * kern/i386/qemu/mmap.c: Likewise.
36403 * boot/i386/qemu/boot.S: Likewise.
36404 * include/grub/i386/qemu/time.h: Likewise.
36405 * include/grub/i386/qemu/serial.h: Likewise.
36406 * include/grub/i386/qemu/kernel.h: Likewise.
36407 * include/grub/i386/qemu/console.h: Likewise.
36408 * include/grub/i386/qemu/boot.h: Likewise.
36409 * include/grub/i386/qemu/init.h: Likewise.
36410 * include/grub/i386/qemu/machine.h: Likewise.
36411 * include/grub/i386/qemu/loader.h: Likewise.
36412 * include/grub/i386/qemu/memory.h: Likewise.
36413
36414 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
36415 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
36416 [qemu] (pkglib_IMAGES): Add `boot.img'.
36417 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
36418 [qemu] (boot_img_FORMAT): New variables.
36419 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
36420 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
36421 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
36422 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
36423 [qemu] (kernel_img_FORMAT): New variables.
36424
36425 * configure.ac: Recognise `i386-qemu'.
36426
36427 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
36428 (for no compression).
36429 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
36430 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
36431 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
36432 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
36433 ifdefs).
36434
36435 2009-06-27 Pavel Roskin <proski@gnu.org>
36436
36437 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
36438 read.
36439 * efiemu/prepare32.c: Likewise.
36440 * efiemu/prepare64.c: Likewise.
36441
36442 2009-06-26 Pavel Roskin <proski@gnu.org>
36443
36444 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
36445 * include/grub/elf.h: Define symbols without "32" or "64" based
36446 on GRUB_TARGET_WORDSIZE.
36447 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
36448 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
36449 ELF definitions.
36450 * efiemu/loadcore64.c: Likewise.
36451 * loader/i386/bsd32.c: Likewise.
36452 * loader/i386/bsd64.c: Likewise.
36453 * kern/dl.c: Remove own ELF definitions.
36454 * util/i386/efi/grub-mkimage.c: Likewise.
36455
36456 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
36457
36458 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
36459 segment 0x0 unconditionally, because the reference generated by
36460 GAS is an absolute address.
36461
36462 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36463
36464 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
36465 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
36466
36467 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36468
36469 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
36470 indexes. Check for -f explicitly.
36471 (search_file): Improve error message.
36472 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
36473
36474 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36475
36476 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
36477 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
36478
36479 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36480
36481 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
36482 * conf/i386-ieee1275.rmk: Likewise.
36483 * conf/i386-coreboot.rmk: Likewise.
36484
36485 * kern/i386/pc/startup.S (grub_stop): Remove function.
36486 * kern/i386/ieee1275/startup.S: Likewise.
36487 * kern/i386/coreboot/startup.S: Likewise.
36488 * kern/i386/misc.S (grub_stop): New function.
36489
36490 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36491
36492 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
36493 * kern/i386/realmode.S (real_to_prot): ... to here.
36494
36495 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
36496
36497 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
36498 with `kernel.img'.
36499 (kernel_elf_SOURCES): Rename to ...
36500 (kernel_img_SOURCES): ... this.
36501 (kernel_elf_HEADERS): Rename to ...
36502 (kernel_img_HEADERS): ... this. Update all users.
36503 (kernel_elf_ASFLAGS): Rename to ...
36504 (kernel_img_ASFLAGS): ... this.
36505 (kernel_elf_CFLAGS): Rename to ...
36506 (kernel_img_CFLAGS): ... this.
36507 (kernel_elf_LDFLAGS): Rename to ...
36508 (kernel_img_LDFLAGS): ... this.
36509 * conf/i386-coreboot.rmk: Likewise.
36510 * conf/powerpc-ieee1275.rmk: Likewise.
36511
36512 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
36513 with "kernel.img".
36514
36515 2009-06-21 Pavel Roskin <proski@gnu.org>
36516
36517 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
36518 to match nested functions.
36519 * loader/sparc64/ieee1275/linux.c: Likewise.
36520
36521 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
36522
36523 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36524
36525 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
36526 all i386 platforms.
36527
36528 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
36529
36530 Fix asm file handling on ELF, and remove workarounds.
36531
36532 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
36533 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
36534 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
36535 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
36536
36537 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
36538
36539 Load BSD ELF modules
36540
36541 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
36542 and loader/i386/bsd64.c
36543 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
36544 (FREEBSD_MODTYPE_ELF_MODULE): New definition
36545 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
36546 (grub_freebsd_load_elfmodule32): New declaration
36547 (grub_freebsd_load_elfmoduleobj64): Likewise
36548 (grub_freebsd_load_elf_meta32): Likewise
36549 (grub_freebsd_load_elf_meta64): Likewise
36550 (grub_freebsd_add_meta): Likewise
36551 (grub_freebsd_add_meta_module): Likewise
36552 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
36553 (grub_freebsd_add_meta_module): Likewise and move module-specific
36554 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
36555 (grub_cmd_freebsd): Add elf-kernel specific parts
36556 based on grub_freebsd_add_meta_module
36557 (grub_cmd_freebsd_module): Add type parsing moved from
36558 grub_freebsd_add_meta_module
36559 (grub_cmd_freebsd_module_elf): New function
36560 (cmd_freebsd_module_elf): New variable
36561 (GRUB_MOD_INIT): Register freebsd_module_elf
36562 * loader/i386/bsd32.c: New file
36563 * loader/i386/bsd64.c: Likewise
36564 * loader/i386/bsdXX.c: Likewise
36565 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
36566 (grub_elf64_load): Likewise
36567 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
36568 All users updated
36569 (grub_elf64_load_hook_t): Likewise
36570
36571 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
36572
36573 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
36574 variable.
36575 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
36576 don't write a menu entry for recovery mode.
36577
36578 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36579
36580 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
36581 after it's no longer needed.
36582
36583 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
36584
36585 * include/grub/i386/loader.h (grub_linux_prot_size)
36586 (grub_linux_tmp_addr, grub_linux_real_addr)
36587 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
36588 GRUB_MACHINE_PCBIOS.
36589 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
36590 common grub_util_info() call to ...
36591 (generate_image): ... here.
36592 Fix use of uninitialized memory, comparison of signed with
36593 unsigned integers and memory leak.
36594 Remove bogus module address message.
36595
36596 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
36597
36598 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
36599 grub_raid_register
36600 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
36601
36602 2009-06-19 Pavel Roskin <proski@gnu.org>
36603
36604 * configure.ac: Remove stray AC_MSG_CHECKING.
36605
36606 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
36607
36608 * disk/scsi.c (grub_scsi_open): use continue instead of big if
36609
36610 2009-06-18 Pavel Roskin <proski@gnu.org>
36611
36612 * conf/common.rmk: Add fs_file.mod.
36613 * disk/fs_file.c: New file.
36614 * include/grub/disk.h (enum grub_disk_dev_id): Add
36615 GRUB_DISK_DEVICE_FILE_ID.
36616
36617 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36618
36619 Fix build with Apple's toolchain. Part 2
36620
36621 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
36622 a fake start
36623
36624 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36625
36626 Fix build with Apple's toolchain. Part 1
36627
36628 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
36629 for long calls
36630 * configure.ac: remove a leftover AC_MSG_RESULT
36631 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
36632 Apple's toolchain
36633
36634 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
36635
36636 Fix warnings
36637
36638 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
36639 (decomp_block): initialize ch
36640 use grub_memcpy instead of memcpy
36641
36642 2009-06-17 Pavel Roskin <proski@gnu.org>
36643
36644 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
36645 version, use declarations needed to use vga_text as the startup
36646 console.
36647
36648 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
36649 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
36650 the kernel.
36651 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
36652 and grub_at_keyboard_fini(), it's done on module load and
36653 unload.
36654
36655 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
36656
36657 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
36658 file can't be found.
36659 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36660
36661 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36662
36663 Fix newline handling
36664
36665 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
36666 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
36667 (grub_script_yylex): don't segfault on unterminated script
36668 newline terminates command and variable
36669
36670 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
36671
36672 avoid double grub_adjust_range call. Bug reported by David Simner
36673
36674 * kern/disk.c (grub_disk_write): change to raw disk access before
36675 calling disk_read
36676
36677 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
36678
36679 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
36680 spaces, for the benefit of help2man.
36681 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36682
36683 2009-06-16 Pavel Roskin <proski@gnu.org>
36684
36685 * kern/i386/halt.c: Include grub/machine/init.h.
36686 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
36687
36688 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
36689
36690 * util/grub.d/30_os-prober.in: Use ${root} in the generated
36691 drivemap menuentry.
36692
36693 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
36694
36695 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
36696 `echo' command.
36697
36698 2009-06-16 Pavel Roskin <proski@gnu.org>
36699
36700 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
36701 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
36702 save %dx, we only need %dl and we never change it.
36703 * boot/i386/pc/cdboot.S: Don't set the root drive.
36704 * boot/i386/pc/pxeboot.S: Likewise.
36705 * include/grub/i386/pc/boot.h: Remove
36706 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
36707 GRUB_BOOT_MACHINE_DRIVE_CHECK.
36708 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
36709 * kern/i386/pc/init.c (make_install_device): Remove references
36710 to grub_root_drive.
36711 * kern/i386/pc/startup.S: Likewise.
36712 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
36713
36714 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36715
36716 xnu_uuid command
36717
36718 * commands/xnu_uuid.c: new file
36719 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
36720 (xnu_uuid_mod_SOURCES): new variable
36721 (xnu_uuid_mod_CFLAGS): likewise
36722 (xnu_uuid_mod_LDFLAGS): likewise
36723 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36724 * conf/i386-ieee1275.rmk: likewise
36725 * conf/i386-pc.rmk: likewise
36726 * conf/powerpc-ieee1275.rmk: likewise
36727 * conf/sparc64-ieee1275.rmk: likewise
36728 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
36729
36730 2009-06-16 Pavel Roskin <proski@gnu.org>
36731
36732 * configure.ac: Avoid '==' in test command, it's not portable.
36733
36734 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
36735
36736 Probe command
36737
36738 * commands/probe.c: new file
36739 * conf/common.rmk (pkglib_MODULES): add probe.mod
36740 (probe_mod_SOURCES): new variable
36741 (probe_mod_CFLAGS): likewise
36742 (probe_mod_LDFLAGS): likewise
36743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
36744 * conf/i386-ieee1275.rmk: likewise
36745 * conf/i386-pc.rmk: likewise
36746 * conf/powerpc-ieee1275.rmk: likewise
36747 * conf/sparc64-ieee1275.rmk: likewise
36748
36749 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
36750
36751 Fix handling of string like \"hello\" and "a
36752 b"
36753
36754 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
36755 (grub_script_yylex): fix parsing of quoting, escaping and newline
36756
36757 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
36758
36759 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
36760 handling
36761
36762 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
36763
36764 * util/grub-mkconfig.in: Fix parsing of --output option.
36765
36766 2009-06-12 Pavel Roskin <proski@gnu.org>
36767
36768 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
36769 genmk.rb don't need to be generated or installed.
36770
36771 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
36772
36773 * commands/i386/pc/drivemap_int13h.S: add more comments
36774
36775 2009-06-11 Pavel Roskin <proski@gnu.org>
36776
36777 * Makefile.in (uninstall): Uninstall manuals.
36778
36779 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36780 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36781 and update-grub_lib in two places.
36782 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36783
36784 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36785 a compiler warning.
36786
36787 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36788 `entry_lo' to fix variable shadowing.
36789
36790 2009-06-11 Christian Franke <franke@computer.org>
36791
36792 * kern/misc.c (__enable_execute_stack): Add missing return type
36793 to prevent gcc warning.
36794
36795 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36796
36797 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36798
36799 2009-06-11 Pavel Roskin <proski@gnu.org>
36800
36801 * Makefile.in: Don't rely on any scripts being executable.
36802 Always use $(SHELL) to run shell scripts.
36803
36804 * configure.ac: Always define ___main if using -nostdlib. This
36805 fixes tests on Cygwin.
36806
36807 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36808
36809 UDF fix
36810
36811 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
36812 is in bytes and not in blocks
36813
36814 2009-06-11 Pavel Roskin <proski@gnu.org>
36815
36816 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36817 warning.
36818
36819 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
36820
36821 * util/grub.d/30_os-prober.in: Fix a comment. Source
36822 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36823 to set the root device. Place drivemap command in the generated
36824 chain entry.
36825
36826 2009-06-11 Pavel Roskin <proski@gnu.org>
36827
36828 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36829 have long been resolved.
36830
36831 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
36832
36833 * util/grub.d/10_linux.in: Capitalise "Linux".
36834
36835 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36836
36837 2009-06-11 Pavel Roskin <proski@gnu.org>
36838
36839 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36840 fix a gcc warning and ensure that the function won't ever exit.
36841
36842 * kern/i386/ieee1275/init.c: Add missing prototype for
36843 grub_stop_floppy().
36844
36845 * loader/ieee1275/multiboot2.c [__i386__]: Include
36846 grub/cpu/multiboot.h.
36847
36848 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36849 casts to short - they are not portable and cause warnings. Fix
36850 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36851
36852 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36853
36854 Drivemap fixes
36855
36856 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36857 new function
36858 (grub_get_root_biosnumber_saved): new variable
36859 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36860 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
36861 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
36862 %dx after the call if necessary
36863 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36864 (boot_mod_SOURCES): remove
36865 (boot_mod_CFLAGS): remove
36866 (boot_mod_LDFLAGS): remove
36867 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36868 (boot_mod_SOURCES): new variable
36869 (boot_mod_CFLAGS): likewise
36870 (boot_mod_LDFLAGS): likewise
36871 * conf/i386-efi.rmk: likewise
36872 * conf/i386-ieee1275.rmk: likewise
36873 * conf/i386-pc.rmk: likewise
36874 * conf/powerpc-ieee1275.rmk: likewise
36875 * conf/sparc64-ieee1275.rmk: likewise
36876 * conf/x86_64-efi.rmk: likewise
36877 * include/grub/i386/pc/biosnum.h: new file
36878 * lib/i386/pc/biosnum.c: likewise
36879 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36880 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36881 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
36882
36883 2009-06-10 Pavel Roskin <proski@gnu.org>
36884
36885 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36886 Use separate variables. Read only the file size at the end, but
36887 not the checksum that we don't use.
36888
36889 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36890 Adjust all callers.
36891
36892 * kern/ieee1275/openfw.c: Remove libc includes.
36893 * kern/ieee1275/cmain.c: Likewise.
36894 * include/grub/ieee1275/ieee1275.h: Likewise.
36895
36896 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36897 compiler warnings.
36898
36899 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
36900
36901 * Makefile.in: Remove all trailing whitespace.
36902 * conf/i386-pc.rmk: Likewise.
36903 * conf/powerpc-ieee1275.rmk: Likewise.
36904 * conf/sparc64-ieee1275.rmk: Likewise.
36905 * docs/grub.texi: Likewise.
36906 * docs/texinfo.tex: Likewise.
36907 * disk/fs_uuid.c: Likewise.
36908 * disk/lvm.c: Likewise.
36909 * disk/scsi.c: Likewise.
36910 * disk/ata.c: Likewise.
36911 * disk/ieee1275/ofdisk.c: Likewise.
36912 * disk/i386/pc/biosdisk.c: Likewise.
36913 * disk/host.c: Likewise.
36914 * disk/raid.c: Likewise.
36915 * disk/efi/efidisk.c: Likewise.
36916 * disk/usbms.c: Likewise.
36917 * disk/memdisk.c: Likewise.
36918 * disk/loopback.c: Likewise.
36919 * kern/powerpc/dl.c: Likewise.
36920 * kern/device.c: Likewise.
36921 * kern/dl.c: Likewise.
36922 * kern/sparc64/dl.c: Likewise.
36923 * kern/ieee1275/ieee1275.c: Likewise.
36924 * kern/term.c: Likewise.
36925 * kern/fs.c: Likewise.
36926 * kern/i386/dl.c: Likewise.
36927 * kern/i386/pc/startup.S: Likewise.
36928 * kern/i386/pc/init.c: Likewise.
36929 * kern/i386/pc/mmap.c: Likewise.
36930 * kern/i386/pc/lzo1x.S: Likewise.
36931 * kern/i386/ieee1275/init.c: Likewise.
36932 * kern/i386/realmode.S: Likewise.
36933 * kern/i386/tsc.c: Likewise.
36934 * kern/partition.c: Likewise.
36935 * kern/corecmd.c: Likewise.
36936 * kern/file.c: Likewise.
36937 * kern/efi/efi.c: Likewise.
36938 * kern/efi/init.c: Likewise.
36939 * kern/efi/mm.c: Likewise.
36940 * kern/main.c: Likewise.
36941 * kern/err.c: Likewise.
36942 * kern/env.c: Likewise.
36943 * kern/disk.c: Likewise.
36944 * kern/generic/millisleep.c: Likewise.
36945 * kern/generic/rtc_get_time_ms.c: Likewise.
36946 * kern/misc.c: Likewise.
36947 * kern/parser.c: Likewise.
36948 * genmk.rb: Likewise.
36949 * configure.ac: Likewise.
36950 * boot/i386/pc/diskboot.S: Likewise.
36951 * boot/i386/pc/pxeboot.S: Likewise.
36952 * boot/i386/pc/boot.S: Likewise.
36953 * boot/i386/pc/lnxboot.S: Likewise.
36954 * boot/i386/pc/cdboot.S: Likewise.
36955 * parttool/pcpart.c: Likewise.
36956 * video/readers/tga.c: Likewise.
36957 * video/video.c: Likewise.
36958 * video/bitmap.c: Likewise.
36959 * lib/envblk.c: Likewise.
36960 * lib/i386/setjmp.S: Likewise.
36961 * fs/xfs.c: Likewise.
36962 * fs/afs.c: Likewise.
36963 * fs/fat.c: Likewise.
36964 * fs/ntfs.c: Likewise.
36965 * fs/udf.c: Likewise.
36966 * fs/affs.c: Likewise.
36967 * fs/iso9660.c: Likewise.
36968 * fs/hfs.c: Likewise.
36969 * fs/fshelp.c: Likewise.
36970 * fs/ext2.c: Likewise.
36971 * fs/jfs.c: Likewise.
36972 * fs/reiserfs.c: Likewise.
36973 * fs/hfsplus.c: Likewise.
36974 * fs/minix.c: Likewise.
36975 * fs/cpio.c: Likewise.
36976 * fs/sfs.c: Likewise.
36977 * fs/ufs.c: Likewise.
36978 * efiemu/prepare.c: Likewise.
36979 * efiemu/loadcore_common.c: Likewise.
36980 * efiemu/runtime/efiemu.sh: Likewise.
36981 * efiemu/runtime/efiemu.S: Likewise.
36982 * efiemu/runtime/efiemu.c: Likewise.
36983 * efiemu/pnvram.c: Likewise.
36984 * efiemu/main.c: Likewise.
36985 * efiemu/i386/pc/cfgtables.c: Likewise.
36986 * efiemu/i386/loadcore64.c: Likewise.
36987 * efiemu/i386/loadcore32.c: Likewise.
36988 * efiemu/loadcore.c: Likewise.
36989 * efiemu/symbols.c: Likewise.
36990 * efiemu/mm.c: Likewise.
36991 * include/grub/autoefi.h: Likewise.
36992 * include/grub/datetime.h: Likewise.
36993 * include/grub/term.h: Likewise.
36994 * include/grub/hfs.h: Likewise.
36995 * include/grub/lvm.h: Likewise.
36996 * include/grub/i386/tsc.h: Likewise.
36997 * include/grub/i386/linux.h: Likewise.
36998 * include/grub/i386/xnu.h: Likewise.
36999 * include/grub/i386/efiemu.h: Likewise.
37000 * include/grub/i386/pc/biosdisk.h: Likewise.
37001 * include/grub/i386/pc/memory.h: Likewise.
37002 * include/grub/i386/pc/vbe.h: Likewise.
37003 * include/grub/parttool.h: Likewise.
37004 * include/grub/video.h: Likewise.
37005 * include/grub/memory.h: Likewise.
37006 * include/grub/fs.h: Likewise.
37007 * include/grub/partition.h: Likewise.
37008 * include/grub/xnu.h: Likewise.
37009 * include/grub/efi/api.h: Likewise.
37010 * include/grub/efi/pe32.h: Likewise.
37011 * include/grub/efi/memory.h: Likewise.
37012 * include/grub/multiboot.h: Likewise.
37013 * include/grub/usbdesc.h: Likewise.
37014 * include/grub/multiboot2.h: Likewise.
37015 * include/grub/acpi.h: Likewise.
37016 * include/grub/efiemu/efiemu.h: Likewise.
37017 * include/grub/disk.h: Likewise.
37018 * include/grub/ieee1275/ieee1275.h: Likewise.
37019 * include/grub/net.h: Likewise.
37020 * include/grub/machoload.h: Likewise.
37021 * include/grub/macho.h: Likewise.
37022 * include/multiboot.h: Likewise.
37023 * genmoddep.awk: Likewise.
37024 * normal/main.c: Likewise.
37025 * normal/menu_entry.c: Likewise.
37026 * normal/menu_viewer.c: Likewise.
37027 * normal/completion.c: Likewise.
37028 * normal/cmdline.c: Likewise.
37029 * normal/misc.c: Likewise.
37030 * normal/datetime.c: Likewise.
37031 * bus/usb/usbtrans.c: Likewise.
37032 * bus/usb/ohci.c: Likewise.
37033 * bus/usb/uhci.c: Likewise.
37034 * bus/usb/usb.c: Likewise.
37035 * mmap/efi/mmap.c: Likewise.
37036 * mmap/i386/pc/mmap_helper.S: Likewise.
37037 * mmap/i386/pc/mmap.c: Likewise.
37038 * mmap/i386/mmap.c: Likewise.
37039 * mmap/i386/uppermem.c: Likewise.
37040 * mmap/mmap.c: Likewise.
37041 * commands/acpi.c: Likewise.
37042 * commands/echo.c: Likewise.
37043 * commands/blocklist.c: Likewise.
37044 * commands/loadenv.c: Likewise.
37045 * commands/usbtest.c: Likewise.
37046 * commands/boot.c: Likewise.
37047 * commands/parttool.c: Likewise.
37048 * commands/search.c: Likewise.
37049 * commands/cat.c: Likewise.
37050 * commands/i386/pc/play.c: Likewise.
37051 * commands/i386/pc/drivemap.c: Likewise.
37052 * commands/i386/pc/vbeinfo.c: Likewise.
37053 * commands/i386/pc/acpi.c: Likewise.
37054 * commands/i386/pc/vbetest.c: Likewise.
37055 * commands/ls.c: Likewise.
37056 * commands/cmp.c: Likewise.
37057 * commands/test.c: Likewise.
37058 * commands/efi/acpi.c: Likewise.
37059 * commands/gptsync.c: Likewise.
37060 * commands/help.c: Likewise.
37061 * partmap/amiga.c: Likewise.
37062 * partmap/apple.c: Likewise.
37063 * partmap/acorn.c: Likewise.
37064 * partmap/pc.c: Likewise.
37065 * partmap/sun.c: Likewise.
37066 * partmap/gpt.c: Likewise.
37067 * script/sh/lexer.c: Likewise.
37068 * script/sh/function.c: Likewise.
37069 * font/font.c: Likewise.
37070 * font/font_cmd.c: Likewise.
37071 * loader/powerpc/ieee1275/linux.c: Likewise.
37072 * loader/efi/chainloader.c: Likewise.
37073 * loader/multiboot_loader.c: Likewise.
37074 * loader/macho.c: Likewise.
37075 * loader/i386/multiboot.c: Likewise.
37076 * loader/i386/linux.c: Likewise.
37077 * loader/i386/pc/linux.c: Likewise.
37078 * loader/i386/pc/multiboot2.c: Likewise.
37079 * loader/i386/pc/chainloader.c: Likewise.
37080 * loader/i386/pc/xnu.c: Likewise.
37081 * loader/i386/bsd_trampoline.S: Likewise.
37082 * loader/i386/efi/linux.c: Likewise.
37083 * loader/i386/multiboot_elfxx.c: Likewise.
37084 * loader/i386/bsd_helper.S: Likewise.
37085 * loader/i386/bsd.c: Likewise.
37086 * loader/i386/linux_trampoline.S: Likewise.
37087 * loader/i386/xnu_helper.S: Likewise.
37088 * loader/i386/xnu.c: Likewise.
37089 * loader/i386/bsd_pagetable.c: Likewise.
37090 * loader/i386/multiboot_helper.S: Likewise.
37091 * loader/xnu.c: Likewise.
37092 * loader/xnu_resume.c: Likewise.
37093 * io/gzio.c: Likewise.
37094 * term/efi/console.c: Likewise.
37095 * term/terminfo.c: Likewise.
37096 * term/ieee1275/ofconsole.c: Likewise.
37097 * term/i386/pc/serial.c: Likewise.
37098 * term/i386/pc/vesafb.c: Likewise.
37099 * term/i386/pc/vga.c: Likewise.
37100 * term/usb_keyboard.c: Likewise.
37101 * term/gfxterm.c: Likewise.
37102 * aclocal.m4: Likewise.
37103 * util/lvm.c: Likewise.
37104 * util/grub.d/30_os-prober.in: Likewise.
37105 * util/grub.d/10_hurd.in: Likewise.
37106 * util/console.c: Likewise.
37107 * util/grub-macho2img.c: Likewise.
37108 * util/grub-probe.c: Likewise.
37109 * util/hostfs.c: Likewise.
37110 * util/i386/pc/grub-mkimage.c: Likewise.
37111 * util/i386/pc/grub-setup.c: Likewise.
37112 * util/i386/efi/grub-mkimage.c: Likewise.
37113 * util/grub-mkconfig.in: Likewise.
37114 * util/raid.c: Likewise.
37115 * util/resolve.c: Likewise.
37116 * util/grub-mkdevicemap.c: Likewise.
37117 * util/grub-emu.c: Likewise.
37118 * util/getroot.c: Likewise.
37119 * util/hostdisk.c: Likewise.
37120 * util/usb.c: Likewise.
37121 * util/grub-editenv.c: Likewise.
37122 * util/misc.c: Likewise.
37123
37124 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37125
37126 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37127 `genparttoollist.sh'.
37128 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37129 Add `*.sh' to the list find searches for and change `mdate.sh'
37130 to `mdate-sh'.
37131
37132 2009-06-10 Pavel Roskin <proski@gnu.org>
37133
37134 * include/grub/multiboot2.h: Provide compatibility defines for
37135 multiboot2.h.
37136 * include/multiboot2.h: Include stdint.h only if needed, using
37137 angle brackets.
37138 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37139 grub/multiboot2.h.
37140 * loader/ieee1275/multiboot2.c: Likewise.
37141 * loader/multiboot2.c: Likewise.
37142 * loader/multiboot_loader.c: Likewise.
37143
37144 * configure.ac: Use -nostdlib when probing for the target. It
37145 should not be required to have libc for the target.
37146
37147 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37148 they fail without libc headers for the target.
37149 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37150 exports.
37151 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37152 preprocessor conditionals.
37153
37154 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37155 build system doesn't need to be aware of the tar.c internals.
37156
37157 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37158
37159 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37160
37161 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37162
37163 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37164 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37165
37166 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37167
37168 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37169 aren't available if ata.mod gets used.
37170
37171 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37172
37173 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37174 initialising controller.
37175 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37176
37177 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37178
37179 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37180 to choose between ata and biosdisk module on i386-pc.
37181
37182 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37183
37184 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37185 Subclass and Programming Interface fields in terms of the 3 byte
37186 Class Code register.
37187 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37188
37189 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37190 interface is OHCI. Add grub_dprintf for symmetry with
37191 bus/usb/uhci.c.
37192 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37193 interface is UHCI. Add interf variable for programming
37194 interface. Print interface with class/subclass.
37195
37196 * bus/usb/ohci.c: Set interf with correct field.
37197
37198 * bus/usb/uhci.c: Remove unneeded doubled lines.
37199 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37200 Remove whitespace inside comment.
37201
37202 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37203
37204 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37205 as fallback an equivalent option without depth.
37206
37207 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37208
37209 Not fail if unable to retrieve C/H/S on LBA disks
37210
37211 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37212 if unable to retrieve C/H/S on LBA disks
37213
37214 2009-06-08 Pavel Roskin <proski@gnu.org>
37215
37216 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37217 about aliasing.
37218
37219 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37220
37221 * Makefile.in (uninstall): Remove all $lib_DATA files.
37222
37223 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37224
37225 Bugfix: install on partitionless device
37226
37227 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37228 is a whole disk
37229
37230 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37231
37232 * Makefile.in (uninstall): Remove all $include_DATA files.
37233
37234 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37235
37236 * commands/true.c: New file. Implement the true and false commands.
37237 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37238 (true_mod_SOURCES): New variable.
37239 (true_mod_CFLAGS): Likewise.
37240 (true_mod_LDFLAGS): Likewise.
37241
37242 2009-06-05 Colin D Bennett <colin@gibibit.com>
37243
37244 Optimized font character lookup using binary search instead of linear
37245 search. Fonts now are required to have the character index ordered by
37246 code point.
37247
37248 * font/font.c (load_font_index): Verify that fonts have ordered
37249 character indices.
37250 (find_glyph): Use binary search instead of linear search to find a
37251 character in a font.
37252
37253 2009-06-05 Michael Scherer <misc@mandriva.org>
37254
37255 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37256 uses case sensitive btree.
37257 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37258 only for case insensitive filesystems.
37259
37260 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37261
37262 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37263 * conf/common.rmk (search_mod_CFLAGS): likewise
37264
37265 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37266
37267 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37268 compensate a compiler bug
37269
37270 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37271
37272 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37273 instead of '\b'
37274
37275 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37276
37277 Definitions for creating asm symbols with Apple's CC
37278
37279 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37280 [APPLE_CC] (VARIABLE): likewise
37281
37282 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37283
37284 Disable lnxboot.img when compiled
37285 with Apple's CC
37286
37287 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37288 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37289 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37290 [! APPLE_CC] (CODE_LENG): skip
37291 [! APPLE_CC] (setup_sects): likewise
37292 [! APPLE_CC]: skip filling
37293
37294 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37295
37296 Address in trampolines based on 32-bit registers when compiled
37297 with Apple's CC
37298
37299 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37300 for addresses
37301 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37302
37303 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37304
37305 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37306
37307 * kern/misc.c [APPLE_CC] (memcpy): new function
37308 [APPLE_CC] (memmove): likewise
37309 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37310 (memcpy): define alias conditionally on !APPLE_CC
37311 (memset): likewise
37312 (abort): likewise
37313 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37314 APPLE_CC are defined
37315 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37316 (grub_assert_fail): make prototype conditional
37317
37318 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37319
37320 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37321
37322 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37323 grub-macho2img
37324 (CLEANFILES): add grub-macho2img
37325 (grub_macho2img_SOURCES): new variable
37326 * kern/i386/pc/startup.S (bss_start): new variable
37327 (bss_end): likewise
37328 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37329 * util/grub-macho2img.c: new file
37330
37331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37332
37333 Use objconv when compiling with Apple's CC
37334
37335 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37336 (efiemu64.o): likewise
37337 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37338 when compiling with Apple's CC
37339 (efiemu64_s.o): likewise
37340 * configure.ac: check for objconv when compiling with Apple's CC
37341 * genmk.rb: use objconv for modules when compiled with Apple's CC
37342
37343 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37344
37345 Define segment as well as section when compiling with
37346 Apple's CC
37347
37348 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37349 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37350 (efiemu_convert_pointer): likewise
37351 (efiemu_set_virtual_address_map): likewise
37352 (efiemu_convert_pointer): likewise
37353 (efiemu_getcrc32): likewise
37354 (init_crc32_table): likewise
37355 (reflect): likewise
37356 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37357 (GRUB_MOD_DEP): likewise
37358
37359 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37360
37361 Allow a compilation without -mcmodel=large
37362
37363 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37364 when compiled without -mcmodel=large
37365 (filter_memory_map): remove memory post 4 GiB when compiled
37366 without -mcmodel=large
37367 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37368 TARGET_CFLAGS when -mcmodel=large isn't supported
37369
37370 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37371
37372 Remove nested functions in efiemu core
37373
37374 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37375
37376 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37377
37378 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37379
37380 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37381 temporary storage
37382 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37383 using Apple's CC
37384 (grub_cpu_is_tsc_supported): likewise
37385 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37386
37387 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37388
37389 Absolute addressing through constant with Apple's cc
37390
37391 * kern/i386/pc/startup.S: Define necessary constants
37392 and address through it when using ABS with Apple's CC
37393 * boot/i386/pc/diskboot.S: likewise
37394 * boot/i386/pc/boot.S: likewise
37395 * boot/i386/pc/lnxboot.S: likewise
37396 * boot/i386/pc/cdboot.S: likewise
37397 * mmap/i386/pc/mmap_helper.S: likewise
37398 * commands/i386/pc/drivemap_int13h.S: likewise
37399
37400 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37401
37402 Check if compiler is apple cc
37403
37404 * Makefile.in (ASFLAGS): new variable
37405 (TARGET_ASFLAGS): likewise
37406 (TARGET_MODULE_FORMAT): likewise
37407 (TARGET_APPLE_CC): likewise
37408 (OBJCONV): likewise
37409 (TARGET_IMG_CFLAGS): likewise
37410 (TARGET_CPPFLAGS): add includedir
37411 * configure.ac: call grub_apple_cc and grub_apple_target_cc
37412 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
37413 Check for linker script only if compiler isn't Apple's CC
37414 (TARGET_MODULE_FORMAT): set
37415 (TARGET_APPLE_CC): likewise
37416 (TARGET_ASFLAGS): likewise
37417 (ASFLAGS): likewise
37418 Check for objcopy only if compiler isn't Apple's CC
37419 Check for BSS symbol only if compiler isn't Apple's CC
37420 * genmk.rb: adapt nm options if we use Apple's utils
37421 * aclocal.m4 (grub_apple_cc): new test
37422 (grub_apple_target_cc): likewise
37423
37424 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37425
37426 Simplify sed expressions and improve awk
37427
37428 * Makefile.in (install-local): simplify sed expression
37429 * gencmdlist.sh: likewise
37430 * genmoddep.awk: avoid adding module as a dependency of itself
37431
37432 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37433
37434 Add missing start symbols
37435
37436 * boot/i386/pc/boot.S: add start
37437 * boot/i386/pc/pxeboot.S: likewise
37438
37439 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37440
37441 Fix wrong assumptions with grub-mkimage on EFI
37442
37443 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
37444 (relocate_addresses): consider both r_addend and value at offset
37445 (make_mods_section): zerofill modinfo and header
37446 (convert_elf): write prefix here
37447
37448 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37449
37450 Use .asciz instead of .string
37451
37452 * i386/pc/diskboot.S: use .asciz instead of .string
37453 * i386/pc/boot.S: likewise
37454 * include/grub/dl.h (GRUB_MOD_DEP): likewise
37455 (GRUB_MOD_NAME): likewise
37456
37457 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37458
37459 gfxpayload support
37460
37461 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
37462 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
37463 (grub_video_setup): remove
37464 (grub_video_set_mode): new prototype
37465 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
37466 (vid_mode): remove
37467 (linux_vesafb_res): compile only on PCBIOS
37468 (grub_linux_boot): support gfxpayload
37469 * loader/i386/pc/xnu.c (video_hook): new function
37470 (grub_xnu_set_video): support gfxpayload
37471 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
37472 (DEFAULT_VIDEO_HEIGHT): likewise
37473 (DEFAULT_VIDEO_FLAGS): likewise
37474 (DEFAULT_VIDEO_MODE): new definition
37475 (video_hook): new function
37476 (grub_gfxterm_init): use grub_video_set_mode
37477 * util/grub.d/30_os-prober.in: remove explicit modesetting before
37478 loading xnu
37479 * video/video.c (grub_video_setup): removed
37480 (grub_video_set_mode): new function based on grub_gfxterm_init and
37481 grub_video_setup
37482
37483 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37484
37485 Avoid calling biosdisk in drivemap
37486
37487 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
37488 (revparse_biosdisk): likewise
37489 (list_mappings): derive name from id directly
37490 (grub_cmd_drivemap): use tryparse_diskstring
37491
37492 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37493
37494 Script fixes
37495
37496 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
37497 (grub_lexer_param): add tokenonhold
37498 (grub_script_create_cmdline): remove cmdline. All callers updated
37499 (grub_script_function_create): make functionname
37500 grub_script_arg. All callers updated
37501 (grub_script_execute_argument_to_string): new prototype
37502 * kern/parser.c (state_transitions): reorder
37503 (grub_parser_cmdline_state): fix a bug and make more compact
37504 * script/sh/execute.c (grub_script_execute_argument_to_string):
37505 make global
37506 (grub_script_execute_cmdline): use new format
37507 * script/sh/function.c (grub_script_function_create): make functionname
37508 grub_script_arg. All callers updated
37509 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
37510 (grub_script_yylex): remove
37511 (grub_script_yylex2): renamed to ...
37512 (grub_script_yylex): ...renamed
37513 parse the expressions like a${b}c
37514 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
37515 (GRUB_PARSER_TOKEN_VAR): remove
37516 (GRUB_PARSER_TOKEN_NAME): likewise
37517 ("if"): declare as typeless
37518 ("while"): likewise
37519 ("function"): likewise
37520 ("else"): likewise
37521 ("then"): likewise
37522 ("fi"): likewise
37523 (text): remove
37524 (argument): likewise
37525 (script): accept empty scripts and make exit on error
37526 (arguments): use GRUB_PARSER_TOKEN_ARG
37527 (function): likewise
37528 (command): move error handling to script
37529 (menuentry): move grub_script_lexer_ref before
37530 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
37531 argument. All callers updated
37532
37533 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37534
37535 Prevent GRUB from probing floppies during boot.
37536
37537 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
37538 * commands/search.c (options): Add --no-floppy.
37539 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
37540 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
37541 --no-floppy when searching for UUIDs.
37542
37543 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
37544
37545 Simplify the code duplication in commands/search.c.
37546
37547 * commands/search.c (search_label, search_fs_uuid): Merge into ...
37548 (search_fs): ... this. Update all users.
37549
37550 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
37551
37552 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
37553
37554 2009-05-28 Pavel Roskin <proski@gnu.org>
37555
37556 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
37557 Remove the original symlink explicitly.
37558
37559 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
37560 just one slash. That's how grub_fshelp_find_file() does it.
37561
37562 2009-05-26 Pavel Roskin <proski@gnu.org>
37563
37564 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
37565 to `str'.
37566
37567 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
37568 possibly unused.
37569
37570 2009-05-25 Christian Franke <franke@computer.org>
37571
37572 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
37573 register.
37574 (grub_atapi_identify): Add wait after drive select.
37575 (grub_ata_identify): Do more strict status register check before
37576 calling grub_atapi_identify (). Suppress error message if status
37577 register is 0x00 after command failure. Add status register
37578 check after PIO read to avoid bogus identify due to stuck DRQ.
37579 Thanks to Pavel Roskin for testing.
37580 (grub_device_initialize): Remove unsafe status register check.
37581 Thanks to 'phcoder' for problem report and patch.
37582 Prevent sign extension in debug message.
37583
37584 2009-05-23 Colin D Bennett <colin@gibibit.com>
37585
37586 Cleaned up `include/grub/normal.h'. Grouped prototypes by
37587 definition file, and functions defined in `normal/menu.c' have had
37588 their prototypes moved to `include/grub/menu.h' for consistency.
37589
37590 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
37591 from normal.h.
37592 (grub_menu_get_entry): Likewise.
37593 (grub_menu_get_timeout): Likewise.
37594 (grub_menu_set_timeout): Likewise.
37595 (grub_menu_execute_entry): Likewise.
37596 (grub_menu_execute_with_fallback): Likewise.
37597 (grub_menu_entry_run): Likewise.
37598
37599 * include/grub/normal.h: Re-ordered and grouped function
37600 prototypes by file that the function is defined in.
37601 (grub_menu_execute_callback): Removed; moved to menu.h.
37602 (grub_menu_get_entry): Likewise.
37603 (grub_menu_get_timeout): Likewise.
37604 (grub_menu_set_timeout): Likewise.
37605 (grub_menu_execute_entry): Likewise.
37606 (grub_menu_execute_with_fallback): Likewise.
37607 (grub_menu_entry_run): Likewise.
37608 (grub_menu_addentry): Renamed from this ...
37609 (grub_normal_add_menu_entry): ... to this.
37610
37611 * normal/main.c (grub_menu_addentry): Renamed from this ...
37612 (grub_normal_add_menu_entry): ... to this.
37613
37614 * script/sh/execute.c (grub_script_execute_menuentry): Update
37615 reference to renamed grub_menu_addentry function.
37616
37617 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
37618
37619 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
37620
37621 2009-05-22 Pavel Roskin <proski@gnu.org>
37622
37623 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
37624 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
37625 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
37626 compiling for the i386 targets, but not for the utilities.
37627
37628 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
37629 to grub_uint8_t.
37630 (grub_root_drive): Likewise.
37631 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
37632 remove alignment.
37633 (grub_root_drive): Change size to byte.
37634 (grub_start_addr): Remove.
37635 (grub_end_addr): Likewise.
37636 (grub_apm_bios_info): Likewise.
37637
37638 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
37639
37640 * normal/i386: Remove.
37641 * normal/powerpc: Likewise.
37642 * normal/sparc64: Likewise.
37643 * normal/x86_64: Likewise.
37644
37645 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
37646
37647 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
37648 * loader/i386/linux_trampoline.S: Fix indentation
37649 * loader/i386/xnu_helper.S: Likewise
37650
37651 2009-05-18 Colin D Bennett <colin@gibibit.com>
37652
37653 Display error messages when parsing a Lua statement fails.
37654 Previously, executing a syntactically invalid statement like
37655 ")foo" or "bar;" would silently fail.
37656
37657 * script/lua/grub_main.c (handle_lua_error): New function.
37658 (grub_lua_parse_line): Improved reporting of Lua parser and
37659 execution errors.
37660
37661 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37662
37663 Remove -Werror which causes build to fail on some systems
37664
37665 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
37666 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
37667 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
37668
37669 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
37670
37671 trampoline for linux on 64-bit platform
37672
37673 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
37674 loader/i386/efi/linux_trampoline.S
37675 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
37676 declaration
37677 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
37678 here
37679 * loader/i386/linux_trampoline.S: moved here
37680 * loader/i386/efi/linux.c (allocate_pages): reserve space for
37681 trampoline
37682 (jumpvector): removed
37683 (grub_linux_trampoline_start): new declaration
37684 (grub_linux_trampoline_end): likewise
37685 (grub_linux_boot): use trampoline when on 64-bit platform
37686 * loader/i386/linux.c: likewise
37687
37688 2009-05-16 Pavel Roskin <proski@gnu.org>
37689
37690 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
37691 const to avoid a warning.
37692 (grub_lua_setenv): Likewise.
37693 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
37694 lmsg to fix a warning.
37695
37696 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37697
37698 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
37699 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37700 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
37701 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37702 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37703 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37704 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
37705 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
37706
37707 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
37708
37709 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
37710
37711 2009-05-16 Bean <bean123ch@gmail.com>
37712
37713 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
37714 (lua_mod_SOURCES): New variable.
37715 (lua_mod_CFLAGS): Likewise.
37716 (lua_mod_LDFLAGS): Likewise.
37717
37718 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
37719 (setjmp_mod_SOURCES): New variable.
37720 (setjmp_mod_CFLAGS): Likewise.
37721 (setjmp_LDFLAGS): Likewise.
37722
37723 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
37724 (setjmp_mod_SOURCES): New variable.
37725 (setjmp_mod_CFLAGS): Likewise.
37726 (setjmp_LDFLAGS): Likewise.
37727
37728 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37729 (setjmp_mod_SOURCES): New variable.
37730 (setjmp_mod_CFLAGS): Likewise.
37731 (setjmp_LDFLAGS): Likewise.
37732
37733 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
37734 (setjmp_mod_SOURCES): New variable.
37735 (setjmp_mod_CFLAGS): Likewise.
37736 (setjmp_LDFLAGS): Likewise.
37737
37738 * normal/i386/setjmp.S: Moved from here ...
37739 * lib/i386/setjmp.S: ... Moved here
37740 * normal/x86_64/setjmp.S: Moved from here ...
37741 * lib/x86_64/setjmp.S: ... Moved here
37742 * normal/powerpc/setjmp.S: Moved from here ...
37743 * lib/powerpc/setjmp.S: ... Moved here
37744 * normal/sparc64/setjmp.S: Moved from here ...
37745 * lib/sparc64/setjmp.S: ... Moved here
37746
37747 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
37748 returns_twice in mingw.
37749
37750 * script/lua/grub_lib.c: New file.
37751 * script/lua/grub_lib.h: Likewise.
37752 * script/lua/grub_lua.h: Likewise.
37753 * script/lua/grub_main.c: Likewise.
37754 * script/lua/lapi.c: Likewise.
37755 * script/lua/lapi.h: Likewise.
37756 * script/lua/lauxlib.c: Likewise.
37757 * script/lua/lauxlib.h: Likewise.
37758 * script/lua/lbaselib.c: Likewise.
37759 * script/lua/lcode.c: Likewise.
37760 * script/lua/lcode.h: Likewise.
37761 * script/lua/ldblib.c: Likewise.
37762 * script/lua/ldebug.c: Likewise.
37763 * script/lua/ldebug.h: Likewise.
37764 * script/lua/ldo.c: Likewise.
37765 * script/lua/ldo.h: Likewise.
37766 * script/lua/ldump.c: Likewise.
37767 * script/lua/lfunc.c: Likewise.
37768 * script/lua/lfunc.h: Likewise.
37769 * script/lua/lgc.c: Likewise.
37770 * script/lua/lgc.h: Likewise.
37771 * script/lua/linit.c: Likewise.
37772 * script/lua/liolib.c: Likewise.
37773 * script/lua/llex.c: Likewise.
37774 * script/lua/llex.h: Likewise.
37775 * script/lua/llimits.h: Likewise.
37776 * script/lua/lmathlib.c: Likewise.
37777 * script/lua/lmem.c: Likewise.
37778 * script/lua/lmem.h: Likewise.
37779 * script/lua/loadlib.c: Likewise.
37780 * script/lua/lobject.c: Likewise.
37781 * script/lua/lobject.h: Likewise.
37782 * script/lua/lopcodes.c: Likewise.
37783 * script/lua/lopcodes.h: Likewise.
37784 * script/lua/loslib.c: Likewise.
37785 * script/lua/lparser.c: Likewise.
37786 * script/lua/lparser.h: Likewise.
37787 * script/lua/lstate.c: Likewise.
37788 * script/lua/lstate.h: Likewise.
37789 * script/lua/lstring.c: Likewise.
37790 * script/lua/lstring.h: Likewise.
37791 * script/lua/lstrlib.c: Likewise.
37792 * script/lua/ltable.c: Likewise.
37793 * script/lua/ltable.h: Likewise.
37794 * script/lua/ltablib.c: Likewise.
37795 * script/lua/ltm.c: Likewise.
37796 * script/lua/ltm.h: Likewise.
37797 * script/lua/lua.h: Likewise.
37798 * script/lua/luaconf.h: Likewise.
37799 * script/lua/lualib.h: Likewise.
37800 * script/lua/lundump.c: Likewise.
37801 * script/lua/lundump.h: Likewise.
37802 * script/lua/lvm.c: Likewise.
37803 * script/lua/lvm.h: Likewise.
37804 * script/lua/lzio.c: Likewise.
37805 * script/lua/lzio.h: Likewise.
37806
37807 2009-05-16 Bean <bean123ch@gmail.com>
37808
37809 * include/grub/kernel.h (grub_module_header_types): Add type
37810 OBJ_TYPE_CONFIG.
37811
37812 * kern/main.c (grub_load_config): New function.
37813 (grub_main): Call grub_load_config to read boot config.
37814
37815 * grub-mkimage (generate_image): New parameter config_path.
37816 (options): New option --config.
37817 (main): Parse --config option, and pass it to generate_image.
37818
37819 2009-05-14 Christian Franke <franke@computer.org>
37820
37821 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37822 This fixes build on Cygwin.
37823
37824 2009-05-14 Pavel Roskin <proski@gnu.org>
37825
37826 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37827 jump. This saves two bytes, so the typical case of 2 swapped
37828 drives would fit 32 bytes.
37829
37830 2009-05-13 Pavel Roskin <proski@gnu.org>
37831
37832 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37833 grub_uint32_t to avoid a warning.
37834
37835 * loader/i386/linux.c (allocate_pages): When assigning
37836 real_mode_mem, cast through grub_size_t to fix a warning. The
37837 code already makes sure that the value would fit a pointer.
37838 (grub_linux_setup_video): Cast render_target->data to
37839 grub_size_t to fix a warning.
37840
37841 2009-05-13 Javier Martín <lordhabbit@gmail.com>
37842
37843 * commands/i386/pc/drivemap.c: New file - implement drivemap
37844 command.
37845 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37846 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37847
37848 2009-05-13 Pavel Roskin <proski@gnu.org>
37849
37850 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37851 embedding_area_exists.
37852
37853 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37854
37855 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37856 it easier to understand / work with.
37857 Improve warning messages for cases where there's no embedding area,
37858 or when it is too small (or core.img too large).
37859
37860 2009-05-13 Pavel Roskin <proski@gnu.org>
37861
37862 * loader/i386/pc/multiboot2.c: Add necessary includes for
37863 grub_multiboot2_real_boot().
37864
37865 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37866 PX record is always little-endian. We only need the lower 2
37867 bytes of the mode.
37868
37869 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37870 facilitate code reuse.
37871 (grub_cpio_mount): Use "struct head", not a char buffer. This
37872 fixes a warning reported by gcc 4.4.
37873
37874 * kernel/disk.c (grub_disk_read): Use void pointer for the
37875 buffer.
37876 (grub_disk_write): Use const void pointer for the buffer.
37877 Adjust all callers. Remove unnecessary casts.
37878
37879 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37880
37881 * util/i386/pc/grub-install.in: Update copyright year.
37882
37883 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37884
37885 gptsync
37886
37887 * commands/gptsync.c: new file
37888 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37889 (gptsync_mod_SOURCES): new variable
37890 (gptsync_mod_CFLAGS): likewise
37891 (gptsync_mod_LDFLAGS): likewise
37892 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
37893 new definition
37894 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37895 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37896 * conf/i386-ieee1275.rmk: likewise
37897 * conf/i386-pc.rmk: likewise
37898 * conf/powerpc-ieee1275.rmk: likewise
37899
37900 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37901
37902 Fixed grub-emu
37903
37904 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37905 (grub_dl_ref): likewise
37906
37907 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37908
37909 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37910 split in two functions (one for msdos and one for gpt).
37911
37912 2009-05-08 Pavel Roskin <proski@gnu.org>
37913
37914 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37915 not modified.
37916
37917 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37918 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37919 Initialize them with -1. Add sanity check for bad1. Eliminate
37920 nerr variable.
37921
37922 2009-05-08 David S. Miller <davem@davemloft.net>
37923
37924 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37925
37926 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37927
37928 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
37929 existence.
37930
37931 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
37932
37933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37934 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
37935
37936 2009-05-05 David S. Miller <davem@davemloft.net>
37937
37938 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37939
37940 2009-05-05 Pavel Roskin <proski@gnu.org>
37941
37942 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37943 of grub_dl_ref() and grub_dl_unref().
37944 * commands/parttool.c: Remove preprocessor conditionals around
37945 grub_dl_ref() and grub_dl_unref().
37946 * fs/affs.c: Likewise.
37947 * fs/afs.c: Likewise.
37948 * fs/cpio.c: Likewise.
37949 * fs/ext2.c: Likewise.
37950 * fs/fat.c: Likewise.
37951 * fs/hfs.c: Likewise.
37952 * fs/hfsplus.c: Likewise.
37953 * fs/iso9660.c: Likewise.
37954 * fs/jfs.c: Likewise.
37955 * fs/minix.c: Likewise.
37956 * fs/ntfs.c: Likewise.
37957 * fs/reiserfs.c: Likewise.
37958 * fs/sfs.c: Likewise.
37959 * fs/udf.c: Likewise.
37960 * fs/ufs.c: Likewise.
37961 * fs/xfs.c: Likewise.
37962 * include/grub/dl.h: Likewise.
37963 * loader/xnu.c: Likewise.
37964
37965 2009-05-04 Pavel Roskin <proski@gnu.org>
37966
37967 * commands/acpi.c: Remove unused variable my_mod.
37968 * partmap/amiga.c: Likewise.
37969 * partmap/apple.c: Likewise.
37970 * partmap/gpt.c: Likewise.
37971 * partmap/pc.c: Likewise.
37972 * partmap/sun.c: Likewise.
37973 * term/gfxterm.c: Likewise.
37974 * term/i386/pc/vesafb.c: Likewise.
37975 * term/i386/pc/vga.c: Likewise.
37976
37977 2009-05-04 David S. Miller <davem@davemloft.net>
37978
37979 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37980 pointer args to grub_ieee1275_get_property().
37981
37982 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37983
37984 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37985 devices, and do not traverse down under controller nodes.
37986
37987 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37988 (grub_ofdisk_open): Use it to un-escape "," characters.
37989 * kern/disk.c (find_part_sep): New.
37990 (grub_disk_open): Use it to find the first non-escaped ','
37991 character in the disk name.
37992 * util/ieee1275/devicemap.c (escape_of_path): New.
37993 (grub_util_emit_devicemap_entry): Use it.
37994 * util/sparc64/ieee1275/grub-install.in: Update script to
37995 strip partition specifiers properly by not triggering on
37996 '\' escaped ',' characters.
37997
37998 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37999
38000 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38001 to 0x300.
38002 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38003 resolutions.
38004 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38005 on documentation from Wikipedia).
38006
38007 2009-05-04 Pavel Roskin <proski@gnu.org>
38008
38009 * disk/ata.c: Spelling fixes.
38010 * disk/raid.c: Likewise.
38011 * disk/usbms.c: Likewise.
38012 * disk/dmraid_nvidia.c: Likewise.
38013 * kern/ieee1275/openfw.c: Likewise.
38014 * kern/ieee1275/init.c: Likewise.
38015 * kern/ieee1275/cmain.c: Likewise.
38016 * boot/i386/pc/cdboot.S: Likewise.
38017 * video/readers/png.c: Likewise.
38018 * video/i386/pc/vbe.c: Likewise.
38019 * fs/udf.c: Likewise.
38020 * fs/hfs.c: Likewise.
38021 * fs/reiserfs.c: Likewise.
38022 * efiemu/runtime/efiemu.c: Likewise.
38023 * efiemu/main.c: Likewise.
38024 * efiemu/mm.c: Likewise.
38025 * include/grub/elf.h: Likewise.
38026 * include/grub/xnu.h: Likewise.
38027 * include/grub/usbdesc.h: Likewise.
38028 * include/grub/usb.h: Likewise.
38029 * include/grub/script_sh.h: Likewise.
38030 * include/grub/lib/LzmaEnc.h: Likewise.
38031 * include/grub/efiemu/efiemu.h: Likewise.
38032 * include/grub/command.h: Likewise.
38033 * normal/menu.c: Likewise.
38034 * normal/main.c: Likewise.
38035 * normal/datetime.c: Likewise.
38036 * bus/usb/uhci.c: Likewise.
38037 * mmap/i386/uppermem.c: Likewise.
38038 * mmap/mmap.c: Likewise.
38039 * commands/acpi.c: Likewise.
38040 * commands/test.c: Likewise.
38041 * partmap/apple.c: Likewise.
38042 * font/font.c: Likewise.
38043 * loader/sparc64/ieee1275/linux.c: Likewise.
38044 * loader/macho.c: Likewise.
38045 * loader/i386/bsd_trampoline.S: Likewise.
38046 * loader/i386/bsd.c: Likewise.
38047 * loader/xnu.c: Likewise.
38048 * term/i386/pc/vesafb.c: Likewise.
38049 * term/usb_keyboard.c: Likewise.
38050 * util/resolve.c: Likewise.
38051 * util/getroot.c: Likewise.
38052
38053 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38054
38055 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38056
38057 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38058
38059 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38060 build error.
38061
38062 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38063
38064 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38065 parameter only available on BIOS.
38066
38067 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38068
38069 Removed wrong semicolon in declaration
38070
38071 * grub/misc.h (grub_dprintf): remove semicolon
38072
38073 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38074
38075 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38076 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38077 is done by grub_cmd_linux() now).
38078 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38079 restore video to text mode.
38080 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38081 indicates lack of "vga=" parameter. "vga=0" is mapped to
38082 `GRUB_LINUX_VID_MODE_NORMAL'.
38083
38084 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38085
38086 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38087 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38088 and `normal/script.c'. Add `kern/rescue_reader.c',
38089 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38090 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38091 `grub_script.tab.c'.
38092
38093 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38094 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38096 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38097 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38098
38099 * Makefile.in: Remove duplicated 2008 in Copyright line.
38100
38101 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38102
38103 * util/misc.c (grub_util_warn): New function. Emits a warning
38104 unconditionally.
38105 * include/grub/util/misc.h (grub_util_warn): New declaration.
38106
38107 * util/i386/pc/grub-install.in: Understand --force and pass it down
38108 to grub-setup.
38109
38110 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38111 down to setup().
38112 (setup): Improve error messages and add warnings when requested to
38113 install in odd layouts. Refuse to install using blocklists unless
38114 --force was set.
38115
38116 2009-05-04 martin f. krafft <madduck@madduck.net>
38117
38118 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38119
38120 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38121
38122 Updated copyright year
38123
38124 * fs/hfsplus.c: updated copyright year
38125
38126 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38127
38128 HFS+ UUID
38129
38130 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38131 in the space previously used by unused3
38132 (grub_hfsplus_uuid): new function
38133 (grub_hfsplus_fs): added uuid field
38134
38135 2009-05-03 Pavel Roskin <proski@gnu.org>
38136
38137 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38138 suppress warnings. It's no longer needed.
38139 * disk/host.c: Likewise.
38140 * disk/ata_pthru.c: Likewise.
38141 * disk/loopback.c: Likewise.
38142 * hook/datehook.c: Likewise.
38143 * parttool/pcpart.c: Likewise.
38144 * fs/i386/pc/pxe.c: Likewise.
38145 * fs/ntfscomp.c: Likewise.
38146 * efiemu/main.c: Likewise.
38147 * mmap/mmap.c: Likewise.
38148 * commands/crc.c: Likewise.
38149 * commands/hexdump.c: Likewise.
38150 * commands/hdparm.c: Likewise.
38151 * commands/acpi.c: Likewise.
38152 * commands/echo.c: Likewise.
38153 * commands/minicmd.c: Likewise.
38154 * commands/blocklist.c: Likewise.
38155 * commands/memrw.c: Likewise.
38156 * commands/loadenv.c: Likewise.
38157 * commands/usbtest.c: Likewise.
38158 * commands/lsmmap.c: Likewise.
38159 * commands/boot.c: Likewise.
38160 * commands/parttool.c: Likewise.
38161 * commands/configfile.c: Likewise.
38162 * commands/search.c: Likewise.
38163 * commands/ieee1275/suspend.c: Likewise.
38164 * commands/cat.c: Likewise.
38165 * commands/i386/pc/pxecmd.c: Likewise.
38166 * commands/i386/pc/play.c: Likewise.
38167 * commands/i386/pc/halt.c: Likewise.
38168 * commands/i386/pc/vbeinfo.c: Likewise.
38169 * commands/i386/pc/vbetest.c: Likewise.
38170 * commands/lspci.c: Likewise.
38171 * commands/date.c: Likewise.
38172 * commands/handler.c: Likewise.
38173 * commands/ls.c: Likewise.
38174 * commands/test.c: Likewise.
38175 * commands/cmp.c: Likewise.
38176 * commands/efi/loadbios.c: Likewise.
38177 * commands/efi/fixvideo.c: Likewise.
38178 * commands/halt.c: Likewise.
38179 * commands/help.c: Likewise.
38180 * commands/reboot.c: Likewise.
38181 * hello/hello.c: Likewise.
38182 * script/sh/main.c: Likewise.
38183 * loader/xnu.c: Likewise.
38184 * term/terminfo.c: Likewise.
38185 * term/i386/pc/serial.c: Likewise.
38186 * term/usb_keyboard.c: Likewise.
38187
38188 2009-05-03 David S. Miller <davem@davemloft.net>
38189
38190 * normal/menu.c: Include grub/parser.h
38191
38192 2009-05-03 Pavel Roskin <proski@gnu.org>
38193
38194 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38195 not char*.
38196 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38197 Suggested by Javier Martín <lordhabbit@gmail.com>
38198
38199 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38200 efiemu??.o doesn't exist.
38201 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38202 copying.
38203
38204 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38205
38206 FreeBSD 64-bit support
38207
38208 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38209 and loader/i386/bsd_trampoline.S
38210 (bsd_mod_ASFLAGS): new variable
38211 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38212 (FREEBSD_MODTYPE_KERNEL64): likewise
38213 (grub_bsd64_trampoline_start): likewise
38214 (grub_bsd64_trampoline_end): likewise
38215 (grub_bsd64_trampoline_selfjump): likewise
38216 (grub_bsd64_trampoline_gdt): likewise
38217 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38218 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38219 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38220 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38221 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38222 of "attrib" member
38223 * loader/i386/bsd_pagetable.c: new file
38224 * loader/i386/bsd_trampoline.S: likewise
38225 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38226 (ALIGN_VAR): likewise
38227 (entry_hi): new variable
38228 (kern_end_mdofs): likewise
38229 (is_64bit): likewise
38230 (grub_freebsd_add_meta): use ALIGN_VAR
38231 (grub_e820_mmap): new declaration
38232 (grub_freebsd_add_mmap): new function
38233 (grub_freebsd_add_meta_module): support 64 bit kernels
38234 (grub_freebsd_list_modules): use ALIGN_VAR
38235 (gdt_descriptor): new declaration
38236 (grub_freebsd_boot): support 64 bit kernels
38237 (grub_bsd_elf64_hook): new function
38238 (grub_bsd_load_elf): support elf64
38239
38240 2009-05-03 Bean <bean123ch@gmail.com>
38241
38242 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38243 after we get the result of if statement.
38244
38245 2009-05-03 Bean <bean123ch@gmail.com>
38246
38247 * Makefile.in (enable_efiemu): New variable.
38248
38249 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38250 set.
38251 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38252 path.
38253 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38254 path, add -mno-red-zone option.
38255 (efiemu64_s.o): Likewise.
38256 (efiemu64.o): Use macro $^ for source file.
38257
38258 * configure.ac (--enable-efiemu): New option.
38259
38260 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38261
38262 xnu support
38263
38264 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38265 (pkglib_MODULES): add xnu.mod
38266 (xnu_mod_SOURCES): new variable
38267 (xnu_mod_CFLAGS): likewise
38268 (xnu_mod_LDFLAGS): likewise
38269 (xnu_mod_ASFLAGS): likewise
38270 * conf/i386-pc.rmk: likewise
38271 * conf/x86_64-efi.rmk: likewise
38272 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38273 new declaration
38274 * include/grub/i386/macho.h: new file
38275 * include/grub/i386/xnu.h: likewise
38276 * include/grub/macho.h: likewise
38277 * include/grub/machoload.h: likewise
38278 * include/grub/x86_64/macho.h: likewise
38279 * include/grub/x86_64/xnu.h: likewise
38280 * include/grub/xnu.h: likewise
38281 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38282 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38283 * loader/i386/efi/xnu.c: new file
38284 * loader/i386/pc/xnu.c: likewise
38285 * loader/i386/xnu.c: likewise
38286 * loader/i386/xnu_helper.S: likewise
38287 * loader/macho.c: likewise
38288 * loader/xnu.c: likewise
38289 * loader/xnu_resume.c: likewise
38290 * util/grub-dumpdevtree: likewise
38291 * include/grub/i386/pit.h: include grub/err.h
38292 (grub_pit_wait): export
38293 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38294
38295 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38296
38297 Efiemu
38298
38299 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38300 _linux_efi, linux_efi.
38301 new files in grub-emu
38302 new targets efiemu32.o and efiemu64.o
38303 * loader/linux_normal_efiemu.c: likewise
38304 * loader/i386/efi/linux.c: added preliminary efiemu support
38305 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38306 files to copy
38307 * include/grub/autoefi.h: new file
38308 * include/grub/i386/efiemu.h: likewise
38309 * include/grub/i386/pc/efiemu.h: likewise
38310 * include/grub/efi/api.h: add LL suffix when necessary
38311 new definitions relating to tables
38312 * include/grub/efiemu/efiemu.h: new file
38313 * include/grub/efiemu/runtime.h: likewise
38314 * efiemu/prepare.c: likewise
38315 * efiemu/loadcore_common.c: likewise
38316 * efiemu/loadcore64.c: likewise
38317 * efiemu/runtime/efiemu.sh: likewise
38318 * efiemu/runtime/efiemu.S: likewise
38319 * efiemu/runtime/efiemu.c: likewise
38320 * efiemu/runtime/config.h: likewise
38321 * efiemu/prepare32.c: likewise
38322 * efiemu/main.c: likewise
38323 * efiemu/modules/pnvram.c: likewise
38324 * efiemu/modules/i386: likewise
38325 * efiemu/modules/i386/pc: likewise
38326 * efiemu/modules/acpi.c: likewise
38327 * efiemu/i386/pc/cfgtables.c: likewise
38328 * efiemu/i386/loadcore64.c: likewise
38329 * efiemu/i386/loadcore32.c: likewise
38330 * efiemu/prepare64.c: likewise
38331 * efiemu/loadcore.c: likewise
38332 * efiemu/symbols.c: likewise
38333 * efiemu/mm.c: likewise
38334 * efiemu/loadcore32.c: likewise
38335
38336 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38337
38338 ACPI spoofing
38339
38340 * commands/acpi.c: new file
38341 * commands/i386/pc/acpi.c: likewise
38342 * commands/efi/acpi.c: likewise
38343 * include/grub/acpi.h: likewise
38344 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38345 (acpi_mod_SOURCES): new variable
38346 (acpi_mod_CFLAGS): likewise
38347 (acpi_mod_LDFLAGS): likewise
38348 * conf/i386-efi.rmk: likewise
38349 * conf/x86_64-efi.rmk: likewise
38350
38351 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38352
38353 Missing part from mmap patch
38354
38355 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38356 (grub_mmap_unregister)
38357 (grub_mmap_free_and_unregister): use grub_mmap_register
38358
38359 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38360
38361 Mmap services
38362
38363 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38364 * loader/i386/linux.c (find_mmap_size): likewise
38365 (allocate_pages): likewise
38366 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38367 (grub_fill_multiboot_mmap): likewise
38368 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38369 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38370 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38371 (OPENBSD_MMAP_RESERVED): likewise
38372 * include/grub/i386/pc/memory.h: include grub/memory.h
38373 (grub_lower_mem): removed
38374 (grub_upper_mem): likewise
38375 (GRUB_MACHINE_MEMORY_ACPI): new definition
38376 (GRUB_MACHINE_MEMORY_NVS): likewise
38377 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38378 (GRUB_MACHINE_MEMORY_HOLE): likewise
38379 (grub_machine_mmap_register): likewise
38380 (grub_machine_mmap_unregister): likewise
38381 (grub_machine_get_upper): likewise
38382 (grub_machine_get_lower): likewise
38383 (grub_machine_get_post64): likewise
38384 * include/grub/i386/efi/memory.h: new file
38385 * include/grub/x86_64/efi/memory.h: likewise
38386 * include/grub/efi/memory.h: likewise
38387 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38388 (mmap_mod_SOURCES): new variable
38389 (mmap_mod_LDFLAGS): likewise
38390 (mmap_mod_ASFLAGS): likewise
38391 * conf/i386-coreboot.rmk: likewise
38392 * conf/i386-ieee1275.rmk: likewise
38393 * conf/i386-efi.rmk: likewise
38394 * conf/x86_64-efi.rmk: likewise
38395 * include/grub/types.h (UINT_TO_PTR): new macro
38396 (PTR_TO_UINT32): likewise
38397 (PTR_TO_UINT64): likewise
38398 * include/grub/memory.h: new file
38399 * mmap/i386/pc/mmap.c: likewise
38400 * mmap/i386/pc/mmap_helper.S: likewise
38401 * mmap/i386/uppermem.c: likewise
38402 * mmap/mmap.c: likewise
38403 * mmap/efi/mmap.c: likewise
38404 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38405 grub_upper_mem
38406 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38407 (grub_upper_mem): likewise
38408 (grub_machine_init): don't use grub_upper_mem,
38409 make grub_lower_mem local
38410 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
38411 grub_mmap_iterate and grub_mmap_get_upper
38412 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
38413
38414 2009-05-02 Bean <bean123ch@gmail.com>
38415
38416 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
38417 script/sh/parser.y.
38418 (pkglib_MODULES): Add normal.mod and sh.mod.
38419 (normal_SOURCES): New variable.
38420 (normal_mod_CFLAGS): Likewise.
38421 (normal_mod_LDFLAGS): Likewise.
38422 (sh_mod_SOURCES): Likewise.
38423 (sh_mod_CFLAGS): Likewise.
38424 (sh_mod_LDFLAGS): Likewise.
38425
38426 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
38427 script/sh/lexer.c_DEPENDENCIES.
38428 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
38429 kern/rescue_reader.c and kern/rescue_parser.c.
38430 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
38431 (grub_emu_SOURCES): Change source files.
38432 (pkglib_MODULES): Remove normal.mod.
38433 (normal_SOURCES): Removed.
38434 (normal_mod_CFLAGS): Likewise.
38435 (normal_mod_LDFLAGS): Likewise.
38436 * conf/i386-coreboot.rmk: Likewise.
38437 * conf/i386-efi.rmk: Likewise.
38438 * conf/i386-ieee1276.rmk: Likewise.
38439 * conf/powerpc-ieee1275.rmk: Likewise.
38440 * conf/sparc64-ieee1275.rmk: Likewise.
38441 * conf/x86_64-efi.rmk: Likewise.
38442
38443 * include/grub/command.h (grub_command_execute): New inline function.
38444
38445 * include/grub/menu.h (grub_menu_entry): Removed commands field.
38446
38447 * include/grub/normal.h: Remove <grub/setjmp.h>.
38448 (grub_fs_module_list): Moved to normal/autofs.c.
38449 (grub_exit_env): Removed.
38450 (grub_command_execute): Likewise.
38451 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
38452 parameter script.
38453 (read_command_list): New function declaration.
38454 (read_fs_list): Likewise.
38455
38456 * include/parser.h: Include <grub/reader.h>.
38457 (grub_parser_split_cmdline): Change type of getline parameter.
38458 (grub_parser): New structure.
38459 (grub_parser_class): New variable.
38460 (grub_parser_execute): New function declaration.
38461 (grub_register_rescue_parser): Likewise.
38462 (grub_parser_register): New inline function.
38463 (grub_parser_unregister): Likewise.
38464 (grub_parser_get_current): Likewise.
38465 (grub_parser_set_current): Likewise.
38466
38467 * include/grub/reader.h: New file.
38468 * kern/reader.c: Likewise.
38469 * kern/rescue_parser.c: Likewise.
38470 * kern/rescue_reader.c: Likewise.
38471 * normal/autofs.c: Likewise.
38472 * normal/dyncmd.c: Likewise.
38473
38474 * include/grub/rescue.h: Removed.
38475 * normal/command.h: Likewise.
38476
38477 * include/grub/script.h: Moved to ...
38478 * include/grub/script_sh.h: ... Moved here.
38479 * normal/execute.c: Moved to ...
38480 * script/sh/execute.c: ... Moved here.
38481 * normal/function.c: Moved to ...
38482 * script/sh/function.c: ... Moved here.
38483 * normal/lexer.c: Moved to ...
38484 * script/sh/lexer.c: ... Moved here.
38485 * normal/parser.y: Moved to ...
38486 * script/sh/parser.y: ... Moved here.
38487 * normal/script.c: Moved to ...
38488 * script/sh/script.c: ... Moved here.
38489
38490 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
38491 <grub/reader.h>.
38492 (grub_exit_env): Removed.
38493 (fs_module_list): Moved to normal/autofs.c.
38494 (grub_file_getline): Don't handle comment here.
38495 (free_menu): Skip removed field entry->commands.
38496 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
38497 script parameter.
38498 (read_config_file): Removed nested parameter, change getline function.
38499 (grub_enter_normal_mode): Removed.
38500 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
38501 (read_command_list): Likewise.
38502 (autoload_fs_module): Moved to normal/autofs.c.
38503 (read_fs_list): Likewise.
38504 (reader_nested): New variable.
38505 (grub_normal_execute): Run parser.sh to switch to sh parser.
38506 (grub_cmd_rescue): Removed.
38507 (cmd_normal): Removed.
38508 (grub_cmd_normal): Unregister itself at the beginning. Don't register
38509 rescue command.
38510 (grub_cmdline_run): New function.
38511 (grub_normal_reader_init): Likewise.
38512 (grub_normal_read_line): Likewise.
38513 (grub_env_write_pager): Likewise.
38514 (cmdline): New variable.
38515 (grub_normal_reader): Likewise.
38516 (GRUB_MOD_INIT): Register normal reader and set as current, register
38517 pager hook, register normal command with grub_register_command_prio,
38518 so that it won't show up in command.lst.
38519 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
38520 grub_fs_autoload_hook.
38521
38522 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
38523 (grub_menu_execute_entry): Replace grub_script_execute with
38524 grub_parser_execute, change parameter to grub_command_execute.
38525
38526 * normal/menu_text.c: Remove <grub/script.h>.
38527
38528 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
38529 and <grub/parser.h>.
38530 (run): Change editor_getline to use new parser interface. Change
38531 parameter to grub_command_execute.
38532
38533 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
38534 <grub/reader.h> and <grub/parser.h>.
38535 (grub_load_normal_mode): Execute normal command.
38536 (grub_main): Call grub_register_core_commands,
38537 grub_register_rescue_parser and grub_register_rescue_reader, use
38538 grub_reader_loop to enter input loop.
38539
38540 * kern/parser.c (grub_parser_split_cmdline): Change type of
38541 getline parameter.
38542 (grub_parser_class): New variable.
38543 (grub_parser_execute): New function.
38544
38545 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
38546 * loader/multiboot2.c: Likewise.
38547 * loader/sparc64/ieee1275/linux.c: Likewise.
38548
38549 * util/grub-emu.c (read_command_list): New dummy function.
38550
38551 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38552
38553 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
38554 count to 16 for CCISS and IDA.
38555
38556 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
38557
38558 * normal/menu_text.c (grub_wait_after_message): Print a newline
38559 after waiting for user input.
38560
38561 * loader/i386/linux.c: Include `<grub/normal.h>'.
38562 (grub_cmd_linux): Improve the error message about `ask' mode, by
38563 waiting for user input so it's not missed (we can do this, since
38564 user requested interaction).
38565
38566 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38567
38568 Added missing lst to grub-mkrescue
38569
38570 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
38571 and ${input_dir}/parttool.lst
38572
38573 2009-04-30 David S. Miller <davem@davemloft.net>
38574
38575 * util/hostdisk.c (device_is_wholedisk): New function.
38576 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
38577 zero only if device_is_wholedisk() returns true.
38578
38579 * util/hostdisk.c (convert_system_partition_to_system_disk):
38580 Handle virtual disk devices named /dev/vdiskX as found on sparc
38581 and powerpc.
38582
38583 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
38584 lettered partition specifier is found, convert to numbered.
38585
38586 2009-04-29 David S. Miller <davem@davemloft.net>
38587
38588 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
38589 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38590
38591 * normal/command.c: Add missing newline at end of file.
38592
38593 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
38594 warnings.
38595 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
38596 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
38597 grub_ofdisk_read): Likewise, and deal similarly with the fact that
38598 ihandles have a 32-bit type but need to be stored in a "void *".
38599
38600 2009-04-28 Pavel Roskin <proski@gnu.org>
38601
38602 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
38603 not disk. Adjust all dependencies.
38604 (grub_fs_uuid_close): Use grub_device_close(), not
38605 grub_disk_close().
38606
38607 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
38608 parent's partition, don't copy it by reference, as it gets freed
38609 on close.
38610
38611 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38612
38613 Preboot hooks support
38614
38615 * commands/boot.c (struct grub_preboot_t): new declaration
38616 (preboots_head): new variable
38617 (preboots_tail): likewise
38618 (grub_loader_register_preboot_hook): new function
38619 (grub_loader_unregister_preboot_hook): likewise
38620 (grub_loader_set): launch preboot hooks
38621 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
38622 (grub_loader_register_preboot_hook): new declaration
38623 (grub_loader_unregister_preboot_hook): likewise
38624
38625 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
38626
38627 Warning fix
38628
38629 * disk/scsi.c (grub_scsi_open): added missing cast when
38630 calling grub_dprintf
38631
38632 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
38633
38634 Bug and warning fixes
38635
38636 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
38637 declaration
38638 * commands/test.c (test_parse): fixed bug with file tests and corrected
38639 declaration of find_file
38640
38641 2009-04-26 Pavel Roskin <proski@gnu.org>
38642
38643 * Makefile.in: Don't install empty manual pages if help2man is
38644 missing. Use help2man option for output, not shell redirection.
38645
38646 2009-04-26 David S. Miller <davem@davemloft.net>
38647
38648 * util/grub-mkdevicemap.c (make_device_map): Add missing
38649 NESTED_FUNC_ATTR to process_device().
38650
38651 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38652
38653 Test command
38654
38655 * commands/test.c: rewritten to use bash-like test
38656
38657 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
38658
38659 Parttool autoloading and improvements
38660
38661 * Makefile.in (pkglib_DATA): add parttool.lst
38662 (parttool.lst): new target
38663 * genmk.rb: generate parttool-*
38664 (CLEANFILES): add #{parttool}
38665 (PARTTOOLFILES): new variable
38666 * genparttoollist.sh: new file
38667 * parttool/pcpart.c (grub_pcpart_boot): more feedback
38668 (grub_pcpart_type): likewise
38669 * commands/parttool.c (helpmsg): new variable
38670 (grub_cmd_parttool): output help if not enough arguments are supplied
38671 autoload modules
38672 (GRUB_MOD_INIT(parttool)): use helpmsg
38673
38674 2009-04-24 David S. Miller <davem@davemloft.net>
38675
38676 Avoiding opening same device multiple times in device iterator.
38677
38678 * kern/device.c: (grub_device_iterate): Define struct part_ent,
38679 and use it to build a list of partitions in iterate_disk() and
38680 iterate_partition().
38681
38682 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
38683 on disk->data.
38684
38685 * disk/ieee1275/nand.c (grub_nand_iterate): Return
38686 grub_devalias_iterate() result instead of unconditional 0.
38687 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
38688 Also, capture hook return value, either directly or via
38689 grub_children_iterate(), and propagate to caller.
38690 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
38691 grub_children_iterate): Return value is now 'int' instead of
38692 'grub_err_t'.
38693 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
38694 like a proper iterator, stopping when hooks return non-zero.
38695 (grub_devalias_iterate): Likewise.
38696
38697 2009-04-23 David S. Miller <davem@davemloft.net>
38698
38699 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
38700
38701 2009-04-22 David S. Miller <davem@davemloft.net>
38702
38703 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
38704 is larger than address_cells, use that value for address_cells too.
38705
38706 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
38707 IEEE1275_MAX_PATH_LEN): Define.
38708 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
38709 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
38710 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
38711 'devtype'. Explicitly NULL terminate devalias expansion.
38712
38713 * util/sparc64/ieee1275/misc.c: New file.
38714 * util/sparc64/ieee1275/grub-setup.c: New file.
38715 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
38716 * util/sparc64/ieee1275/grub-mkimage.c: New file.
38717 * util/sparc64/ieee1275/grub-install.in: New file.
38718 * util/ieee1275/ofpath.c: New file.
38719 * util/ieee1275/devicemap.c: New file.
38720 * util/devicemap.c: New file.
38721 * util/deviceiter.c: New file.
38722 * kern/sparc64/ieee1275/init.c: New file.
38723 * include/grub/util/ofpath.h: New file.
38724 * include/grub/util/deviceiter.h: New file.
38725 * util/grub-mkdevicemap.c: Include deviceiter.h.
38726 Implement using grub_util_emit_devicemap_entry and
38727 grub_util_iterate_devices.
38728 * conf/i386-corebook.rmk: Build util/deviceiter.c and
38729 util/devicemap.c into grub-mkdevicemap
38730 * conf/i386-efi.rmk: Likewise.
38731 * conf/i386-ieee1275.rmk: Likewise.
38732 * conf/i386-pc.rmk: Likewise.
38733 * conf/powerpc-ieee1275.rmk: Likewise.
38734 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
38735 images and installation utilities. Build kernel as image
38736 instead of as elf binary. Use common rules as much as possible.
38737
38738 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
38739
38740 Correct GPT definition
38741
38742 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38743 of "attrib" member
38744
38745 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
38746
38747 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
38748
38749 2009-04-19 David S. Miller <davem@davemloft.net>
38750
38751 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
38752 (grub_rescue_cmd_linux): Rename to...
38753 (grub_cmd_linux): and fix prototype.
38754 (grub_rescue_cmd_initrd): Rename to...
38755 (grub_cmd_initrd): and fix prototype.
38756 (cmd_linux, cmd_initrd): New.
38757 (GRUB_MOD_INIT(linux)): Use grub_register_command().
38758 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
38759
38760 2009-04-17 Pavel Roskin <proski@gnu.org>
38761
38762 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
38763 format.
38764 (grub_ohci_transfer): Likewise.
38765
38766 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
38767
38768 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
38769 return without a value. Fix inconsistent indentation.
38770
38771 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
38772 match struct grub_fs.
38773
38774 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38775 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38776 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38777 * commands/lspci.c (grub_lspci_iter): Likewise.
38778
38779 2009-04-16 Bean <bean123ch@gmail.com>
38780
38781 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38782 value.
38783
38784 2009-04-15 Pavel Roskin <proski@gnu.org>
38785
38786 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38787 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38788 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38789 definitions.
38790
38791 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38792
38793 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
38794 that no multiple data or metadata areas are supported and `Unknown
38795 metadata header'.
38796
38797 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38798
38799 Move loader out of the kernel
38800
38801 * kern/loader.c: moved to ...
38802 * commands/boot.c: ... moved here
38803 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38804 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38805 * include/grub/kernel.h (grub_machine_fini): export
38806 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38807 (grub_loader_set): likewise
38808 (grub_loader_unset): likewise
38809 (grub_loader_boot): likewise
38810 * conf/common.rmk: new module boot.mod
38811 (pkglib_MODULES): add boot.mod
38812 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38813 (grub_emu_SOURCES): likewise
38814 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38815 (grub_emu_SOURCES): likewise
38816 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38817 (grub_emu_SOURCES): likewise
38818 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38819 (grub_emu_SOURCES): likewise
38820 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38821 (grub_emu_SOURCES): likewise
38822 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38823 (grub_emu_SOURCES): likewise
38824 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
38825 (grub_emu_SOURCES): likewise
38826
38827 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38828
38829 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
38830
38831 * kern/misc.c (grub_itoa): Removed function
38832 (grub_ltoa): likewise
38833 (grub_vsprintf): use grub_lltoa
38834
38835 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38836
38837 Restore grub-emu
38838
38839 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38840 * conf/i386-coreboot.rmk: likewise
38841 * conf/i386-ieee1275.rmk: likewise
38842 * conf/powerpc-ieee1275.rmk: likewise
38843
38844 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
38845
38846 * INSTALL: Add that `./autogen.sh' needs to be run before
38847 `./configure.'.
38848
38849 2009-04-14 Bean <bean123ch@gmail.com>
38850
38851 * Makefile.in (pkglib_DATA): Add handler.lst.
38852 (handler.lst): New rule.
38853
38854 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38855 * conf/i386-coreboot.rmk: Likewise.
38856 * conf/i386-ieee1275.rmk: Likewise.
38857 * conf/i386-efi.rmk: Likewise.
38858 * conf/x86_64-efi.rmk: Likewise.
38859 * conf/powerpc-ieee1275.rmk: Likewise.
38860 * conf/sparc64-ieee1275.rmk: Likewise.
38861
38862 * genhandlerlist.sh: New file.
38863
38864 * genmk.rb: Add rules to generate handler.lst.
38865
38866 * include/grub/normal.h (grub_file_getline): New function definition.
38867 (read_handler_list): Likewise.
38868 (free_handler_list): Likewise.
38869
38870 * include/grub/term.h (grub_term_register_input): Add name parameter
38871 for auto generation of handler.lst.
38872 (grub_term_register_output): Likewise.
38873
38874 * normal/handler.c: New file.
38875
38876 * normal/main.c (get_line): Renamed to grub_file_getline.
38877 (read_config_file): Use the newly renamed grub_file_getline.
38878 (read_command_list): Likewise.
38879 (read_fs_list): Likewise.
38880 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38881 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38882
38883 * term/efi/console.c (grub_console_init): Add name parameter for auto
38884 generation of handler.lst.
38885 * term/gfxterm.c: Likewise.
38886 * term/i386/pc/at_keyboard.c: Likewise.
38887 * term/i386/pc/console.c: Likewise.
38888 * term/i386/pc/serial.c: Likewise.
38889 * term/i386/pc/vesafb.c: Likewise.
38890 * term/i386/pc/vga.c: Likewise.
38891 * term/i386/pc/vga_text.c: Likewise.
38892 * term/ieee1275/ofconsole.c: Likewise.
38893 * term/usb_keyboard.c: Likewise.
38894
38895 2009-04-14 Bean <bean123ch@gmail.com>
38896
38897 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38898 properly with null character.
38899
38900 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38901
38902 * configure: Remove.
38903 * config.h.in: Likewise.
38904 * stamp-h.in: Likewise.
38905 * DISTLIST: Likewise.
38906 * conf/common.mk: Likewise.
38907 * conf/i386-coreboot.mk: Likewise.
38908 * conf/i386-efi.mk: Likewise.
38909 * conf/i386-ieee1275.mk: Likewise.
38910 * conf/i386.mk: Likewise.
38911 * conf/i386-pc.mk: Likewise.
38912 * conf/powerpc-ieee1275.mk: Likewise.
38913 * conf/sparc64-ieee1275.mk: Likewise.
38914 * conf/x86_64-efi.mk: Likewise.
38915
38916 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38917 develop on GRUB.
38918
38919 2009-04-14 John Stanley <jpsinthemix@verizon.net>
38920 David S. Miller <davem@davemloft.net>
38921
38922 * util/hostdisk.c (make_device_name): Fix buffer length
38923 calculations.
38924
38925 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
38926
38927 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38928 <sys/param.h> and <sys/sysctl.h>.
38929 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38930 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38931 opening the device and reset them afterwards.
38932
38933 2009-04-13 Pavel Roskin <proski@gnu.org>
38934
38935 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38936 Reported by John Stanley <jpsinthemix@verizon.net>
38937
38938 2009-04-13 Robert Millan <rmh@aybabtu.com>
38939
38940 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
38941 that name for menuentries when appropriate.
38942
38943 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38944
38945 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38946
38947 2009-04-13 Robert Millan <rmh@aybabtu.com>
38948
38949 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38950 to Linux, simply abort telling the user it's no longer supported.
38951
38952 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38953
38954 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
38955 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
38956 `freebsd_loadenv' only when devices.hints exist.
38957
38958 2009-04-13 Pavel Roskin <proski@gnu.org>
38959
38960 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38961
38962 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
38963
38964 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38965 partition number.
38966 (grub_drive): Likewise.
38967
38968 2009-04-13 David S. Miller <davem@davemloft.net>
38969
38970 * kern/sparc64/ieee1275/ieee1275.c: New file.
38971 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38972 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38973 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38974 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38975 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38976 grub_ieee1275_alloc_physmem): Declare new exported functions.
38977
38978 * include/grub/sparc64/ieee1275/loader.h: New file.
38979 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38980 * include/grub/sparc64/kernel.h: Likewise.
38981 * loader/sparc64/ieee1275/linux.c: Likewise.
38982
38983 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38984 (grub_fstest_SOURCES): Likewise.
38985
38986 * util/hostdisk.c (make_device_name): Do not make any assumptions
38987 about the length of drive names.
38988
38989 * kern/dl.c (grub_dl_load_file): Close file immediately when
38990 we are done using it.
38991
38992 2009-04-12 David S. Miller <davem@davemloft.net>
38993
38994 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38995 values. Noticed by Pavel Roskin.
38996
38997 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
38998 target compiler.
38999
39000 * genmk.rb: Add more flexible image type specification, also
39001 pass --strip-unneeded to objcopy.
39002 * conf/i386-pc.rmk: Use *_FORMAT.
39003 * conf/i386-pc.mk: Rebuilt.
39004
39005 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39006 (OFDISK_HASH_SZ): Define.
39007 (ofdisk_hash): New hash table.
39008 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39009 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39010 instead of device phandle which is not unique.
39011
39012 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39013 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39014 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39015 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39016 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39017 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39018 GRUB_KERNEL_MACHINE_DATA_END): Define.
39019 (grub_kernel_image_size, grub_total_module_size): Declare.
39020
39021 2009-04-12 Pavel Roskin <proski@gnu.org>
39022
39023 * configure.ac: Change the logic when we check for target tools.
39024 Do it when the target is specified and it's different from the
39025 specified value of the host.
39026
39027 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39028
39029 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39030 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39031 GNU/kFreeBSD. Check if a device is a character device. Use
39032 DIOCGMEDIASIZE to get the size.
39033 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39034 support for GNU/kFreeBSD.
39035 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39036 is a character device instead of a block device. Add support for
39037 FreeBSD device names.
39038
39039 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39040 is a character device instead of a block device.
39041
39042 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39043 is a character device instead of a block device.
39044
39045 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39046
39047 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39048 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39049 FreeBSD. Check if a device is a character device. Use
39050 DIOCGMEDIASIZE to get the size.
39051 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39052 support for FreeBSD.
39053 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39054 is a character device instead of a block device. Add support for
39055 FreeBSD device names.
39056
39057 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39058 a character device instead of a block device.
39059 (grub_util_check_char_device): New function.
39060
39061 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39062 a character device instead of a block device.
39063
39064 * include/grub/util/getroot.h (grub_util_check_char_device): New
39065 prototype.
39066
39067 2009-04-11 David S. Miller <davem@davemloft.net>
39068
39069 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39070 static libgcc.
39071 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39072 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39073 function, if present.
39074 (__bswapdi2): Likewise.
39075
39076 * include/grub/sparc64/ieee1275/boot.h: New file.
39077 * boot/sparc64/ieee1275/boot.S: Likewise.
39078 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39079
39080 * kern/misc.c (grub_ltoa): New function.
39081 (grub_vsprintf): Use it to format 'long' integers.
39082
39083 2009-04-10 David S. Miller <davem@davemloft.net>
39084
39085 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39086 slots are of type grub_ieee1275_cell_t.
39087 (grub_nand_read): Likewise.
39088 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39089 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39090 macros are used to compare values in arg/ret block of the call.
39091 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39092 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39093 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39094 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39095 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39096 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39097 grub_ieee1275_close, grub_ieee1275_set_property,
39098 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39099 grub_ieee1275_cell_t.
39100 * kern/ieee1275/openfw.c (grub_map): Likewise.
39101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39102 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39103
39104 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39105 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39106 (grub_devalias_iterate): Likewise.
39107
39108 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39109
39110 UFS improvements
39111
39112 * fs/ufs.c (INODE_NBLOCKS): new definition
39113 (struct grub_ufs_dirent): added fields for non-BSD dirents
39114 (grub_ufs_get_file_block): fixed double indirect handling
39115 (grub_ufs_lookup_symlink): use more robust way to determine whether
39116 symlink is inline
39117 (grub_ufs_find_file): support for non-BSD dirents
39118 (grub_ufs_dir): support for non-BSD dirents
39119
39120 2009-04-10 Bean <bean123ch@gnail.com>
39121
39122 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39123 attribute, otherwise the size would be wrong for i386 platform.
39124
39125 * include/grub/pci.h (grub_pci_read_word): New inline function.
39126 (grub_pci_read_byte): Likewise.
39127 (grub_pci_write): Likewise.
39128 (grub_pci_write_word): Likewise.
39129 (grub_pci_write_byte): Likewise.
39130
39131 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39132
39133 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39134 (find_framebuf): Scan pci to locate the frame buffer address.
39135
39136 * commands/efi/fixvideo.c: New file.
39137
39138 * commands/efi/loadbios.c: Likewise.
39139
39140 * commands/memrw.c: Likewise.
39141
39142 * util/grub-dumpbios.in: Likewise.
39143
39144 * conf/common.rmk (grub-dumpbios): New utility.
39145 (pkglib_MODULES): New module memrw.mod.
39146 (memrw_mod_SOURCE): New macro.
39147 (memrw_mod_CFLAGS): Likewise.
39148 (memrw_mod_LDFLAGS): Likewise.
39149
39150 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39151 fixvideo.mod.
39152 (loadbios_mod_SOURCE): New macro.
39153 (loadbios_mod_CFLAGS): Likewise.
39154 (loadbios_mod_LDFLAGS): Likewise.
39155 (fixvideo_mod_SOURCE): Likewise.
39156 (fixvideo_mod_CFLAGS): Likewise.
39157 (fixvideo_mod_LDFLAGS): Likewise.
39158
39159 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39160 fixvideo.mod.
39161 (loadbios_mod_SOURCE): New macro.
39162 (loadbios_mod_CFLAGS): Likewise.
39163 (loadbios_mod_LDFLAGS): Likewise.
39164 (fixvideo_mod_SOURCE): Likewise.
39165 (fixvideo_mod_CFLAGS): Likewise.
39166 (fixvideo_mod_LDFLAGS): Likewise.
39167
39168 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39169
39170 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39171
39172 2009-04-07 David S. Miller <davem@davemloft.net>
39173
39174 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39175 support for R_SPARC_OLO10 relocations. Fix compile warning for
39176 R_SPARC_WDISP30 case.
39177 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39178
39179 2009-04-06 Pavel Roskin <proski@gnu.org>
39180
39181 * include/grub/misc.h (ARRAY_SIZE): New macro.
39182 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39183 New macro.
39184 * loader/i386/linux.c (allocate_pages): Use free_pages().
39185 (grub_linux_unload): Don't use free_pages().
39186 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39187 wrong index. Treat all other modes as text modes.
39188 (grub_cmd_linux): Initialize vid_mode unconditionally to
39189 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39190
39191 * commands/help.c (print_command_help): Use cmd->prio, not
39192 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39193
39194 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39195
39196 Parttool
39197
39198 * parttool/pcpart.c: new file
39199 * commands/parttool.c: likewise
39200 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39201 (parttool_mod_SOURCES): new variable
39202 (parttool_mod_CFLAGS): likewise
39203 (parttool_mod_LDFLAGS): likewise
39204 (pcpart_mod_SOURCES): likewise
39205 (pcpart_mod_CFLAGS): likewise
39206 (pcpart_mod_LDFLAGS): likewise
39207 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39208 and parttool/pcpart.c
39209 * conf/i386-efi.rmk: likewise
39210 * conf/i386-ieee1275.rmk: likewise
39211 * conf/i386-pc.rmk: likewise
39212 * conf/powerpc-ieee1275.rmk: likewise
39213 * conf/sparc64-ieee1275.rmk: likewise
39214 * conf/x86_64-ieee1275.rmk: likewise
39215
39216 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39217
39218 Support for mtime and further expandability of dir command
39219
39220 * include/grub/lib/datetime.h: moved to ...
39221 * include/grub/datetime.h: ... moved here and added
39222 declaration of grub_unixtime2datetime. All users updated
39223 * include/grub/fs.h: new syntax for dir and mtime functions in
39224 struct grub_fs
39225 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39226 and GRUB_FSHELP_FLAGS_MASK
39227 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39228 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39229 (grub_ext2_mtime): new function
39230 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39231 (grub_hfsplus_mtime): new function
39232 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39233 (GRUB_UFS_ATTR_FILE): likewise
39234 (GRUB_UFS_ATTR_LNK): likewise
39235 (struct grub_ufs_sblock): new fields mtime
39236 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39237 all users updated
39238 (grub_ufs_dir): mtime support
39239 (grub_ufs_mtime): new function
39240 * fs/affs.c (grub_affs_dir): use new dir syntax
39241 * fs/afs.c (grub_afs_dir): likewise
39242 * fs/cpio.c (grub_cpio_dir): likewise
39243 * fs/fat.c (grub_fat_find_dir): likewise
39244 * fs/hfs.c (grub_hfs_dir): likewise
39245 * fs/iso9660.c (grub_iso9660_dir): likewise
39246 * fs/jfs.c (grub_jfs_dir): likewise
39247 * fs/minix.c (grub_minix_dir): likewise
39248 * fs/ntfs.c (grub_ntfs_dir): likewise
39249 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39250 * fs/sfs.c (grub_sfs_dir): likewise
39251 * fs/xfs.c (grub_xfs_dir): likewise
39252 * util/hostfs.c (grub_hostfs_dir): likewise
39253 * lib/datetime.c: moved to ...
39254 * normal/datetime.c: ... moved here
39255 (grub_unixtime2datetime): new function
39256 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39257 * normal/completion.c (iterate_dir): use new dir syntax
39258 * normal/misc.c (grub_normal_print_device_info): tell the
39259 last modification time of a volume
39260 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39261 * conf/common.rmk: added lib/datetime.c to ls.mod
39262 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39263 (normal_mod_SOURCES): likewise
39264 (datetime_mod_SOURCES): Removed lib/datetime.c
39265 * conf/i386-efi.rmk: likewise
39266 * conf/i386-ieee1275.rmk: likewise
39267 * conf/i386-pc.rmk: likewise
39268 * conf/powerpc-ieee1275.rmk: likewise
39269 * conf/sparc64-ieee1275.rmk: likewise
39270 * conf/x86_64-efi.rmk: likewise
39271
39272 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39273
39274 Trim trailing spaces in FAT label and support mtools-like labels
39275
39276 * fs/fat.c (grub_fat_iterate_dir): New function based
39277 on grub_fat_find_dir
39278 (grub_fat_find_dir): use grub_fat_iterate_dir
39279 (grub_fat_label): likewise
39280
39281 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39282
39283 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39284 and command.h
39285 remove extraneous kernel_elf_HEADERS
39286
39287 2009-04-04 Bean <bean123ch@gnail.com>
39288
39289 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39290
39291 * util/misc.c: Likewise.
39292
39293 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39294
39295 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39296 instead of grub_printf.
39297
39298 2009-04-03 Robert Millan <rmh@aybabtu.com>
39299
39300 * loader/i386/linux.c (grub_linux_setup_video): Fill
39301 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39302 values from `mode info' structure instead of hardcoded
39303 values.
39304
39305 2009-04-01 Pavel Roskin <proski@gnu.org>
39306
39307 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39308 unused now.
39309 * genmk.rb: Likewise.
39310 * configure.ac: Likewise.
39311
39312 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39313
39314 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39315 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39316
39317 2009-04-01 David S. Miller <davem@davemloft.net>
39318
39319 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39320 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39321 (grub_setjmp): Mark with 'returns_twice' attribute.
39322 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39323 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39324 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39325
39326 2009-04-01 Robert Millan <rmh@aybabtu.com>
39327
39328 Reapply fix from 2008-07-28 which was accidentally reverted; also
39329 perform the same fix to a similar check in same function.
39330
39331 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39332 with the same number are found, just use issue a warning with
39333 grub_dprintf(), as this error has been reported to be non-fatal.
39334
39335 2009-03-31 Pavel Roskin <proski@gnu.org>
39336
39337 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39338 for cross-compilation.
39339
39340 2009-03-30 Robert Millan <rmh@aybabtu.com>
39341
39342 Fix i386-ieee1275 build.
39343
39344 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39345 Remove declaration.
39346
39347 2009-03-30 Pavel Roskin <proski@gnu.org>
39348
39349 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39350 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39351 zero-terminated, rely only on the strlen value. Fix comparison
39352 of strings differing in length.
39353
39354 2009-03-30 Robert Millan <rmh@aybabtu.com>
39355
39356 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39357 checking for abi version. Improve error messages on BIOS to notify
39358 user about `linux16' command.
39359
39360 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39361
39362 Leak fixes
39363
39364 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39365 in case of collision
39366 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39367
39368 2009-03-29 Robert Millan <rmh@aybabtu.com>
39369
39370 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39371 set `vid_mode' accordingly.
39372 (grub_linux_boot): Process `vid_mode' and set video mode.
39373
39374 2009-03-29 Robert Millan <rmh@aybabtu.com>
39375
39376 * util/grub.d/10_linux.in (linux_entry): New function.
39377 Factorize generation of Linux boot entries.
39378
39379 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39380
39381 Make the format of Environment Block plain text. The boot loader
39382 part is not tested well yet.
39383
39384 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39385 (buffer): Removed.
39386 (envblk): Likewise.
39387 (usage): Remove "info" and "clear". Add "unset". Update the
39388 description of "set", as this does not delete variables any
39389 longer.
39390 (create_envblk_file): Complete rewrite.
39391 (open_envblk_file): Likewise.
39392 (cmd_info): Removed.
39393 (cmd_list): Likewise.
39394 (cmd_set): Likewise.
39395 (cmd_clear): Likewise.
39396 (list_variables): New function.
39397 (write_envblk): Likewise.
39398 (set_variables): Likewise.
39399 (unset_variables): Likewise.
39400 (main): Complete rewrite.
39401
39402 * commands/loadenv.c (buffer): Removed.
39403 (envblk): Likewise.
39404 (open_envblk_file): New function.
39405 (read_envblk_file): Complete rewrite.
39406 (grub_cmd_load_env): Likewise.
39407 (grub_cmd_list_env): Likewise.
39408 (struct blocklist): New struct.
39409 (free_blocklists): New function.
39410 (check_blocklists): Likewise.
39411 (write_blocklists): Likewise.
39412 (grub_cmd_save_env): Complete rewrite.
39413
39414 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
39415 a plain text signature.
39416 (GRUB_ENVBLK_MAXLEN): Removed.
39417 (struct grub_envblk): Complete rewrite.
39418 (grub_envblk_find): Removed.
39419 (grub_envblk_insert): Likewise.
39420 (grub_envblk_open): New prototype.
39421 (grub_envblk_set): Likewise.
39422 (grub_envblk_delete): Put const to VALUE.
39423 (grub_envblk_iterate): Put const to NAME and VALUE.
39424 (grub_envblk_close): New prototype.
39425 (grub_envblk_buffer): New inline function.
39426 (grub_envblk_size): Likewise.
39427
39428 * lib/envblk.c: Include grub/mm.h.
39429 (grub_env_find): Removed.
39430 (grub_envblk_open): New function.
39431 (grub_envblk_close): Likewise.
39432 (escaped_value_len): Likewise.
39433 (find_next_line): Likewise.
39434 (grub_envblk_insert): Removed.
39435 (grub_envblk_set): New function.
39436 (grub_envblk_delete): Complete rewrite.
39437 (grub_envblk_iterate): Likewise.
39438
39439 2009-03-28 Robert Millan <rmh@aybabtu.com>
39440
39441 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
39442 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
39443 variables. Use 16-bit loader.
39444 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
39445 loader.
39446 * kern/i386/loader.S (grub_linux_boot): Rename to ...
39447 (grub_linux16_boot): ... this. Update all users.
39448 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
39449 (grub_linux_boot): ... this. Update all users.
39450
39451 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
39452 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
39453 commands to `linux16' and `initrd16'.
39454 (GRUB_MOD_FINI(linux)): Rename to ...
39455 (GRUB_MOD_FINI(linux16)): ... this.
39456
39457 2009-03-24 Pavel Roskin <proski@gnu.org>
39458
39459 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
39460 not just for compilation.
39461
39462 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
39463
39464 Move multiboot helper out of kernel
39465
39466 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
39467 `loader/i386/multiboot_helper.S'.
39468 * conf/i386-coreboot.rmk: Likewise
39469 * conf/i386-ieee1275.rmk: Likewise
39470
39471 * kern/i386/loader.S: Move multiboot helpers from here...
39472 * loader/i386/multiboot_helper.S: ...moved here
39473 * include/grub/i386/loader.h: Move declarations of multiboot
39474 helpers from here...
39475 * include/grub/i386/multiboot.h: ...moved here
39476 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
39477
39478 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39479
39480 * kern/env.c (grub_env_context_open): Added an argument to specify
39481 whether a new context inherits exported variables from current
39482 one. This is useful when making a sandbox to interpret a config
39483 file.
39484 All callers updated.
39485
39486 * include/grub/env.h (grub_env_context_open): Updated the prototype.
39487
39488 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39489
39490 * kern/env.c (grub_env_context_close): Fix memory leaks.
39491
39492 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
39493
39494 * normal/main.c (grub_normal_execute): Added an argument
39495 BATCH to specify if an interactive interface should be provided
39496 after reading a config file.
39497 All callers updated.
39498 (read_command_list): Prevent being executed twice.
39499 (read_fs_list): Likewise.
39500
39501 * include/grub/normal.h (grub_normal_execute): Updated the
39502 prototype.
39503
39504 2009-03-22 Pavel Roskin <proski@gno.org>
39505
39506 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
39507 _start.
39508 * kern/i386/pc/startup.S: Likewise.
39509 * kern/i386/efi/startup.S: Likewise.
39510 * kern/i386/ieee1275/startup.S: Likewise.
39511 * kern/i386/coreboot/startup.S: Likewise.
39512 * kern/x86_64/efi/startup.S: Likewise.
39513
39514 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
39515 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
39516 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
39517
39518 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
39519
39520 Bugfixes in multiboot for bugs uncovered by solaris kernel.
39521
39522 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
39523 limit detection.
39524 Use vaddr of correct segment for entry_point.
39525
39526 2009-03-21 Bean <bean123ch@gmail.com>
39527
39528 * commands/blocklist.c: Add include file <grub/command.h>, remove
39529 <grub/normal.h> and <grub/arg.h>.
39530 (grub_cmd_blocklist): Use the new command interface.
39531 (GRUB_MOD_INIT): Likewise.
39532 (GRUB_MOD_FINI): Likewise.
39533 * commands/boot.c: Likewise.
39534 * commands/cat.c: Likewise.
39535 * commands/cmp.c: Likewise.
39536 * commands/configfile.c: Likewise.
39537 * commands/crc.c: Likewise.
39538 * commands/echo.c: Likewise.
39539 * commands/halt.c: Likewise.
39540 * commands/handler.c: Likewise.
39541 * commands/hdparm.c: Likewise.
39542 * commands/help.c: Likewise.
39543 * commands/hexdump.c: Likewise.
39544 * commands/loadenv.c: Likewise.
39545 * commands/ls.c: Likewise.
39546 * commands/lsmmap.c: Likewise.
39547 * commands/lspci.c: Likewise.
39548 * commands/loadenv.c: Likewise.
39549 * commands/read.c: Likewise.
39550 * commands/reboot.c: Likewise.
39551 * commands/search.c: Likewise.
39552 * commands/sleep.c: Likewise.
39553 * commands/test.c: Likewise.
39554 * commands/usbtest.c: Likewise.
39555 * commands/videotest.c: Likewise.
39556 * commands/i386/cpuid.c: Likewise.
39557 * commands/i386/pc/halt.c: Likewise.
39558 * commands/i386/pc/play.c: Likewise.
39559 * commands/i386/pc/pxecmd.c: Likewise.
39560 * commands/i386/pc/vbeinfo.c: Likewise.
39561 * commands/i386/pc/vbetest.c: Likewise.
39562 * commands/ieee1275/suspend.c: Likewise.
39563 * disk/loopback.c: Likewise.
39564 * font/font_cmd.c: Likewise.
39565 * hello/hello.c: Likewise.
39566 * loader/efi/appleloader.c: Likewise.
39567 * loader/efi/chainloader.c: Likewise.
39568 * loader/i386/bsd.c: Likewise.
39569 * loader/i386/efi/linux.c: Likewise.
39570 * loader/i386/ieee1275/linux.c: Likewise.
39571 * loader/i386/linux.c: Likewise.
39572 * loader/i386/pc/chainloader.c: Likewise.
39573 * loader/i386/pc/linux.c: Likewise.
39574 * loader/powerpc/ieee1275/linux.c: Likewise.
39575 * loader/multiboot_loader.c: Likewise.
39576 * term/gfxterm.c: Likewise.
39577 * term/i386/pc/serial.c: Likewise.
39578 * term/terminfo.c: Likewise.
39579
39580 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
39581 * term/i386/pc/vga.c: Likewise.
39582 * video/readers/jpeg.c: Likewise.
39583 * video/readers/png.c: Likewise.
39584 * video/readers/tga.c: Likewise.
39585
39586 * util/grub-fstest (cmd_loopback): Removed.
39587 (cmd_blocklist): Likewise.
39588 (cmd_ls): Likewise.
39589 (grub_register_command): Likewise.
39590 (grub_unregister_command): Likewise.
39591 (execute_command): Use grub_command_find to locate command and execute
39592 it.
39593
39594 * include/grub/efi/chainloader.h: Removed.
39595 * loader/efi/chainloader_normal.c: Likewise.
39596 * loader/i386/bsd_normal.c: Likewise.
39597 * loader/i386/pc/chainloader_normal.c: Likewise.
39598 * loader/i386/pc/multiboot_normal.c: Likewise.
39599 * loader/linux_normal.c: Likewise.
39600 * loader/multiboot_loader_normal.c: Likewise.
39601 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39602
39603 * gencmdlist.sh: Scan new registration command grub_register_extcmd
39604 and grub_register_command_p1.
39605
39606 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
39607 kern/command.c, lib/arg.c and commands/extcmd.c.
39608 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
39609 (minicmd_mod_SOURCES): New variable.
39610 (minicmd_mod_CFLAGS): Likewise.
39611 (minicmd_mod_LDFLAGS): Likewise.
39612 (extcmd_mod_SOURCES): Likewise.
39613 (extcmd_mod_CFLAGS): Likewise.
39614 (extcmd_mod_LDFLAGS): Likewise.
39615 (boot_mod_SOURCES): Removed.
39616 (boot_mod_CFLAGS): Likewise.
39617 (boot_mod_LDFLAGS): Likewise.
39618
39619 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
39620 kern/corecmd.c.
39621 (kernel_img_HEADERS): Add command.h.
39622 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
39623 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
39624 and lib/arg.c.
39625 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
39626 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
39627 remove the corresponding normal mode command.
39628 (normal_mod_SOURCES): Remove normal/arg.c.
39629 * conf/i386-coreboot.rmk: Likewise.
39630 * conf/i386-efi.rmk: Likewise.
39631 * conf/i386-ieee1275.rmk: Likewise.
39632 * conf/powerpc-ieee1275.rmk: Likewise.
39633 * conf/x86_64-efi.rmk: Likewise.
39634
39635 * include/grub/arg.h: Move from here ...
39636 * include/grub/lib/arg.h: ... to here.
39637
39638 * normal/arg.c: Move from here ...
39639 * lib/arg.c: ... to here.
39640
39641 * commands/extcmd.c: New file.
39642 * commands/minicmd.c: Likewise.
39643 * include/grub/command.h: Likewise.
39644 * include/grub/extcmd.h: Likewise.
39645 * kern/command.c: Likewise.
39646 * kern/corecmd.c: Likewise.
39647
39648 * kern/list.c (grub_list_iterate): Return int instead of void.
39649 (grub_list_insert): New function.
39650 (grub_prio_list_insert): Likewise.
39651
39652 * kern/rescue.c (grub_rescue_command): Removed.
39653 (grub_rescue_command_list): Likewise.
39654 (grub_rescue_register_command): Likewise.
39655 (grub_rescue_unregister_command): Likewise.
39656 (grub_rescue_cmd_boot): Move to minicmd.c
39657 (grub_rescue_cmd_help): Likewise.
39658 (grub_rescue_cmd_info): Likewise.
39659 (grub_rescue_cmd_boot): Likewise.
39660 (grub_rescue_cmd_testload): Likewise.
39661 (grub_rescue_cmd_dump): Likewise.
39662 (grub_rescue_cmd_rmmod): Likewise.
39663 (grub_rescue_cmd_lsmod): Likewise.
39664 (grub_rescue_cmd_exit): Likewise.
39665 (grub_rescue_print_devices): Moved to corecmd.c.
39666 (grub_rescue_print_files): Likewise.
39667 (grub_rescue_cmd_ls): Likewise.
39668 (grub_rescue_cmd_insmod): Likewise.
39669 (grub_rescue_cmd_set): Likewise.
39670 (grub_rescue_cmd_unset): Likewise.
39671 (attempt_normal_mode): Use grub_command_find to get normal module.
39672 (grub_enter_rescue_mode): Use grub_register_core_commands to register
39673 commands, remove grub_rescue_register_command calls.
39674
39675 * normal/command.c (grub_register_command): Removed.
39676 (grub_unregister_command): Likewise.
39677 (grub_command_find): Likewise.
39678 (grub_iterate_commands): Likewise.
39679 (rescue_command): Likewise.
39680 (export_command): Moved to corecmd.c.
39681 (set_command): Removed.
39682 (unset_command): Likewise.
39683 (insmod_command): Likewise.
39684 (rmmod_command): Likewise.
39685 (lsmod_command): Likewise.
39686 (grub_command_init): Likewise.
39687
39688 * normal/completion.c (iterate_command): Use cmd->prio to check for
39689 active command.
39690 (complete_arguments): Use grub_extcmd_t structure to find options.
39691 (grub_normal_do_completion): Change function grub_iterate_commands to
39692 grub_command_iterate.
39693
39694 * normal/execute.c (grub_script_execute_cmd): No need to parse
39695 argument here.
39696
39697 * normal/main.c (grub_dyncmd_dispatcher): New function.
39698 (read_command_list): Register unload commands as dyncmd.
39699 (grub_cmd_normal): Use new command interface, register rescue,
39700 unregister normal at entry, register normal, unregister rescue at exit.
39701
39702 * include/grub/list.h (grub_list_test_t): New type.
39703 (grub_list_iterate): Return int instead of void.
39704 (grub_list_insert): New function.
39705 (GRUB_AS_NAMED_LIST_P): New macro.
39706 (GRUB_AS_PRIO_LIST): Likewise.
39707 (GRUB_AS_PRIO_LIST_P): Likewise.
39708 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
39709 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
39710 (grub_prio_list): New structure.
39711 (grub_prio_list_insert): New function.
39712 (grub_prio_list_remove): New inline function.
39713
39714 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
39715 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
39716 (GRUB_COMMAND_FLAG_MENU): Likewise.
39717 (GRUB_COMMAND_FLAG_BOTH): Likewise.
39718 (GRUB_COMMAND_FLAG_TITLE): Likewise.
39719 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
39720 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
39721 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
39722 (grub_command): Likewise.
39723 (grub_register_command): Likewise.
39724 (grub_command_find): Likewise.
39725 (grub_iterate_commands): Likewise.
39726 (grub_command_init): Likewise.
39727 (grub_arg_parse): Likewise.
39728 (grub_arg_show_help): Likewise.
39729
39730 * include/grub/rescue.h (grub_rescue_register_command): Removed.
39731 (grub_rescue_unregister_command): Likewise.
39732
39733 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
39734 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
39735 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
39736
39737 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
39738 grub_rescue_cmd_initrd.
39739 * include/grub/i386/loader.h: Likewise.
39740 * include/grub/x86_64/loader.h: Likewise.
39741
39742 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
39743
39744 2009-03-21 Bean <bean123ch@gmail.com>
39745
39746 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
39747 instead of stat in mingw environment.
39748
39749 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
39750
39751 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
39752
39753 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
39754 AC_CONFIG_LINKS.
39755
39756 2009-03-21 Bean <bean123ch@gmail.com>
39757
39758 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
39759 out of range error.
39760
39761 2009-03-18 Michel Dänzer <michel@daenzer.net>
39762
39763 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
39764 checking inode flags for EXT4_EXTENTS_FLAG.
39765
39766 2009-03-18 Robert Millan <rmh@aybabtu.com>
39767
39768 * loader/i386/linux.c: Include `<grub/video.h>' and
39769 `<grub/i386/pc/vbe.h>'..
39770 (grub_linux_setup_video): New function. Loosely based on the EFI one.
39771 (grub_linux32_boot): Attempt to configure video settings with
39772 grub_linux_setup_video().
39773 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
39774 to avoid grub_console_fini() which would step out of graphical mode
39775 unconditionally.
39776
39777 2009-03-14 Robert Millan <rmh@aybabtu.com>
39778
39779 Fix build on powerpc.
39780 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39781
39782 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39783
39784 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39785 background image command.
39786
39787 2009-03-12 Colin D Bennett <colin@gibibit.com>
39788
39789 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39790 (grub_gfxterm_putchar): Extract pairs of identical calls to
39791 draw_cursor out of conditional blocks.
39792
39793 2009-03-11 Pavel Roskin <proski@gnu.org>
39794
39795 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39796 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39797
39798 2009-03-11 Robert Millan <rmh@aybabtu.com>
39799
39800 * loader/i386/multiboot_elfxx.c
39801 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39802
39803 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
39804
39805 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39806 `kern/handler.c'.
39807
39808 2009-03-11 Robert Millan <rmh@aybabtu.com>
39809
39810 * loader/i386/multiboot.c (code_size): New variable.
39811 (grub_multiboot): Define offsets by adding to `code_size' rather
39812 than subtracting from `grub_multiboot_payload_size'. Provide
39813 4-byte alignment to MBI and others by increasing
39814 `boot_loader_name_length' appropriately.
39815
39816 * loader/i386/multiboot_elfxx.c
39817 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39818
39819 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
39820
39821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39822 `fs/ext2.c'.
39823
39824 2009-03-08 Robert Millan <rmh@aybabtu.com>
39825
39826 Make loader/i386/linux.c usable on i386-pc again.
39827
39828 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39829 memory to heap.
39830 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39831 `#error' stanza.
39832
39833 2009-03-07 Bean <bean123ch@gmail.com>
39834
39835 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39836 allocation.
39837
39838 2009-03-06 Robert Millan <rmh@aybabtu.com>
39839
39840 Fix display issue on terminals with screen size other than 80x25
39841 (e.g. gfxterm with resolution higher than 640x480).
39842
39843 * normal/main.c (grub_normal_init_page): Display title text in a
39844 position relative to the center of the terminal instead of relying
39845 on a hardcoded offset.
39846
39847 2009-03-04 Robert Millan <rmh@aybabtu.com>
39848
39849 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39850 installed.
39851
39852 * Makefile.in (host_kernel): New variable.
39853 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39854 scripts instead of just the windows one.
39855 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39856
39857 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39858
39859 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39860 `kern/handler.c'.
39861 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39862 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39865 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39866 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39867
39868 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39869
39870 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39871 or if there's no space for the disk label and print the partition number on a
39872 invalid magic.
39873
39874 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
39875
39876 * util/misc.c: Include <time.h>.
39877 (grub_millisleep): New function.
39878
39879 2009-03-04 Bean <bean123ch@gmail.com>
39880
39881 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39882 another option -mno-red-zone.
39883
39884 * commands/handler.c: Change module description.
39885
39886 * kern/handler.c: Add missing space at the end of description line.
39887
39888 * kern/list.c: Likewise.
39889
39890 2009-03-03 Robert Millan <rmh@aybabtu.com>
39891
39892 Move more components to the relocation area, and fix mbi pointer
39893 handling to use the destination rather than the origin (thanks to
39894 Vladimir Serbinenko for spotting).
39895
39896 * loader/i386/multiboot.c (mbi_dest): New variable.
39897 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39898 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39899 relocation area.
39900
39901 2009-03-01 Bean <bean123ch@gmail.com>
39902
39903 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
39904 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39905 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39906 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39907
39908 * loader/i386/efi/linux.c (acpi_guid): New variable.
39909 (acpi_guid): Likewise.
39910 (EBDA_SEG_ADDR): New constant.
39911 (LOW_MEM_ADDR): Likewise.
39912 (FAKE_EBDA_SEG): Likewise.
39913 (fake_bios_data): New function.
39914 (grub_linux_boot): Call fake_bios_data.
39915
39916 2009-03-01 Bean <bean123ch@gmail.com>
39917
39918 * commands/terminal.c: Removed.
39919
39920 * commands/handler.c: New file.
39921
39922 * include/grub/list.h: Likewise.
39923
39924 * include/grub/handler.h: Likewise.
39925
39926 * kern/list.c: Likewise.
39927
39928 * kern/handler.c: Likewise.
39929
39930 * kern/term.h: Include header file <grub/handler.h>.
39931 (grub_term_input): Move next field to the beginning.
39932 (grub_term_output): Likewise.
39933 (grub_term_input_class): New variable.
39934 (grub_term_output_class): Likewise.
39935 (grub_term_register_input): Changed to inline function.
39936 (grub_term_register_output): Likewise.
39937 (grub_term_unregister_input): Likewise.
39938 (grub_term_unregister_output): Likewise.
39939 (grub_term_set_current_input): Likewise.
39940 (grub_term_set_current_output): Likewise.
39941 (grub_term_get_current_input): Likewise.
39942 (grub_term_get_current_output): Likewise.
39943 (grub_term_iterate_input): Removed.
39944 (grub_term_iterate_output): Likewise.
39945
39946 * kern/term.c (grub_term_list_input): Removed.
39947 (grub_term_list_output): Likewise.
39948 (grub_term_input_class): New variable.
39949 (grub_term_output_class): Likewise.
39950 (grub_cur_term_input): Change variable as macro.
39951 (grub_cur_term_output): Likewise.
39952 (grub_term_register_input): Removed.
39953 (grub_term_register_output): Likewise.
39954 (grub_term_unregister_input): Likewise.
39955 (grub_term_unregister_output): Likewise.
39956 (grub_term_set_current_input): Likewise.
39957 (grub_term_set_current_output): Likewise.
39958 (grub_term_iterate_input): Likewise.
39959 (grub_term_iterate_output): Likewise.
39960 (grub_term_get_current_input): Likewise.
39961 (grub_term_get_current_output): Likewise.
39962
39963 * util/grub-editenv.c: Include header file <grub/handler.h>.
39964 (grub_term_get_current_input): Removed.
39965 (grub_term_get_current_output): Likewise.
39966 (grub_term_input_class): New variable.
39967 (grub_term_output_class): Likewise.
39968
39969 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39970 (grub_term_get_current_output): Likewise.
39971 (grub_term_input_class): New variable.
39972 (grub_term_output_class): Likewise.
39973
39974 * util/grub-probe.c (grub_term_get_current_input): Removed.
39975 (grub_term_get_current_output): Likewise.
39976 (grub_term_input_class): New variable.
39977 (grub_term_output_class): Likewise.
39978
39979 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39980 (grub_term_get_current_output): Likewise.
39981 (grub_term_input_class): New variable.
39982 (grub_term_output_class): Likewise.
39983
39984 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39985 (terminal_mod_SOURCES): Likewise.
39986 (terminal_mod_CFLAGS): Likewise.
39987 (terminal_mod_LDFLAGS): Likewise.
39988
39989 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39990 handler.c.
39991 (kernel_img_SOURCES): Add list.c and handler.c.
39992 (kernel_img_HEADERS): Add list.h and handler.h.
39993
39994 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39995 handler.c.
39996 (kernel_mod_SOURCES): Add list.c and handler.c.
39997 (kernel_mod_HEADERS): Add list.h and handler.h.
39998
39999 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40000 handler.c.
40001 (kernel_elf_SOURCES): Add list.c and handler.c.
40002 (kernel_elf_HEADERS): Add list.h and handler.h.
40003
40004 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40005 handler.c.
40006 (kernel_elf_SOURCES): Add list.c and handler.c.
40007 (kernel_elf_HEADERS): Add list.h and handler.h.
40008
40009 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40010 handler.c.
40011 (kernel_mod_SOURCES): Add list.c and handler.c.
40012 (kernel_mod_HEADERS): Add list.h and handler.h.
40013
40014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40015 handler.c.
40016 (kernel_elf_SOURCES): Add list.c and handler.c.
40017 (kernel_elf_HEADERS): Add list.h and handler.h.
40018
40019 2009-02-27 Robert Millan <rmh@aybabtu.com>
40020
40021 Factorize elf32 / elf64 code in Multiboot loader. This will
40022 prevent it from getting out of sync again.
40023
40024 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40025 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40026 grub_multiboot_load_elf64): Move from here ...
40027 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40028 grub_multiboot_load_elf): ... to here (new file).
40029
40030 2009-02-27 Robert Millan <rmh@aybabtu.com>
40031
40032 * util/grub.d/10_linux.in: Rename "single-user mode" to
40033 "recovery mode".
40034
40035 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40036
40037 Don't leak in SCSI code.
40038 * disk/scsi.c (grub_scsi_close): free `scsi'.
40039
40040 2009-02-27 Robert Millan <rmh@aybabtu.com>
40041
40042 * loader/i386/pc/multiboot.c: Move from here ...
40043 * loader/i386/multiboot.c: ... to here. Update all users.
40044
40045 2009-02-27 Robert Millan <rmh@aybabtu.com>
40046
40047 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40048 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40049
40050 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40051
40052 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40053 b-tree.
40054
40055 2009-02-27 Robert Millan <rmh@aybabtu.com>
40056
40057 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40058 `0x' qualifier as 0 when base is specified as parameter).
40059
40060 2009-02-24 Bean <bean123ch@gmail.com>
40061
40062 * configure.ac: Check for -mcmodel=large in x86_64 target.
40063
40064 * include/grub/efi/api.h (efi_call_10): New macro.
40065 (efi_wrap_10): New function.
40066
40067 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40068 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40069 (GRUB_PE32_REL_BASED_LOW): Likewise.
40070 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40071 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40072 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40073 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40074 (GRUB_PE32_REL_BASED_REL): Likewise.
40075 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40076 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40077 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40078
40079 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40080 issue.
40081
40082 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40083 (efi_wrap_10): New function.
40084
40085 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40086
40087 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40088 MB/MBP model (NV chipset).
40089 (devdata_devs): Add devpath_5 to the list.
40090
40091 * load/i386/efi/linux.c (video_base): Remove variable.
40092 (RGB_MASK): New macro.
40093 (RGB_MAGIC): Likewise.
40094 (LINE_MIN): Likewise.
40095 (LINE_MAX): Likewise.
40096 (FBTEST_STEP): Likewise.
40097 (FBTEST_COUNT): Likewise.
40098 (fb_list): New variable.
40099 (grub_find_video_card): Remove function.
40100 (find_framebuf): New function.
40101 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40102 line length.
40103
40104 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40105 problem for x86_64.
40106
40107 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40108
40109 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40110
40111 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40112 coding tool name.
40113
40114 2009-02-22 Robert Millan <rmh@aybabtu.com>
40115
40116 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40117 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40118 in our relocation, instead of using it directly from heap. Also
40119 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40120
40121 2009-02-21 Robert Millan <rmh@aybabtu.com>
40122
40123 Implement USB keyboard support (based on patch by Marco Gerards)
40124
40125 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40126 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40127 (usb_keyboard_mod_LDFLAGS): New variables.
40128
40129 * term/usb_keyboard.c: New file.
40130
40131 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40132
40133 Corrected wrong declaration
40134
40135 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40136
40137 2009-02-14 Christian Franke <franke@computer.org>
40138
40139 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40140 (grub_lspci_iter): Print class code and programming interface byte.
40141
40142 2009-02-14 Christian Franke <franke@computer.org>
40143
40144 * gendistlist.sh: Ignore `.svn' directories.
40145
40146 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40147
40148 * fs/fat.c: Add 2009 to Copyright line.
40149
40150 2009-02-14 Christian Franke <franke@computer.org>
40151
40152 * commands/hdparm.c: New file. Provides `hdparm' command
40153 which sends ATA commands via grub_disk_ata_pass_through ().
40154
40155 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40156
40157 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40158 and <grub/cpu/io.h> to include/grub/ata.h.
40159 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40160 (GRUB_CDROM_SECTOR_SIZE): Remove.
40161 (GRUB_ATA_*): Move to include/grub/ata.h.
40162 (GRUB_ATAPI_*): Likewise.
40163 (enum grub_ata_commands): Likewise.
40164 (enum grub_ata_timeout_milliseconds): Likewise.
40165 (struct grub_ata_device): Likewise.
40166 (grub_ata_regset): Likewise.
40167 (grub_ata_regget): Likewise.
40168 (grub_ata_regset2): Likewise.
40169 (grub_ata_regget2): Likewise.
40170 (grub_ata_check_ready): Likewise.
40171 (grub_ata_wait_not_busy): Remove static, exported in
40172 include/grub/ata.h.
40173 (grub_ata_wait_drq): Likewise.
40174 (grub_ata_pio_read): Likewise.
40175
40176 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40177 function for hdparm.mod.
40178
40179 * include/grub/ata.h: New file, contains declarations from
40180 disk/ata.c.
40181 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40182
40183 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40184 (grub_disk_ata_pass_through): New exported variable.
40185
40186 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40187
40188 2009-02-13 Colin D Bennett <colin@gibibit.com>
40189
40190 Support multiple fallback entries, and provide an API to support
40191 executing default+fallback menu entries. Renamed the `terminal' menu
40192 viewer to `text'.
40193
40194 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40195 variable declaration.
40196 (grub_menu_execute_callback): New structure declaration.
40197 (grub_menu_execute_callback_t): New typedef.
40198 (grub_menu_execute_with_fallback): New function declaration.
40199 (grub_menu_get_entry): Likewise.
40200 (grub_menu_get_timeout): Likewise.
40201 (grub_menu_set_timeout): Likewise.
40202
40203 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40204
40205 * normal/menu.c (grub_wait_after_message): Moved to
40206 `normal/menu_text.c'.
40207 (draw_border): Likewise.
40208 (print_message): Likewise.
40209 (print_entry): Likewise.
40210 (print_entries): Likewise.
40211 (grub_menu_init_page): Likewise.
40212 (get_entry_number): Likewise.
40213 (print_timeout): Likewise.
40214 (run_menu): Likewise.
40215 (grub_menu_execute_entry): Likewise.
40216 (show_text_menu): Likewise.
40217 (get_and_remove_first_entry_number): New function.
40218 (grub_menu_execute_with_fallback): Likewise.
40219 (get_entry): Renamed to ...
40220 (grub_menu_get_entry): .. this and made it global.
40221 (get_timeout): Renamed to ...
40222 (grub_menu_get_timeout): ... this and made it global.
40223 (set_timeout): Renamed to ...
40224 (grub_menu_set_timeout): ... this and made it global.
40225 (grub_normal_terminal_menu_viewer): Renamed to ...
40226 (grub_normal_text_menu_viewer): ... this.
40227
40228 * normal/menu_text.c: New file. Extracted text-menu-specific code
40229 from normal/menu.c.
40230
40231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40232 (normal_mod_SOURCES): Likewise.
40233
40234 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40235 (normal_mod_SOURCES): Likewise.
40236
40237 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40238 (normal_mod_SOURCES): Likewise.
40239
40240 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40241 (normal_mod_SOURCES): Likewise.
40242
40243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40244 (normal_mod_SOURCES): Likewise.
40245
40246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40247 (normal_mod_SOURCES): Likewise.
40248
40249 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40250 (normal_mod_SOURCES): Likewise.
40251
40252 2009-02-11 Robert Millan <rmh@aybabtu.com>
40253
40254 * util/grub.d/00_header.in: Update old reference to `font' command.
40255
40256 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40257
40258 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40259
40260 Based on patch from Javier Martín.
40261
40262 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40263
40264 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40265 to avoid false positives with FAT.
40266 (grub_fstest_SOURCES): Likewise.
40267 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40268 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40271 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40273
40274 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40275
40276 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40277 bpb.version_specific.fat12_or_fat16.fstype and
40278 bpb.version_specific.fat32.fstype.
40279
40280 2009-02-08 Robert Millan <rmh@aybabtu.com>
40281
40282 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40283
40284 2009-02-08 Robert Millan <rmh@aybabtu.com>
40285
40286 * Makefile.in (host_os, host_cpu): New variables.
40287 (target_os): Remove. Update all users.
40288
40289 2009-02-08 Marco Gerards <marco@gnu.org>
40290
40291 * Makefile.in (enable_grub_emu_usb): New variable.
40292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40293 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40294 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40295 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40296 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40297 `usbtest.mod' and `usbms.mod'.
40298 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40299 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40300 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40301 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40302 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40303 variables.
40304
40305 * disk/usbms.c: New file.
40306
40307 * include/grub/usb.h: Likewise.
40308
40309 * include/grub/usbtrans.h: Likewise.
40310
40311 * include/grub/usbdesc.h: Likewise.
40312
40313 * bus/usb/usbtrans.c: Likewise.
40314
40315 * bus/usb/ohci.c: Likewise.
40316
40317 * bus/usb/uhci.c: Likewise.
40318
40319 * bus/usb/usbhub.c: Likewise.
40320
40321 * bus/usb/usb.c: Likewise.
40322
40323 * commands/usbtest.c: Likewise.
40324
40325 * util/usb.c: Likewise.
40326
40327 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40328
40329 * configure.ac: Test for libusb presence.
40330
40331 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40332
40333 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40334
40335 * kern/mm.c: Add more comments.
40336
40337 2009-02-08 Robert Millan <rmh@aybabtu.com>
40338
40339 Patch from Javier Martín.
40340 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40341 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40342
40343 2009-02-08 Robert Millan <rmh@aybabtu.com>
40344
40345 * fs/cpio.c: Split tar functionality to ...
40346 * fs/tar.c: ... here (new file). Update all users.
40347
40348 2009-02-07 Robert Millan <rmh@aybabtu.com>
40349
40350 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40351 backward-incompatible features.
40352
40353 Based on patch from Javier Martín, with some adjustments.
40354
40355 2009-02-07 Michael Scherer <misc@mandriva.org>
40356
40357 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40358
40359 2009-02-07 Robert Millan <rmh@aybabtu.com>
40360
40361 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40362 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40363 after the RAID stuff.
40364
40365 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40366
40367 Fixes problem when running vbetest command as reported by
40368 Vladimir Serbinenko <phcoder@gmail.com>.
40369
40370 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40371
40372 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40373
40374 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40375 /dev/md/NpN style mdraid devices.
40376
40377 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40378
40379 * util/unifont2pff.rb: Remove.
40380
40381 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40382
40383 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40384 `#'.
40385
40386 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40387
40388 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40389 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40390 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40393 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40394 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40395
40396 2009-02-02 Christian Franke <franke@computer.org>
40397
40398 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40399
40400 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40401
40402 * INSTALL: Note that we now require at least autoconf 2.59 and
40403 that LZO is optional.
40404
40405 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40406
40407 Base on patch on bug #24154 created by Tomas Tintera
40408 <trosos@seznam.cz>.
40409
40410 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
40411
40412 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40413
40414 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
40415 <bero@arklinux.org>.
40416
40417 * normal/parser.y (script_init): Add missing semicolon.
40418
40419 2009-01-31 Colin D Bennett <colin@gibibit.com>
40420
40421 * normal/main.c: Add include to grub/menu_viewer.h.
40422 (free_menu_entry_classes): Added.
40423 (grub_normal_menu_addentry): Added class property handling.
40424 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
40425 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
40426
40427 * normal/menu_viewer.c: New file.
40428
40429 * normal/menu.c (run_menu_entry): Renamed to ...
40430 (grub_menu_execute_entry): ... this and made it as global.
40431 (grub_menu_run): Renamed to ...
40432 (show_text_menu): ... this and made it local.
40433 (show_text_menu): Adapt to new function names.
40434 (grub_normal_terminal_menu_viewer): New global variable.
40435
40436 * include/grub/menu.h: New file.
40437
40438 * include/grub/menu_viewer.h: New file.
40439
40440 * include/grub/normal.h: Added include to grub/menu.h.
40441 (grub_menu_entry): Moved to include/grub/menu.h.
40442 (grub_menu_entry_t): Likewise.
40443 (grub_menu): Likewise.
40444 (grub_menu_t): Likewise.
40445 (grub_normal_terminal_menu_viewer): Added.
40446 (grub_menu_execute_entry): Likewise.
40447 (grub_menu_run): Removed.
40448
40449 * DISTLIST: Added include/grub/menu.h.
40450 Added include/grub/menu_viewer.h.
40451 Added normal/menu_viewer.c.
40452
40453 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
40454
40455 * normal/execute.c (grub_script_execute_menuentry): Changed to use
40456 arglist for menutitle arguments.
40457
40458 * normal/main.c (grub_normal_menu_addentry): Likewise.
40459
40460 * normal/parser.y (menuentry): Likewise.
40461
40462 * normal/script.c (grub_script_create_cmdmenu): Likewise.
40463
40464 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
40465 (grub_script_create_cmdmenu): Likewise.
40466
40467 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
40468
40469 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
40470 changes.
40471
40472 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
40473
40474 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
40475
40476 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
40477
40478 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40479
40480 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40481
40482 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
40483
40484 2009-01-30 Christian Franke <franke@computer.org>
40485
40486 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
40487 in option help text.
40488
40489 2009-01-27 Pavel Roskin <proski@gnu.org>
40490
40491 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
40492
40493 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40494
40495 * commands/lsmmap.c: Add include to grub/machine/memory.h.
40496
40497 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
40498
40499 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
40500 unregister function.
40501
40502 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
40503
40504 * disk/scsi.c (grub_scsi_read): Fix sign problem.
40505
40506 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
40507
40508 * util/grub-mkfont.c (usage): Fix typo.
40509
40510 * util/elf/grub-mkimage.c (load_modules): Fix warning.
40511
40512 2009-01-26 Daniel Mierswa <impulze@impulze.org>
40513
40514 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
40515
40516 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
40517
40518 * kern/misc.c (grub_strcasecmp): New function.
40519 (grub_strcasecmp): Use grub_size_t instead of int for length.
40520 Fix return value.
40521 * include/grub/misc.h: Update function prototypes.
40522
40523 2009-01-26 Robert Millan <rmh@aybabtu.com>
40524
40525 * configure.ac: Fix cross-compilation check.
40526
40527 2009-01-22 Christian Franke <franke@computer.org>
40528
40529 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
40530 (precision) digit string. Allow `.format2' without `format1' (width).
40531 Limit input chars for `%s' output to `format2' if specified. This is
40532 compatible with standard printf ().
40533
40534 2009-01-22 Christian Franke <franke@computer.org>
40535
40536 * disk/ata.c (grub_ata_wait_status): Replace by ...
40537 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
40538 other status bits may be invalid while BSY is asserted.
40539 (grub_ata_check_ready): New function.
40540 (grub_ata_cmd): Removed.
40541 (grub_ata_wait_drq): New function.
40542 (grub_ata_strncpy): Remove inline.
40543 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
40544 and error check now done by grub_ata_wait_drq ().
40545 (grub_ata_pio_write): Likewise.
40546 (grub_atapi_identify): Set DEV before check for !BSY. Use
40547 grub_ata_wait_drq () to wait for data.
40548 (grub_ata_device_initialize): Add status register check to
40549 detect missing SATA slave devices. Add debug messages.
40550 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
40551 (grub_atapi_packet): Set DEV before check for !BSY. Replace
40552 transfer loop by grub_ata_pio_write ().
40553 (grub_ata_identify): Set DEV before check for !BSY. Use
40554 grub_ata_wait_drq () to wait for data.
40555 (grub_ata_setaddress): Set DEV before check for !BSY.
40556 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
40557 read/write in one loop. Fix invalid command on write. Fix incomplete
40558 command on (size % batch) == 0. Add missing error check after write of
40559 last block. Add debug messages.
40560 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
40561
40562 2009-01-19 Christian Franke <franke@computer.org>
40563
40564 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
40565 (GRUB_ATAPI_IREASON_*): Likewise.
40566 (grub_ata_pio_write): Fix timeout error return.
40567 (grub_atapi_identify): Add grub_ata_wait () after cmd.
40568 (grub_atapi_wait_drq): New function.
40569 (grub_atapi_packet): New parameter `size'.
40570 Use grub_atapi_wait_drq () and direct write instead of
40571 grub_ata_pio_write ().
40572 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
40573 reads the number of bytes requested by the device for each DRQ
40574 assertion.
40575 (grub_atapi_write): Remove old implementation, return not
40576 implemented instead.
40577
40578 2009-01-19 Christian Franke <franke@computer.org>
40579
40580 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
40581 of 512 to calculate data size.
40582 (grub_scsi_read12): Likewise.
40583 (grub_scsi_write10): Likewise.
40584 (grub_scsi_write12): Likewise.
40585 (grub_scsi_read): Adjust size according to blocksize.
40586 Add checks for invalid blocksize and unaligned transfer.
40587
40588 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
40589
40590 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
40591
40592 * term/gfxterm.c (write_char): Fix background rendering for wide
40593 width glyphs.
40594
40595 2009-01-19 Robert Millan <rmh@aybabtu.com>
40596
40597 * config.guess: Update to latest version from config git.
40598 * config.sub: Likewise.
40599
40600 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
40601
40602 * Makefile.in: Change font compilation to use new grub-mkfont instead
40603 of java version.
40604
40605 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
40606 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40607 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40608 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40609 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40610 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40611 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40612 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40613 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40614
40615 2009-01-16 Christian Franke <franke@computer.org>
40616
40617 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
40618 (enum grub_ata_timeout_milliseconds): New enum.
40619 (grub_ata_wait_status): Add parameter milliseconds.
40620 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
40621 recovery from timed-out commands.
40622 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
40623 return grub_errno instead of REG_ERROR.
40624 (grub_ata_pio_write): Add parameter milliseconds.
40625 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
40626 Pass milliseconds to grub_ata_wait_status () and
40627 grub_ata_pio_read ().
40628 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
40629 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
40630 grub_ata_wait_status (). Fix IDENTIFY timeout check.
40631 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
40632 It is not suitable for device detection, because DEV bit is ignored,
40633 the command may run too long, and not all devices set the signature
40634 properly.
40635 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
40636 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
40637 Fix device selection, DEV bit must be set first to address the registers
40638 of the correct device.
40639 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
40640 grub_ata_pio_read/write ().
40641 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
40642 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
40643
40644 2009-01-13 Carles Pina i Estany <carles@pina.cat>
40645
40646 * util/grub-editenv.c (main): Use fseeko(), not fseek().
40647
40648 2009-01-13 Bean <bean123ch@gmail.com>
40649
40650 * util/grub-mkfont.c (write_font): forget to remove some debug code.
40651
40652 2009-01-13 Bean <bean123ch@gmail.com>
40653
40654 * Makefile.in: (enable_grub_mkfont): New variable.
40655 (freetype_cflags): Likewise.
40656 (freetype_libs): Likewise.
40657
40658 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
40659 (grub_mkfont_SOURCES): New variable.
40660 (grub_mkfont_CFLAGS): Likewise.
40661 (grub_mkfont_LDFLAGS): Likewise.
40662
40663 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
40664 library if `--enable-grub-mkfont' is requested.
40665 (enable_grub_mkfont): New variable.
40666 (freetype_cflags): Likewise.
40667 (freetype_libs): Likewise.
40668
40669 * util/grub-mkfont.c: New file.
40670
40671 2009-01-12 Christian Franke <franke@computer.org>
40672
40673 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
40674 mode check. Fix setting of compat_use[].
40675
40676 2009-01-10 Robert Millan <rmh@aybabtu.com>
40677
40678 Update a few copyright years which we forgot to do in 2008 (only for
40679 files whose changes made in 2008 were copyright-significant)
40680
40681 * Makefile.in: Add 2008 to Copyright line.
40682 * disk/ieee1275/ofdisk.c: Likewise.
40683 * disk/efi/efidisk.c: Likewise.
40684 * kern/dl.c: Likewise.
40685 * kern/sparc64/ieee1275/init.c: Likewise.
40686 * kern/mm.c: Likewise.
40687 * kern/efi/mm.c: Likewise.
40688 * boot/i386/pc/boot.S: Likewise.
40689 * genfslist.sh: Likewise.
40690 * fs/iso9660.c: Likewise.
40691 * fs/hfs.c: Likewise.
40692 * fs/jfs.c: Likewise.
40693 * fs/minix.c: Likewise.
40694 * fs/ufs.c: Likewise.
40695 * gensymlist.sh.in: Likewise.
40696 * genkernsyms.sh.in: Likewise.
40697 * include/grub/misc.h: Likewise.
40698 * include/grub/types.h: Likewise.
40699 * include/grub/symbol.h: Likewise.
40700 * include/grub/elf.h: Likewise.
40701 * include/grub/kernel.h: Likewise.
40702 * include/grub/disk.h: Likewise.
40703 * include/grub/dl.h: Likewise.
40704 * include/grub/i386/linux.h: Likewise.
40705 * include/grub/i386/pc/biosdisk.h: Likewise.
40706 * include/grub/efi/api.h: Likewise.
40707 * include/grub/efi/pe32.h: Likewise.
40708 * include/grub/util/misc.h: Likewise.
40709 * normal/execute.c: Likewise.
40710 * normal/arg.c: Likewise.
40711 * normal/completion.c: Likewise.
40712 * normal/lexer.c: Likewise.
40713 * normal/parser.y: Likewise.
40714 * normal/misc.c: Likewise.
40715 * commands/i386/pc/vbeinfo.c: Likewise.
40716 * commands/hexdump.c: Likewise.
40717 * commands/terminal.c: Likewise.
40718 * commands/ls.c: Likewise.
40719 * commands/help.c: Likewise.
40720 * partmap/pc.c: Likewise.
40721 * loader/efi/chainloader.c: Likewise.
40722 * loader/multiboot_loader.c: Likewise.
40723 * loader/i386/pc/multiboot2.c: Likewise.
40724 * term/efi/console.c: Likewise.
40725 * term/i386/pc/serial.c: Likewise.
40726 * util/lvm.c: Likewise.
40727 * util/console.c: Likewise.
40728 * util/i386/efi/grub-mkimage.c: Likewise.
40729 * util/raid.c: Likewise.
40730
40731 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
40732
40733 * commands/videotest.c: Removed include to grub/machine/memory.h.
40734
40735 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
40736 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
40737 (video_mod_SOURCES): Removed.
40738 (video_mod_CFLAGS): Likewise.
40739 (video_mod_LDFLAGS): Likewise.
40740 (gfxterm_mod_SOURCES): Likewise.
40741 (gfxterm_mod_CFLAGS): Likewise.
40742 (gfxterm_mod_LDFLAGS): Likewise.
40743 (videotest_mod_SOURCES): Likewise.
40744 (videotest_mod_CFLAGS): Likewise.
40745 (videotest_mod_LDFLAGS): Likewise.
40746 (bitmap_mod_SOURCES): Likewise.
40747 (bitmap_mod_CFLAGS): Likewise.
40748 (bitmap_mod_LDFLAGS): Likewise.
40749 (tga_mod_SOURCES): Likewise.
40750 (tga_mod_CFLAGS): Likewise.
40751 (tga_mod_LDFLAGS): Likewise.
40752 (jpeg_mod_SOURCES): Likewise.
40753 (jpeg_mod_CFLAGS): Likewise.
40754 (jpeg_mod_LDFLAGS): Likewise.
40755 (png_mod_SOURCES): Likewise.
40756 (png_mod_CFLAGS): Likewise.
40757 (png_mod_LDFLAGS): Likewise.
40758
40759 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
40760 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
40761 (video_mod_SOURCES): Added.
40762 (video_mod_CFLAGS): Likewise.
40763 (video_mod_LDFLAGS): Likewise.
40764 (videotest_mod_SOURCES): Likewise.
40765 (videotest_mod_CFLAGS): Likewise.
40766 (videotest_mod_LDFLAGS): Likewise.
40767 (bitmap_mod_SOURCES): Likewise.
40768 (bitmap_mod_CFLAGS): Likewise.
40769 (bitmap_mod_LDFLAGS): Likewise.
40770 (tga_mod_SOURCES): Likewise.
40771 (tga_mod_CFLAGS): Likewise.
40772 (tga_mod_LDFLAGS): Likewise.
40773 (jpeg_mod_SOURCES): Likewise.
40774 (jpeg_mod_CFLAGS): Likewise.
40775 (jpeg_mod_LDFLAGS): Likewise.
40776 (png_mod_SOURCES): Likewise.
40777 (png_mod_CFLAGS): Likewise.
40778 (png_mod_LDFLAGS): Likewise.
40779 (gfxterm_mod_SOURCES): Likewise.
40780 (gfxterm_mod_CFLAGS): Likewise.
40781 (gfxterm_mod_LDFLAGS): Likewise.
40782
40783 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40784 grub/machine/console.h.
40785
40786 2009-01-04 Jerone Young <jerone@gmail.com>
40787
40788 Make on screen instructions clearer
40789
40790 Based on patch created by Jidanni <jidanni@jidanni.org>
40791
40792 * normal/menu.c: print clearer instructions on the screen
40793
40794 2009-01-02 Colin D Bennett <colin@gibibit.com>
40795
40796 New font engine.
40797
40798 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40799 build system and fixed gfxterm.c to work with different sized fonts.
40800
40801 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
40802
40803 * configure: Re-generated.
40804
40805 * DISTLIST: Removed font/manager.c.
40806 Added font/font.c.
40807 Added font/font_cmd.c.
40808
40809 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40810 compilation.
40811
40812 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
40813
40814 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
40815
40816 * kern/term.c: Changed users of grub_utf8_to_ucs4.
40817
40818 * normal/menu.c: Likewise.
40819
40820 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40821 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
40822
40823 * include/grub/font.h: Replaced with new file.
40824
40825 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40826 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40827 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40828 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40829 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
40830 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
40831 fg_red, fg_green, fg_blue, fg_alpha.
40832 (grub_video_adapter): Removed blit_glyph.
40833 (grub_video_blit_glyph): Removed.
40834
40835 * font/manager.c: Removed file.
40836
40837 * font/font.c: New file.
40838
40839 * font/font_cmd.c: Likewise.
40840
40841 * video/video.c (grub_video_blit_glyph): Removed.
40842
40843 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40844 (grub_video_vbe_map_rgba): Likewise.
40845 (grub_video_vbe_unmap_color_int): Likewise.
40846 (grub_video_vbe_blit_glyph): Removed.
40847 (grub_video_vbe_adapter): Removed blit_glyph.
40848
40849 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40850 (get_pixel): Likewise.
40851 (set_pixel): Likewise.
40852
40853 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
40854
40855 * term/gfxterm.c: Adapted to new font engine.
40856
40857 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
40858
40859 * term/i386/pc/vga.c: Likewise.
40860
40861 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
40862
40863 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
40864
40865 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40866
40867 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
40868
40869 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
40870
40871 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
40872
40873 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
40874
40875 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
40876
40877 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40878
40879 * util/grub.d/00_header.in: Changed to use new loadfont command.
40880
40881 * util/grub-mkconfig_lib.in: Changed font extension.
40882
40883 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
40884
40885 * util/getroot.c (grub_util_get_grub_dev): Add support for
40886 /dev/md/dNNpNN style partitionable mdraid devices.
40887
40888 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
40889
40890 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40891 at a time limit of the PXE TFTP API correctly.
40892 (grub_pxefs_close): Likewise.
40893
40894 2008-11-29 Robert Millan <rmh@aybabtu.com>
40895
40896 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
40897 grub_ata_device_initialize() calls.
40898
40899 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
40900
40901 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40902 iteration failed.
40903 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40904
40905 2008-11-28 Robert Millan <rmh@aybabtu.com>
40906
40907 Fix build on powerpc-ieee1275. Based on patch created by
40908 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40909 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40910 `kern/ieee1275/mmap.c'.
40911 * include/grub/powerpc/ieee1275/memory.h: New file.
40912
40913 Provide grub-install on coreboot.
40914 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40915 (grub_install_SOURCES): New variable.
40916 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40917 usable on coreboot.
40918
40919 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
40920
40921 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40922 to `grub_term_input_t'.
40923 (grub_term_get_current_output): Change return type to
40924 `grub_term_output_t'.
40925
40926 2008-11-22 Robert Millan <rmh@aybabtu.com>
40927
40928 Fix breakage on coreboot due to declaration mismatch.
40929 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40930 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40931 grub_vga_text_cls().
40932
40933 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
40934 comments. Avoid copying one more byte than necessary (just in case).
40935
40936 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40937 to 0x200000 (avoids trouble with some OFW implementations, and matches
40938 with the one in Yaboot).
40939 Reported by Manoel Abranches
40940
40941 2008-11-20 Robert Millan <rmh@aybabtu.com>
40942
40943 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40944 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40945
40946 * util/grub-mkconfig_lib.in (grub_warn): New function.
40947 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40948 warnings, to obtain consistent formatting.
40949 * util/grub.d/00_header.in: Likewise.
40950 * util/update-grub_lib.in: Likewise.
40951
40952 * loader/i386/linux.c (allocate_pages): Fix a warning.
40953 Move comment text to `#error' stanza.
40954
40955 Harmonize ieee1275's grub_available_iterate() with the generic
40956 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40957 build problem on i386-ieee1275):
40958 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40959 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40960 parameter `type'. Update all users of this function.
40961 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40962 `kern/ieee1275/mmap.c'.
40963 * kern/ieee1275/init.c
40964 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40965 with ...
40966 (grub_machine_mmap_iterate): ... this.
40967 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40968 return type to `grub_err_t'. Update all implementations of this
40969 function prototype.
40970 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40971 Likewise.
40972
40973 Add `lsmmap' command (lists firmware-provided memory map):
40974 * commands/lsmmap.c: New file.
40975 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40976 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40977 variables.
40978 * conf/powerpc-ieee1275.rmk: Likewise.
40979 * conf/i386-coreboot.rmk: Likewise.
40980 * conf/i386-ieee1275.rmk: Likewise.
40981
40982 2008-11-19 Robert Millan <rmh@aybabtu.com>
40983
40984 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
40985 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40986 constraints to initrd allocation (based on code from
40987 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40988 for Linux to find it.
40989
40990 2008-11-14 Robert Millan <rmh@aybabtu.com>
40991
40992 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40993 order to cope with duplicate slashes.
40994
40995 2008-11-14 Robert Millan <rmh@aybabtu.com>
40996
40997 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40998 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40999 don't want to mess with lower memory, because it is used in the Linux
41000 loader.
41001
41002 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41003 an appropriate place in lower memory, between 0x10000 and 0x90000,
41004 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41005 is in our heap (probably as a result of it being corrupted during
41006 decompression). Add #error instance with comment to explain why this
41007 loader isn't currently usable on PC/BIOS.
41008
41009 2008-11-14 Robert Millan <rmh@aybabtu.com>
41010
41011 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41012 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41013
41014 2008-11-12 Robert Millan <rmh@aybabtu.com>
41015
41016 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41017
41018 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41019 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41020 from here ...
41021 * include/grub/i386/pc/memory.h: ... to here.
41022
41023 2008-11-12 Robert Millan <rmh@aybabtu.com>
41024
41025 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41026 split).
41027
41028 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41029 (grub_console_cur_color, grub_console_real_putchar)
41030 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41031 (grub_console_setcolorstate, grub_console_setcolor)
41032 (grub_console_getcolor): Move from here ...
41033 * include/grub/i386/vga_common.h: ... to here (new file).
41034
41035 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41036 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41037 `<grub/i386/io.h>'.
41038 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41039 `<grub/i386/vga_common.h>'.
41040
41041 2008-11-12 Robert Millan <rmh@aybabtu.com>
41042
41043 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41044 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41045 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41046 variables.
41047 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41048 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41049
41050 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41051 grub_console_init() with call to grub_vga_text_init().
41052 (grub_machine_fini): Replace call to
41053 grub_console_fini() with call to grub_vga_text_fini() and
41054 grub_at_keyboard_fini().
41055
41056 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41057 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41058 (grub_console_setcolorstate, grub_console_setcolor)
41059 (grub_console_getcolor): New function prototypes.
41060
41061 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41062 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41063 (grub_vga_text_setcursor): Static-ize.
41064 (grub_vga_text_term): New structure.
41065 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41066
41067 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41068 (grub_console_cur_color, grub_console_standard_color)
41069 (grub_console_normal_color, grub_console_highlight_color)
41070 (map_char, grub_console_putchar, grub_console_getcharwidth)
41071 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41072 (grub_console_getcolor): Move from here ...
41073 * term/i386/vga_common.c: ... to here (same function names).
41074
41075 2008-11-12 Robert Millan <rmh@aybabtu.com>
41076
41077 Use newly-added Multiboot support in coreboot.
41078
41079 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41080 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41081
41082 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41083 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41084 (codestart): Store the MBI in `startup_multiboot_info' when we're
41085 being loaded using Multiboot.
41086
41087 * kern/i386/coreboot/init.c (grub_machine_init): Move
41088 grub_at_keyboard_init() call to beginning of function (useful for
41089 debugging). Call grub_machine_mmap_init() before attempting to use
41090 grub_machine_mmap_iterate().
41091 (grub_lower_mem, grub_upper_mem): Move from here ...
41092 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41093 here (new file).
41094
41095 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41096 function prototype.
41097
41098 2008-11-12 Robert Millan <rmh@aybabtu.com>
41099
41100 Fix a regression introduced by the at_keyboard.mod split. Because
41101 some terminals are default on some platforms and non-default on
41102 others, the first terminal being registered determines which is
41103 going to be default.
41104
41105 * kern/term.c (grub_term_register_input): If this is the first
41106 terminal being registered, set it as the current one.
41107 (grub_term_register_output): Likewise.
41108
41109 * term/efi/console.c (grub_console_init): Do not call
41110 grub_term_set_current_output() or grub_term_set_current_input().
41111 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41112 * term/i386/pc/console.c (grub_console_init): Likewise.
41113 (grub_console_fini): Do not call grub_term_set_current_input()
41114 (but leave grub_term_set_current_output() to restore text mode).
41115
41116 2008-11-10 Robert Millan <rmh@aybabtu.com>
41117
41118 * util/grub.d/00_header.in: Add backward compatibility check for
41119 versions of terminal.mod that don't understand `terminal_input' or
41120 `terminal_output'.
41121
41122 2008-11-09 Robert Millan <rmh@aybabtu.com>
41123
41124 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41125 `terminal_input' / `terminal_output', not `terminal'.
41126
41127 2008-11-08 Robert Millan <rmh@aybabtu.com>
41128
41129 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41130 (DISTCLEANFILES): Add `build_env.mk'.
41131
41132 2008-11-08 Robert Millan <rmh@aybabtu.com>
41133
41134 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41135 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41136 members. Update all users.
41137 * util/console.c (grub_ncurses_term): Split in ...
41138 (grub_ncurses_term_input): ... this, and ...
41139 (grub_ncurses_term_output): ... this. Update all users.
41140 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41141
41142 2008-11-08 Robert Millan <rmh@aybabtu.com>
41143
41144 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41145 (PKGDATA): Add $(pkgdata_SRCDIR).
41146 (pkglib_BUILDDIR): New variable.
41147 (pkgdata_SRCDIR): New variable.
41148 (build_env.mk): New target.
41149 (include_DATA): New variable.
41150 (install-local): Install $(include_DATA) files in $(includedir).
41151
41152 2008-11-07 Pavel Roskin <proski@gnu.org>
41153
41154 * gendistlist.sh: Use C locale for sorting to ensure consistent
41155 output on all systems.
41156
41157 * util/grub.d/00_header.in: Remove incorrect space before
41158 "serial".
41159
41160 2008-11-07 Robert Millan <rmh@aybabtu.com>
41161
41162 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41163 per specification.
41164 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41165 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41166 (based on find_multi_boot1_header).
41167 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41168 using find_multi_boot2_header(), and abort if neither Multiboot or
41169 Multiboot headers were found.
41170
41171 2008-11-07 Robert Millan <rmh@aybabtu.com>
41172
41173 Modularize at_keyboard.mod:
41174
41175 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41176 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41177 (at_keyboard_mod_LDFLAGS): New variables.
41178
41179 Actual terminal split:
41180
41181 * include/grub/term.h (struct grub_term): Split in ...
41182 (struct grub_term_input): ... this, and ...
41183 (struct grub_term_output): ... this. Update all users.
41184 (grub_term_set_current): Split in ...
41185 (grub_term_set_current_input): ... this, and ...
41186 (grub_term_set_current_output): ... this.
41187 (grub_term_get_current): Split in ...
41188 (grub_term_get_current_input): ... this, and ...
41189 (grub_term_get_current_output): ... this.
41190 (grub_term_register): Split in ...
41191 (grub_term_register_input): ... this, and ...
41192 (grub_term_register_output): ... this.
41193 (grub_term_unregister): Split in ...
41194 (grub_term_unregister_input): ... this, and ...
41195 (grub_term_unregister_output): ... this.
41196 (grub_term_iterate): Split in ...
41197 (grub_term_iterate_input): ... this, and ...
41198 (grub_term_iterate_output): ... this.
41199
41200 * kern/term.c (grub_term_list): Split in ...
41201 (grub_term_list_input): ... this, and ...
41202 (grub_term_list_output): ... this. Update all users.
41203 (grub_cur_term): Split in ...
41204 (grub_cur_term_input): ... this, and ...
41205 (grub_cur_term_output): ... this. Update all users.
41206 (grub_term_set_current): Split in ...
41207 (grub_term_set_current_input): ... this, and ...
41208 (grub_term_set_current_output): ... this.
41209 (grub_term_get_current): Split in ...
41210 (grub_term_get_current_input): ... this, and ...
41211 (grub_term_get_current_output): ... this.
41212 (grub_term_register): Split in ...
41213 (grub_term_register_input): ... this, and ...
41214 (grub_term_register_output): ... this.
41215 (grub_term_unregister): Split in ...
41216 (grub_term_unregister_input): ... this, and ...
41217 (grub_term_unregister_output): ... this.
41218 (grub_term_iterate): Split in ...
41219 (grub_term_iterate_input): ... this, and ...
41220 (grub_term_iterate_output): ... this.
41221
41222 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41223 a check for input and one for output (and only attempt to get keys
41224 from user when input works).
41225
41226 * util/grub-probe.c (grub_term_get_current): Split in ...
41227 (grub_term_get_current_input): ... this, and ...
41228 (grub_term_get_current_output): ... this.
41229 * util/grub-fstest.c: Likewise.
41230 * util/i386/pc/grub-setup.c: Likewise.
41231 * util/grub-editenv.c: Likewise.
41232
41233 Portability adjustments:
41234
41235 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41236 `term/i386/pc/at_keyboard.c'.
41237 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41238 grub_keyboard_controller_init() (now handled by terminal .init).
41239 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41240 grub_at_keyboard_init().
41241 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41242 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41243 at_keyboard.mod via input terminal interface).
41244 * include/grub/i386/coreboot/console.h: Convert into a stub for
41245 `<grub/i386/pc/console.h>'.
41246
41247 Migrate full terminals to new API:
41248
41249 * term/efi/console.c (grub_console_term): Split into ...
41250 (grub_console_term_input): ... this, and ...
41251 (grub_console_term_output): ... this. Update all users.
41252 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41253 (grub_ofconsole_init): Split into ...
41254 (grub_ofconsole_init_input): ... this, and ...
41255 (grub_ofconsole_init_output): ... this.
41256 (grub_ofconsole_term): Split into ...
41257 (grub_ofconsole_term_input): ... this, and ...
41258 (grub_ofconsole_term_output): ... this. Update all users.
41259 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41260 (grub_serial_term_input): ... this, and ...
41261 (grub_serial_term_output): ... this. Update all users.
41262 * term/i386/pc/console.c (grub_console_term): Split into ...
41263 (grub_console_term_input): ... this, and ...
41264 (grub_console_term_output): ... this. Update all users.
41265 (grub_console_term_input): Only enable it on PC/BIOS platform.
41266 (grub_console_init): Remove grub_keyboard_controller_init() call.
41267
41268 Migrate input terminals to new API:
41269
41270 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41271 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41272 i386-specific anyway).
41273 (grub_console_checkkey): Rename to ...
41274 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41275 users.
41276 (grub_keyboard_controller_orig): New variable.
41277 (grub_console_getkey): Rename to ...
41278 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41279 users.
41280 (grub_keyboard_controller_init): Static-ize. Save original
41281 controller value so that it can be restored ...
41282 (grub_keyboard_controller_fini): ... here (new function).
41283 (grub_at_keyboard_term): New structure.
41284 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41285 functions.
41286
41287 Migrate output terminals to new API:
41288
41289 * term/i386/pc/vga.c (grub_vga_term): Change type to
41290 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41291 members. Update all users.
41292 * term/gfxterm.c (grub_video_term): Change type to
41293 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41294 members. Update all users.
41295 * include/grub/i386/pc/console.h (grub_console_checkkey)
41296 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41297 etc).
41298
41299 Migrate `terminal' command and userland tools to new API:
41300
41301 * commands/terminal.c (grub_cmd_terminal): Split into ...
41302 (grub_cmd_terminal_input): ... this, and ...
41303 (grub_cmd_terminal_output): ... this.
41304 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41305 `terminal_input' and `terminal_output'.
41306 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41307 `terminal_input' / `terminal_output' API.
41308 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41309 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41310 provided ${GRUB_TERMINAL}, convert it).
41311
41312 2008-11-04 Robert Millan <rmh@aybabtu.com>
41313
41314 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41315 for FreeBSD.
41316 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41317
41318 2008-11-03 Bean <bean123ch@gmail.com>
41319
41320 * kern/elf.c (grub_elf32_load): Revert to previous code.
41321 (grub_elf64_load): Likewise.
41322
41323 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41324
41325 2008-11-01 Robert Millan <rmh@aybabtu.com>
41326
41327 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41328 (TARGET_CPPFLAGS): Likewise.
41329 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41330
41331 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41332
41333 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41334
41335 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41336
41337 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41338 addition of objects until the code is not going to be able to fail.
41339
41340 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41341
41342 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41343 (add a missing NULL check, and correct them by moving the pointer
41344 operations after the actual check).
41345
41346 2008-10-29 Robert Millan <rmh@aybabtu.com>
41347
41348 * util/i386/pc/grub-install.in: Handle empty string as output from
41349 make_system_path_relative_to_its_root().
41350
41351 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41352
41353 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41354 circular metadata worst case scenario. If the metadata is circular
41355 then copy the wrap in place.
41356 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41357 project lib/format_text/layout.h
41358 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41359
41360 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41361
41362 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41363
41364 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41365
41366 * util/update-grub_lib.in: Mention filename in warning message.
41367
41368 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41369
41370 * NEWS: Update for rename of update-grub to grub-mkconfig.
41371
41372 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41373
41374 * util/update-grub_lib.in: Copy to ...
41375 * util/grub-mkconfig_lib.in: ... this. Update all users.
41376 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41377 * util/update-grub.in: Rename to ...
41378 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41379 option. Add `--output' option to allow users to specify the generated
41380 configuration file. Default to stdout.
41381 (update_grub_dir): Rename to ...
41382 (grub_mkconfig_dir): ... this.
41383 (grub_cfg): Default to an empty string.
41384 * conf/common.rmk (update-grub): Rename to ...
41385 (grub-mkconfig): ... this.
41386 (update-grub_lib): Copy to ...
41387 (grub-mkconfig_lib): ... this.
41388 (update-grub_SCRIPTS): Copy to ...
41389 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41390 (update-grub_DATA): Rename to ...
41391 (grub-mkconfig_DATA): ... this.
41392
41393 2008-09-28 Robert Millan <rmh@aybabtu.com>
41394
41395 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41396 to `modified'. Add the real `created' field.
41397 (grub_iso9660_uuid): Use `modified' rather than `created' for
41398 constructing the UUID.
41399
41400 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41401
41402 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41403 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41404
41405 2008-09-28 Bean <bean123ch@gmail.com>
41406
41407 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41408 Thanks to Christian Franke for finding this bug.
41409
41410 2008-09-25 Robert Millan <rmh@aybabtu.com>
41411
41412 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
41413 instances of grub_util_get_disk_name() (see previous commit).
41414
41415 2008-09-25 Robert Millan <rmh@aybabtu.com>
41416
41417 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
41418 `util/i386/get_disk_name.c'.
41419 * conf/i386-efi.rmk: Likewise.
41420 * conf/x86_64-efi.rmk: Likewise.
41421 * conf/i386-coreboot.rmk: Likewise.
41422 * conf/i386-ieee1275.rmk: Likewise.
41423 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
41424 `util/ieee1275/get_disk_name.c'.
41425 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
41426 * util/ieee1275/get_disk_name.c: Remove file.
41427 * util/i386/get_disk_name.c: Remove file.
41428 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
41429 "hd%d" for device.map entries, rather than using
41430 grub_util_get_disk_name().
41431
41432 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41433
41434 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
41435 warning.
41436 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
41437
41438 2008-09-24 Carles Pina i Estany <carles@pina.cat>
41439
41440 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
41441 Changed to 0x5100.
41442 (GRUB_TERM_PPAGE): Changed to 0x4900.
41443
41444 2008-09-24 Robert Millan <rmh@aybabtu.com>
41445
41446 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
41447 macros (they were i386-pc specific).
41448 * include/grub/sparc64/ieee1275/console.h: Likewise.
41449 * include/grub/efi/console.h: Likewise.
41450
41451 2008-09-22 Bean <bean123ch@gmail.com>
41452
41453 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
41454 resident and in attribute list.
41455
41456 * include/grub/ntfs.h (BMP_LEN): Removed.
41457
41458 2008-09-22 Bean <bean123ch@gmail.com>
41459
41460 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
41461 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
41462
41463 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
41464 error occurs, as grub_disk_open will call grub_disk_close, which will
41465 call p->close (scsi).
41466
41467 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41468
41469 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
41470 (AC_PREREQ): Bumped to 2.59.
41471 (AC_TRY_COMPILE): Replace obsolete macro with ...
41472 (AC_COMPILE_IFELSE): ... this.
41473 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
41474 (AC_LINK_IFELSE): ... this.
41475
41476 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
41477
41478 * autogen.sh: Add a call to `gendistlist.sh'.
41479
41480 2008-09-19 Christian Franke <franke@computer.org>
41481
41482 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
41483 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
41484 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
41485 Export __enable_execute_stack() to modules.
41486 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
41487 New function.
41488
41489 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41490
41491 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
41492 Sort the list.
41493
41494 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
41495
41496 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
41497 #include <grub/util/hostdisk.h>.
41498
41499 2008-09-08 Robert Millan <rmh@aybabtu.com>
41500
41501 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
41502 segments when their filesz is zero (grub_file_read() interprets
41503 zero-size as "read until EOF", which results in memory corruption).
41504 Use `lowest_segment' rather than 0 for calculating the current
41505 segment load address.
41506
41507 2008-09-08 Robert Millan <rmh@aybabtu.com>
41508
41509 * util/hostdisk.c (open_device): Replace a grub_util_info() call
41510 with grub_dprintf("hostdisk", ...), as it was so verbose that it
41511 clobbered useful information.
41512
41513 2008-09-08 Robert Millan <rmh@aybabtu.com>
41514
41515 * include/grub/util/biosdisk.h: Move to ...
41516 * include/grub/util/hostdisk.h: ... here. Update all users.
41517 * util/biosdisk.c: Move to ...
41518 * util/hostdisk.c: ... here. Update all users.
41519
41520 2008-09-07 Robert Millan <rmh@aybabtu.com>
41521
41522 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
41523 variables.
41524 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
41525 and length can be stored directly in the `mbi->mmap_addr' and
41526 `mbi->mmap_length' struct fields.
41527
41528 2008-09-07 Robert Millan <rmh@aybabtu.com>
41529
41530 * conf/i386.rmk: New file. Provides declaration for building
41531 `cpuid.mod'.
41532 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
41533 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
41534 variables.
41535 Include `conf/i386.mk'.
41536 * conf/i386-efi.rmk: Likewise.
41537 * conf/x86_64-efi.rmk: Likewise.
41538 * conf/i386-coreboot.rmk: Likewise.
41539 * conf/i386-ieee1275.rmk: Likewise.
41540
41541 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
41542
41543 Based on patch created by Colin D Bennett <colin@gibibit.com>.
41544 Adds optimization support for BGR based modes.
41545
41546 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
41547 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41548 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41549 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41550 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41551 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41552 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41553 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41554 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41555 (grub_video_i386_vbeblit_index_index): Likewise.
41556 (grub_video_i386_vbeblit_replace_directN): Added.
41557 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41558 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41559 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41560 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41561 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41562 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41563 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41564 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41565 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41566 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41567 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41568 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41569 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41570
41571 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
41572 (grub_video_i386_vbefill_R8G8B8): Likewise.
41573 (grub_video_i386_vbefill_index): Likewise.
41574 (grub_video_i386_vbefill_direct32): Added.
41575 (grub_video_i386_vbefill_direct24): Likewise.
41576 (grub_video_i386_vbefill_direct16): Likewise.
41577 (grub_video_i386_vbefill_direct8): Likewise.
41578
41579 * include/grub/video.h (grub_video_blit_format): Removed
41580 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
41581 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
41582 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
41583 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
41584 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
41585
41586 * video/video.c (grub_video_get_blit_format): Updated to use new
41587 blit formats. Added handling for 16 bit color modes.
41588
41589 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
41590 fillers.
41591 (common_blitter): Updated to use new blitters.
41592
41593 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
41594 Removed.
41595 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
41596 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41597 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41598 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41599 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41600 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41601 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41602 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41603 (grub_video_i386_vbeblit_index_index): Likewise.
41604 (grub_video_i386_vbeblit_replace_directN): Added.
41605 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
41606 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
41607 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
41608 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
41609 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
41610 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
41611 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
41612 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
41613 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
41614 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
41615 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
41616 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
41617 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
41618
41619 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
41620 (grub_video_i386_vbefill_R8G8B8): Likewise.
41621 (grub_video_i386_vbefill_index): Likewise.
41622 (grub_video_i386_vbefill_direct32): Added.
41623 (grub_video_i386_vbefill_direct24): Likewise.
41624 (grub_video_i386_vbefill_direct16): Likewise.
41625 (grub_video_i386_vbefill_direct8): Likewise.
41626
41627 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
41628 types.
41629
41630 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
41631 types.
41632
41633 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
41634 blitter types.
41635
41636 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
41637 types.
41638
41639 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41640
41641 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
41642 RAID level 1.
41643
41644 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
41645
41646 * fs/iso9660.c (grub_iso9660_date): New structure.
41647 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
41648 (grub_iso9660_uuid): New function.
41649
41650 2008-09-05 Bean <bean123ch@gmail.com>
41651
41652 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
41653
41654 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
41655 insensitive bit for names in Win32 and Win32 & DOS namespace.
41656
41657 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
41658
41659 * include/grub/types.h (LONG_MAX): Likewise.
41660
41661 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41662
41663 * util/getroot.c: Include <config.h>.
41664 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
41665 add support for /dev/md/N devices and handle LVM double dash escaping.
41666
41667 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
41668
41669 * config.guess: Update to latest version from config git.
41670 * config.sub: Likewise.
41671
41672 2008-09-03 Robert Millan <rmh@aybabtu.com>
41673
41674 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
41675 `disk->total_sectors'.
41676
41677 2008-09-01 Colin D Bennett <colin@gibibit.com>
41678
41679 * include/grub/normal.h: Fixed incorrect comment for
41680 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
41681
41682 2008-09-01 Colin D Bennett <colin@gibibit.com>
41683
41684 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
41685 values with defines.
41686
41687 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
41688 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
41689 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
41690 (GRUB_VBE_MODEATTR_COLOR): Likewise.
41691 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
41692 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
41693 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
41694 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
41695 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
41696 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
41697 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
41698 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
41699 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
41700 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
41701 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
41702 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
41703 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
41704 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
41705 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
41706
41707 2008-08-31 Robert Millan <rmh@aybabtu.com>
41708
41709 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
41710 declaration.
41711 (grub_multiboot): Fix a few warnings.
41712
41713 2008-08-31 Robert Millan <rmh@aybabtu.com>
41714
41715 * loader/i386/pc/multiboot.c: Update comment not to say that
41716 boot_device support is unimplemented.
41717
41718 2008-08-31 Robert Millan <rmh@aybabtu.com>
41719
41720 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
41721 or memory map support are unimplemented.
41722
41723 2008-08-31 Colin D Bennett <colin@gibibit.com>
41724
41725 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
41726
41727 2008-08-31 Colin D Bennett <colin@gibibit.com>
41728
41729 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
41730 total video memory in 'vbeinfo' output; show color format details for
41731 each video mode.
41732
41733 2008-08-30 Pavel Roskin <proski@gnu.org>
41734
41735 * util/genmoddep.c: Remove for real this time.
41736 * DISTLIST: Remove util/genmoddep.c.
41737
41738 2008-08-30 Robert Millan <rmh@aybabtu.com>
41739
41740 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
41741 as required by Multiboot spec (it was already 4-byte aligned, but
41742 only by chance).
41743
41744 2008-08-29 Pavel Roskin <proski@gnu.org>
41745
41746 * kern/powerpc/ieee1275/crt0.S: Rename to ...
41747 * kern/powerpc/ieee1275/startup.S: ... this.
41748 * conf/powerpc-ieee1275.rmk: Adjust for the above.
41749 * DISTLIST: Likewise.
41750
41751 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
41752 grub/cpu/kernel.h. Add start label for consistency with other
41753 platforms. Add grub_prefix immediately after start. Add jump
41754 to the code after grub_prefix.
41755 * include/grub/powerpc/kernel.h: Provide valid values for
41756 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
41757
41758 2008-08-29 Bean <bean123ch@gmail.com>
41759
41760 * configure.ac: Change host_os to cygwin for mingw.
41761 (asprintf): New check for function.
41762
41763 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
41764 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
41765
41766 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
41767 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
41768 sync, sleep and grub_util_get_disk_size for mingw.
41769
41770 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
41771 to get size in mingw.
41772 (open_device): Use flag O_BINARY if it's defined.
41773 (find_root_device): Add dummy code for mingw.
41774
41775 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41776 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41777 (get_scsi_disk_name): Return 0 for mingw.
41778
41779 * util/hostfs.c: #include <grub/util/misc.h>.
41780 (grub_hostfs_open): Use "rb" flag to open file, use
41781 grub_util_get_disk_size to get disk size for mingw.
41782
41783 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41784 (asprintf): New function if HAVE_ASPRINTF is not set.
41785 (sync): New function for mingw.
41786 (sleep): Likewise.
41787 (grub_util_get_disk_size): Likewise.
41788
41789 2008-08-28 Pavel Roskin <proski@gnu.org>
41790
41791 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41792 kern/time.c.
41793
41794 2008-08-28 Robert Millan <rmh@aybabtu.com>
41795
41796 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41797
41798 2008-08-28 Robert Millan <rmh@aybabtu.com>
41799
41800 Change find_grub_drive() syntax so it doesn't prevent it from
41801 detecting NULL names as errors.
41802
41803 * util/biosdisk.c (find_grub_drive): Move free slot search code
41804 from here ...
41805 (find_free_slot): ... to here.
41806 (read_device_map): Use find_free_slot() to search for free slots.
41807
41808 2008-08-27 Marco Gerards <marco@gnu.org>
41809
41810 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41811 (scsi_mod_SOURCES): New variable.
41812 (scsi_mod_CFLAGS): Likewise
41813 (scsi_mod_LDFLAGS): Likewise.
41814
41815 * disk/scsi.c: New file.
41816
41817 * include/grub/scsi.h: Likewise.
41818
41819 * include/grub/scsicmd.h: Likewise.
41820
41821 * disk/ata.c: Include <grub/scsi.h>.
41822 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41823 instead.
41824 (grub_ata_iterate): Skip ATAPI devices.
41825 (grub_ata_open): Only handle ATAPI devices.
41826 (struct grub_atapi_read): Removed.
41827 (grub_atapi_readsector): Likewise.
41828 (grub_ata_read): No longer handle ATAPI devices.
41829 (grub_ata_write): Likewise.
41830 (grub_atapi_iterate): New function.
41831 (grub_atapi_read): Likewise.
41832 (grub_atapi_write): Likewise.
41833 (grub_atapi_open): Likewise.
41834 (grub_atapi_close): Likewise.
41835 (grub_atapi_dev): New variable.
41836 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41837 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41838
41839 * include/grub/disk.h (enum grub_disk_dev_id): Add
41840 `GRUB_DISK_DEVICE_SCSI_ID'.
41841
41842 2008-08-26 Robert Millan <rmh@aybabtu.com>
41843
41844 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41845 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41846 descriptive.
41847
41848 2008-08-23 Bean <bean123ch@gmail.com>
41849
41850 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41851 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41852 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41853 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41854 dm_nv.mod.
41855 (raid5rec_mod_SOURCES): New macro.
41856 (raid5rec_mod_CFLAGS): Likewise.
41857 (raid5rec_mod_LDFLAGS): Likewise.
41858 (raid6rec_mod_SOURCES): Likewise.
41859 (raid6rec_mod_CFLAGS): Likewise.
41860 (raid6rec_mod_LDFLAGS): Likewise.
41861 (mdraid_mod_SOURCES): Likewise.
41862 (mdraid_mod_CFLAGS): Likewise.
41863 (mdraid_mod_LDFLAGS): Likewise.
41864 (dm_nv_mod_SOURCES): Likewise.
41865 (dm_nv_mod_CFLAGS): Likewise.
41866 (dm_nv_mod_LDFLAGS): Likewise.
41867
41868 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41869 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41870 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41871
41872 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41873 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41874
41875 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41876
41877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41878
41879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41880
41881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41882
41883 * disk/raid5_recover.c: New file.
41884
41885 * disk/raid6_recover.c: Likewise.
41886
41887 * disk/mdraid_linux.c: Likewise.
41888
41889 * disk/dmraid_nvidia.c: Likewise.
41890
41891 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41892 ULONG_MAX.
41893
41894 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41895 calculate the size of raid device.
41896 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41897 different layout of raid5.
41898 (grub_raid_scan_device): Remove code specific to mdraid.
41899 (grub_raid_list): New variable.
41900 (free_array): New function.
41901 (grub_raid_register): Likewise.
41902 (grub_raid_unregister): Likewise.
41903 (grub_raid_rescan): Likewise.
41904 (GRUB_MOD_INIT): Don't iterate device here.
41905 (GRUB_MOD_FINI): Use free_array to release resource.
41906
41907 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41908 (grub_raid5_recover_func_t): New function variable type.
41909 (grub_raid6_recover_func_t): Likewise.
41910 (grub_raid5_recover_func): New variable.
41911 (grub_raid6_recover_func): Likewise.
41912 (grub_raid_register): New function.
41913 (grub_raid_unregister): Likewise.
41914 (grub_raid_rescan): Likewise.
41915 (grub_raid_block_xor): Likewise.
41916
41917 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41918 (CMD_CRC): New macro.
41919 (part): Removed.
41920 (read_file): Handle device as well as file.
41921 (cmd_crc): New function.
41922 (fstest): Handle multiple disks.
41923 (options): Remove part, raw and long, add root and diskcount.
41924 (usage): Add crc, remove -p, -r, -l, add -r and -c.
41925 (main): Find the first non option entry and ignore subsequent options,
41926 add handling for the new options, support multiple disks.
41927
41928 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41929
41930 2008-08-23 Bean <bean123ch@gmail.com>
41931
41932 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41933
41934 * genfslist.sh: Ignore kernel.mod.
41935
41936 * genpartmaplist.sh: Likewise.
41937
41938 2008-08-23 Robert Millan <rmh@aybabtu.com>
41939
41940 * util/getroot.c (find_root_device): Skip anything that starts with
41941 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41942
41943 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
41944
41945 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41946 * util/grub.d/00_header.in: Allow the administrator to change default
41947 gfxmode via ${GRUB_GFXMODE}.
41948
41949 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
41950
41951 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41952
41953 2008-08-21 Robert Millan <rmh@aybabtu.com>
41954
41955 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41956 loader.
41957 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41958 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41959
41960 2008-08-20 Carles Pina i Estany <carles@pina.cat>
41961
41962 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41963 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41964
41965 2008-08-19 Robert Millan <rmh@aybabtu.com>
41966
41967 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41968 (struct grub_virtual_screen): Remove `cursor_color'.
41969 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41970 initialization.
41971 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41972
41973 2008-08-18 Robert Millan <rmh@aybabtu.com>
41974
41975 Unify (identical) linux_normal.c files.
41976 * loader/i386/efi/linux_normal.c: Move from here ...
41977 * loader/linux_normal.c: ... to here. Update all users.
41978 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41979 * loader/i386/ieee1275/linux_normal.c: Likewise.
41980
41981 2008-08-18 Robert Millan <rmh@aybabtu.com>
41982
41983 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41984 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41985 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41986 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41987 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41988 New macros.
41989 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41990 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41991 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41992 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41993 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41994 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41995 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41996 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41997 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41998 portably using grub_getxy().
41999 Replace `-EFI' with `-bzImage' in boot message.
42000
42001 2008-08-17 Robert Millan <rmh@aybabtu.com>
42002
42003 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42004
42005 2008-08-17 Robert Millan <rmh@aybabtu.com>
42006
42007 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42008
42009 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42010 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42011 (grub_machine_mmap_iterate): New function declaration.
42012 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42013 structure.
42014 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42015 macros.
42016
42017 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42018 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42019 Move e820 parsing from here ...
42020 * kern/i386/pc/mmap.c: New file.
42021 (grub_machine_mmap_iterate): ... to here.
42022
42023 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42024 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42025 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42026 (grub_available_iterate): Redeclare to return `void', and redeclare
42027 its hook to use grub_uint64_t as addr and size parameters, and rename
42028 to ...
42029 (grub_machine_mmap_iterate): ... this. Update all users.
42030
42031 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42032 to make it more readable. Rename to ...
42033 (grub_machine_mmap_iterate): ... this.
42034
42035 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42036 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42037 (grub_multiboot): Allocate an extra region after the payload, and fill
42038 it with a Multiboot memory map. Adjust a.out loader to calculate size
42039 with the extra space.
42040 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42041 with the extra space.
42042
42043 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42044
42045 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42046
42047 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42048
42049 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42050 mdate-sh to the list `find' searches for.
42051 * DISTLIST: Regenerated.
42052
42053 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42054
42055 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42056 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42057 genmoddep.awk, gensymlist.sh.in.
42058 (DISTDIRS): Add bus, docs, hook, lib.
42059 * DISTLIST: Regenerated.
42060 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42061
42062 2008-08-16 Robert Millan <rmh@aybabtu.com>
42063
42064 * disk/raid.c (grub_raid_init): Handle/report errors set by
42065 grub_device_iterate().
42066 * disk/lvm.c (grub_lvm_init): Likewise.
42067
42068 2008-08-15 Bean <bean123ch@gmail.com>
42069
42070 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42071 and datehook.mod.
42072 (datetime_mod_SOURCES): New macro.
42073 (datetime_mod_CFLAGS): Likewise.
42074 (datetime_mod_LDFLAGS): Likewise.
42075 (date_mod_SOURCES): Likewise.
42076 (date_mod_CFLAGS): Likewise.
42077 (date_mod_LDFLAGS): Likewise.
42078 (datehook_mod_SOURCES): Likewise.
42079 (datehook_mod_CFLAGS): Likewise.
42080 (datehook_mod_LDFLAGS): Likewise.
42081
42082 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42083 and datehook.mod.
42084 (datetime_mod_SOURCES): New macro.
42085 (datetime_mod_CFLAGS): Likewise.
42086 (datetime_mod_LDFLAGS): Likewise.
42087 (date_mod_SOURCES): Likewise.
42088 (date_mod_CFLAGS): Likewise.
42089 (date_mod_LDFLAGS): Likewise.
42090 (datehook_mod_SOURCES): Likewise.
42091 (datehook_mod_CFLAGS): Likewise.
42092 (datehook_mod_LDFLAGS): Likewise.
42093
42094 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42095 and datehook.mod.
42096 (datetime_mod_SOURCES): New macro.
42097 (datetime_mod_CFLAGS): Likewise.
42098 (datetime_mod_LDFLAGS): Likewise.
42099 (date_mod_SOURCES): Likewise.
42100 (date_mod_CFLAGS): Likewise.
42101 (date_mod_LDFLAGS): Likewise.
42102 (datehook_mod_SOURCES): Likewise.
42103 (datehook_mod_CFLAGS): Likewise.
42104 (datehook_mod_LDFLAGS): Likewise.
42105
42106 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42107 and datehook.mod.
42108 (datetime_mod_SOURCES): New macro.
42109 (datetime_mod_CFLAGS): Likewise.
42110 (datetime_mod_LDFLAGS): Likewise.
42111 (date_mod_SOURCES): Likewise.
42112 (date_mod_CFLAGS): Likewise.
42113 (date_mod_LDFLAGS): Likewise.
42114 (datehook_mod_SOURCES): Likewise.
42115 (datehook_mod_CFLAGS): Likewise.
42116 (datehook_mod_LDFLAGS): Likewise.
42117
42118 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42119 and datehook.mod.
42120 (datetime_mod_SOURCES): New macro.
42121 (datetime_mod_CFLAGS): Likewise.
42122 (datetime_mod_LDFLAGS): Likewise.
42123 (date_mod_SOURCES): Likewise.
42124 (date_mod_CFLAGS): Likewise.
42125 (date_mod_LDFLAGS): Likewise.
42126 (datehook_mod_SOURCES): Likewise.
42127 (datehook_mod_CFLAGS): Likewise.
42128 (datehook_mod_LDFLAGS): Likewise.
42129
42130 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42131
42132 * commands/date.c: New file.
42133
42134 * hook/datehook.c: Likewise.
42135
42136 * include/grub/lib/datetime.h: Likewise.
42137
42138 * include/grub/i386/cmos.h: Likewise.
42139
42140 * lib/datetime.c: Likewise.
42141
42142 * lib/i386/datetime.c: Likewise.
42143
42144 * lib/efi/datetime.c: Likewise.
42145
42146 2008-08-14 Robert Millan <rmh@aybabtu.com>
42147
42148 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42149 (grub_mkelfimage_SOURCES): New variable.
42150 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42151
42152 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42153 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42154 * conf/powerpc-ieee1275.rmk: Likewise.
42155 * conf/i386-ieee1275.rmk: Likewise.
42156
42157 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42158 * kern/i386/coreboot/init.c: Likewise.
42159
42160 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42161 with `<grub/cpu/kernel.h>'.
42162 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42163 to ...
42164 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42165 * kern/i386/coreboot/startup.S: Likewise.
42166
42167 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42168 (GRUB_MOD_GAP): Remove.
42169 * include/grub/powerpc/kernel.h: New file.
42170 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42171 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42172 * include/grub/i386/kernel.h: New file.
42173 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42174 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42175 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42176
42177 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42178 `grub-mkelfimage'.
42179 Use --directory when invoking grub_mkimage.
42180
42181 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42182 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42183 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42184 and GRUB_KERNEL_CPU_PREFIX.
42185
42186 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42187
42188 * include/grub/err.h (grub_err_printf): New function prototype.
42189 * util/misc.c (grub_err_printf): New function.
42190 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42191 grub_printf.
42192 * kern/err.c (grub_print_error): Use grub_err_printf.
42193
42194 2008-08-13 Robert Millan <rmh@aybabtu.com>
42195
42196 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42197
42198 2008-08-13 Robert Millan <rmh@aybabtu.com>
42199
42200 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42201 boot entry.
42202
42203 2008-08-12 Robert Millan <rmh@aybabtu.com>
42204
42205 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42206 of the relocation code from here ...
42207 (grub_multiboot): ... to here.
42208 (forward_relocator, backward_relocator): Move from here ...
42209 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42210 (grub_multiboot_backward_relocator): ... to here.
42211 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42212 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42213 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42214 (grub_multiboot_forward_relocator_end)
42215 (grub_multiboot_backward_relocator)
42216 (grub_multiboot_backward_relocator_end): New variables.
42217
42218 2008-08-12 Bean <bean123ch@gmail.com>
42219
42220 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42221
42222 2008-08-11 Robert Millan <rmh@aybabtu.com>
42223
42224 * kern/i386/linuxbios/startup.S: Move from here ...
42225 * kern/i386/coreboot/startup.S: ... to here.
42226
42227 * kern/i386/linuxbios/init.c: Move from here ...
42228 * kern/i386/coreboot/init.c: ... to here.
42229
42230 * kern/i386/linuxbios/table.c: Move from here ...
42231 * kern/i386/coreboot/mmap.c: ... to here.
42232
42233 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42234
42235 2008-08-11 Robert Millan <rmh@aybabtu.com>
42236
42237 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42238 errors. Leave it to the upper layer to handle them.
42239
42240 2008-08-09 Christian Franke <franke@computer.org>
42241
42242 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42243 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42244 Install `grub.d/10_windows' only on Cygwin.
42245 * configure.ac: Add subst of `target_os'.
42246 Check `target_os' also before setting TARGET_OBJ2ELF.
42247 Add `--enable-grub-pe2elf'.
42248
42249 2008-08-08 Robert Millan <rmh@aybabtu.com>
42250
42251 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42252 (grub_last_time): Change type to grub_uint64_t.
42253 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42254 (grub_disk_close): Likewise.
42255
42256 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42257 (run_menu): Migrate code from to using grub_get_time_ms().
42258
42259 * util/misc.c (grub_get_time_ms): New function.
42260
42261 2008-08-08 Marco Gerards <marco@gnu.org>
42262
42263 * disk/ata.c (grub_ata_regget): Change return type to
42264 `grub_uint8_t'.
42265 (grub_ata_regget2): Likewise.
42266 (grub_ata_wait_status): New function.
42267 (grub_ata_wait_busy): Removed function, updated all users to use
42268 `grub_ata_wait_status'.
42269 (grub_ata_wait_drq): Likewise.
42270 (grub_ata_cmd): New function.
42271 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42272 error handling.
42273 (grub_ata_pio_write): Add error handling.
42274 (grub_atapi_identify): Likewise.
42275 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42276 handling.
42277 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42278 handling. Actually use the detected registers. Reorder the
42279 detection logic such that it is easier to read.
42280 (grub_ata_pciinit): Do not assign the same ID to each controller.
42281 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42282 handling.
42283 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42284
42285 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42286
42287 2008-08-08 Marco Gerards <marco@gnu.org>
42288
42289 * NEWS: Update.
42290
42291 2008-08-07 Bean <bean123ch@gmail.com>
42292
42293 * include/grub/x86_64/pci.h: New file.
42294
42295 2008-08-07 Christian Franke <franke@computer.org>
42296
42297 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42298 (TIMER2_GATE): Likewise.
42299 (grub_pit_wait): Add enable/disable of the timer2 gate
42300 bit of port 0x61. This fixes a possible infinite loop.
42301
42302 2008-08-07 Bean <bean123ch@gmail.com>
42303
42304 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42305 kern/i386/tsc.c and kern/i386/pit.c.
42306
42307 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42308 x86_64 platform.
42309
42310 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42311 <grub/i386/tsc.h>.
42312
42313 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42314
42315 2008-08-07 Bean <bean123ch@gmail.com>
42316
42317 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42318
42319 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42320
42321 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42322 multiple inclusion. Add #include <grub/types.h>.
42323
42324 2008-08-06 Christian Franke <franke@computer.org>
42325
42326 * conf/common.rmk: Build and install `10_windows'.
42327 * util/grub.d/10_windows.in: New script.
42328
42329 2008-08-06 Pavel Roskin <proski@gnu.org>
42330
42331 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42332
42333 2008-08-06 Robert Millan <rmh@aybabtu.com>
42334
42335 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42336 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42337
42338 2008-08-06 Bean <bean123ch@gmail.com>
42339
42340 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42341 (grub_pxefs_fs_int): Remove dummy definition.
42342 (grub_pxefs_open): Use data->block_size to store the current block
42343 size setting.
42344 (grub_pxefs_read): Use block size stored in data->block_size. As the
42345 value of grub_pxe_blksize can be changed after the file is opened.
42346
42347 2008-08-06 Bean <bean123ch@gmail.com>
42348
42349 * fs/i386/pc/pxe.c (curr_file): new variable.
42350 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42351 require the dummy internal file system anymore.
42352 (grub_pxefs_read): Removed.
42353 (grub_pxefs_close): Likewise.
42354 (grub_pxefs_fs_int): Likewise.
42355 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42356 connection when we switch file.
42357 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42358
42359 2008-08-06 Robert Millan <rmh@aybabtu.com>
42360
42361 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42362 `halt.mod'.
42363 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42364 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42365
42366 * kern/i386/halt.c: New file.
42367 * kern/i386/reboot.c: Likewise.
42368 * include/grub/i386/reboot.h: Likewise.
42369 * include/grub/i386/halt.h: Likewise.
42370
42371 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42372 Include `<grub/cpu/halt.h>'.
42373 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42374 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42375
42376 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42377 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42378 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42379 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42380 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42381 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42382 from here ...
42383 * include/grub/i386/at_keyboard.h: ... to here.
42384
42385 2008-08-05 Robert Millan <rmh@aybabtu.com>
42386
42387 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42388 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42389 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42390 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42391 `kern/generic/millisleep.c'.
42392
42393 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42394 instead of grub_get_rtc().
42395 (grub_tsc_init): Initialize `tsc_boot_time'.
42396
42397 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42398 (grub_machine_init): Use grub_tsc_init() rather than
42399 installing an RTC-based handler via grub_install_get_time_ms().
42400
42401 * kern/i386/pit.c: New file.
42402 * include/grub/i386/pit.h: Likewise.
42403
42404 2008-08-05 Bean <bean123ch@gmail.com>
42405
42406 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42407
42408 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42409 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
42410 (pxe_mod_SOURCES): New macro.
42411 (pxe_mod_CFLAGS): Likewise.
42412 (pxe_mod_LDFLAGS): Likewise.
42413 (pxecmd_mod_SOURCES): Likewise.
42414 (pxecmd_mod_CFLAGS): Likewise.
42415 (pxecmd_mod_LDFLAGS): Likewise.
42416
42417 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
42418 (grub_pxe_call): Likewise.
42419
42420 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
42421
42422 * commands/i386/pc/pxecmd.c: New file.
42423
42424 * fs/i386/pc/pxe.c: Likewise.
42425
42426 * include/grub/i386/pc/pxe.h: Likewise.
42427
42428 2008-08-05 Bean <bean123ch@gmail.com>
42429
42430 * util/console.c (grub_console_cur_color): New variable.
42431 (grub_console_standard_color): Likewise.
42432 (grub_console_normal_color): Likewise.
42433 (grub_console_highlight_color): Likewise.
42434 (color_map): Likewise.
42435 (use_color): Likewise.
42436 (NUM_COLORS): New macro.
42437 (grub_ncurses_setcolorstate): Handle color properly.
42438 (grub_ncurses_setcolor): Don't change color here, just remember the
42439 settings, color will be set in grub_ncurses_setcolorstate.
42440 (grub_ncurses_getcolor): New function.
42441 (grub_ncurses_init): Initialize color pairs.
42442 (grub_ncurses_term): New member grub_ncurses_getcolor.
42443
42444 2008-08-05 Colin D Bennett <colin@gibibit.com>
42445
42446 High resolution timer support. Implemented for x86 CPUs using TSC.
42447 Extracted generic grub_millisleep() so it's linked in only as needed.
42448 This requires a Pentium compatible CPU; if the RDTSC instruction is
42449 not supported, then it falls back on the generic grub_get_time_ms()
42450 implementation that uses the machine's RTC.
42451
42452 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
42453 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42454 `kern/generic/millisleep.c'.
42455
42456 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
42457 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
42458
42459 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
42460 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
42461
42462 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42463
42464 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42465 `kern/generic/millisleep.c'.
42466
42467 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42468
42469 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
42470
42471 * kern/generic/rtc_get_time_ms.c: New file.
42472
42473 * kern/generic/millisleep.c: New file.
42474
42475 * kern/misc.c: Don't include
42476 <kern/time.h> anymore.
42477 (grub_millisleep_generic): Removed.
42478
42479 * commands/sleep.c (grub_interruptible_millisleep): Uses
42480 grub_get_time_ms() instead of grub_get_rtc().
42481
42482 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
42483 function.
42484 (grub_cpu_is_cpuid_supported): New inline function.
42485 (grub_cpu_is_tsc_supported): New inline function.
42486 (grub_tsc_init): New function prototype.
42487 (grub_tsc_get_time_ms): New function prototype.
42488
42489 * kern/i386/tsc.c (grub_get_time_ms): New file.
42490
42491 * include/grub/time.h: Include <grub/types.h.
42492 (grub_millisleep_generic): Removed.
42493 (grub_get_time_ms): New prototype.
42494 (grub_install_get_time_ms): New prototype.
42495 (grub_rtc_get_time_ms): New prototype.
42496
42497 * kern/time.c (grub_get_time_ms): New function.
42498 (grub_install_get_time_ms): New function.
42499
42500 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
42501 <grub/time.h> anymore.
42502 (grub_millisleep): Removed.
42503 (grub_machine_init): Call grub_tsc_init.
42504
42505 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
42506 get_time_ms() implementation.
42507
42508 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
42509 (ieee1275_get_time_ms): New function.
42510 (grub_machine_init): Install get_time_ms() implementation.
42511
42512 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
42513 (grub_machine_init): Call grub_tsc_init().
42514 (grub_millisleep): Removed.
42515
42516 * kern/ieee1275/init.c (grub_millisleep): Removed.
42517 (grub_machine_init): Install ieee1275_get_time_ms()
42518 implementation.
42519 (ieee1275_get_time_ms): New function.
42520 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
42521 real work.
42522
42523 2008-08-05 Marco Gerards <marco@gnu.org>
42524
42525 * disk/ata.c: Include <grub/pci.h>.
42526 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
42527 (grub_ata_initialize): Rewritten.
42528 (grub_ata_device_initialize): New function.
42529
42530 2008-08-04 Pavel Roskin <proski@gnu.org>
42531
42532 * kern/main.c: Include grub/mm.h.
42533
42534 2008-08-04 Robert Millan <rmh@aybabtu.com>
42535
42536 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
42537 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
42538 corruption problem).
42539
42540 2008-08-04 Robert Millan <rmh@aybabtu.com>
42541
42542 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
42543 warnings introduced in my last commit.
42544
42545 2008-08-03 Robert Millan <rmh@aybabtu.com>
42546
42547 Make PCI available on all i386 architectures.
42548
42549 * include/grub/i386/pc/pci.h: Move from here ...
42550 * include/grub/i386/pci.h: ... to here.
42551
42552 * include/grub/i386/pc/pci.h: Remove.
42553 * include/grub/i386/efi/pci.h: Remove.
42554 * include/grub/x86_64/efi/pci.h: Remove.
42555
42556 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
42557 `<grub/cpu/pci.h>'.
42558
42559 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
42560 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
42561 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
42562
42563 * conf/i386-ieee1275.rmk: Likewise.
42564
42565 2008-08-03 Robert Millan <rmh@aybabtu.com>
42566
42567 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
42568 (grub_console_setcursor): Make it possible to set cursor off.
42569
42570 2008-08-03 Robert Millan <rmh@aybabtu.com>
42571
42572 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
42573 of modules instead of assuming which platform provides what.
42574 * util/update-grub.in: Likewise.
42575
42576 2008-08-03 Robert Millan <rmh@aybabtu.com>
42577
42578 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
42579 instead of `grub_install_dos_part' to determine whether a drive needs
42580 to be prepended to prefix (`grub_install_dos_part' is not reliable,
42581 because it can be overridden when loading GRUB via Multiboot).
42582
42583 2008-08-02 Robert Millan <rmh@aybabtu.com>
42584
42585 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
42586
42587 2008-08-02 Robert Millan <rmh@aybabtu.com>
42588
42589 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
42590 of informational grub_dprintf() calls.
42591
42592 2008-08-02 Robert Millan <rmh@aybabtu.com>
42593
42594 * disk/memdisk.c (memdisk_size): Don't initialize.
42595 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
42596
42597 * include/grub/i386/pc/kernel.h
42598 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
42599 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
42600 (grub_memdisk_image_size, grub_arch_memdisk_addr)
42601 (grub_arch_memdisk_size): Remove.
42602
42603 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
42604 field (was only used to transfer a constant). Add `type' field to
42605 support multiple module types.
42606 (grub_module_iterate): New function.
42607
42608 * kern/device.c (grub_device_open): Do not hide error messages
42609 when grub_disk_open() fails. Use grub_print_error() instead.
42610
42611 * kern/i386/pc/init.c (grub_arch_modules_addr)
42612 (grub_arch_memdisk_size): Remove functions.
42613 (grub_arch_modules_addr): Return the module address in high memory
42614 (now that it isn't copied anymore).
42615
42616 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
42617 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
42618 decompression routine (grub_total_module_size already includes that
42619 now). Don't copy modules back to low memory.
42620
42621 * kern/main.c: Include `<grub/mm.h>'.
42622 (grub_load_modules): Split out (and use) ...
42623 (grub_module_iterate): ... this function, which iterates through
42624 module objects and runs a hook.
42625 Comment out grub_mm_init_region() call, as it would cause non-ELF
42626 modules to be overwritten.
42627
42628 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
42629 the memdisk image in its own region, make it part of the module list.
42630 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
42631 (main): Parse --memdisk|-m option, and pass user-provided path as
42632 parameter to generate_image().
42633 (add_segments): Pass `memdisk_path' down to load_modules().
42634 (load_modules): Embed memdisk image in module section when requested.
42635 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
42636 `header.type' instead of `header.offset'.
42637
42638 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
42639 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
42640 (memdisk_mod_LDFLAGS): New variables.
42641 * conf/i386-coreboot.rmk: Likewise.
42642 * conf/i386-ieee1275.rmk: Likewise.
42643
42644 2008-08-02 Robert Millan <rmh@aybabtu.com>
42645
42646 * loader/i386/pc/multiboot.c (playground, forward_relocator)
42647 (backward_relocator): New variables. Used to allocate and relocate
42648 the payload, respectively.
42649 (grub_multiboot_load_elf32): Load into heap instead of requested
42650 address, install the appropriate relocator code in each bound of
42651 the payload, and set the entry point such that
42652 grub_multiboot_real_boot() will jump to one of them.
42653
42654 * kern/i386/loader.S (grub_multiboot_payload_size)
42655 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42656 (grub_multiboot_payload_entry_offset): New variables.
42657 (grub_multiboot_real_boot): Set cpu context to what the relocator
42658 expects, and jump to the relocator instead of the payload.
42659
42660 * include/grub/i386/loader.h (grub_multiboot_payload_size)
42661 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
42662 (grub_multiboot_payload_entry_offset): Export.
42663
42664 2008-08-01 Bean <bean123ch@gmail.com>
42665
42666 * normal/menu_entry.c (editor_getline): Don't return the original
42667 string as result, as it will be released by lexer once it has done
42668 using it.
42669
42670 2008-08-01 Robert Millan <rmh@aybabtu.com>
42671
42672 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
42673 within menuentries, not before them.
42674 util/grub.d/10_hurd.in: Likewise.
42675
42676 2008-08-01 Bean <bean123ch@gmail.com>
42677
42678 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
42679 (bufio_mod_SOURCES): New macro.
42680 (bufio_mod_CFLAGS): Likewise.
42681 (bufio_mod_LDFLAGS): Likewise.
42682
42683 * include/grub/bufio.h: New file.
42684
42685 * io/bufio.c: Likewise.
42686
42687 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
42688 (grub_video_reader_png): Use grub_buffile_open to open file.
42689
42690 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
42691 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
42692
42693 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
42694 (grub_video_reader_tga): Use grub_buffile_open to open file.
42695
42696 * font/manager.c: Include <grub/bufio.h>.
42697 (add_font): Use grub_buffile_open to open file.
42698
42699 2008-07-31 Robert Millan <rmh@aybabtu.com>
42700
42701 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
42702 ELF segments, use a macro for arbitrarily accessing any of them instead
42703 of preparing a pointer that allows access to one at a time.
42704 (grub_multiboot_load_elf64): Likewise.
42705
42706 2008-07-31 Bean <bean123ch@gmail.com>
42707
42708 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
42709 GRUB_KERNEL_MACHINE_DATA_END.
42710
42711 2008-07-30 Robert Millan <rmh@aybabtu.com>
42712
42713 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
42714 Increase from 0x50 to 0x60.
42715 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
42716 use UUIDs to identify the root drive for them. If that's not
42717 possible, abort.
42718 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
42719 check, for cross-disk installs.
42720
42721 2008-07-30 Robert Millan <rmh@aybabtu.com>
42722
42723 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
42724 is non-empty, use it to set the `prefix' environment variable instead
42725 of the usual approach.
42726 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
42727 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
42728 environment variable instead of dummy make_install_device().
42729
42730 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
42731 (start): Insert a data section, with `grub_prefix' variable.
42732 * kern/i386/linuxbios/startup.S: Likewise.
42733
42734 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
42735 New variable reference.
42736 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
42737 New macro. Defines offset of `grub_prefix' within startup.S (relative
42738 to `start').
42739 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
42740 section within startup.S (relative to `start').
42741 * include/grub/i386/coreboot/kernel.h: Likewise.
42742
42743 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
42744 Overwrite grub_prefix with its contents, at the beginning of the
42745 first segment.
42746 (main): Understand -p|--prefix.
42747
42748 2008-07-30 Robert Millan <rmh@aybabtu.com>
42749
42750 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
42751
42752 2008-07-30 Robert Millan <rmh@aybabtu.com>
42753
42754 * term/i386/pc/vga_text.c (grub_console_cls): Use
42755 grub_console_gotoxy() to go back to beginning of the screen.
42756 Found by Patrick Georgi <patrick.georgi@coresystems.de>
42757
42758 2008-07-29 Christian Franke <franke@computer.org>
42759
42760 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42761 Add conversion of emulated mount points on Cygwin.
42762
42763 2008-07-29 Christian Franke <franke@computer.org>
42764
42765 * util/update-grub.in: Add a check for admin
42766 group on Cygwin.
42767 Remove old `grub.cfg.new' before creation.
42768 Add `-f' to `mv' to handle the different filesystem
42769 semantics of Windows.
42770
42771 2008-07-29 Bean <bean123ch@gmail.com>
42772
42773 * normal/main.c (get_line): Fix buffer overflow bug.
42774
42775 2008-07-28 Robert Millan <rmh@aybabtu.com>
42776
42777 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42778 (struct grub_apple_header): New struct. Describes the layout of
42779 the partmap header.
42780 (apple_partition_map_iterate): Check the header magic as well as the
42781 partition magic (which was already being checked).
42782
42783 2008-07-28 Pavel Roskin <proski@gnu.org>
42784
42785 * genmk.rb: Add a warning to the beginning of the output that
42786 it's a generated file and should not be edited.
42787
42788 2008-07-28 Robert Millan <rmh@aybabtu.com>
42789
42790 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42791 with the same number are found, just use issue a warning with
42792 grub_dprintf(), as this error has been reported to be non-fatal.
42793
42794 2008-07-27 Robert Millan <rmh@aybabtu.com>
42795
42796 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42797 information.
42798
42799 2008-07-27 Bean <bean123ch@gmail.com>
42800
42801 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42802 (grub_fat_find_dir): Ignore case when comparing filename.
42803
42804 2008-07-27 Bean <bean123ch@gmail.com>
42805
42806 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42807 smallino, as it's more descriptive, and i8count can be confused with
42808 the other field count.
42809 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42810 inode type.
42811
42812 2008-07-27 Bean <bean123ch@gmail.com>
42813
42814 * commands/crc.c: New file.
42815
42816 * lib/crc.c: Likewise.
42817
42818 * include/grub/lib/crc.h: Likewise.
42819
42820 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42821
42822 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42823 (hexdump): Move this function to ...
42824
42825 * lib/hexdump.c: ... here.
42826
42827 * include/grub/hexdump.h: Renamed to ...
42828
42829 * include/grub/lib/hexdump.h: ... this.
42830
42831 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42832
42833 * util/grub-editenv.c: Likewise.
42834
42835 * include/envblk.h: Renamed to ...
42836
42837 * include/lib/envblk.h: ... this.
42838
42839 * util/envblk.c: Renamed to ...
42840
42841 * lib/envblk.c: ... this.
42842
42843 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42844 lib/hexdump.c.
42845 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42846 (pkglib_MODULES): Add crc.mod.
42847 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42848 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42849 (crc_mod_SOURCES): New macro.
42850 (crc_mod_CFLAGS): Likewise.
42851 (crc_mod_LDFLAGS): Likewise.
42852
42853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42854
42855 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42856
42857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42858
42859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42860
42861 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42862
42863 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
42864
42865 * commands/help.c: Include <grub/term.h>.
42866 (TERM_WIDTH): Removed. Updated all users.
42867
42868 2008-07-27 Pavel Roskin <proski@gnu.org>
42869
42870 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42871 spurious warnings about a comment within a comment.
42872
42873 2008-07-25 Robert Millan <rmh@aybabtu.com>
42874
42875 * util/getroot.c (find_root_device): Skip devices that match
42876 /dev/dm-[0-9]. This lets the real device be found for any type of
42877 abstraction (LVM, EVMS, RAID..).
42878 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42879 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42880 device is found first, find_root_device() will now skip it.
42881
42882 2008-07-24 Pavel Roskin <proski@gnu.org>
42883
42884 * include/grub/types.h: Use __builtin_bswap32() and
42885 __builtin_bswap64() with gcc 4.3 and newer.
42886
42887 2008-07-24 Christian Franke <franke@computer.org>
42888
42889 * util/i386/pc/grub-install.in: If `--debug' is specified,
42890 pass `--verbose' to grub-setup.
42891 Abort script if make_system_path_relative_to_its_root() fails.
42892
42893 2008-07-24 Bean <bean123ch@gmail.com>
42894
42895 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42896 variable `target_platform' should be `platform'.
42897
42898 2008-07-24 Bean <bean123ch@gmail.com>
42899
42900 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42901 (grub_png_init_fixed_block): New function.
42902 (grub_png_decode_image_data): Handle fixed huffman code compression.
42903
42904 2008-07-24 Bean <bean123ch@gmail.com>
42905
42906 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42907 (grub_pe2elf_SOURCES): New macro.
42908 (CLEANFILES): Add grub-pe2elf.
42909
42910 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42911 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42912 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42913 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42914 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42915 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42916 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42917 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42918 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42919 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42920 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42921 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42922 (GRUB_PE32_DT_FUNCTION): Likewise.
42923 (GRUB_PE32_REL_I386_DIR32): Likewise.
42924 (GRUB_PE32_REL_I386_REL32): Likewise.
42925 (grub_pe32_symbol): New structure.
42926 (grub_pe32_reloc): Likewise.
42927
42928 * util/grub-pe2elf.c: New file.
42929
42930 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42931 start symbol in non pc platform.
42932
42933 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42934
42935 The following patches are from Christian Franke.
42936
42937 * include/grub/dl.h: Remove .previous, gas supports this only
42938 for ELF format.
42939
42940 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42941 Remove .type, gas supports this only for ELF format.
42942
42943 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42944 nullbytes in symbol table. This fixes an infinite loop if table is
42945 zero filled.
42946
42947 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42948 TARGET_IMG_LDFLAGS and EXEEXT.
42949
42950 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42951 TARGET_IMG_LDFLAGS_AC.
42952 (grub_CHECK_STACK_ARG_PROBE): New function.
42953
42954 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42955
42956 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42957
42958 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42959 to set TARGET_IMG_LD* accordingly.
42960 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42961 Add call to grub_CHECK_STACK_ARG_PROBE.
42962 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42963
42964 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42965
42966 * genmk.rb: Add EXEEXT to CLEANFILES.
42967
42968 2008-07-23 Robert Millan <rmh@aybabtu.com>
42969
42970 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42971 define the codes for arrows and lines used for the menu).
42972 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42973 as well.
42974
42975 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42976 fonts, because the latter are too slow.
42977
42978 2008-07-21 Bean <bean123ch@gmail.com>
42979
42980 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42981 a20. Run keyboard test last, as it will cause macbook to halt.
42982
42983 2008-07-18 Pavel Roskin <proski@gnu.org>
42984
42985 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42986 load foreign architecture modules correctly anyway. Keep
42987 support for loading host architecture modules, whether we
42988 compile them or not.
42989
42990 2008-07-17 Pavel Roskin <proski@gnu.org>
42991
42992 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42993 change target_cpu. The compiler default can mismatch target_cpu
42994 in any case.
42995
42996 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42997 * kern/efi/efi.c: Likewise.
42998
42999 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43000 target compiler is functional.
43001 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43002 are set up.
43003
43004 * configure.ac: Default to efi platform for x86_64-apple. Allow
43005 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43006 adjustments from the rest, only do them if target is not
43007 explicitly given. Merge other adjustments with the final sanity
43008 check. Remove an extraneous check for supported CPU. Be
43009 specific which CPU and which platform is not supported.
43010
43011 * configure.ac: Default to pc platform for x86_64.
43012
43013 2008-07-17 Robert Millan <rmh@aybabtu.com>
43014
43015 Partial LinuxBIOS -> Coreboot rename.
43016
43017 * conf/i386-linuxbios.rmk: Renamed to ...
43018 * conf/i386-coreboot.rmk: ... this.
43019 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43020 * configure.ac: Accept "coreboot" as input platform (but maintain
43021 compatibility with "linuxbios").
43022 * include/grub/i386/linuxbios: Renamed to ...
43023 * include/grub/i386/coreboot: ... this.
43024
43025 2008-07-17 Bean <bean123ch@gmail.com>
43026
43027 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43028 (appleldr_mod_SOURCE): New variable.
43029 (appleldr_mod_CFLAGS): Likewise.
43030 (appleldr_mod_LDFLAGS): Likewise.
43031 (pci_mod_SOURCES): Likewise.
43032 (pci_mod_CFLAGS): Likewise.
43033 (pci_mod_LDFLAGS): Likewise.
43034 (lspci_mod_SOURCES): Likewise.
43035 (lspci_mod_CFLAGS): Likewise.
43036 (lspci_mod_LDFLAGS): Likewise.
43037
43038 * conf/x86_64-efi.rmk: New file.
43039
43040 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43041 macro.
43042 (grub_efidisk_write): Likewise.
43043
43044 * include/efi/api.h (efi_call_0): New macro.
43045 (efi_call_1): Likewise.
43046 (efi_call_2): Likewise.
43047 (efi_call_3): Likewise.
43048 (efi_call_4): Likewise.
43049 (efi_call_5): Likewise.
43050 (efi_call_6): Likewise.
43051
43052 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43053 grub_rescue_cmd_chainloader.
43054
43055 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43056 (grub_pe32_optional_header): Change some fields based on i386 or
43057 x86_64 platform.
43058 (GRUB_PE32_PE32_MAGIC): Likewise.
43059
43060 * include/grub/efi/uga_draw.h: New file.
43061
43062 * include/grub/elf.h (STN_ABS): New constant.
43063 (R_X86_64_NONE): Relocation constant for x86_64.
43064 (R_X86_64_64): Likewise.
43065 (R_X86_64_PC32): Likewise.
43066 (R_X86_64_GOT32): Likewise.
43067 (R_X86_64_PLT32): Likewise.
43068 (R_X86_64_COPY): Likewise.
43069 (R_X86_64_GLOB_DAT): Likewise.
43070 (R_X86_64_JUMP_SLOT): Likewise.
43071 (R_X86_64_RELATIVE): Likewise.
43072 (R_X86_64_GOTPCREL): Likewise.
43073 (R_X86_64_32): Likewise.
43074 (R_X86_64_32S): Likewise.
43075 (R_X86_64_16): Likewise.
43076 (R_X86_64_PC16): Likewise.
43077 (R_X86_64_8): Likewise.
43078 (R_X86_64_PC8): Likewise.
43079
43080 * include/grub/i386/efi/pci.h: New file.
43081
43082 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43083 Change it value based on platform.
43084 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43085 (GRUB_E820_RAM): Likewise.
43086 (GRUB_E820_RESERVED): Likewise.
43087 (GRUB_E820_ACPI): Likewise.
43088 (GRUB_E820_NVS): Likewise.
43089 (GRUB_E820_EXEC_CODE): Likewise.
43090 (GRUB_E820_MAX_ENTRY): Likewise.
43091 (grub_e820_mmap): New structure.
43092 (linux_kernel_header): Change the efi field according to different
43093 kernel version, also field from linux_kernel_header.
43094
43095 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43096
43097 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43098 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43099 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43100 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43101 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43102 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43103 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43104 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43105 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43106 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43107
43108 * include/grub/x86_64/efi/kernel.h: New file.
43109
43110 * include/grub/x86_64/efi/loader.h: Likewise.
43111
43112 * include/grub/x86_64/efi/machine.h: Likewise.
43113
43114 * include/grub/x86_64/efi/pci.h: Likewise.
43115
43116 * include/grub/x86_64/efi/time.h: Likewise.
43117
43118 * include/grub/x86_64/linux.h: Likewise.
43119
43120 * include/grub/x86_64/setjmp.h: Likewise.
43121
43122 * include/grub/x86_64/time.h: Likewise.
43123
43124 * include/grub/x86_64/types.h: Likewise.
43125
43126 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43127 GRUB_TARGET_SIZEOF_VOID_P.
43128
43129 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43130 (grub_efi_locate_handle): Likewise.
43131 (grub_efi_open_protocol): Likewise.
43132 (grub_efi_set_text_mode): Likewise.
43133 (grub_efi_stall): Likewise.
43134 (grub_exit): Likewise.
43135 (grub_reboot): Likewise.
43136 (grub_halt): Likewise.
43137 (grub_efi_exit_boot_services): Likewise.
43138 (grub_get_rtc): Likewise.
43139
43140 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43141 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43142 (grub_efi_allocate_pages): Wrap efi calls.
43143 (grub_efi_free_pages): Wrap efi calls.
43144 (grub_efi_get_memory_map): Wrap efi calls.
43145
43146 * kern/x86_64/dl.c: New file.
43147
43148 * kern/x86_64/efi/callwrap.S: Likewise.
43149
43150 * kern/x86_64/efi/startup.S: Likewise.
43151
43152 * loader/efi/appleloader.c: Likewise.
43153
43154 * loader/efi/chainloader.c (cmdline): New variable.
43155 (grub_chainloader_unload): Wrap efi calls.
43156 (grub_chainloader_boot): Likewise.
43157 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43158 command line.
43159
43160 * loader/efi/chainloader_normal.c (chainloader_command):
43161 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43162 command line.
43163
43164 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43165 method.
43166 (grub_e820_add_region): New function.
43167 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43168 booting.
43169 (grub_find_video_card): New function.
43170 (grub_linux_setup_video): New function.
43171 (grub_rescue_cmd_linux): Probe for video information.
43172
43173 * normal/x86_64/setjmp.S: New file.
43174
43175 * term/efi/console.c (map_char): New function.
43176 (grub_console_putchar): Map unicode char.
43177 (grub_console_checkkey): Wrap efi calls.
43178 (grub_console_getkey): Likewise.
43179 (grub_console_getwh): Likewise.
43180 (grub_console_gotoxy): Likewise.
43181 (grub_console_cls): Likewise.
43182 (grub_console_setcolorstate): Likewise.
43183 (grub_console_setcursor): Likewise.
43184
43185 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43186
43187 2008-07-16 Pavel Roskin <proski@gnu.org>
43188
43189 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43190 format strings.
43191
43192 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43193 pointer, not an integer. This fixes a warning and prevents
43194 precision loss on 64-bit systems.
43195 (relocate_addresses): Remove unneeded cast.
43196
43197 2008-07-15 Pavel Roskin <proski@gnu.org>
43198
43199 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43200
43201 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43202
43203 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43204 Fix comparison between signed and unsigned.
43205
43206 * include/grub/i386/ieee1275/console.h: Declare
43207 grub_console_init() and grub_console_fini().
43208
43209 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43210 It's empty and unused.
43211
43212 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43213 beginning to avoid warnings with some compilers.
43214
43215 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43216 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43217
43218 2008-07-14 Pavel Roskin <proski@gnu.org>
43219
43220 * kern/env.c (grub_register_variable_hook): Don't copy empty
43221 string, it leaks memory. Pass "" to grub_env_set(), it should
43222 handle constant strings.
43223
43224 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43225 * commands/cmp.c (grub_cmd_cmp): Likewise.
43226 * kern/dl.c (grub_dl_flush_cache): Likewise.
43227 (grub_dl_load_core): Likewise.
43228 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43229 (grub_elf64_load_phdrs): Likewise.
43230
43231 2008-07-13 Pavel Roskin <proski@gnu.org>
43232
43233 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43234 between signed and unsigned.
43235 (LzmaEnc_Finish): Fix warning about an unused parameter.
43236
43237 2008-07-13 Bean <bean123ch@gmail.com>
43238
43239 * Makefile.in (enable_lzo): New rule.
43240
43241 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43242
43243 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43244
43245 * boot/i386/pc/lnxboot.S: #include <config.h>.
43246
43247 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43248 its value according to the compression algorithm used, lzo or lzma.
43249
43250 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43251 compression algorithm according to configure macro.
43252
43253 * kern/i386/pc/startup.S (codestart): Likewise.
43254
43255 * kern/i386/pc/lzma_decode.S: New file.
43256
43257 * include/grub/lib/LzFind.h: Likewise.
43258
43259 * include/grub/lib/LzHash.h: Likewise.
43260
43261 * include/grub/lib/LzmaDec.h: Likewise.
43262
43263 * include/grub/lib/LzmaEnc.h: Likewise.
43264
43265 * include/grub/lib/LzmaTypes.h: Likewise.
43266
43267 * lib/LzFind.c: Likewise.
43268
43269 * lib/LzmaDec.c: Likewise.
43270
43271 * lib/LzmaEnc.c: Likewise.
43272
43273 2008-07-13 Bean <bean123ch@gmail.com>
43274
43275 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43276 (grub_ext4_extent_header): New structure.
43277 (grub_ext4_extent): Likewise.
43278 (grub_ext4_extent_idx): Likewise.
43279 (grub_ext4_find_leaf): New function.
43280 (grub_ext2_read_block): Handle extents.
43281
43282 2008-07-12 Robert Millan <rmh@aybabtu.com>
43283
43284 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43285
43286 2008-07-11 Robert Millan <rmh@aybabtu.com>
43287
43288 * util/grub.d/40_custom.in: New file. Example on how to add custom
43289 entries to /etc/grub.d.
43290 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43291 40_custom (implicitly, by merging all the grub.d rules).
43292
43293 2008-07-11 Pavel Roskin <proski@gnu.org>
43294
43295 * commands/read.c (grub_getline): Fix invalid memory access.
43296 Don't add newline to the variable value.
43297
43298 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43299 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43300 (serial_hw_get_port): Check validity of the port number.
43301 (grub_cmd_serial): Check return value of serial_hw_get_port().
43302
43303 2008-07-07 Pavel Roskin <proski@gnu.org>
43304
43305 * boot/i386/pc/diskboot.S (notification_string): Replace
43306 "Loading kernel" with just "loading". This is shorter, less
43307 confusing and saves a few bytes for possible future changes.
43308
43309 2008-07-05 Pavel Roskin <proski@gnu.org>
43310
43311 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43312 size for ATAPI devices, they are undefined. Output sector
43313 number in decimal form.
43314
43315 * disk/ata.c: Use named constants for status bits.
43316
43317 2008-07-04 Pavel Roskin <proski@gnu.org>
43318
43319 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43320 grub_addr_t before casting it to the void pointer to fix a
43321 warning. Non-addressable regions are discarded earlier.
43322 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43323 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43324 (check_signature): Don't shadow table_header.
43325 (grub_linuxbios_table_iterate): Cast numeric constants to
43326 grub_linuxbios_table_header_t.
43327 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43328 grub_stop().
43329
43330 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43331 prevent warnings.
43332
43333 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43334 pointer, which can cause warnings. Support 64-bit addresses.
43335
43336 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43337 of sizeof(long). This fixes PowerPC image generation on x86_64.
43338
43339 2008-07-04 Robert Millan <rmh@aybabtu.com>
43340
43341 This fixes a performance issue when pc & gpt partmap iterators
43342 didn't abort iteration even after our hook found what it was
43343 looking for (often causing expensive probes of non-existent drives).
43344
43345 Some callers relied on previous buggy behaviour, since they would
43346 raise an error when their own hooks caused early abortion of its
43347 iteration.
43348
43349 * kern/device.c (grub_device_open): Improve error message.
43350 * disk/lvm.c (grub_lvm_open): Likewise.
43351 * disk/raid.c (grub_raid_open): Likewise.
43352
43353 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43354 when hook requests it, independently of grub_errno.
43355 (pc_partition_map_probe): Do not fail when find_func() caused
43356 early abortion of pc_partition_map_iterate().
43357
43358 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43359 when hook requests it, independently of grub_errno.
43360 (gpt_partition_map_probe): Do not fail when find_func() caused
43361 early abortion of gpt_partition_map_iterate().
43362
43363 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43364 when hook requests it, independently of grub_errno. Do not fail when
43365 part_map_iterate_hook() caused early abortion of p->iterate().
43366
43367 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43368 when grub_partition_iterate() returned with non-zero.
43369
43370 2008-07-03 Pavel Roskin <proski@gnu.org>
43371
43372 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43373 like we do in grub_ata_pio_read().
43374 (grub_ata_readwrite): Always write individual sectors. Fix the
43375 sector count for the remainder.
43376 (grub_ata_write): Enable writing to ATA devices. Correctly
43377 report error for ATAPI devices.
43378
43379 2008-07-02 Pavel Roskin <proski@gnu.org>
43380
43381 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43382 warning.
43383
43384 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43385 for every read sector, we already increment it for the whole
43386 batch. This fixes reading more than 256 sectors at once.
43387
43388 * util/grub-editenv.c (cmd_info): Cast argument to long
43389 explicitly. ptrdiff_t reduces to int on i386.
43390
43391 * util/grub-editenv.c (main): Be specific which parameter is
43392 missing.
43393
43394 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43395 (memdisk): Make memdisk_orig_addr a pointer.
43396
43397 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43398 for file offsets, use grub_off_t instead. Fix printf format
43399 warnings.
43400
43401 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43402 there. Real unexpected warnings should not drown in the noise
43403 about known problems.
43404
43405 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43406 grub_disk_addr_t for memory addresses.
43407
43408 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43409 explicitly to fix a warning.
43410
43411 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
43412
43413 * Makefile.in (MODULE_LDFLAGS): New variable.
43414 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
43415 the linker accepts --build-id=none.
43416 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
43417 MODULE_LDFLAGS.
43418 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
43419
43420 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
43421 those in Linux XFS code. Provide a way to access 64-bit parent
43422 inode.
43423 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
43424 the end of struct grub_xfs_dir_header.
43425
43426 2008-07-02 Bean <bean123ch@gmail.com>
43427
43428 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
43429 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43430 and GRUB_IEEE1275_FLAG_NO_ANSI.
43431
43432 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
43433 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
43434 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
43435
43436 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
43437 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
43438
43439 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
43440 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
43441
43442 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
43443 esc sequence on non ANSI terminal.
43444 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
43445
43446 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
43447 beginning of file.
43448
43449 2008-07-02 Bean <bean123ch@gmail.com>
43450
43451 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
43452 (grub_editenv_SOURCES): New variable.
43453 (pkglib_MODULES): Add loadenv.mod.
43454 (loadenv_mod_SOURCES): New variable.
43455 (loadenv_mod_CFLAGS): Likewise.
43456 (loadenv_mod_LDFLAGS): Likewise.
43457
43458 * include/grub/envblk.h: New file.
43459
43460 * util/envblk.c: New file.
43461
43462 * util/grub-editenv.c: New file.
43463
43464 * commands/loadenv.c: New file.
43465
43466 2008-07-01 Pavel Roskin <proski@gnu.org>
43467
43468 * include/multiboot2.h (struct multiboot_tag_module): Use char,
43469 not unsigned char. This fixes warnings and is consistent with
43470 other tags.
43471
43472 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
43473
43474 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
43475
43476 * term/tparm.c (analyze): Always set *popcount.
43477
43478 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
43479 cast to fix a warning.
43480
43481 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
43482 cast to suppress a warning.
43483
43484 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
43485 grub_fshelp_read_file() expects.
43486
43487 * fs/fat.c: Fix UUID calculation on big-endian systems. We
43488 write uuid as a 32-bit value in CPU byte order, so declare and
43489 use it as such.
43490
43491 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
43492 long if the format specifier expects it.
43493 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
43494 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43495 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
43496 long to fix a warning.
43497 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
43498 grub_dprintf() arguments to fix warnings.
43499
43500 2008-06-30 Pavel Roskin <proski@gnu.org>
43501
43502 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
43503 install_bsd_part immediately before core.img is embedded or
43504 modified on disk. This fixes core.img verification if core.img
43505 cannot be embedded.
43506
43507 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
43508 core_path to calculate the blocklist.
43509 Patch from Javier Martín <lordhabbit@gmail.com>
43510
43511 2008-06-29 Robert Millan <rmh@aybabtu.com>
43512
43513 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
43514 block to disk block.
43515 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
43516 Patch from Niels Böhm <bitbucket@arcor.de>
43517
43518 2008-06-29 Robert Millan <rmh@aybabtu.com>
43519
43520 * util/update-grub_lib.in (font_path): Search for fonts in
43521 /boot/grub first, which is more likely to be readable (we aren't
43522 deciding where fonts live, just looking for them).
43523
43524 2008-06-26 Pavel Roskin <proski@gnu.org>
43525
43526 * util/biosdisk.c (read_device_map): Don't leave dead map
43527 entries for devices failing stat() check.
43528
43529 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
43530 core_path_dev for the core.img path on the target device.
43531
43532 2008-06-26 Robert Millan <rmh@aybabtu.com>
43533
43534 * disk/fs_uuid.c: New file.
43535 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
43536 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
43537 (fs_uuid_mod_LDFLAGS): New variables.
43538 * include/grub/disk.h (grub_disk_dev_id): Add
43539 `GRUB_DISK_DEVICE_UUID_ID'.
43540 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
43541 implement iterate().
43542
43543 2008-06-26 Robert Millan <rmh@aybabtu.com>
43544
43545 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
43546 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
43547 Linux image includes no initrd.
43548
43549 2008-06-21 Javier Martín <lordhabbit@gmail.com>
43550
43551 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
43552 call to resolve the core image location that effectively appended the
43553 name twice.
43554
43555 2008-06-21 Robert Millan <rmh@aybabtu.com>
43556
43557 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
43558 call from here ...
43559
43560 * util/grub.d/10_hurd.in: ... to here ...
43561 * util/grub.d/10_linux.in: ... and here.
43562
43563 2008-06-19 Robert Millan <rmh@aybabtu.com>
43564
43565 * kern/main.c (grub_main): Export `prefix' variable immediately
43566 after it has been set by grub_machine_set_prefix().
43567
43568 2008-06-19 Robert Millan <rmh@aybabtu.com>
43569
43570 * commands/search.c (search_label, search_fs_uuid, search_file): Print
43571 search result when not saving to variable, not the other way around.
43572 When saving to variable, abort iteration as soon as a match is found.
43573
43574 2008-06-19 Robert Millan <rmh@aybabtu.com>
43575
43576 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
43577 check for partition that provides /boot/grub. Its logic is flawed,
43578 as it prevents prepare_grub_to_access_device() from being called
43579 multiple times.
43580
43581 2008-06-19 Robert Millan <rmh@aybabtu.com>
43582
43583 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
43584 "insmod" command directly when abstraction modules are needed,
43585 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
43586 since it had already been processed).
43587
43588 2008-06-19 Pavel Roskin <proski@gnu.org>
43589
43590 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
43591 changed. This is needed in case GRUB_LIBDIR changes.
43592 * conf/i386-ieee1275.rmk: Likewise.
43593 * conf/i386-linuxbios.rmk: Likewise.
43594 * conf/i386-pc.rmk: Likewise.
43595 * conf/powerpc-ieee1275.rmk: Likewise.
43596
43597 2008-06-18 Pavel Roskin <proski@gnu.org>
43598
43599 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
43600 kernel_elf_symlist.c to symlist.c for consistency with other
43601 architectures. Update all users.
43602 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43603
43604 2008-06-18 Robert Millan <rmh@aybabtu.com>
43605
43606 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
43607 it in prefix.
43608
43609 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
43610 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
43611 a RAID device, run setup() for all members independently on whether
43612 LVM abstraction is being used.
43613 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
43614 If grub-mkimage has set `*install_dos_part == -2', don't override this
43615 value.
43616 Perform *install_dos_part adjustments independently on whether
43617 we're embedding or not.
43618 Clarify error message when image is too big for embedding.
43619 Remove duplicate *install_dos_part stanza.
43620
43621 2008-06-17 Robert Millan <rmh@aybabtu.com>
43622
43623 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
43624 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
43625 variables.
43626 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
43627 values in grub_ofconsole_normal_color and
43628 grub_ofconsole_highlight_color (they're not directly related to
43629 background and foreground).
43630 (grub_ofconsole_setcolorstate): Extract background and foreground
43631 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
43632
43633 2008-06-17 Robert Millan <rmh@aybabtu.com>
43634
43635 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
43636 /boot/grub for the check in last commit, not /boot (they could be
43637 different partitions).
43638
43639 2008-06-16 Robert Millan <rmh@aybabtu.com>
43640
43641 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
43642 asked to setup access for the same partition that provides /boot,
43643 don't bother using UUIDs since our root already has the value we
43644 want.
43645
43646 2008-06-16 Robert Millan <rmh@aybabtu.com>
43647
43648 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
43649 I2O devices.
43650 Patch from Sven Mueller <sven@debian.org>.
43651
43652 2008-06-16 Robert Millan <rmh@aybabtu.com>
43653
43654 * util/update-grub.in: Check for $EUID instead of $UID.
43655 Reported by Vincent Zweije.
43656
43657 2008-06-16 Bean <bean123ch@gmail.com>
43658
43659 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
43660 (grub_ext2_read_block): Likewise.
43661 (grub_ext2_read_inode): Likewise.
43662 (grub_ext2_mount): Likewise.
43663 (grub_ext2_close): Likewise.
43664 (grub_ext3_get_journal): Removed.
43665
43666 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
43667 (grub_reiserfs_read_symlink): Likewise.
43668 (grub_reiserfs_mount): Likewise.
43669 (grub_reiserfs_open): Likewise.
43670 (grub_reiserfs_read): Likewise.
43671 (grub_reiserfs_close): Likewise.
43672 (grub_reiserfs_get_journal): Removed.
43673
43674 * fs/fshelp.c (grub_fshelp_read): Removed.
43675 (grub_fshelp_map_block): Likewise.
43676
43677 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
43678 (grub_fshelp_journal): Likewise.
43679 (grub_fshelp_read): Likewise.
43680 (grub_fshelp_map_block): Likewise.
43681
43682 2008-06-16 Pavel Roskin <proski@gnu.org>
43683
43684 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
43685 floating point anymore.
43686 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
43687
43688 2008-06-15 Pavel Roskin <proski@gnu.org>
43689
43690 * commands/ls.c (grub_ls_list_files): Use integer calculations
43691 for human readable format, avoid floating point use.
43692 * kern/misc.c (grub_ftoa): Remove.
43693 (grub_vsprintf): Remove floating point support.
43694
43695 2008-06-15 Robert Millan <rmh@aybabtu.com>
43696
43697 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
43698 devices.
43699 Reported by Max Vozeler.
43700
43701 2008-06-15 Robert Millan <rmh@aybabtu.com>
43702
43703 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
43704 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
43705 skipped later.
43706 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
43707 the beginning of the prefix.
43708
43709 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
43710 It is assumed that if we have a memdisk, grub-mkimage has set
43711 grub_prefix to include the "(memdisk)" drive in it.
43712
43713 2008-06-15 Robert Millan <rmh@aybabtu.com>
43714
43715 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
43716 Initialize keyboard controller after registering the terminal, so that
43717 grub_printf() can be called from grub_keyboard_controller_init().
43718
43719 2008-06-15 Robert Millan <rmh@aybabtu.com>
43720
43721 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
43722 extent-btree which is written as big endian on disk.
43723 Reported by Alain Greppin <al@chilibi.org>.
43724
43725 2008-06-14 Robert Millan <rmh@aybabtu.com>
43726
43727 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
43728 * util/i386/pc/grub-install.in (modules): Likewise.
43729
43730 2008-06-13 Pavel Roskin <proski@gnu.org>
43731
43732 * commands/ls.c (grub_ls_list_files): Fix format warnings.
43733
43734 2008-06-13 Bean <bean123ch@gmail.com>
43735
43736 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
43737
43738 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
43739
43740 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
43741 to indicate sparse block.
43742
43743 2008-06-12 Pavel Roskin <proski@gnu.org>
43744
43745 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
43746 number, grub_fshelp_read() does it for us.
43747
43748 * fs/fshelp.c (grub_fshelp_read): New function. Implement
43749 linear disk read with journal translation.
43750 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
43751 * include/grub/fshelp.h: Declare grub_fshelp_read().
43752
43753 2008-06-09 Pavel Roskin <proski@gnu.org>
43754
43755 * fs/minix.c (grub_minix_mount): Handle error reading
43756 superblock.
43757
43758 2008-06-08 Robert Millan <rmh@aybabtu.com>
43759
43760 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
43761 don't append the RAID prefix afterwards.
43762 Reported by Clint Adams.
43763
43764 2008-06-08 Robert Millan <rmh@aybabtu.com>
43765
43766 Based on description from Pavel:
43767 * kern/disk.c (grub_disk_check_range): Rename to ...
43768 (grub_disk_adjust_range): ... this. Add a comment explaining the
43769 tasks performed by this function.
43770
43771 2008-06-08 Robert Millan <rmh@aybabtu.com>
43772
43773 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
43774 `num_serial' (for consistency with other variables).
43775 (struct grub_ntfs_data): Add `uuid' member.
43776 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43777 (grub_ntfs_uuid): New function.
43778 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43779
43780 2008-06-07 Pavel Roskin <proski@gnu.org>
43781
43782 * util/biosdisk.c (open_device): Revert last change to the
43783 function, it broke installation. The sector needs to be
43784 different dependent on which device is opened.
43785
43786 2008-06-06 Robert Millan <rmh@aybabtu.com>
43787
43788 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43789 rest of GRUB, and breakage doesn't happen if its value were modified.
43790
43791 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43792 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43793 a constant (same value).
43794 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43795 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43796
43797 2008-06-06 Robert Millan <rmh@aybabtu.com>
43798
43799 * util/biosdisk.c (open_device): Do not modify sector offset when
43800 accessing a partition. kern/disk.c already handles this for us.
43801
43802 2008-06-06 Robert Millan <rmh@aybabtu.com>
43803
43804 * util/grub-emu.c (grub_machine_init): Move code in this function from
43805 here ...
43806 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43807 segfault in case grub_printf() is called).
43808
43809 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43810 grub_probe. Update all users not to explicitly add it again.
43811 (grub_device): New variable; contains corresponding device for grubdir.
43812 (fs_module, partmap_module, devabstraction_module): Pass
43813 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43814 every time.
43815
43816 2008-06-05 Robert Millan <rmh@aybabtu.com>
43817
43818 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43819 is found, print it (same layout as with labels).
43820
43821 2008-06-04 Robert Millan <rmh@aybabtu.com>
43822
43823 * util/biosdisk.c (get_drive): Rename to ...
43824 (find_grub_drive): ... this. Update all users.
43825
43826 (get_os_disk): Rename to ...
43827 (convert_system_partition_to_system_disk): ... this. Update all users.
43828
43829 (find_drive): Rename to ...
43830 (find_system_device): ... this. Update all users.
43831
43832 2008-06-04 Robert Millan <rmh@aybabtu.com>
43833
43834 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43835 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43836 (make_device_map): Likewise.
43837
43838 2008-06-01 Robert Millan <rmh@aybabtu.com>
43839
43840 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43841 before dereferencing it.
43842
43843 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43844 union with fat12/fat16-specific ones. Add some new fields, including
43845 `num_serial' for both versions.
43846 (struct grub_fat_data): Add `uuid' member.
43847 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43848 names. Initialize `data->uuid' using `num_serial'.
43849 (grub_fat_uuid): New function.
43850 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43851
43852 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43853 (grub_reiserfs_uuid): New function.
43854 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43855 member.
43856
43857 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43858 (grub_xfs_uuid): New function.
43859 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43860
43861 2008-06-01 Robert Millan <rmh@aybabtu.com>
43862
43863 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43864 code that is backward compatible with pre-uuid search command.
43865
43866 2008-05-31 Robert Millan <rmh@aybabtu.com>
43867
43868 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43869 floppies after everything else, to ensure floppy drive isn't accessed
43870 unnecessarily (patch from Bean).
43871
43872 2008-05-31 Robert Millan <rmh@aybabtu.com>
43873
43874 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43875 not print device names when we were asked to set a variable.
43876
43877 2008-05-31 Robert Millan <rmh@aybabtu.com>
43878
43879 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43880 using "cursor-on" and "cursor-off" commands (understood at least by
43881 the Open Firmware flavour on OLPC).
43882
43883 2008-05-31 Michael Gorven <michael@gorven.za.net>
43884
43885 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43886 on and off sequences.
43887
43888 2008-05-31 Robert Millan <rmh@aybabtu.com>
43889
43890 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43891 * util/update-grub.in: Likewise.
43892
43893 2008-05-30 Pavel Roskin <proski@gnu.org>
43894
43895 * util/biosdisk.c (linux_find_partition): Simplify logic and
43896 make the code more universal. Keep special processing for
43897 devfs, but use a simple rule for all other devices. If the
43898 device ends with a number, append 'p' and the partition number.
43899 Otherwise, append only the partition number.
43900
43901 2008-05-30 Robert Millan <rmh@aybabtu.com>
43902
43903 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43904 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43905 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43906 the `root' parameter to Linux.
43907
43908 2008-05-30 Robert Millan <rmh@aybabtu.com>
43909
43910 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43911 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43912 --fs_uuid with --fs-uuid.
43913 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43914 all filesystems support them).
43915
43916 2008-05-30 Robert Millan <rmh@aybabtu.com>
43917
43918 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
43919 grub_printf() flags, since we're printing in units of 2 bytes.
43920
43921 2008-05-30 Robert Millan <rmh@aybabtu.com>
43922
43923 * util/grub.d/00_header.in: Remove obsolete comment referencing
43924 convert_system_path_to_grub_path().
43925 * util/update-grub.in: Likewise.
43926 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43927 (convert_system_path_to_grub_path): Add a warning message explaining
43928 that this function is deprecated. Rely on is_path_readable_by_grub()
43929 for the readability checks.
43930 (font_path): Use is_path_readable_by_grub() for the readability
43931 check rather than convert_system_path_to_grub_path().
43932
43933 2008-05-30 Robert Millan <rmh@aybabtu.com>
43934
43935 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43936 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43937 converting it first.
43938 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43939 grub.cfg for access to font file, and afterwards call it again to set
43940 the root device.
43941
43942 2008-05-30 Robert Millan <rmh@aybabtu.com>
43943
43944 * commands/search.c (options): Add --fs_uuid option.
43945 (search_fs_uuid): New function.
43946 (grub_cmd_search): Fix --set argument passing.
43947 Use search_fs_uuid() when requested via --fs_uuid.
43948 (grub_search_init): Update help message.
43949 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43950 and redeclare it as an array of 16-bit words.
43951 (grub_ext2_uuid): New function.
43952 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43953 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43954 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43955 (GRUB_DEVICE_BOOT_UUID): New variables.
43956 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43957 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43958 whenever possible.
43959 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43960 just assume `root' variable has the right value.
43961 * util/grub.d/10_linux.in: Likewise.
43962 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43963 via PRINT_FS_UUID.
43964 (main): Recognise `-t fs_uuid' argument.
43965
43966 2008-05-30 Robert Millan <rmh@aybabtu.com>
43967
43968 * util/biosdisk.c (map): Redefine structure to hold information
43969 about GRUB drive name.
43970 (get_drive): Reimplement without assuming (and verifying) BIOS-like
43971 drive names.
43972 (call_hook): Remove.
43973 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43974 member. Assume drive has partitions.
43975 (grub_util_biosdisk_open): Access device names via `.device' struct
43976 member.
43977 (open_device): Likewise.
43978 (find_drive): Likewise.
43979 (read_device_map): Adjust map[] usage to match the new struct
43980 definition. Don't check for duplicates (still possible, but not cheap
43981 anymore).
43982 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43983 (make_device_name): Remove assumption of BIOS-like drive names.
43984
43985 2008-05-30 Pavel Roskin <proski@gnu.org>
43986
43987 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43988 compiling execute.c doesn't need grub_script.tab.h anymore.
43989 (normal/command.c_DEPENDENCIES): Likewise.
43990 (normal/function.c_DEPENDENCIES): Likewise.
43991 * conf/i386-ieee1275.rmk: Likewise.
43992 * conf/i386-linuxbios.rmk: Likewise.
43993 * conf/i386-pc.rmk: Likewise.
43994 * conf/powerpc-ieee1275.rmk: Likewise.
43995 * conf/sparc64-ieee1275.rmk: Likewise.
43996
43997 2008-05-29 Pavel Roskin <proski@gnu.org>
43998
43999 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44000 when scanning metadata for volume group name.
44001
44002 * include/grub/script.h: Don't include grub_script.tab.h. It's
44003 a generated file, which may only be included from the files with
44004 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44005 use union YYSTYPE, as the later allows forward declaration.
44006 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44007
44008 2008-05-29 Robert Millan <rmh@aybabtu.com>
44009
44010 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44011 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44012 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44013 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44014 scan codes.
44015
44016 2008-05-29 Robert Millan <rmh@aybabtu.com>
44017
44018 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44019 control key combinations.
44020
44021 2008-05-29 Robert Millan <rmh@aybabtu.com>
44022
44023 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44024 * util/ieee1275/grub-install.in: ... to here.
44025 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44026 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44027 (grub_install_SOURCES): Likewise.
44028
44029 2008-05-29 Robert Millan <rmh@aybabtu.com>
44030
44031 * fs/affs.c: Update copyright year.
44032 * fs/ext2.c: Likewise.
44033 * fs/fshelp.c: Likewise.
44034 * fs/hfsplus.c: Likewise.
44035 * fs/ntfs.c: Likewise.
44036 * fs/xfs.c: Likewise.
44037 * include/grub/fshelp.h: Likewise.
44038 * util/grub-mkdevicemap.c: Likewise.
44039
44040 2008-05-28 Robert Millan <rmh@aybabtu.com>
44041
44042 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44043 might need to be fatfs to support some firmware implementations
44044 (e.g. OFW or EFI).
44045
44046 2008-05-28 Robert Millan <rmh@aybabtu.com>
44047
44048 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44049 devices.
44050 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44051 (make_device_map): Likewise.
44052
44053 2008-05-20 Bean <bean123ch@gmail.com>
44054
44055 * fs/fshelp.c (grub_fshelp_map_block): New function.
44056 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44057 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44058
44059 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44060 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44061 (grub_fshelp_journal): New structure.
44062 (grub_fshelp_map_block): New function prototype.
44063 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44064 (grub_fshelp_map_block): Likewise.
44065
44066 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44067 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44068 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44069 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44070 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44071 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44072 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44073 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44074 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44075 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44076 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44077 (grub_ext2_sblock): New members for journal support.
44078 (grub_ext3_journal_header): New structure.
44079 (grub_ext3_journal_revoke_header): Likewise.
44080 (grub_ext3_journal_block_tag): Likewise.
44081 (grub_ext3_journal_sblock): Likewise.
44082 (grub_fshelp_node): New members logfile and journal.
44083 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44084 grub_fshelp_map_block to get real block number.
44085 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44086 number.
44087 (grub_ext2_read_inode): Likewise.
44088 (grub_ext3_get_journal): New function.
44089 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44090 (grub_ext2_close): Release memory used by journal.
44091
44092 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44093 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44094 (grub_reiserfs_transaction_header): Renamed to
44095 grub_reiserfs_description_block, replace field data with real_blocks.
44096 (grub_reiserfs_commit_block): New structure.
44097 (grub_reiserfs_data): New member journal.
44098 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44099 number.
44100 (grub_reiserfs_read_symlink): Likewise.
44101 (grub_reiserfs_iterate_dir): Likewise.
44102 (grub_reiserfs_open): Likewise.
44103 (grub_reiserfs_read): Likewise.
44104 (grub_reiserfs_get_journal): New function.
44105 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44106 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44107 using grub_reiserfs_get_journal.
44108 (grub_reiserfs_close): Release memory used by journal.
44109
44110 * fs/affs.c (grub_affs_read_block): Change block type to
44111 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44112
44113 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44114
44115 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44116
44117 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44118
44119 * fs/udf.c (grub_udf_read_block): Change block type to
44120 grub_disk_addr_t. Use type cast to avoid warning.
44121
44122 * fs/xfs.c (grub_xfs_read_block): Likewise.
44123
44124 2008-05-16 Christian Franke <franke@computer.org>
44125
44126 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44127 to ensure that break with ESC will always work.
44128 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44129 Remove ESC from keyboard queue.
44130
44131 2008-05-16 Christian Franke <franke@computer.org>
44132
44133 * util/biosdisk.c: [__CYGWIN__] Add includes.
44134 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44135 (get_os_disk): Move variable declarations to OS specific
44136 parts to avoid warning.
44137 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44138 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44139 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44140 Cygwin.
44141 * util/getroot.c: [__CYGWIN__] Add includes.
44142 (strip_extra_slashes): Fix "/" case.
44143 [__CYGWIN__] (get_win32_path): New function.
44144 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44145 [__CYGWIN__] (find_root_device): Disable.
44146 [__CYGWIN__] (get_bootsec_serial): New function.
44147 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44148 [__linux__] (grub_guess_root_device): Add early returns to simplify
44149 structure.
44150 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44151 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44152 check for Linux only.
44153
44154 2008-05-15 Bean <bean123ch@gmail.com>
44155
44156 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44157 keyboard hang problem in apple's intel mac.
44158
44159 2008-05-09 Robert Millan <rmh@aybabtu.com>
44160
44161 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44162 devices.
44163 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44164 (make_device_map): Likewise.
44165 Reported by Aurelien Jarno <aurel32@debian.org>
44166
44167 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44168
44169 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44170 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44171 (make_device_map): Output entries for xvd type disks.
44172
44173 2008-05-07 Robert Millan <rmh@aybabtu.com>
44174
44175 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44176 devices.
44177 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44178 (make_device_map): Likewise.
44179 Reported by Roland Dreier <rdreier@cisco.com>
44180
44181 2008-05-07 Robert Millan <rmh@aybabtu.com>
44182
44183 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44184 grub_strstr() call. Correct a few mistakes in failure path handling.
44185
44186 2008-05-06 Robert Millan <rmh@aybabtu.com>
44187
44188 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44189 Do not print a trailing slash (therefore, the root directory is an
44190 empty string).
44191 (convert_system_path_to_grub_path): Do not remove trailing slash
44192 from make_system_path_relative_to_its_root() output.
44193
44194 * util/i386/pc/grub-install.in: Add trailing slash to output from
44195 make_system_path_relative_to_its_root().
44196
44197 2008-05-06 Robert Millan <rmh@aybabtu.com>
44198
44199 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44200 ensures that output lines aren't intermangled with those sent to
44201 stderr (via grub_util_info()).
44202 * util/grub-probe.c (grub_refresh): Likewise.
44203 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44204
44205 2008-05-05 Christian Franke <franke@computer.org>
44206
44207 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44208 Add Cygwin device names.
44209 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44210 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44211 (check_device): Return error instead of success on empty name.
44212 (make_device_map): Move label inside linux specific code to
44213 prevent compiler warning.
44214
44215 2008-04-30 Robert Millan <rmh@aybabtu.com>
44216
44217 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44218 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44219 first boot option.
44220 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44221
44222 2008-04-29 Robert Millan <rmh@aybabtu.com>
44223
44224 * docs/grub.cfg: New file (example GRUB configuration).
44225
44226 2008-04-26 Robert Millan <rmh@aybabtu.com>
44227
44228 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44229 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44230 and `disk/ieee1275/nand.c'.
44231
44232 2008-04-25 Bean <bean123ch@gmail.com>
44233
44234 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44235 i386-linuxbios.
44236
44237 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44238 change the buffer size to 4096 for cdrom device.
44239
44240 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44241 and nand.mod.
44242 (_linux_mod_SOURCES): New variable.
44243 (_linux_mod_CFLAGS): Likewise.
44244 (_linux_mod_LDFLAGS): Likewise.
44245 (linux_mod_SOURCES): Likewise.
44246 (linux_mod_CFLAGS): Likewise.
44247 (linux_mod_LDFLAGS): Likewise.
44248 (nand_mod_SOURCES): Likewise.
44249 (nand_mod_CFLAGS): Likewise.
44250 (nand_mod_LDFLAGS): Likewise.
44251
44252 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44253 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44254 type property. (nand device in olpc don't have this property)
44255
44256 * include/grub/disk.h (grub_disk_dev_id): New macro
44257 GRUB_DISK_DEVICE_NAND_ID.
44258
44259 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44260 function prototype.
44261 (grub_rescue_cmd_initrd): Likewise.
44262
44263 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44264 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44265 ofw_cif_handler and ofw_idt, adjust padding number.
44266
44267 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44268 GRUB_MACHINE_IEEE1275 is defined.
44269
44270 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44271 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44272
44273 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44274 on nested function heap_init.
44275 (grub_upper_mem): New variable for i386-ieee1275.
44276 (grub_get_extended_memory): New function for i386-ieee1275.
44277 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44278
44279 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44280 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44281 property.
44282
44283 * loader/i386/ieee1275/linux.c: New file.
44284
44285 * loader/i386/ieee1275/linux_normal.c: New file.
44286
44287 * disk/ieee1275/nand.c: New file.
44288
44289 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44290
44291 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44292 value.
44293 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44294
44295 2008-04-18 Robert Millan <rmh@aybabtu.com>
44296
44297 Restructures early code path on ieee1275 to unify grub_main() as
44298 the first C function that is executed in every platform.
44299
44300 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44301 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44302 cmain().
44303 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44304 * kern/ieee1275/cmain.c (cmain): Rename to ...
44305 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44306 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44307 at the beginning.
44308
44309 2008-04-18 Robert Millan <rmh@aybabtu.com>
44310
44311 * util/update-grub.in: Fix syntax error when setting
44312 `GRUB_PRELOAD_MODULES'.
44313 Reported by Stephane Chazelas <stephane@artesyncp.com>
44314
44315 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44316
44317 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44318 section into account, newer toolchains generate unique build ids
44319 * configure.ac: remove the test for --build-id=none acceptance,
44320 we want build ids to be preserved
44321 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44322 far from other sections don't cause the raw binary images grow
44323 size
44324
44325 2008-04-15 Robert Millan <rmh@aybabtu.com>
44326
44327 * disk/lvm.c: Update copyright year.
44328 * kern/misc.c: Likewise.
44329
44330 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44331
44332 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44333 there is no memory left for physical volume name.
44334
44335 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44336
44337 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44338 volume name mapping to support bigger than 9 character names properly.
44339
44340 2008-04-13 Robert Millan <rmh@aybabtu.com>
44341
44342 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44343 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44344
44345 2008-04-13 Christian Franke <franke@computer.org>
44346
44347 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44348 to create a floppy emulation boot CD when non emulation mode
44349 does not work.
44350 Enable Joliet CD filesystem extension.
44351
44352 2008-04-13 Robert Millan <rmh@aybabtu.com>
44353
44354 * kern/misc.c (grub_strncat): Fix off-by-one error.
44355 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44356
44357 * kern/env.c (grub_env_context_close): Clear current context, not
44358 previous one.
44359 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44360
44361 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44362
44363 2008-04-13 Robert Millan <rmh@aybabtu.com>
44364
44365 Improve robustness when handling LVM.
44366
44367 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44368 (and leave `*p' unmodified).
44369 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44370 through it.
44371 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44372 iterating through it.
44373 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44374 through it.
44375 (grub_lvm_scan_device): Check the return value (and fail gracefully
44376 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44377 Don't assume `vg->pvs != NULL' when iterating through it.
44378
44379 2008-04-13 Robert Millan <rmh@aybabtu.com>
44380
44381 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44382 * genmk.rb (partmap): New variable.
44383 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44384 (#{partmap}): New target rule.
44385 * genpartmaplist.sh: New file.
44386 * Makefile.in (pkglib_DATA): Add partmap.lst.
44387 (partmap.lst): New target rule.
44388 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44389 modules (including all partition maps), instead of preloading them.
44390
44391 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44392
44393 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44394 `linux-boot-prober' (if installed) to detect other operating
44395 systems which are installed on the computer and add them to
44396 the boot menu.
44397 * conf/common.rmk: Build and install 30_os-prober.
44398
44399 2008-04-12 Robert Millan <rmh@aybabtu.com>
44400
44401 * kern/powerpc/ieee1275/init.c: Move from here ...
44402 * kern/ieee1275/init.c: ... to here. Update all users.
44403
44404 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44405 * kern/ieee1275/cmain.c: ... to here. Update all users.
44406
44407 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44408 * kern/ieee1275/openfw.c: ... to here. Update all users.
44409
44410 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
44411 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
44412
44413 2008-04-10 Pavel Roskin <proski@gnu.org>
44414
44415 * configure.ac: Always use "_cv_" in cache variables for
44416 compatibility with Autoconf 2.62.
44417
44418 2008-04-07 Robert Millan <rmh@aybabtu.com>
44419
44420 Revert grub/machine/init.h addition by Pavel (since it breaks on
44421 i386-ieee1275 and others):
44422 * util/i386/pc/misc.c: Remove grub/machine/init.h.
44423 * util/powerpc/ieee1275/misc.c: Likewise.
44424
44425 2008-04-07 Robert Millan <rmh@aybabtu.com>
44426
44427 * util/grub-probe.c (probe): Improve error message.
44428
44429 2008-04-07 Robert Millan <rmh@aybabtu.com>
44430
44431 * util/biosdisk.c (read_device_map): Skip devices that don't exist
44432 (this prevents the presence of a bogus entry from ruining the whole
44433 thing).
44434
44435 2008-04-06 Pavel Roskin <proski@gnu.org>
44436
44437 * util/biosdisk.c: Include grub/util/biosdisk.h.
44438 * util/grub-fstest.c (execute_command): Make static.
44439 * util/grub-mkdevicemap.c (check_device): Likewise.
44440 * util/i386/pc/misc.c: Include grub/machine/init.h.
44441 * util/powerpc/ieee1275/misc.c: Likewise.
44442 * util/lvm.c: Include grub/util/lvm.h.
44443 * util/misc.c: Include grub/kernel.h, grub/misc.h and
44444 grub/cache.h.
44445 * util/raid.c: Include grub/util/raid.h.
44446 (grub_util_getdiskname): Make static.
44447
44448 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
44449 grub_hostfs_fini(), as they are called from grub_init_all() and
44450 grub_fini_all() respectively. This fixes an infinite loop in
44451 grub-fstest due to double registration of hostfs.
44452 Reported by Christian Franke <Christian.Franke@t-online.de>
44453
44454 2008-04-05 Pavel Roskin <proski@gnu.org>
44455
44456 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
44457 all 8 functions. Otherwise, probe function 0 only.
44458
44459 2008-04-04 Pavel Roskin <proski@gnu.org>
44460
44461 * commands/lspci.c (grub_lspci_iter): Print the bus number
44462 correctly.
44463
44464 * commands/lspci.c (grub_pci_classes): Fix typos.
44465 (grub_lspci_iter): Don't print func twice. Print vendor ID
44466 before device ID, as it's normally done.
44467
44468 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44469 Fix signedness warnings.
44470 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
44471 Likewise.
44472 * util/ieee1275/get_disk_name.c: Include config.h so that
44473 _GNU_SOURCE is defined and getline() is declared. Mark an
44474 unused argument as such. Fix a signedness warning.
44475
44476 2008-04-02 Pavel Roskin <proski@gnu.org>
44477
44478 * genkernsyms.sh.in: Use more robust assignments for CC and
44479 srcdir. Quote srcdir.
44480 * gensymlist.sh.in: Likewise. Assert at the compile time that
44481 the symbol table is not empty.
44482
44483 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
44484 * fs/cpio.c (grub_cpio_read): Likewise.
44485
44486 2008-04-01 Pavel Roskin <proski@gnu.org>
44487
44488 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
44489 * disk/host.c (grub_host_open): Likewise.
44490 * disk/loopback.c (grub_loopback_open): Likewise.
44491 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
44492 disk->id as in disk/host.c, not a multi-character constant.
44493
44494 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
44495 later is obsolete, potentially dangerous and sets a bad example.
44496 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
44497 * util/misc.c (grub_util_get_image_size): Likewise.
44498
44499 * disk/loopback.c (options): Improve help for "--partitions".
44500
44501 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
44502 options to align them with the short options, e.g. "echo -e".
44503
44504 2008-03-31 Bean <bean123ch@gmail.com>
44505
44506 * video/reader/png.c (grub_png_data): New member is_16bit and
44507 image_data.
44508 (grub_png_decode_image_header): Detect 16 bit png image.
44509 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
44510 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
44511 (grub_video_reader_png): Release memory occupied by image_data.
44512
44513 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
44514 4096 bytes.
44515 (grub_nfs_mount): Skip the test for sector per cluster.
44516
44517 * include/grub/ntfs.h (MAX_SPC): Removed.
44518
44519 2008-03-31 Bean <bean123ch@gmail.com>
44520
44521 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
44522 (grub_probe_SOURCES): Add fs/afs.c.
44523 (grub_fstest_SOURCES): Likewise.
44524 (afs_mod_SOURCES): New variable.
44525 (afs_mod_CFLAGS): Likewise.
44526 (afs_mod_LDFLAGS): Likewise.
44527
44528 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
44529 (grub_emu_SOURCES): Likewise.
44530
44531 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44532
44533 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44534
44535 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44536
44537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44538
44539 * fs/afs.c: New file.
44540
44541 2008-03-30 Pavel Roskin <proski@gnu.org>
44542
44543 * disk/host.c: Include grub/misc.h to fix a warning.
44544 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
44545 warnings about implicit declarations.
44546
44547 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
44548 variable.
44549 * include/grub/i386/loader.h: Change declaration of
44550 grub_linux_boot() to match what grub_loader_set() expects.
44551 * util/getroot.c (grub_guess_root_device): Return const char* to
44552 fix a warning.
44553 * util/grub-probe.c (probe): Fix a warning about uninitialized
44554 abstraction_name variable.
44555 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
44556 second argument as unused to fix a warning.
44557
44558 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
44559 missing grub_error() call.
44560
44561 * util/update-grub_lib.in: Define datarootdir, since Autoconf
44562 2.60 and newer uses it to define datadir.
44563
44564 * commands/sleep.c: Fix warning about implicit declaration.
44565 * disk/memdisk.c: Likewise.
44566 * loader/aout.c: Likewise.
44567 * loader/i386/bsd_normal.c: Likewise.
44568 * util/grub-probe.c: Likewise.
44569
44570 * commands/i386/cpuid.c (has_longmode): Make static.
44571 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
44572 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
44573
44574 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
44575 GDT. This is more robust, as %ds can change.
44576 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
44577 calling real_to_prot().
44578 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
44579
44580 2008-03-28 Pavel Roskin <proski@gnu.org>
44581
44582 * kern/i386/pc/startup.S: Assert that uncompressed functions
44583 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
44584 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
44585 code, as they push parts of the code (error handlers) beyond
44586 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
44587 code as correctness and size.
44588
44589 2008-03-28 Pavel Roskin <proski@gnu.org>
44590
44591 * kern/i386/pc/startup.S
44592 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
44593 data block address to the real mode, keep offset minimal. This
44594 works around a bug in AWARD BIOS on old Athlon systems, which
44595 makes CD detection hang.
44596
44597 2008-03-26 Pavel Roskin <proski@gnu.org>
44598
44599 * normal/color.c (grub_parse_color_name_pair): Make `name' a
44600 const.
44601 * include/grub/normal.h: Add grub_parse_color_name_pair()
44602 declaration.
44603
44604 2008-03-24 Bean <bean123ch@gmail.com>
44605
44606 * disk/i386/pc/biosdisk.c (cd_start): Removed.
44607 (cd_count): Removed.
44608 (cd_drive): New variable.
44609 (grub_biosdisk_get_drive): Don't check for (cdN) device.
44610 (grub_biosdisk_call_hook): Likewise.
44611 (grub_biosdisk_iterate): Change cdrom detection method.
44612 (grub_biosdisk_open): Replace cd_start with cd_drive.
44613 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
44614 detect cdrom device.
44615
44616 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
44617 Removed.
44618 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
44619 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
44620 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
44621 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
44622 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
44623 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
44624 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
44625 (grub_biosdisk_cdrp): New structure.
44626 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
44627
44628 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
44629
44630 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
44631 device.
44632
44633 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
44634 New function.
44635
44636 2008-03-20 Robert Millan <rmh@aybabtu.com>
44637
44638 Remove 2 TiB limit in ata.mod.
44639 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
44640 (grub_ata_dumpinfo): Print sector count with 0x%llx.
44641 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
44642 grub_uint64_t instead of grub_uint32_t.
44643
44644 2008-03-05 Bean <bean123ch@gmail.com>
44645
44646 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
44647 (grub_multiboot): Set boot device.
44648
44649 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
44650
44651 2008-03-02 Bean <bean123ch@gmail.com>
44652
44653 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
44654 symlink_buffer.
44655
44656 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
44657
44658 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
44659 texinfo.tex.
44660
44661 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
44662 modified.
44663
44664 * docs/fdl.texi: New file.
44665
44666 * docs/mdate-sh: New file. Copied from gnulib.
44667 * docs/texinfo.tex: Likewise.
44668
44669 * config.guess: Updated from gnulib.
44670 * install-sh: Likewise.
44671
44672 2008-02-28 Robert Millan <rmh@aybabtu.com>
44673
44674 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
44675 (aout_mod_SOURCES): New variable.
44676 (aout_mod_CFLAGS): Likewise.
44677 (aout_mod_LDFLAGS): Likewise.
44678
44679 * conf/i386-ieee1275.rmk: Likewise.
44680
44681 2008-02-28 Robert Millan <rmh@aybabtu.com>
44682
44683 * util/update-grub.in: Reorganise terminal validity check. Accept
44684 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
44685 Based on suggestion by Franklin PIAT.
44686
44687 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
44688
44689 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
44690 function.
44691 * util/getroot.c (grub_util_check_block_device): New function that
44692 returns the given argument if it is a block device and returns NULL else.
44693 * util/grub-probe.c (argument_is_device): New variable.
44694 (probe): Promote device_name from a variable to an argument. Receive
44695 device_name from grub_util_check_block_device() if path is NULL and from
44696 grub_guess_root_device() else. Do not free() device_name anymore.
44697 (options): Introduce new parameter '-d, --device'.
44698 (main): Add description of the new parameter to the help screen.
44699 Rename path variable to argument. Set argument_is_device if the '-d'
44700 option is given. Pass argument to probe() depending on
44701 argument_is_device.
44702
44703 2008-02-24 Bean <bean123ch@gmail.com>
44704
44705 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
44706 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
44707 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
44708 (GRUB_ISO9660_VOLDESC_PART): Likewise.
44709 (GRUB_ISO9660_VOLDESC_END): Likewise.
44710 (grub_iso9660_primary_voldesc): New member escape.
44711 (grub_iso9660_data): New member joliet.
44712 (grub_iso9660_convert_string): New function.
44713 (grub_iso9660_mount): Detect joliet extension.
44714 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
44715 (grub_iso9660_iso9660_label): Likewise.
44716
44717 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
44718 (grub_setup_SOURCES): Add fs/udf.c.
44719 (grub_fstest_SOURCES): Likewise.
44720 (udf_mod_SOURCES): New variable.
44721 (udf_mod_CFLAGS): Likewise.
44722 (udf_mod_LDFLAGS): Likewise.
44723
44724 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
44725 (grub_emu_SOURCES): Likewise.
44726
44727 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44728
44729 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44730
44731 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44732
44733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44734
44735 * fs/udf.c: New file.
44736
44737 2008-02-24 Robert Millan <rmh@aybabtu.com>
44738
44739 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
44740 (normal/lexer.c_DEPENDENCIES): New variables.
44741 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44742 (normal/lexer.c_DEPENDENCIES): Likewise.
44743 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
44744 (normal/lexer.c_DEPENDENCIES): Likewise.
44745 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
44746 (normal/lexer.c_DEPENDENCIES): Likewise.
44747 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44748 (normal/lexer.c_DEPENDENCIES): Likewise.
44749 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
44750 (normal/lexer.c_DEPENDENCIES): Likewise.
44751
44752 2008-02-23 Robert Millan <rmh@aybabtu.com>
44753
44754 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
44755 since they were intended to be in hex. This didn't break previously
44756 because of a bug in gpt_partition_map_iterate() (see below).
44757
44758 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
44759 when checking the validity of GPT header.
44760 Remove `partno', since it always provides the same information as `i'.
44761
44762 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
44763
44764 * include/grub/efi/time.h: Fix a wrong comment.
44765
44766 2008-02-19 Pavel Roskin <proski@gnu.org>
44767
44768 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
44769 message.
44770
44771 2008-02-19 Bean <bean123ch@gmail.com>
44772
44773 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
44774 (aout_mod_SOURCES): New variable.
44775 (aout_mod_CFLAGS): Likewise.
44776 (aout_mod_LDFLAGS): Likewise.
44777 (_bsd_mod_SOURCES): New variable.
44778 (_bsd_mod_CFLAGS): Likewise.
44779 (_bsd_mod_LDFLAGS): Likewise.
44780 (bsd_mod_SOURCES): New variable.
44781 (bsd_mod_CFLAGS): Likewise.
44782 (bsd_mod_LDFLAGS): Likewise.
44783
44784 * include/grub/aout.h: New file.
44785
44786 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44787
44788 * include/grub/i386/bsd.h: New file.
44789
44790 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44791 to make it public.
44792
44793 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44794 function is called, so that it's possible to change it inside the hook.
44795 (grub_elf64_load): Likewise.
44796 (grub_elf_file): Don't close the file if elf header is not found.
44797 (grub_elf_close): Close the file if grub_elf_file fails (The new
44798 grub_elf_file won't close it).
44799 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44800 (grub_elf64_size): Likewise.
44801
44802 * kern/i386/loader.S (grub_unix_real_boot): New function.
44803
44804 * loader/aout.c: New file.
44805
44806 * loader/i386/bsd.c: New file.
44807
44808 * loader/i386/bsd_normal.c: New file.
44809
44810 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44811
44812 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
44813 can test other formats.
44814
44815 2008-02-19 Robert Millan <rmh@aybabtu.com>
44816
44817 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44818 (grub_gpt_partition_type_empty): Redefine with macro from
44819 `<grub/gpt_partition.h>'.
44820 (gpt_partition_map_iterate): Adjust partition type comparison.
44821
44822 Export `entry' as partmap-specific `part.data' struct.
44823 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44824
44825 * include/grub/gpt_partition.h (grub_gpt_header)
44826 (grub_gpt_partentry): ... to here (new file).
44827
44828 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44829
44830 (grub_gpt_partition_type_bios_boot): New const variable, defined
44831 with macro from `<grub/gpt_partition.h>'.
44832
44833 (setup): Replace `first_start' with `embed_region', which keeps
44834 track of the embed region (and is partmap-agnostic).
44835
44836 Replace find_first_partition_start() with find_usable_region(),
44837 which finds a usable region for embedding using partmap-specific
44838 knowledge (supports PC/MSDOS and GPT).
44839
44840 Fix all assumptions that the embed region start at sector 1, using
44841 `embed_region.start' from now on. Similarly, use `embed_region.end'
44842 rather than `first_start' to calculate available size.
44843
44844 In grub_util_info() message, replace "into after the MBR" with an
44845 indication of the specific sector our embed region starts at.
44846
44847 2008-02-19 Robert Millan <rmh@aybabtu.com>
44848
44849 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44850 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44851 `commands/reboot.c'.
44852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44853 (halt_mod_SOURCES): Likewise.
44854 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44855 (halt_mod_SOURCES): Likewise.
44856
44857 2008-02-17 Christian Franke <franke@computer.org>
44858
44859 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44860
44861 2008-02-17 Robert Millan <rmh@aybabtu.com>
44862
44863 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44864 set `first_start' to 0 for non-PC/MSDOS partition maps.
44865
44866 2008-02-16 Robert Millan <rmh@aybabtu.com>
44867
44868 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44869 do not assume partition map is PC/MSDOS before performing checks that
44870 are specific to that layout.
44871
44872 2008-02-13 Robert Millan <rmh@aybabtu.com>
44873
44874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44875 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44876 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44877
44878 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44879
44880 * configure.ac: Only a cosmetic change on the handling of
44881 -fno-stack-protector.
44882
44883 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
44884
44885 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44886 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44887 reboot.c.
44888 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44889 (halt_mod_SOURCES): New variable.
44890 (halt_mod_CFLAGS): Likewise.
44891 (halt_mod_LDFLAGS): Likewise.
44892 (reboot_mod_SOURCES): Likewise.
44893 (reboot_mod_CFLAGS): Likewise.
44894 (reboot_mod_LDFLAGS): Likewise.
44895
44896 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44897 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44898 reboot.c.
44899 (halt_mod_SOURCES): Likewise.
44900 (reboot_mod_SOURCES): Likewise.
44901
44902 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44903 commands/i386/pc/reboot.c by commands/reboot.c.
44904 (reboot_mod_SOURCES): Likewise.
44905
44906 * commands/i386/pc/reboot.c: merge this file ...
44907
44908 * commands/ieee1275/reboot.c: ... and this file ...
44909
44910 * commands/reboot.c: ... to this file.
44911 Add some precompiler directive to include the correct header for
44912 each machine.
44913
44914 * commands/ieee1275/halt.c: move this file ...
44915
44916 * commands/halt.c: ... to here.
44917 Add some precompiler directive to include the correct header for
44918 each machine.
44919
44920 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44921 (grub_halt): Likewise.
44922
44923 * kern/efi/efi.c (grub_reboot): New function.
44924 (grub_halt): Likewise.
44925
44926 2008-02-12 Robert Millan <rmh@aybabtu.com>
44927
44928 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44929 /dev (like it is done for /dev/mapper). This doesn't provide support
44930 for EVMS, but at least it is now easy to identify the problem when it
44931 arises.
44932
44933 2008-02-11 Robert Millan <rmh@aybabtu.com>
44934
44935 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44936 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44937 comparing it with -1, not 0.
44938
44939 2008-02-10 Robert Millan <rmh@aybabtu.com>
44940
44941 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44942 `disk/lvm.c'.
44943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44944 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44945
44946 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44947 `disk/lvm.c' to the end of the list.
44948 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44949 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44950
44951 2008-02-10 Robert Millan <rmh@aybabtu.com>
44952
44953 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44954 grub_print_error() instead. This will let user know why we're entering
44955 rescue mode.
44956 Based on suggestions from Sam Morris.
44957
44958 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
44959
44960 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44961 on remaining N args, instead of "--" arg N times.
44962
44963 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44964
44965 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44966 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44967 pattern for unknown glyphs.
44968
44969 2008-02-09 Robert Millan <rmh@aybabtu.com>
44970
44971 * configure.ac: Probe for `help2man'.
44972 * Makefile.in (builddir): New variable.
44973 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44974 or otherwise add a few flags/options to it.
44975 (install-local): For every executable utility or script that is
44976 installed, invoke $(HELP2MAN) to install a manpage based on --help
44977 output.
44978
44979 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44980 that it doesn't prevent --help from working in build tree.
44981
44982 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44983 with `bug-grub@gnu.org'.
44984 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44985 * util/update-grub.in (usage): New function.
44986 Implement proper argument check, with support for --help and --version
44987 (as well as existing -y).
44988
44989 2008-02-09 Christian Franke <franke@computer.org>
44990
44991 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44992 avoid overwriting previous output.
44993 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44994
44995 2008-02-09 Robert Millan <rmh@aybabtu.com>
44996
44997 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
44998 drawing the menu.
44999
45000 2008-02-09 Robert Millan <rmh@aybabtu.com>
45001
45002 * commands/sleep.c: New file.
45003 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45004 (sleep_mod_SOURCES): New variable.
45005 (sleep_mod_CFLAGS): Likewise.
45006 (sleep_mod_LDFLAGS): Likewise.
45007
45008 2008-02-09 Robert Millan <rmh@aybabtu.com>
45009
45010 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45011 situations in which we can deduce the RAID size and the superblock
45012 doesn't match it.
45013
45014 2008-02-09 Robert Millan <rmh@aybabtu.com>
45015
45016 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45017 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45018 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45019
45020 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45021 and return a grub_diskmemberlist_t composed of physical array members.
45022 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45023
45024 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45025 prototype.
45026 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45027 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45028 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45029
45030 * util/grub-probe.c (probe): Move partmap probing code from here ...
45031 (probe_partmap): ... to here.
45032 (probe): Use probe_partmap() once for the disk we're probing, and
45033 additionally, when such disk contains a memberlist() struct member,
45034 once for each disk that is contained in the structure returned by
45035 memberlist().
45036
45037 2008-02-09 Robert Millan <rmh@aybabtu.com>
45038
45039 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45040 environment variable to 'all' in order to obtain debug output from
45041 non-util/ code.
45042 * util/i386/pc/grub-setup.c (main): Likewise.
45043
45044 2008-02-08 Robert Millan <rmh@aybabtu.com>
45045
45046 * disk/raid.c (grub_raid_scan_device): Check for
45047 `array->device[sb.this_disk.number]' rather than for
45048 `array->device[sb.this_disk.number]->name', since the latter is not
45049 guaranteed to be accessible.
45050
45051 2008-02-08 Robert Millan <rmh@aybabtu.com>
45052
45053 * disk/raid.c: Update copyright.
45054 * fs/cpio.c: Likewise.
45055 * include/grub/raid.h: Likewise.
45056 * loader/i386/pc/multiboot.c: Likewise.
45057 * util/hostfs.c: Likewise.
45058
45059 2008-02-08 Robert Millan <rmh@aybabtu.com>
45060
45061 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45062 to a grub_disk_t array.
45063 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45064 `device[x]'.
45065 (grub_raid_scan_device): Replace `device[x].name' accesses with
45066 `device[x]->name'. Simplify initialization of `array->device[x]'.
45067
45068 2008-02-08 Robert Millan <rmh@aybabtu.com>
45069
45070 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45071 grub_dprintf() calls.
45072 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45073 error message.
45074
45075 2008-02-07 Christian Franke <franke@computer.org>
45076
45077 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45078 instead of fseek and ftell to support large files.
45079 (grub_hostfs_read): Likewise.
45080
45081 2008-02-07 Robert Millan <rmh@aybabtu.com>
45082
45083 Patch from Jeroen Dekkers.
45084 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45085 failure, since successfully reading all array members might not be
45086 required.
45087
45088 2008-02-06 Robert Millan <rmh@aybabtu.com>
45089
45090 * util/grub-probe.c (probe): Simplify partmap probing (with the
45091 assumption that the first word up to the underscore equals to
45092 the module name).
45093
45094 2008-02-06 Christian Franke <franke@computer.org>
45095
45096 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45097 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45098 last block of a cpio or tar stream.
45099 Check for "TRAILER!!!" instead of any empty data
45100 block to detect last block of a cpio stream.
45101 (grub_cpio_dir): Fix constness of variable np.
45102 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45103 cpio or tar trailer is detected. This fixes a crash
45104 on open of a non existing file.
45105
45106 2008-02-05 Bean <bean123ch@gmail.com>
45107
45108 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45109 address of entry.
45110 (grub_multiboot_load_elf64): Likewise.
45111 (grub_multiboot): Initialize mbi structure.
45112
45113 * util/grub-fstest.c: Don't include unused header file script.h.
45114
45115 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45116 of file.
45117 (grub_fstest_SOURCES): Likewise.
45118
45119 2008-02-05 Robert Millan <rmh@aybabtu.com>
45120
45121 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45122 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45123 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45124 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45125
45126 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45127 (translation_table): Replace hardcoded values with macros
45128 provided by `<grub/term.h>'.
45129
45130 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45131 (keyboard_map): Correct/add a few values, with macros provided
45132 by `<grub/term.h>'.
45133 (keyboard_map_shift): Zero values that don't differ from their
45134 `keyboard_map' equivalents.
45135 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45136 Discard the second scan code that is always sent by Caps lock.
45137 Only use `keyboard_map_shift' when it provides a non-zero value,
45138 otherwise fallback to `keyboard_map'.
45139
45140 2008-02-04 Bean <bean123ch@gmail.com>
45141
45142 * Makefile.in (enable_grub_fstest): New variable.
45143
45144 * conf/common.rmk (grub_fstest_init.lst): New rule.
45145 (grub_fstest_init.h): Likewise.
45146 (grub_fstest_init.c): Likewise.
45147 (util/grub-fstest.c_DEPENDENCIES): New variable.
45148 (grub_fstest_SOURCES): Likewise.
45149
45150 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45151
45152 * util/grub-fstest.c: New file.
45153
45154 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45155
45156 Make grub-setup handle a separate root device.
45157
45158 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45159 so that the root device can be compared with the destination
45160 device.
45161 When embedding the core image, if the root and destination devices
45162 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45163 0xFF.
45164 When not embedding, set ROOT_DRIVE to 0xFF.
45165
45166 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45167
45168 Add support for having a grub directory in a different drive. This
45169 is still only the data handling part.
45170
45171 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45172 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45173 (grub_root_drive): New variable.
45174
45175 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45176 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45177 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45178 as it was.
45179
45180 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45181
45182 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45183 macro.
45184 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45185
45186 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45187 is bogus, because PXE booting does not specify any drive
45188 correctly.
45189
45190 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45191 am not sure if this is really correct.
45192
45193 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45194 is always identical to the boot drive when booting from a CD.
45195
45196 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45197 longer.
45198 (root_drive): New variable.
45199 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45200 (setup_sectors): Push %dx right after popping it, because %dh will
45201 be modified later.
45202 (copy_buffer): Restore %dx.
45203
45204 2008-02-03 Robert Millan <rmh@aybabtu.com>
45205
45206 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45207 use `cdboot.img' for cdrom images.
45208
45209 2008-02-03 Robert Millan <rmh@aybabtu.com>
45210
45211 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45212 only setup gfxterm when `font' command has succeeded.
45213
45214 2008-02-03 Robert Millan <rmh@aybabtu.com>
45215
45216 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45217 (grub_rescue_cmd_multiboot_loader)
45218 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45219
45220 2008-02-03 Pavel Roskin <proski@gnu.org>
45221
45222 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45223 %edx and %esi from stack only after grub_gate_a20() is called.
45224 grub_gate_a20() clobbers %edx.
45225
45226 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45227
45228 * configure.ac (AC_INIT): Bumped to 1.96.
45229
45230 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45231 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45232 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45233 video/readers/png.c.
45234
45235 2008-02-03 Bean <bean123ch@gmail.com>
45236
45237 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45238 (cdboot_img_SOURCES): New variable.
45239 (cdboot_img_ASFLAGS): New variable.
45240 (cdboot_img_LDFLAGS): New variable.
45241
45242 * boot/i386/pc/cdboot.S: New file.
45243
45244 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45245 (cd_count): Likewise.
45246 (grub_biosdisk_get_drive): Add support for cd device.
45247 (grub_biosdisk_call_hook): Likewise.
45248 (grub_biosdisk_iterate): Likewise.
45249 (grub_biosdisk_open): Likewise.
45250 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45251 (grub_biosdisk_rw): Support reading from cd device.
45252 (GRUB_MOD_INIT): Iterate cd devices.
45253
45254 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45255 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45256 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45257
45258 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45259
45260 2008-02-02 Robert Millan <rmh@aybabtu.com>
45261
45262 * commands/read.c: New file.
45263 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45264 (read_mod_SOURCES): New variable.
45265 (read_mod_CFLAGS): Likewise.
45266 (read_mod_LDFLAGS): Likewise.
45267
45268 2008-02-02 Robert Millan <rmh@aybabtu.com>
45269
45270 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45271 determining whether menu has to be displayed.
45272
45273 2008-02-02 Marco Gerards <marco@gnu.org>
45274
45275 * bus/pci.c: New file.
45276
45277 * include/grub/pci.h: Likewise.
45278
45279 * include/grub/i386/pc/pci.h: Likewise.
45280
45281 * commands/lspci.c: Likewise.
45282
45283 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45284 `lspci.mod'.
45285 (pci_mod_SOURCES): New variable.
45286 (pci_mod_CFLAGS): Likewise.
45287 (pci_mod_LDFLAGS): Likewise.
45288 (lspci_mod_SOURCES): Likewise.
45289 (lspci_mod_CFLAGS): Likewise.
45290 (lspci_mod_LDFLAGS): Likewise.
45291
45292 2008-02-02 Bean <bean123ch@gmail.com>
45293
45294 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45295 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45296
45297 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45298 (grub_xfs_btree_node): New structure.
45299 (grub_xfs_btree_root): New structure.
45300 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45301 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45302 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45303 (GRUB_XFS_EXTENT_SIZE): Likewise.
45304 (grub_xfs_read_block): Support btree format type.
45305 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45306 Use directory block as basic unit.
45307
45308 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45309
45310 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45311 __attribute__ ((__regparm__ (1))).
45312
45313 2008-02-01 Robert Millan <rmh@aybabtu.com>
45314
45315 Correct a mistake in previous commit.
45316
45317 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45318 top.
45319 (normal/command.c_DEPENDENCIES): New variable.
45320
45321 2008-02-01 Robert Millan <rmh@aybabtu.com>
45322
45323 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45324 top.
45325 (normal/command.c_DEPENDENCIES): New variable.
45326 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45327 * conf/i386-ieee1275.rmk: Likewise.
45328 * conf/i386-linuxbios.rmk: Likewise.
45329 * conf/i386-pc.rmk: Likewise.
45330 * conf/sparc64-ieee1275.rmk: Likewise.
45331 * conf/powerpc-ieee1275.rmk: Likewise.
45332 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45333
45334 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45335
45336 2008-02-01 Robert Millan <rmh@aybabtu.com>
45337
45338 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45339 call at beginning of function.
45340
45341 2008-01-31 Pavel Roskin <proski@gnu.org>
45342
45343 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45344 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45345 (grub_mkrescue_SOURCES): Likewise.
45346 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45347
45348 2008-01-30 Robert Millan <rmh@aybabtu.com>
45349
45350 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45351 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45352 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45353 (grub_probe_SOURCES): ... to here.
45354
45355 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45356 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45357 * conf/i386-ieee1275.rmk: Likewise.
45358 * conf/i386-linuxbios.rmk: Likewise.
45359 * conf/powerpc-ieee1275.rmk: Likewise.
45360
45361 2008-01-30 Tristan Gingold <gingold@free.fr>
45362
45363 * kern/rescue.c: Silently accept empty lines.
45364
45365 2008-01-29 Bean <bean123ch@gmail.com>
45366
45367 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45368 (real_code_2): Code cleanup and change comment style.
45369 (move_memory): Avoid using 32-bit address mode.
45370
45371 2008-01-29 Bean <bean123ch@gmail.com>
45372
45373 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45374 (png_mod_SOURCES): New variable.
45375 (png_mod_CFLAGS): Likewise.
45376 (png_mod_LDFLAGS): Likewise.
45377
45378 * video/readers/png.c: New file.
45379
45380 2008-01-28 Robert Millan <rmh@aybabtu.com>
45381
45382 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45383 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45384 `ifndef GRUB_MOD_GAP' hack.
45385 * util/elf/grub-mkimage.c (add_segments): Likewise.
45386
45387 2008-01-27 Robert Millan <rmh@aybabtu.com>
45388
45389 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45390 `GRUB_MOD_GAP' for platforms in which it's not defined.
45391 * util/elf/grub-mkimage.c (add_segments): Likewise.
45392
45393 2008-01-27 Robert Millan <rmh@aybabtu.com>
45394
45395 Get grub-emu to build again (including parallel builds).
45396
45397 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45398 Split into ...
45399 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45400 (normal/execute.c_DEPENDENCIES): ... this, ...
45401 (grub-emu_DEPENDENCIES): ... and this.
45402
45403 * conf/i386-efi.rmk: Likewise.
45404 * conf/i386-linuxbios.rmk: Likewise.
45405 * conf/i386-ieee1275.rmk: Likewise.
45406 * conf/powerpc-ieee1275.rmk: Likewise.
45407 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45408
45409 2008-01-27 Robert Millan <rmh@aybabtu.com>
45410
45411 * NEWS: Add a few items.
45412
45413 2008-01-27 Robert Millan <rmh@aybabtu.com>
45414
45415 Fix parallel builds with grub-emu. Based on earlier commit for
45416 grub-probe and grub-setup.
45417
45418 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45419 (util/grub-emu.c_DEPENDENCIES): ... this.
45420 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45421 (util/grub-emu.c_DEPENDENCIES): ... this.
45422 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45423 (util/grub-emu.c_DEPENDENCIES): ... this.
45424 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45425 (util/grub-emu.c_DEPENDENCIES): ... this.
45426 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
45427 (util/grub-emu.c_DEPENDENCIES): ... this.
45428
45429 2008-01-27 Pavel Roskin <proski@gnu.org>
45430
45431 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
45432 to create a gap between _end and the modules added to the image
45433 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
45434 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
45435 * util/elf/grub-mkimage.c (add_segments): Likewise.
45436
45437 2008-01-26 Pavel Roskin <proski@gnu.org>
45438
45439 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
45440 just return an error.
45441
45442 2008-01-26 Bean <bean123ch@gmail.com>
45443
45444 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
45445 (grub_reiserfs_get_item): Save offset of the next item.
45446 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
45447
45448 2008-01-25 Robert Millan <rmh@aybabtu.com>
45449
45450 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
45451 make all filesystem sources appear together (possibly fixing omissions
45452 while at it).
45453 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45454 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45455 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45457
45458 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
45459 add `kern/file.c'.
45460 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
45461 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45462 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
45463 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
45464
45465 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
45466 (probe): Add a sanity check to make sure of our ability to read
45467 requested files when probing for filesystem type.
45468
45469 * genmk.rb: Update copyright year (2007).
45470
45471 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
45472 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
45473 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
45474 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
45475 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
45476 : Remove function prototypes.
45477
45478 2008-01-25 Robert Millan <rmh@aybabtu.com>
45479
45480 Revert my previous commits (based on wrong assumption of how grub_errno
45481 works).
45482
45483 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
45484 * kern/file.c (grub_file_open): Likewise.
45485
45486 2008-01-24 Pavel Roskin <proski@gnu.org>
45487
45488 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
45489 that hang if GRUB tries to setup colors.
45490 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
45491 colors for firmwares that don't support it.
45492 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
45493 Recognize Open Hack'Ware, set flags to work around its
45494 limitations.
45495
45496 2008-01-24 Robert Millan <rmh@aybabtu.com>
45497
45498 * kern/file.c (grub_file_open): Do not account previous failures of
45499 unrelated functions when grub_errno is checked for.
45500 Reported by Oleg Strikov.
45501
45502 2008-01-24 Bean <bean123ch@gmail.com>
45503
45504 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
45505 (grub_ufs_sblock): New member volume name.
45506 (grub_ufs_find_file): Fix string copy bug.
45507 (grub_ufs_label): Implement this function properly.
45508
45509 * fs/hfs.c (grub_hfs_cnid_type): New enum.
45510 (grub_hfs_iterate_records): Use the correct file number for extents
45511 and catalog file. Fix problem in next index calculation.
45512 (grub_hfs_find_node): Replace recursive function call with loop.
45513 (grub_hfs_iterate_dir): Replace recursive function call with loop.
45514
45515 2008-01-23 Robert Millan <rmh@aybabtu.com>
45516
45517 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
45518 `<grub/symbol.h>' and `<grub/multiboot.h>'.
45519 (grub_multiboot2_real_boot): New function prototype.
45520
45521 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
45522 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
45523
45524 * kern/i386/ieee1275/init.c (grub_os_area_addr)
45525 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
45526
45527 2008-01-23 Robert Millan <rmh@aybabtu.com>
45528
45529 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
45530 #ifdef'ed out grub_printf().
45531
45532 2008-01-23 Robert Millan <rmh@aybabtu.com>
45533
45534 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
45535 grub_dprintf calls, since they make "debug=all" mode unusable.
45536 (grub_console_checkkey): Likewise.
45537
45538 2008-01-23 Robert Millan <rmh@aybabtu.com>
45539
45540 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
45541 `term/i386/pc/at_keyboard.c'.
45542 (pkglib_MODULES): Add `serial.mod'.
45543 (serial_mod_SOURCES): New variable.
45544 (serial_mod_CFLAGS): Likewise.
45545 (serial_mod_LDFLAGS): Likewise.
45546
45547 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
45548 `<grub/powerpc/ieee1275/console.h>'.
45549 (grub_keyboard_controller_init): New function prototype.
45550 (grub_console_checkkey): Likewise.
45551 (grub_console_getkey): Likewise.
45552
45553 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
45554 keyboard on i386.
45555
45556 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
45557 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
45558
45559 2008-01-23 Robert Millan <rmh@aybabtu.com>
45560
45561 * kern/i386/pc/init.c (make_install_device): When memdisk image is
45562 present, "(memdisk)/boot/grub" becomes the default prefix.
45563
45564 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
45565 a memdisk tarball with all the modules. Add --overlay=DIR option that
45566 allows users to overlay additional files into the image.
45567
45568 2008-01-23 Robert Millan <rmh@aybabtu.com>
45569
45570 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
45571 and `machine/memory.h'.
45572 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
45573 (_multiboot_mod_SOURCES): New variable.
45574 (_multiboot_mod_CFLAGS): Likewise.
45575 (_multiboot_mod_LDFLAGS): Likewise.
45576 (multiboot_mod_SOURCES): Likewise.
45577 (multiboot_mod_CFLAGS): Likewise.
45578 (multiboot_mod_LDFLAGS): Likewise.
45579
45580 * include/grub/i386/ieee1275/loader.h: New file.
45581
45582 * include/grub/i386/ieee1275/machine.h: Likewise.
45583
45584 * include/grub/i386/ieee1275/memory.h: Likewise.
45585
45586 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
45587 variable declaration.
45588 (grub_os_area_size): Likewise.
45589
45590 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
45591 (grub_lower_mem, grub_upper_mem): New variables.
45592 (grub_stop_floppy): New function (just to make
45593 grub_multiboot2_real_boot() happy).
45594
45595 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
45596 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
45597 (grub_stop): New function.
45598 Include `"../realmode.S"' and `"../loader.S"'.
45599
45600 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
45601 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
45602
45603 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
45604 rely on grub_multiboot2_real_boot() for final boot.
45605
45606 2008-01-22 Robert Millan <rmh@aybabtu.com>
45607
45608 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
45609 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
45610 device that doesn't look like an SD card.
45611 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45612 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
45613 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
45614 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
45615 found.
45616
45617 2008-01-22 Robert Millan <rmh@aybabtu.com>
45618
45619 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
45620 avoid claiming over our own code.
45621
45622 2008-01-22 Bean <bean123ch@gmail.com>
45623
45624 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
45625 (jpeg_mod_SOURCES): New variable.
45626 (jpeg_mod_CFLAGS): Likewise.
45627 (jpeg_mod_LDFLAGS): Likewise.
45628
45629 * video/readers/jpeg.c : New file.
45630
45631 2008-01-22 Bean <bean123ch@gmail.com>
45632
45633 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
45634 there are no more items.
45635
45636 2008-01-21 Robert Millan <rmh@aybabtu.com>
45637
45638 * kern/mm.c (grub_mm_init_region): Improve debug message.
45639
45640 2008-01-21 Robert Millan <rmh@aybabtu.com>
45641
45642 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
45643 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
45644 address.
45645 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
45646 a C macro.
45647 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
45648 Indicates start of upper memory.
45649 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
45650 (generate_image): Abort when image size is big enough to corrupt
45651 upper memory.
45652
45653 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
45654 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
45655 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45656 instead of hardcoding 0xA0000.
45657 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
45658 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
45659 instead of hardcoding 0xA0000.
45660
45661 2008-01-21 Robert Millan <rmh@aybabtu.com>
45662
45663 * disk/memdisk.c (memdisk_size): New variable.
45664 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
45665 `memdisk_size'.
45666 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
45667 image to dynamic memory.
45668 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
45669 `memdisk_size'. Free memdisk block.
45670
45671 2008-01-21 Robert Millan <rmh@aybabtu.com>
45672
45673 Fix detection of very small filesystems (like tar).
45674
45675 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
45676 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
45677 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
45678 a problem with this disk).
45679
45680 2008-01-21 Robert Millan <rmh@aybabtu.com>
45681
45682 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
45683 on grub_biosdisk_rw_standard() error.
45684
45685 2008-01-21 Robert Millan <rmh@aybabtu.com>
45686
45687 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
45688 recent changes.
45689 * kern/elf.c: Likewise.
45690 * kern/ieee1275/ieee1275.c: Likewise.
45691 * kern/powerpc/ieee1275/openfw.c: Likewise.
45692 * term/ieee1275/ofconsole.c: Likewise.
45693
45694 2008-01-21 Robert Millan <rmh@aybabtu.com>
45695
45696 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
45697
45698 * include/grub/kernel.h (grub_arch_memdisk_addr)
45699 (grub_arch_memdisk_size): Moved from here ...
45700
45701 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
45702 (grub_arch_memdisk_size): ... to here.
45703
45704 2008-01-21 Robert Millan <rmh@aybabtu.com>
45705
45706 Mostly based on bugfix from Bean.
45707
45708 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
45709 attribute with hook() parameter.
45710 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
45711 declaration.
45712 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
45713 attribute with hook() parameter.
45714 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
45715 declaration.
45716
45717 2008-01-21 Robert Millan <rmh@aybabtu.com>
45718
45719 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
45720 (pkglib_MODULES): Add `memdisk.mod'.
45721 (memdisk_mod_SOURCES): New variable.
45722 (memdisk_mod_CFLAGS): Likewise.
45723 (memdisk_mod_LDFLAGS): Likewise.
45724
45725 * disk/memdisk.c: New file.
45726
45727 * include/grub/disk.h (grub_disk_dev_id): Add
45728 `GRUB_DISK_DEVICE_MEMDISK_ID'.
45729
45730 * include/grub/i386/pc/kernel.h
45731 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
45732 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
45733 (grub_kernel_image_size): New variable declaration.
45734 (grub_total_module_size): Likewise.
45735 (grub_memdisk_image_size): Likewise.
45736
45737 * include/grub/i386/pc/memory.h
45738 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
45739
45740 * include/grub/kernel.h: Include `<grub/symbol.h>'.
45741 (grub_arch_memdisk_addr): New variable declaration.
45742 (grub_arch_memdisk_size): Likewise.
45743
45744 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
45745 (grub_arch_memdisk_size): Likewise.
45746
45747 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
45748 (codestart): Replace hardcoded `0x100000' with
45749 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
45750
45751 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
45752 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
45753 not NULL, append the contents of the file it refers to, at the end of
45754 the compressed kernel image. Initialize `grub_memdisk_image_size'
45755 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
45756 (options): Add "memdisk"|'m' option.
45757 (main): Parse --memdisk|-m option, and pass user-provided path as
45758 parameter to generate_image().
45759
45760 2008-01-20 Robert Millan <rmh@aybabtu.com>
45761
45762 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
45763 grub_dprintf() calls from here ...
45764 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
45765
45766 2008-01-20 Robert Millan <rmh@aybabtu.com>
45767
45768 Fix detection of "real mode" when /options/real-mode? doesn't exist.
45769
45770 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
45771 declaration.
45772 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
45773 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
45774 `GRUB_IEEE1275_FLAG_REAL_MODE'.
45775 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
45776 property).
45777 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45778 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45779
45780 2008-01-19 Robert Millan <rmh@aybabtu.com>
45781
45782 Get rid of confusing function (superseded by
45783 `grub_ieee1275_get_integer_property')
45784 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45785 prototype.
45786 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45787 function.
45788 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45789 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
45790 in native endianness from grub_ieee1275_get_integer_property().
45791
45792 2008-01-19 Robert Millan <rmh@aybabtu.com>
45793
45794 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45795 command after "shut-down", since implementations differ on which
45796 the command for halt is.
45797
45798 2008-01-19 Robert Millan <rmh@aybabtu.com>
45799
45800 * include/grub/i386/linuxbios/console.h: Add header protection.
45801 (grub_keyboard_controller_init): New function prototype.
45802 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45803 (KEYBOARD_COMMAND_READ): Likewise.
45804 (KEYBOARD_COMMAND_WRITE): Likewise.
45805 (KEYBOARD_SCANCODE_SET1): Likewise.
45806 (grub_keyboard_controller_write): New function.
45807 (grub_keyboard_controller_read): Likewise.
45808 (grub_keyboard_controller_init): Likewise.
45809
45810 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45811 (grub_console_init): On coreboot/LinuxBIOS, call
45812 grub_keyboard_controller_init().
45813
45814 2008-01-19 Robert Millan <rmh@aybabtu.com>
45815
45816 PowerPC changes provided by Pavel Roskin.
45817
45818 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45819 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45820 don't rely on cmain() doing it.
45821 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45822 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45823
45824 2008-01-16 Robert Millan <rmh@aybabtu.com>
45825
45826 * include/grub/i386/linuxbios/memory.h
45827 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45828 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45829 receive `table_header' as argument. Instead, probe for it in the
45830 known memory ranges where it can be present.
45831 (grub_available_iterate): Do not pass a fixed `table_header' address
45832 to grub_linuxbios_table_iterate().
45833
45834 2008-01-15 Robert Millan <rmh@aybabtu.com>
45835
45836 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45837 * conf/i386-ieee1275.rmk: New file.
45838 * include/grub/i386/ieee1275/console.h: Likewise.
45839 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45840 * include/grub/i386/ieee1275/kernel.h: Likewise.
45841 * include/grub/i386/ieee1275/time.h: Likewise.
45842 * kern/i386/ieee1275/init.c: Likewise.
45843 * kern/i386/ieee1275/startup.S: Likewise.
45844
45845 2008-01-15 Robert Millan <rmh@aybabtu.com>
45846
45847 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45848 when pointers are 32-bit (but still do set it to one when they are
45849 64-bit).
45850
45851 2008-01-15 Robert Millan <rmh@aybabtu.com>
45852
45853 * include/grub/ieee1275/ieee1275.h
45854 (grub_ieee1275_get_integer_property): New function prototype.
45855
45856 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45857 (grub_ieee1275_get_integer_property): New function. Wraps around
45858 grub_ieee1275_get_property() to handle endianness.
45859
45860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45861 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
45862 where appropriate.
45863 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45864 (grub_map): Likewise.
45865 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45866
45867 2008-01-15 Bean <bean123ch@gmail.com>
45868
45869 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45870 (grub_script_execute_cmdline): Reset grub_errno.
45871
45872 * normal/main.c (read_config_file): Reset grub_errno.
45873
45874 * normal/parse.y (script_init): New.
45875 (script): Move function and menuentry here.
45876 (delimiter): New.
45877 (command): Add delimiter at the end of command.
45878 (commands): Adjust to match the new command.
45879 (commandblock): Remove grub_script_lexer_record_start.
45880 (menuentry): Add grub_script_lexer_record_start, use the new commands.
45881 (if): Use the new commands.
45882
45883 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45884
45885 2008-01-15 Robert Millan <rmh@aybabtu.com>
45886
45887 * normal/menu.c (run_menu): Move timeout message from here ...
45888 (print_timeout): ... to here.
45889 (run_menu): Use print_timeout() once during initial draw to print
45890 the whole message, and again in every clock tick to update only
45891 the number of seconds.
45892
45893 2008-01-15 Robert Millan <rmh@aybabtu.com>
45894
45895 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45896 actual size of `available' from grub_ieee1275_get_property(), and
45897 restrict parsing to that bound.
45898
45899 2008-01-15 Christian Franke <franke@computer.org>
45900
45901 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45902 (argp_program_version): Remove variable.
45903 (argp_program_bug_address): Likewise.
45904 (options): Convert from struct argp_option to struct option.
45905 (struct arguments): Remove.
45906 (parse_opt): Remove.
45907 (usage): New function.
45908 (main): Replace struct args members by simple variables.
45909 Replace argp_parse() by getopt_long().
45910 Add switch to evaluate options.
45911 Add missing "(...)" around root_dev in prefix string.
45912
45913 2008-01-14 Robert Millan <rmh@aybabtu.com>
45914
45915 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45916 for grub_ieee1275_exit(), in order to improve portability.
45917
45918 2008-01-14 Robert Millan <rmh@aybabtu.com>
45919
45920 * util/grub.d/10_linux.in (prefix): Define.
45921 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45922
45923 2008-01-13 Pavel Roskin <proski@gnu.org>
45924
45925 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45926 grub_errno if no errors have been detected.
45927
45928 2008-01-12 Robert Millan <rmh@aybabtu.com>
45929
45930 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45931 (grub_util_get_dev_abstraction): New function prototype.
45932
45933 * util/getroot.c: Include `<grub/util/getroot.h>'
45934 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45935 (grub_util_get_dev_abstraction): ... here (new function).
45936
45937 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45938 `PRINT_ABSTRACTION'.
45939 (probe): Probe for abstraction type when requested.
45940 (main): Understand `--target=abstraction'.
45941
45942 * util/i386/efi/grub-install.in: Add abstraction module to core
45943 image when it is found to be necessary.
45944 * util/i386/pc/grub-install.in: Likewise.
45945 * util/powerpc/ieee1275/grub-install.in: Likewise.
45946
45947 * util/update-grub_lib.in (font_path): Return system path without
45948 converting to GRUB path.
45949 * util/update-grub.in: Convert system path returned by font_path()
45950 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45951 abstraction module is needed for loading fonts (if any). Export
45952 that as `GRUB_PRELOAD_MODULES'.
45953 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45954 insmod commands).
45955
45956 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45957
45958 Remove some unused code from reiserfs.
45959
45960 * fs/reiserfs.c (struct grub_reiserfs_key)
45961 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45962 (struct grub_reiserfs_node_body): Removed.
45963 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45964 Likewise.
45965 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45966 Likewise.
45967 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45968 Likewise.
45969 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45970 Likewise.
45971 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45972 Likewise.
45973 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45974 Likewise.
45975 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45976 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45977 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45978
45979 2008-01-10 Robert Millan <rmh@aybabtu.com>
45980
45981 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45982 Determines if a file is garbage left by packaging systems, etc.
45983 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45984 for processing /etc/grub.d scripts.
45985 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45986 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45987 as a condition for processing Linux images.
45988
45989 2008-01-10 Pavel Roskin <proski@gnu.org>
45990
45991 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45992 to compile reiserfs.c on PowerPC.
45993
45994 2008-01-10 Robert Millan <rmh@aybabtu.com>
45995
45996 * kern/device.c (grub_device_iterate): Do not abort device iteration
45997 when one of the devices cannot be opened.
45998 * kern/disk.c (grub_disk_open): Do not account previous failures of
45999 unrelated functions when grub_errno is checked for.
46000
46001 2008-01-08 Robert Millan <rmh@aybabtu.com>
46002
46003 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46004 `! grub_linux_is_bzimage', change order of address comparison to make
46005 it more intuitive, and improve "too big zImage" error message.
46006
46007 2008-01-08 Robert Millan <rmh@aybabtu.com>
46008
46009 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46010 `$(update-grub_DATA)'.
46011 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46012 targets.
46013
46014 2008-01-07 Robert Millan <rmh@aybabtu.com>
46015
46016 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46017 which instruction is modified by grub-setup during installation
46018 (since it wasn't obvious by only looking at this file).
46019
46020 2008-01-07 Robert Millan <rmh@aybabtu.com>
46021
46022 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46023 listing actual TODO items.
46024
46025 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46026
46027 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46028 correctly.
46029 (grub_reiserfs_get_key_offset): Likewise.
46030 (grub_reiserfs_set_key_offset): Likewise.
46031 (grub_reiserfs_set_key_type): Likewise.
46032 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46033
46034 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46035 better to remove the bitfield version completely.
46036
46037 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46038
46039 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46040 allocated from the heap, due to the fshelp implementation.
46041 (grub_reiserfs_dir): Free NODE, due to the same reason.
46042
46043 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46044
46045 Mostly from Vincent Pelletier:
46046
46047 * fs/reiserfs.c: New file.
46048
46049 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46050 (reiserfs_mod_SOURCES): New variable.
46051 (reiserfs_mod_CFLAGS): Likewise.
46052 (reiserfs_mod_LDFLAGS): Likewise.
46053
46054 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46055 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46056 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46057 normal/color.c.
46058
46059 2008-01-06 Robert Millan <rmh@aybabtu.com>
46060
46061 * normal/color.c: Remove `<grub/env.h>'.
46062
46063 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46064
46065 * include/grub/normal.h: Include <grub/env.h>.
46066
46067 2008-01-05 Robert Millan <rmh@aybabtu.com>
46068
46069 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46070 usage example with `(hd0,1)'.
46071 Reported by Samuel Thibault.
46072
46073 2008-01-05 Robert Millan <rmh@aybabtu.com>
46074
46075 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46076 (grub_linux_boot_zimage): Rename to ...
46077 (grub_linux_boot): ... this.
46078 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46079 (grub_linux_boot_zimage): Conditionalize zImage copy.
46080
46081 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46082 (grub_linux_boot_bzimage): Remove prototype.
46083 (grub_linux_boot_zimage): Rename to ...
46084 (grub_linux_boot): ... this.
46085
46086 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46087 (grub_linux_boot): Remove function.
46088
46089 2008-01-05 Robert Millan <rmh@aybabtu.com>
46090
46091 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46092 (grub_env_write_color_highlight): Likewise.
46093 (grub_wait_after_message): Likewise.
46094
46095 * normal/color.c: New file.
46096
46097 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46098 (normal_mod_DEPENDENCIES): Likewise.
46099
46100 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46101 (normal_mod_DEPENDENCIES): Likewise.
46102
46103 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46104 (normal_mod_DEPENDENCIES): Likewise.
46105
46106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46107 (normal_mod_DEPENDENCIES): Likewise.
46108
46109 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46110 for waiting after a message is printed.
46111 * normal/main.c (read_config_file): Likewise.
46112 (grub_normal_init): Register grub_env_write_color_normal() and
46113 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46114 `color_highlight' variables as global.
46115
46116 * normal/menu.c (grub_wait_after_message): New function.
46117 (grub_color_menu_normal): New variable. Replaces ...
46118 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46119 (grub_color_menu_highlight): New variable. Replaces ...
46120 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46121 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46122 `GRUB_TERM_COLOR_STANDARD'.
46123 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46124 `normal_code' and `highlight_code' to `old_color_normal' and
46125 `old_color_highlight', respectively.
46126 (grub_menu_init_page): Update colors when drawing the menu, based on
46127 `menu_color_normal' and `menu_color_highlight' variables.
46128 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46129 a message is printed.
46130
46131 2008-01-05 Robert Millan <rmh@aybabtu.com>
46132
46133 * kern/env.c (grub_env_context_open): Propagate hooks for global
46134 variables to new context.
46135
46136 * kern/main.c (grub_set_root_dev): Export `root' variable.
46137
46138 2008-01-05 Robert Millan <rmh@aybabtu.com>
46139
46140 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46141 discs unconditionally, since udev and others have options to provide
46142 them.
46143
46144 2008-01-05 Robert Millan <rmh@aybabtu.com>
46145
46146 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46147
46148 2008-01-04 Christian Franke <franke@computer.org>
46149
46150 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46151 of eisa_mmap.
46152
46153 2008-01-03 Pavel Roskin <proski@gnu.org>
46154
46155 * kern/i386/linuxbios/init.c: Put "void" to all function
46156 declarations with no arguments.
46157 * kern/powerpc/ieee1275/init.c: Likewise.
46158 * term/i386/pc/at_keyboard.c: Likewise.
46159 * term/i386/pc/vga_text.c: Likewise.
46160 * util/grub-mkdevicemap.c: Likewise.
46161
46162 2008-01-02 Robert Millan <rmh@aybabtu.com>
46163
46164 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46165 message when loaded image is out of bounds.
46166 (grub_multiboot_load_elf64): Likewise.
46167
46168 2008-01-02 Pavel Roskin <proski@gnu.org>
46169
46170 * util/grub.d/10_linux.in: Try version without ".old" when
46171 looking for initrd. It's better to use initrd from the newer
46172 kernel of the same version than no initrd at all.
46173
46174 2008-01-01 Robert Millan <rmh@aybabtu.com>
46175
46176 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46177
46178 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46179
46180 * include/grub/video.h: Added grub_video_unmap_color and
46181 grub_video_get_active_render_target.
46182 (grub_video_adapter): Added unmap_color and get_active_render_target.
46183
46184 * video/video.c: Added grub_video_unmap_color and
46185 grub_video_get_active_render_target.
46186 (grub_video_get_info): Changed method to accept NULL pointer as an
46187 argument to allow detection of active video adapter.
46188
46189 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46190 grub_video_vbe_unmap_color_int.
46191 Added grub_video_vbe_unmap_color and
46192 grub_video_vbe_get_active_render_target.
46193 (grub_video_vbe_adapter): Added unmap_color and
46194 get_active_render_target.
46195
46196 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46197 with grub_video_vbe_unmap_color_int.
46198
46199 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46200 (DEFAULT_NORMAL_COLOR): Likewise.
46201 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46202 (DEFAULT_FG_COLOR): Removed.
46203 (DEFAULT_BG_COLOR): Likewise.
46204 (DEFAULT_CURSOR_COLOR): Changed value.
46205 (grub_virtual_screen): Added standard_color_setting,
46206 normal_color_setting, highlight_color_setting and term_color.
46207 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46208 (bitmap_width): Added.
46209 (bitmap_height): Likewise.
46210 (bitmap): Likewise.
46211 (set_term_color): Likewise.
46212 (grub_virtual_screen_setup): Changed to use new terminal coloring
46213 settings.
46214 (grub_gfxterm_init): Added init for bitmap.
46215 (grub_gfxterm_fini): Added destroy for bitmap.
46216 (redraw_screen_rect): Updated to use background bitmap and new
46217 terminal coloring.
46218 (scroll_up): Added optimization for case when there is no bitmap.
46219 (grub_gfxterm_cls): Fixed to use correct background color.
46220 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46221 coloring.
46222 (grub_virtual_screen_setcolor): Likewise.
46223 (grub_virtual_screen_getcolor): Added.
46224 (grub_gfxterm_background_image_cmd): Likewise.
46225 (grub_video_term): Added setcolor and getcolor.
46226 (MOD_INIT): Added registration of background_image command.
46227 (MOD_TERM): Added unregistration for background_image command.
46228
46229 2007-12-30 Pavel Roskin <proski@gnu.org>
46230
46231 * loader/multiboot_loader.c: Fix multiboot command
46232 unregistration. Fix all typos in the word "multiboot".
46233
46234 2007-12-29 Pavel Roskin <proski@gnu.org>
46235
46236 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46237 support for initrd names used in Fedora.
46238
46239 2007-12-26 Bean <bean123ch@gmail.com>
46240
46241 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46242 (cpio_mod_SOURCES): New variable.
46243 (cpio_mod_CFLAGS): Likewise.
46244 (cpio_mod_LDFLAGS): Likewise.
46245
46246 * fs/cpio.c: New file.
46247
46248 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46249
46250 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46251
46252 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46253
46254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46255
46256 2007-12-25 Robert Millan <rmh@aybabtu.com>
46257
46258 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46259 (grub_getcolor): New function.
46260
46261 * kern/term.c (grub_getcolor): New function.
46262 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46263 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46264 (print_entry): Set normal and highlight colors to
46265 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46266 respectively, before printing and restore them to old
46267 values afterwards.
46268 (grub_menu_init_page): Likewise. Fill an additional colored space
46269 that would otherwise be left blank.
46270
46271 * term/efi/console.c (grub_console_getcolor): New function.
46272 (struct grub_console_term.getcolor): New variable.
46273 * term/i386/pc/console.c (grub_console_getcolor): New function.
46274 (struct grub_console_term.getcolor): New variable.
46275 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46276 (struct grub_console_term.getcolor): New variable.
46277
46278 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46279 (struct grub_console_term.setcolor): Remove variable.
46280 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46281 (struct grub_console_term.setcolor): Remove variable.
46282 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46283 (struct grub_console_term.setcolor): Remove variable.
46284 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46285 (struct grub_console_term.setcolor): Remove variable.
46286
46287 2007-12-25 Robert Millan <rmh@aybabtu.com>
46288
46289 * configure.ac: Search for possible unifont.hex locations, and
46290 define UNIFONT_HEX if found.
46291
46292 * Makefile.in (UNIFONT_HEX): Define variable.
46293 (DATA): Rename to ...
46294 (PKGLIB): ... this. Update all users.
46295 (PKGDATA): New variable.
46296 (pkgdata_IMAGES): Rename to ...
46297 (pkglib_IMAGES): ... this. Update all users.
46298 (pkgdata_MODULES): Rename to ...
46299 (pkglib_MODULES): ... this. Update all users.
46300 (pkgdata_PROGRAMS): Rename to ...
46301 (pkglib_PROGRAMS): ... this. Update all users.
46302 (pkgdata_DATA): Rename to ...
46303 (pkglib_DATA): ... this. Update all users.
46304 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46305 (unicode.pff, ascii.pff): New rules.
46306 (all-local): Add `$(PKGDATA)' dependency.
46307 (install-local): Process `$(PKGDATA)'.
46308
46309 * util/update-grub_lib.in (font_path): Search for *.pff files in
46310 a few more locations, including `${pkgdata}'.
46311
46312 2007-12-23 Robert Millan <rmh@aybabtu.com>
46313
46314 Patch from Bean <bean123ch@gmail.com>:
46315 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46316 `size'.
46317
46318 2007-12-21 Bean <bean123ch@gmail.com>
46319
46320 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46321 (ntfscomp_mod_SOURCES): New variable.
46322 (ntfscomp_mod_CFLAGS): Likewise.
46323 (ntfscomp_mod_LDFLAGS): Likewise.
46324
46325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46326 (grub_probe_SOURCES): Likewise.
46327 (grub_emu_SOURCES): Likewise.
46328
46329 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46330 (grub_emu_SOURCES): Likewise.
46331
46332 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46333 (grub_emu_SOURCES): Likewise.
46334
46335 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46336 (grub_emu_SOURCES): Likewise.
46337
46338 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46339 (read_run_list): Renamed to grub_ntfs_read_run_list.
46340 (decomp_nextvcn): Moved to ntfscomp.c.
46341 (decomp_getch): Likewise.
46342 (decomp_get16): Likewise.
46343 (decomp_block): Likewise.
46344 (read_block): Likewise.
46345 (read_data): Partially moved to ntfscomp.c.
46346 (fixup): Change unsigned to grub_uint16_t.
46347 (read_mft): Change unsigned long to grub_uint32_t.
46348 (read_attr): Likewise.
46349 (read_data): Likewise.
46350 (read_run_data): Likewise.
46351 (read_run_list): Likewise.
46352 (read_mft): Likewise.
46353
46354 * fs/ntfscomp.c: New file.
46355
46356 * include/grub/ntfs.h: New file.
46357
46358 2007-12-16 Robert Millan <rmh@aybabtu.com>
46359
46360 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46361 IDE disk check, since Linux is known to support 20 IDE disks.
46362 Reported by Colin Watson.
46363
46364 2007-12-15 Bean <bean123ch@gmail.com>
46365
46366 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46367 (lnxboot_img_SOURCES): New variable.
46368 (lnxboot_img_ASFLAGS): Likewise.
46369 (lnxboot_img_LDFLAGS): Likewise.
46370
46371 * boot/i386/pc/lnxboot.S: New file.
46372
46373 2007-11-24 Pavel Roskin <proski@gnu.org>
46374
46375 * configure.ac: Test if '--build-id=none' is supported by the
46376 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46377 objcopy to generate incorrect binary files (binutils
46378 2.17.50.0.18-1 as shipped by Fedora 8).
46379 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46380 linking, so that build ID doesn't break the test.
46381
46382 2007-11-24 Pavel Roskin <proski@gnu.org>
46383
46384 * include/grub/i386/time.h: use "void" in the argument list
46385 of grub_cpu_idle().
46386 * include/grub/powerpc/time.h: Likewise.
46387 * include/grub/sparc64/time.h: Likewise.
46388
46389 2007-11-18 Christian Franke <franke@computer.org>
46390
46391 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46392 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46393 This fixes the problem that function keys did not work in grub-emu.
46394
46395 2007-11-18 Christian Franke <franke@computer.org>
46396
46397 * disk/host.c (grub_host_open): Remove attribute unused from
46398 name parameter. Add check for "host". This fixes the problem
46399 that grub-emu does not find partitions.
46400
46401 2007-11-18 Christian Franke <franke@computer.org>
46402
46403 * util/hostfs.c (is_dir): New function.
46404 (grub_hostfs_dir): Handle missing dirent.d_type case.
46405 (grub_hostfs_read): Add missing fseek().
46406 (grub_hostfs_label): Clear label pointer. This fixes a crash
46407 of grub-emu on "ls (host)".
46408
46409 2007-11-18 Christian Franke <franke@computer.org>
46410
46411 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
46412 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
46413 to 64 bit boundary by default.
46414
46415 2007-11-18 Bean <bean123ch@gmail.com>
46416
46417 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
46418 (hexdump_mod_SOURCES): New variable.
46419 (hexdump_mod_CFLAGS): Likewise.
46420 (hexdump_mod_LDFLAGS): Likewise.
46421
46422 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46423
46424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46425
46426 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46427
46428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
46429
46430 * include/grub/hexdump.h: New file.
46431
46432 * commands/hexdump.c: New file.
46433
46434 2007-11-10 Robert Millan <rmh@aybabtu.com>
46435
46436 * commands/i386/pc/play.c (beep_off): Switch order of arguments
46437 in grub_outb() calls.
46438 (beep_on): Likewise.
46439
46440 2007-11-10 Christian Franke <franke@computer.org>
46441
46442 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
46443 (grub_menu_run): Likewise.
46444
46445 2007-11-10 Robert Millan <rmh@aybabtu.com>
46446
46447 * include/grub/i386/efi/machine.h: New file.
46448 * include/grub/i386/linuxbios/machine.h: Likewise.
46449 * include/grub/i386/pc/machine.h: Likewise.
46450 * include/grub/powerpc/ieee1275/machine.h: Likewise.
46451 * include/grub/sparc64/ieee1275/machine.h: Likewise.
46452
46453 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
46454 (serial_hw_io_addr): New variable.
46455 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
46456 instead of `(unsigned short *) 0x400'.
46457
46458 2007-11-10 Bean <bean123ch@gmail.com>
46459
46460 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
46461
46462 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46463
46464 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
46465 (vga_mod_SOURCES): Added.
46466 (vga_mod_CFLAGS): Likewise.
46467 (vga_mod_LDFLAGS): Likewise.
46468
46469 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
46470 grub_outb() calls.
46471 (set_map_mask): Likewise.
46472 (set_read_map): Likewise.
46473 (set_read_address): Likewise.
46474 (vga_font): Removed variable.
46475 (get_vga_glyph): Removed function.
46476 (invalidate_char): Likewise.
46477 (write_char): Changed to use grub_font_get_glyph() for font
46478 information.
46479 (grub_vga_putchar): Likewise.
46480 (grub_vga_getcharwidth): Likewise.
46481
46482 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
46483
46484 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
46485 flags.
46486 (pxeboot_img_LDFLAGS): Likewise.
46487 (diskboot_img_LDFLAGS): Likewise.
46488 (kernel_img_LDFLAGS): Likewise.
46489
46490 2007-11-06 Robert Millan <rmh@aybabtu.com>
46491
46492 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
46493 in grub_outb() calls.
46494 (serial_hw_init): Likewise.
46495
46496 2007-11-05 Robert Millan <rmh@aybabtu.com>
46497
46498 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
46499 spaces. Skip non-regular files.
46500
46501 2007-11-05 Robert Millan <rmh@aybabtu.com>
46502
46503 * kern/disk.c (grub_disk_firmware_fini)
46504 (grub_disk_firmware_is_tainted): New variables.
46505
46506 * include/grub/disk.h (grub_disk_firmware_fini)
46507 (grub_disk_firmware_is_tainted): Likewise.
46508
46509 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
46510 (grub_disk_biosdisk_fini): ... to here.
46511 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
46512 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
46513 is set. Register grub_disk_biosdisk_fini() in
46514 `grub_disk_firmware_fini'.
46515
46516 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
46517 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
46518 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
46519 to finish existing firmware disk interface.
46520
46521 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
46522 (ata_mod_SOURCES): New variable.
46523 (ata_mod_CFLAGS): Likewise.
46524 (ata_mod_LDFLAGS): Likewise.
46525
46526 2007-11-05 Robert Millan <rmh@aybabtu.com>
46527
46528 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
46529 (grub_ata_wait): Reimplement using grub_millisleep().
46530
46531 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
46532 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
46533
46534 2007-11-03 Marco Gerards <marco@gnu.org>
46535
46536 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
46537 (CRTC_ADDR_PORT): New macro.
46538 (CRTC_DATA_PORT): Likewise.
46539 (CRTC_CURSOR): Likewise.
46540 (CRTC_CURSOR_ADDR_HIGH): Likewise.
46541 (CRTC_CURSOR_ADDR_LOW): Likewise.
46542 (update_cursor): New function.
46543 (grub_console_real_putchar): Call `update_cursor'.
46544 (grub_console_gotoxy): Likewise.
46545 (grub_console_cls): Set the default color when clearing the
46546 screen.
46547 (grub_console_setcursor): Implemented.
46548
46549 2007-11-03 Marco Gerards <marco@gnu.org>
46550
46551 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
46552 become activate.
46553 (grub_ata_pio_write): Likewise.
46554
46555 (grub_atapi_identify): Wait after issuing an ATA command.
46556 (grub_atapi_packet): Likewise.
46557 (grub_ata_identify): Likewise.
46558 (grub_ata_readwrite): Likewise.
46559
46560 2007-11-03 Marco Gerards <marco@gnu.org>
46561
46562 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
46563 (grub_ata_pio_write): Likewise.
46564 (grub_ata_readwrite): Use `grub_error', instead of
46565 returning `grub_errno'.
46566
46567 2007-11-03 Marco Gerards <marco@gnu.org>
46568
46569 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
46570 grub_ata_pio_write once for every single sector, instead of for
46571 multiple sectors.
46572
46573 2007-10-31 Robert Millan <rmh@aybabtu.com>
46574
46575 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
46576
46577 * conf/i386-linuxbios.rmk: New file.
46578
46579 * kern/i386/pc/hardware.c: Likewise.
46580 * term/i386/pc/at_keyboard.c: Likewise.
46581 * term/i386/pc/vga_text.c: Likewise.
46582
46583 * include/grub/i386/linuxbios/boot.h: Likewise.
46584 * include/grub/i386/linuxbios/console.h: Likewise.
46585 * include/grub/i386/linuxbios/init.h: Likewise.
46586 * include/grub/i386/linuxbios/kernel.h: Likewise.
46587 * include/grub/i386/linuxbios/loader.h: Likewise.
46588 * include/grub/i386/linuxbios/memory.h: Likewise.
46589 * include/grub/i386/linuxbios/serial.h: Likewise.
46590 * include/grub/i386/linuxbios/time.h: Likewise.
46591
46592 * kern/i386/linuxbios/init.c: Likewise.
46593 * kern/i386/linuxbios/startup.S: Likewise.
46594 * kern/i386/linuxbios/table.c: Likewise.
46595
46596 2007-10-31 Marco Gerards <marco@gnu.org>
46597
46598 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
46599 (ata_mod_SOURCES): New variable.
46600 (ata_mod_CFLAGS): Likewise.
46601 (ata_mod_LDFLAGS): Likewise.
46602
46603 * disk/ata.c: New file.
46604
46605 * include/grub/disk.h (grub_disk_dev_id): Add
46606 `GRUB_DISK_DEV_ATA_ID'.
46607
46608 2007-10-31 Robert Millan <rmh@aybabtu.com>
46609
46610 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
46611 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
46612
46613 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
46614 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
46615
46616 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
46617 `<grub/types.h>'.
46618
46619 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
46620
46621 2007-10-27 Robert Millan <rmh@aybabtu.com>
46622
46623 * include/grub/types.h (ULONG_MAX): Define macro.
46624
46625 2007-10-22 Robert Millan <rmh@aybabtu.com>
46626
46627 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
46628 `"../realmode.S"'.
46629 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
46630
46631 2007-10-22 Robert Millan <rmh@aybabtu.com>
46632
46633 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
46634 (pkgdata_MODULES): Add `biosdisk.mod'.
46635 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
46636 variables.
46637
46638 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
46639 (grub_biosdisk_init): Replace with ...
46640 (GRUB_MOD_INIT(biosdisk)): ... this.
46641 (grub_biosdisk_fini): Replace with ...
46642 (GRUB_MOD_FINI(biosdisk)): ... this.
46643
46644 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
46645 (grub_machine_init): Remove call to grub_biosdisk_init().
46646 (grub_machine_fini): Remove call to grub_machine_fini().
46647
46648 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
46649
46650 2007-10-22 Robert Millan <rmh@aybabtu.com>
46651
46652 * include/grub/time.h: New file.
46653 * include/grub/i386/time.h: Likewise.
46654 * include/grub/powerpc/time.h: Likewise.
46655 * include/grub/sparc64/time.h: Likewise.
46656
46657 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
46658 instances to ...
46659 (KERNEL_MACHINE_TIME_HEADER): ... this.
46660 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46661 instances to ...
46662 (KERNEL_MACHINE_TIME_HEADER): ... this.
46663 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
46664 instances to ...
46665 (KERNEL_MACHINE_TIME_HEADER): ... this.
46666
46667 * kern/i386/efi/init.c: Include `<grub/time.h>'.
46668 (grub_millisleep): New function.
46669 * kern/i386/pc/init.c: Include `<grub/time.h>'.
46670 (grub_millisleep): New function.
46671 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
46672 Remove `grub/machine/time.h' include.
46673 (grub_millisleep): New function.
46674 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
46675 Remove `grub/machine/time.h' include.
46676 (grub_millisleep): New function.
46677
46678 * include/grub/misc.h (grub_div_roundup): New function.
46679
46680 * kern/misc.c: Include `<grub/time.h>'.
46681 (grub_millisleep_generic): New function.
46682
46683 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
46684 Add `time.h'.
46685 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
46686 Add `time.h'.
46687 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
46688 `machine/time.h'. Add `time.h'.
46689 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
46690
46691 2007-10-21 Robert Millan <rmh@aybabtu.com>
46692
46693 * include/grub/misc.h (grub_max): New function.
46694
46695 2007-10-21 Robert Millan <rmh@aybabtu.com>
46696
46697 * util/misc.c (grub_util_info): Call fflush() before returning.
46698
46699 2007-10-20 Robert Millan <rmh@aybabtu.com>
46700
46701 * genmk.rb (Image): Copy `extra_flags' from here ...
46702 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
46703
46704 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
46705 to `argc' and `args' arguments.
46706
46707 2007-10-17 Robert Millan <rmh@aybabtu.com>
46708
46709 * kern/i386/loader.S: New file.
46710
46711 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
46712 * kern/i386/loader.S (grub_linux_prot_size)... to here.
46713 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
46714 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
46715 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
46716 * kern/i386/loader.S (grub_linux_real_addr)... to here.
46717 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
46718 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
46719 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
46720 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
46721 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
46722 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
46723 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
46724 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
46725
46726 * kern/i386/realmode.S: New file.
46727
46728 * kern/i386/pc/startup.S (protstack): Moved from here ...
46729 * kern/i386/realmode.S (protstack)... to here.
46730 * kern/i386/pc/startup.S (gdt): Moved from here ...
46731 * kern/i386/realmode.S (gdt)... to here.
46732 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
46733 * kern/i386/realmode.S (prot_to_real)... to here.
46734
46735 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
46736 `kern/i386/realmode.S'.
46737
46738 2007-10-17 Robert Millan <rmh@aybabtu.com>
46739
46740 * include/grub/i386/loader.h: New file.
46741
46742 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
46743 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46744 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46745 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46746 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
46747 * include/grub/i386/loader.h (grub_linux_prot_size)
46748 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
46749 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
46750 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
46751 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
46752
46753 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
46754
46755 2007-10-15 Robert Millan <rmh@aybabtu.com>
46756
46757 * normal/misc.c (grub_normal_print_device_info): Do not probe for
46758 filesystem when dev->disk is unset.
46759 Do probe for filesystem even when dev->disk->has_partitions is set.
46760 In case a filesystem is found, always report it.
46761 In case it isn't, if dev->disk->has_partitions is set, report that
46762 a partition table was found instead of reporting that no filesystem
46763 could be identified.
46764
46765 2007-10-12 Robert Millan <rmh@aybabtu.com>
46766
46767 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
46768 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
46769
46770 * include/grub/types.h (grub_host_to_target16): New macro.
46771 (grub_host_to_target32): Likewise.
46772 (grub_host_to_target64): Likewise.
46773 (grub_target_to_host16): Likewise.
46774 (grub_target_to_host32): Likewise.
46775 (grub_target_to_host64): Likewise.
46776
46777 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46778 Renamed from to ...
46779 (GRUB_MOD_ALIGN): ...this. Update all users.
46780
46781 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46782 grub_host_to_target32.
46783 Replace grub_be_to_cpu32 with grub_target_to_host32.
46784 (load_modules): Likewise.
46785 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46786 Replace grub_be_to_cpu32 with grub_target_to_host32.
46787 Replace grub_cpu_to_be16 with grub_host_to_target16.
46788 Replace grub_cpu_to_be32 grub_host_to_target32.
46789
46790 2007-10-12 Robert Millan <rmh@aybabtu.com>
46791
46792 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46793 * util/elf/grub-mkimage.c: ... here.
46794
46795 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46796 `util/powerpc/ieee1275/grub-mkimage.c'.
46797
46798 2007-10-07 Robert Millan <rmh@aybabtu.com>
46799
46800 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46801 and make it easier to figure out.
46802 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46803 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46804 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46805 leave us with less than HEAP_MIN_SIZE total heap.
46806 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
46807
46808 2007-10-03 Robert Millan <rmh@aybabtu.com>
46809
46810 * include/grub/i386/io.h: New file.
46811 * commands/i386/pc/play.c (inb): Removed.
46812 (outb): Removed.
46813 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46814 with grub_outb().
46815 * term/i386/pc/serial.c (inb): Removed.
46816 (outb): Removed.
46817 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46818 with grub_outb().
46819 * term/i386/pc/vga.c (inb): Removed.
46820 (outb): Removed.
46821 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46822 with grub_outb().
46823
46824 2007-10-02 Robert Millan <rmh@aybabtu.com>
46825
46826 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46828 Reported by Marcin Kurek.
46829
46830 2007-09-07 Robert Millan <rmh@aybabtu.com>
46831
46832 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46833 SmartFirmware version updates (as released by Sven Luther), and avoid
46834 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46835 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46836 known broken.
46837
46838 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46839
46840 From Hitoshi Ozeki:
46841 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46842 when merging two regions.
46843
46844 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46845
46846 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46847 * normal/completion.c (grub_normal_do_completion): Likewise.
46848 Reported by Hitoshi Ozeki.
46849
46850 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46851
46852 Do not use devices at boot in chainloading.
46853
46854 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46855 (boot_part_addr): Likewise.
46856 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46857 with BOOT_DRIVE and BOOT_PART_ADDR.
46858 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46859 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46860
46861 2007-08-29 Robert Millan <rmh@aybabtu.com>
46862
46863 Patch from Simon Peter <dn.tlp@gmx.net>:
46864 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46865 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46866 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46867 util/i386/pc/grub-setup.c_DEPENDENCIES.
46868 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46869 util/grub-probe.c_DEPENDENCIES.
46870 * conf/powerpc-ieee1275.rmk: Likewise.
46871
46872 2007-08-28 Robert Millan <rmh@aybabtu.com>
46873
46874 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46875 to tell grub-mkdevicemap how to name devices.
46876 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46877 feature).
46878
46879 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46880 util/i386/get_disk_name.c.
46881 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46882 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46883 util/ieee1275/get_disk_name.c.
46884
46885 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46886
46887 * DISTLIST: Add util/i386/get_disk_name.c and
46888 util/ieee1275/get_disk_name.c.
46889
46890 * util/grub-mkdevicemap.c: Replace device naming logic with
46891 grub_util_get_disk_name() calls.
46892
46893 2007-08-20 Robert Millan <rmh@aybabtu.com>
46894
46895 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46896 (so that it works for both plural and singular quantities).
46897
46898 2007-08-05 Robert Millan <rmh@aybabtu.com>
46899
46900 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46901 so that [xz] isn't taken into account when determining order.
46902
46903 2007-08-02 Marco Gerards <marco@gnu.org>
46904
46905 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46906 `include/multiboot2.h', `include/grub/elfload.h',
46907 `include/multiboot.h', `include/grub/multiboot.h',
46908 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46909 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46910 `kern/elf.c', `loader/multiboot_loader.c',
46911 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46912 `loader/i386/pc/multiboot2.c',
46913 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46914 `util/i386/pc/grub-mkrescue.in'. Remove
46915 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46916 `include/grub/i386/pc/util/biosdisk.h' and
46917 `include/grub/powerpc/ieee1275/multiboot.h'.
46918
46919 2007-08-02 Bean <bean123ch@gmail.com>
46920
46921 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46922 (ntfs_mod_SOURCES): New variable.
46923 (ntfs_mod_CFLAGS): Likewise.
46924 (ntfs_mod_LDFLAGS): Likewise.
46925
46926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46927 (grub_probe_SOURCES): Likewise.
46928 (grub_emu_SOURCES): Likewise.
46929
46930 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46931 (grub_emu_SOURCES): Likewise.
46932
46933 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46934 (grub_emu_SOURCES): Likewise.
46935
46936 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46937
46938 * fs/ntfs.c: New file.
46939
46940 2007-08-02 Bean <bean123ch@gmail.com>
46941
46942 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46943
46944 * file.h (grub_file): Likewise.
46945
46946 * fshelp.h (grub_fshelp_read_file): Likewise.
46947
46948 * util/i386/pc/grub-setup.c (setup): Likewise.
46949 (save_first_sector): Likewise.
46950 (save_blocklists): Likewise.
46951
46952 * fs/affs.c (grub_affs_read_file): Likewise.
46953
46954 * fs/ext2.c (grub_ext2_read_file): Likewise.
46955
46956 * fs/fat.c (grub_fat_read_data): Likewise.
46957
46958 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46959
46960 * fs/hfs.c (grub_hfs_read_file): Likewise.
46961
46962 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46963
46964 * fs/jfs.c (grub_jfs_read_file): Likewise.
46965
46966 * fs/minix.c (grub_minix_read_file): Likewise.
46967
46968 * fs/sfs.c (grub_sfs_read_file): Likewise.
46969
46970 * fs/ufs.c (grub_ufs_read_file): Likewise.
46971
46972 * fs/xfs.c (grub_xfs_read_file): Likewise.
46973
46974 * command/blocklist.c (read_blocklist): Likewise.
46975 (print_blocklist): Likewise.
46976
46977 2007-08-02 Marco Gerards <marco@gnu.org>
46978
46979 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46980 `util/hostfs.c'.
46981
46982 * disk/host.c: New file.
46983
46984 * util/hostfs.c: Likewise.
46985
46986 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46987 return `GRUB_ERR_BAD_FS'.
46988 * fs/sfs.c (grub_sfs_mount): Likewise.
46989 * fs/xfs.c (grub_xfs_mount): Likewise.
46990
46991 * include/grub/disk.h (enum grub_disk_dev_id): Add
46992 `GRUB_DISK_DEVICE_HOST_ID'.
46993
46994 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46995
46996 2007-07-24 Jerone Young <jerone@gmail.com>
46997
46998 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
46999 modules for compilation.
47000 * conf/powerpc-ieee1275.rmk: Likewise.
47001
47002 * include/multiboot.h: Move multiboot definitions to one file. Rename
47003 many definitions to not get grub specific.
47004 * include/multiboot2.h: Create header with multiboot 2 definitions.
47005 * include/grub/multiboot.h: Header for grub specific function
47006 prototypes and definitions.
47007 * include/grub/multiboot2.h: Likewise.
47008 * include/grub/multiboot_loader.h: Likewise.
47009 * include/grub/i386/pc/multiboot.h: Removed.
47010 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47011
47012 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47013 and 2 to allow for one multiboot and module commands.
47014 * loader/multiboot2.c: Add multiboot2 functionality.
47015 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47016 and definition names.
47017 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47018 2 functions.
47019 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47020 ieee1275 specific multiboot2 code.
47021
47022 * kern/i386/pc/startup.S: Change headers and definition names for
47023 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47024
47025 2007-07-22 Robert Millan <rmh@aybabtu.com>
47026
47027 * geninitheader.sh: Process file specified in first parameter rather
47028 than hardcoding grub_modules_init.lst.
47029 * geninit.sh: Likewise. Also, construct header name dynamically rather
47030 than hardcoding grub_modules_init.h.
47031
47032 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47033 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47034 grub_probe_init.[ch] and grub_setup_init.[ch].
47035
47036 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47037 grub_modules_init.h with grub_emu_init.h.
47038 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47039 grub_probe_init.[ch] files.
47040 * conf/i386-efi.rmk: Likewise.
47041 * conf/i386-pc.rmk: Likewise.
47042 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47043 grub_setup_init.[ch] files.
47044
47045 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47046 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47047 to initialize modules rather than a list of hardcoded functions.
47048 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47049 grub_init_all() to initialize modules rather than a list of hardcoded
47050 functions.
47051
47052 2007-07-22 Robert Millan <rmh@aybabtu.com>
47053
47054 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47055 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47056
47057 2007-07-22 Robert Millan <rmh@aybabtu.com>
47058
47059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47060 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47061 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47062 flag when running on SmartFirmware.
47063 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47064 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47065 was set.
47066
47067 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47068 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47069 rather than decreasing it.
47070
47071 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47072 there's not enough space to do it, fail in the same way as when it
47073 can't be done because there are no partitions.
47074
47075 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47076 when nvsetenv failed.
47077
47078 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47079
47080 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47081 because this rule is automatically generated.
47082 (grub-mkrescue): Removed for the same reason as above.
47083
47084 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47085
47086 Migrate to GNU General Public License Version 3.
47087
47088 * COPYING: Replaced with the plain text version of GPLv3.
47089
47090 * config.guess: Updated from gnulib.
47091 * config.sub: Likewise.
47092
47093 * geninit.sh: Output a GPLv3 copyright notice.
47094 * geninitheader.sh: Likewise.
47095 * genmodsrc.sh: Likewise.
47096 * gensymlist.sh.in: Likewise.
47097
47098 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47099 * boot/i386/pc/diskboot.S: Likewise.
47100 * boot/i386/pc/pxeboot.S: Likewise.
47101 * commands/blocklist.c: Likewise.
47102 * commands/boot.c: Likewise.
47103 * commands/cat.c: Likewise.
47104 * commands/cmp.c: Likewise.
47105 * commands/configfile.c: Likewise.
47106 * commands/echo.c: Likewise.
47107 * commands/help.c: Likewise.
47108 * commands/ls.c: Likewise.
47109 * commands/search.c: Likewise.
47110 * commands/terminal.c: Likewise.
47111 * commands/test.c: Likewise.
47112 * commands/videotest.c: Likewise.
47113 * commands/i386/cpuid.c: Likewise.
47114 * commands/i386/pc/halt.c: Likewise.
47115 * commands/i386/pc/play.c: Likewise.
47116 * commands/i386/pc/reboot.c: Likewise.
47117 * commands/i386/pc/vbeinfo.c: Likewise.
47118 * commands/i386/pc/vbetest.c: Likewise.
47119 * commands/ieee1275/halt.c: Likewise.
47120 * commands/ieee1275/reboot.c: Likewise.
47121 * commands/ieee1275/suspend.c: Likewise.
47122 * disk/loopback.c: Likewise.
47123 * disk/lvm.c: Likewise.
47124 * disk/raid.c: Likewise.
47125 * disk/efi/efidisk.c: Likewise.
47126 * disk/i386/pc/biosdisk.c: Likewise.
47127 * disk/ieee1275/ofdisk.c: Likewise.
47128 * font/manager.c: Likewise.
47129 * fs/affs.c: Likewise.
47130 * fs/ext2.c: Likewise.
47131 * fs/fat.c: Likewise.
47132 * fs/fshelp.c: Likewise.
47133 * fs/hfs.c: Likewise.
47134 * fs/hfsplus.c: Likewise.
47135 * fs/iso9660.c: Likewise.
47136 * fs/jfs.c: Likewise.
47137 * fs/minix.c: Likewise.
47138 * fs/sfs.c: Likewise.
47139 * fs/ufs.c: Likewise.
47140 * fs/xfs.c: Likewise.
47141 * hello/hello.c: Likewise.
47142 * include/grub/acorn_filecore.h: Likewise.
47143 * include/grub/arg.h: Likewise.
47144 * include/grub/bitmap.h: Likewise.
47145 * include/grub/boot.h: Likewise.
47146 * include/grub/cache.h: Likewise.
47147 * include/grub/device.h: Likewise.
47148 * include/grub/disk.h: Likewise.
47149 * include/grub/dl.h: Likewise.
47150 * include/grub/elfload.h: Likewise.
47151 * include/grub/env.h: Likewise.
47152 * include/grub/err.h: Likewise.
47153 * include/grub/file.h: Likewise.
47154 * include/grub/font.h: Likewise.
47155 * include/grub/fs.h: Likewise.
47156 * include/grub/fshelp.h: Likewise.
47157 * include/grub/gzio.h: Likewise.
47158 * include/grub/hfs.h: Likewise.
47159 * include/grub/kernel.h: Likewise.
47160 * include/grub/loader.h: Likewise.
47161 * include/grub/lvm.h: Likewise.
47162 * include/grub/misc.h: Likewise.
47163 * include/grub/mm.h: Likewise.
47164 * include/grub/net.h: Likewise.
47165 * include/grub/normal.h: Likewise.
47166 * include/grub/parser.h: Likewise.
47167 * include/grub/partition.h: Likewise.
47168 * include/grub/pc_partition.h: Likewise.
47169 * include/grub/raid.h: Likewise.
47170 * include/grub/rescue.h: Likewise.
47171 * include/grub/script.h: Likewise.
47172 * include/grub/setjmp.h: Likewise.
47173 * include/grub/symbol.h: Likewise.
47174 * include/grub/term.h: Likewise.
47175 * include/grub/terminfo.h: Likewise.
47176 * include/grub/tparm.h: Likewise.
47177 * include/grub/types.h: Likewise.
47178 * include/grub/video.h: Likewise.
47179 * include/grub/efi/api.h: Likewise.
47180 * include/grub/efi/chainloader.h: Likewise.
47181 * include/grub/efi/console.h: Likewise.
47182 * include/grub/efi/console_control.h: Likewise.
47183 * include/grub/efi/disk.h: Likewise.
47184 * include/grub/efi/efi.h: Likewise.
47185 * include/grub/efi/pe32.h: Likewise.
47186 * include/grub/efi/time.h: Likewise.
47187 * include/grub/i386/linux.h: Likewise.
47188 * include/grub/i386/setjmp.h: Likewise.
47189 * include/grub/i386/types.h: Likewise.
47190 * include/grub/i386/efi/kernel.h: Likewise.
47191 * include/grub/i386/efi/loader.h: Likewise.
47192 * include/grub/i386/efi/time.h: Likewise.
47193 * include/grub/i386/pc/biosdisk.h: Likewise.
47194 * include/grub/i386/pc/boot.h: Likewise.
47195 * include/grub/i386/pc/chainloader.h: Likewise.
47196 * include/grub/i386/pc/console.h: Likewise.
47197 * include/grub/i386/pc/init.h: Likewise.
47198 * include/grub/i386/pc/kernel.h: Likewise.
47199 * include/grub/i386/pc/loader.h: Likewise.
47200 * include/grub/i386/pc/memory.h: Likewise.
47201 * include/grub/i386/pc/multiboot.h: Likewise.
47202 * include/grub/i386/pc/serial.h: Likewise.
47203 * include/grub/i386/pc/time.h: Likewise.
47204 * include/grub/i386/pc/vbe.h: Likewise.
47205 * include/grub/i386/pc/vbeblit.h: Likewise.
47206 * include/grub/i386/pc/vbefill.h: Likewise.
47207 * include/grub/i386/pc/vbeutil.h: Likewise.
47208 * include/grub/i386/pc/vga.h: Likewise.
47209 * include/grub/ieee1275/ieee1275.h: Likewise.
47210 * include/grub/ieee1275/ofdisk.h: Likewise.
47211 * include/grub/powerpc/libgcc.h: Likewise.
47212 * include/grub/powerpc/setjmp.h: Likewise.
47213 * include/grub/powerpc/types.h: Likewise.
47214 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47215 * include/grub/powerpc/ieee1275/console.h: Likewise.
47216 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47217 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47218 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47219 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47220 * include/grub/powerpc/ieee1275/time.h: Likewise.
47221 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47222 * include/grub/sparc64/libgcc.h: Likewise.
47223 * include/grub/sparc64/setjmp.h: Likewise.
47224 * include/grub/sparc64/types.h: Likewise.
47225 * include/grub/sparc64/ieee1275/console.h: Likewise.
47226 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47227 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47228 * include/grub/sparc64/ieee1275/time.h: Likewise.
47229 * include/grub/util/biosdisk.h: Likewise.
47230 * include/grub/util/getroot.h: Likewise.
47231 * include/grub/util/lvm.h: Likewise.
47232 * include/grub/util/misc.h: Likewise.
47233 * include/grub/util/raid.h: Likewise.
47234 * include/grub/util/resolve.h: Likewise.
47235 * io/gzio.c: Likewise.
47236 * kern/device.c: Likewise.
47237 * kern/disk.c: Likewise.
47238 * kern/dl.c: Likewise.
47239 * kern/elf.c: Likewise.
47240 * kern/env.c: Likewise.
47241 * kern/err.c: Likewise.
47242 * kern/file.c: Likewise.
47243 * kern/fs.c: Likewise.
47244 * kern/loader.c: Likewise.
47245 * kern/main.c: Likewise.
47246 * kern/misc.c: Likewise.
47247 * kern/mm.c: Likewise.
47248 * kern/parser.c: Likewise.
47249 * kern/partition.c: Likewise.
47250 * kern/rescue.c: Likewise.
47251 * kern/term.c: Likewise.
47252 * kern/efi/efi.c: Likewise.
47253 * kern/efi/init.c: Likewise.
47254 * kern/efi/mm.c: Likewise.
47255 * kern/i386/dl.c: Likewise.
47256 * kern/i386/efi/init.c: Likewise.
47257 * kern/i386/efi/startup.S: Likewise.
47258 * kern/i386/pc/init.c: Likewise.
47259 * kern/i386/pc/lzo1x.S: Likewise.
47260 * kern/i386/pc/startup.S: Likewise.
47261 * kern/ieee1275/ieee1275.c: Likewise.
47262 * kern/powerpc/cache.S: Likewise.
47263 * kern/powerpc/dl.c: Likewise.
47264 * kern/powerpc/ieee1275/cmain.c: Likewise.
47265 * kern/powerpc/ieee1275/crt0.S: Likewise.
47266 * kern/powerpc/ieee1275/init.c: Likewise.
47267 * kern/powerpc/ieee1275/openfw.c: Likewise.
47268 * kern/sparc64/cache.S: Likewise.
47269 * kern/sparc64/dl.c: Likewise.
47270 * kern/sparc64/ieee1275/init.c: Likewise.
47271 * kern/sparc64/ieee1275/openfw.c: Likewise.
47272 * loader/efi/chainloader.c: Likewise.
47273 * loader/efi/chainloader_normal.c: Likewise.
47274 * loader/i386/efi/linux.c: Likewise.
47275 * loader/i386/efi/linux_normal.c: Likewise.
47276 * loader/i386/pc/chainloader.c: Likewise.
47277 * loader/i386/pc/chainloader_normal.c: Likewise.
47278 * loader/i386/pc/linux.c: Likewise.
47279 * loader/i386/pc/linux_normal.c: Likewise.
47280 * loader/i386/pc/multiboot.c: Likewise.
47281 * loader/i386/pc/multiboot_normal.c: Likewise.
47282 * loader/powerpc/ieee1275/linux.c: Likewise.
47283 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47284 * normal/arg.c: Likewise.
47285 * normal/cmdline.c: Likewise.
47286 * normal/command.c: Likewise.
47287 * normal/completion.c: Likewise.
47288 * normal/execute.c: Likewise.
47289 * normal/function.c: Likewise.
47290 * normal/lexer.c: Likewise.
47291 * normal/main.c: Likewise.
47292 * normal/menu.c: Likewise.
47293 * normal/menu_entry.c: Likewise.
47294 * normal/misc.c: Likewise.
47295 * normal/parser.y: Likewise.
47296 * normal/script.c: Likewise.
47297 * normal/i386/setjmp.S: Likewise.
47298 * normal/powerpc/setjmp.S: Likewise.
47299 * normal/sparc64/setjmp.S: Likewise.
47300 * partmap/acorn.c: Likewise.
47301 * partmap/amiga.c: Likewise.
47302 * partmap/apple.c: Likewise.
47303 * partmap/gpt.c: Likewise.
47304 * partmap/pc.c: Likewise.
47305 * partmap/sun.c: Likewise.
47306 * term/gfxterm.c: Likewise.
47307 * term/terminfo.c: Likewise.
47308 * term/efi/console.c: Likewise.
47309 * term/i386/pc/console.c: Likewise.
47310 * term/i386/pc/serial.c: Likewise.
47311 * term/i386/pc/vesafb.c: Likewise.
47312 * term/i386/pc/vga.c: Likewise.
47313 * term/ieee1275/ofconsole.c: Likewise.
47314 * util/biosdisk.c: Likewise.
47315 * util/console.c: Likewise.
47316 * util/genmoddep.c: Likewise.
47317 * util/getroot.c: Likewise.
47318 * util/grub-emu.c: Likewise.
47319 * util/grub-mkdevicemap.c: Likewise.
47320 * util/grub-probe.c: Likewise.
47321 * util/lvm.c: Likewise.
47322 * util/misc.c: Likewise.
47323 * util/raid.c: Likewise.
47324 * util/resolve.c: Likewise.
47325 * util/update-grub.in: Likewise.
47326 * util/update-grub_lib.in: Likewise.
47327 * util/grub.d/00_header.in: Likewise.
47328 * util/grub.d/10_hurd.in: Likewise.
47329 * util/grub.d/10_linux.in: Likewise.
47330 * util/i386/efi/grub-install.in: Likewise.
47331 * util/i386/efi/grub-mkimage.c: Likewise.
47332 * util/i386/pc/grub-install.in: Likewise.
47333 * util/i386/pc/grub-mkimage.c: Likewise.
47334 * util/i386/pc/grub-mkrescue.in: Likewise.
47335 * util/i386/pc/grub-setup.c: Likewise.
47336 * util/i386/pc/misc.c: Likewise.
47337 * util/powerpc/ieee1275/grub-install.in: Likewise.
47338 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47339 * util/powerpc/ieee1275/misc.c: Likewise.
47340 * video/bitmap.c: Likewise.
47341 * video/video.c: Likewise.
47342 * video/i386/pc/vbe.c: Likewise.
47343 * video/i386/pc/vbeblit.c: Likewise.
47344 * video/i386/pc/vbefill.c: Likewise.
47345 * video/i386/pc/vbeutil.c: Likewise.
47346 * video/readers/tga.c: Likewise.
47347
47348 2007-07-02 Robert Millan <rmh@aybabtu.com>
47349
47350 * conf/i386-efi.rmk: Replace obsolete reference to
47351 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47352 with util/getroot.c.
47353 * conf/powerpc-ieee1275.rmk: Likewise.
47354 * conf/sparc64-ieee1275.rmk: Likewise.
47355
47356 * util/grub-emu.c (main): Fix unchecked pointer handling.
47357
47358 2007-07-02 Robert Millan <rmh@aybabtu.com>
47359
47360 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47361 invocation to fail, in order to support partition-less media.
47362
47363 * util/i386/pc/grub-install.in: Likewise.
47364
47365 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47366 which fs or partmap modules are needed (akin to its sister scripts).
47367
47368 Also use grub-probe to get rid of unportable /proc/mounts check.
47369
47370 Print the same informational message that the other scripts do, before
47371 exiting.
47372
47373 2007-06-23 Robert Millan <rmh@aybabtu.com>
47374
47375 * util/update-grub_lib.in (font_path): New function. Determine whether
47376 a font file can be found and, if so, echo the GRUB path to it.
47377
47378 * util/update-grub.in: Handle multiple terminals depending on user
47379 input, platform availability and font file presence. Propagate
47380 variables of our findings to /etc/grub.d/ children.
47381
47382 * util/grub.d/00_header.in: Handle multiple terminals, based on
47383 environment setup by update-grub.
47384
47385 2007-06-23 Robert Millan <rmh@aybabtu.com>
47386
47387 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47388
47389 2007-06-21 Robert Millan <rmh@aybabtu.com>
47390
47391 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47392 indicate end of data section in kernel image.
47393 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47394 GRUB_KERNEL_MACHINE_DATA_END.
47395
47396 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47397 space for it.
47398 * kern/i386/efi/startup.S: Likewise.
47399
47400 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47401 during image generation. Implement --prefix option to override this
47402 patch.
47403 * util/i386/efi/grub-mkimage.c: Likewise.
47404
47405 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47406 code to make path relative to its root into a separate function.
47407
47408 * util/i386/pc/grub-install.in: Use newly provided
47409 make_system_path_relative_to_its_root() to convert ${grubdir}, then
47410 pass the result to grub-install --prefix.
47411
47412 2007-06-13 Robert Millan <rmh@aybabtu.com>
47413
47414 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
47415 DEFAULT_DEVICE_MAP.
47416 * util/grub-emu.c: Use above definitions from misc.h instead of
47417 defining them.
47418 * util/grub-mkdevicemap.c: Likewise.
47419 * util/i386/pc/grub-setup.c: Likewise.
47420 * util/grub-probe.c: Likewise.
47421 (probe): Abort with grub_util_error() when either
47422 grub_guess_root_device or grub_util_get_grub_dev fails.
47423
47424 2007-06-12 Robert Millan <rmh@aybabtu.com>
47425
47426 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
47427 "pager" assignment.
47428 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
47429 "pcdata".
47430 * util/grub-probe.c (probe): Likewise for "drive_name".
47431
47432 2007-06-11 Robert Millan <rmh@aybabtu.com>
47433
47434 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
47435 not just the cdrom one.
47436
47437 2007-06-11 Robert Millan <rmh@aybabtu.com>
47438
47439 * util/i386/pc/grub-mkrescue.in: Add "set -e".
47440 Add --pkglibdir=DIR option to override pkglibdir.
47441 Mention --image-type=TYPE in help output.
47442 Fix --grub-mkimage (it was a no-op).
47443 Abort gracefully when no parameter is given.
47444
47445 2007-06-11 Robert Millan <rmh@aybabtu.com>
47446
47447 * util/i386/pc/grub-mkrescue.in: New file.
47448 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
47449 * Makefile.in: Handle bin_SCRIPTS.
47450
47451 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
47452
47453 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
47454 list of video modes.
47455
47456 2007-06-06 Robert Millan <rmh@aybabtu.com>
47457
47458 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
47459 file doesn't exist, or if it is in a filesystem grub can't read.
47460
47461 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
47462 not abort if GRUB_DRIVE could not be defined. Rearrange generated
47463 header comment to fit in 80 columns when the variables are resolved.
47464
47465 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
47466 could be identified by update-grub. Remove redundant check for
47467 unifont.pff existence (since convert_system_path_to_grub_path now
47468 handles that).
47469
47470 2007-06-04 Robert Millan <rmh@aybabtu.com>
47471
47472 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
47473
47474 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
47475
47476 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
47477
47478 2007-06-04 Robert Millan <rmh@aybabtu.com>
47479
47480 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
47481
47482 * include/grub/partition.h: Declare grub_apple_partition_map_init and
47483 grub_apple_partition_map_fini.
47484
47485 * util/biosdisk.c
47486 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
47487 to access >2 TiB disks).
47488
47489 Print disk->total_sectors with %llu instead of %lu, since this
47490 variable is always 64-bit (prevents wrong disk size from being displayed
47491 on either >2 TiB disk or big-endian CPU).
47492
47493 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
47494 into a generic case that supports all (sane) partition maps.
47495
47496 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
47497 breaks big-endian.
47498
47499 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
47500 and grub_apple_partition_map_fini() after that.
47501
47502 2007-06-01 Robert Millan <rmh@aybabtu.com>
47503
47504 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
47505
47506 * util/grub.d/00_header.in: Only enable gfxterm when
47507 convert_system_path_to_grub_path() succeeds.
47508
47509 2007-05-20 Robert Millan <rmh@aybabtu.com>
47510
47511 * util/update-grub_lib.in: New file.
47512 * DISTLIST: Add update-grub_lib.in.
47513 * conf/common.rmk: Generate update-grub_lib and install it in
47514 $(lib_DATA).
47515 * Makefile.in: Add install routine for $(lib_DATA).
47516
47517 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
47518 function provided by update-grub_lib to support arbitrary paths of
47519 unifont.pff.
47520 * util/update-grub.in: Use convert_system_path_to_grub_path() to
47521 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
47522
47523 2007-05-19 Robert Millan <rmh@aybabtu.com>
47524
47525 * commands/i386/cpuid.c: New module.
47526 * DISTLIST: Add it.
47527 * conf/i386-efi.rmk: Enable cpuid.mod.
47528 * conf/i386-pc.rmk: Likewise.
47529
47530 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47531
47532 * kern/disk.c (grub_disk_read): Check return value of
47533 grub_realloc().
47534
47535 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
47536
47537 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
47538 arrays.
47539 * disk/raid.c (grub_raid_open): Likewise.
47540
47541 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47542
47543 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
47544 stack instead of on the heap.
47545
47546 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
47547 before doing a read on it.
47548
47549 * configure.ac: Only use -fno-stack-protector for the target
47550 environment.
47551
47552 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
47553
47554 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
47555 __attribute_ ((unused)) to mode_type argument.
47556
47557 * util/getroot.c (grub_guess_root_device): Fix #endif.
47558
47559 * kern/misc.c (memcmp): Fix prototype.
47560
47561 * include/grub/partition.h [GRUB_UTIL]
47562 (grub_gpt_partition_map_init): Add prototype.
47563 (grub_gpt_partition_map_fini): Likewise.
47564
47565 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
47566 at the right place.
47567
47568 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
47569 (grub_fat_read_data): Likewise.
47570 (grub_fat_find_dir): Likewise.
47571
47572 * font/manager.c (find_glyph): Make table a const.
47573 (grub_font_get_glyph): Remove bitmap from if statement.
47574
47575 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
47576
47577 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
47578 code, first search for device in /dev/mapper, then in /dev.
47579 (grub_util_get_grub_dev): New function.
47580 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
47581 prototype.
47582 * util/grub-probe.c (probe): Remove check for RAID, call
47583 grub_util_get_grub_dev() instead of
47584 grub_util_biosdisk_get_grub_dev().
47585 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
47586 grub_util_biosdisk_get_grub_dev().
47587 * util/i386/pc/grub-setup.c (main): Likewise.
47588
47589 2007-05-16 Robert Millan <rmh@aybabtu.com>
47590
47591 * DISTLIST: Update for the latest changes.
47592 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
47593 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
47594 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
47595 grub/util/biosdisk.h.
47596 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
47597 grub/util/biosdisk.h.
47598
47599 2007-05-16 Robert Millan <rmh@aybabtu.com>
47600
47601 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
47602
47603 2007-05-16 Robert Millan <rmh@aybabtu.com>
47604
47605 * util/i386/efi/grub-install.in: New.
47606 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
47607 newly added grub-install.
47608 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
47609 include.
47610 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
47611 grub/util/biosdisk.h.
47612 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
47613 grub/util/biosdisk.h.
47614
47615 2007-05-16 Robert Millan <rmh@aybabtu.com>
47616
47617 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
47618 * include/grub/util/biosdisk.h: ... here.
47619 * util/i386/pc/biosdisk.c: Moved to ...
47620 * util/biosdisk.c: ... here.
47621 * util/i386/pc/getroot.c: Moved to ...
47622 * util/getroot.c: ... here.
47623 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
47624 * util/grub-mkdevicemap.c: ... here.
47625 * util/i386/pc/grub-probe.c: Moved to ...
47626 * util/grub-probe.c: ... here.
47627
47628 2007-05-15 Robert Millan <rmh@aybabtu.com>
47629
47630 * util/update-grub.in: Remove duplicated line in grub.cfg header
47631 message.
47632
47633 2007-05-13 Robert Millan <rmh@aybabtu.com>
47634
47635 * util/update-grub.in: Fix a few assumptions about the devices holding
47636 /, /boot and /boot/grub being the same.
47637 * util/grub.d/00_header.in: Likewise.
47638 * util/grub.d/10_hurd.in: Likewise.
47639 * util/grub.d/10_linux.in: Likewise.
47640
47641 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
47642 patterns. Use that to define the `.old' suffix as older than `'.
47643
47644 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
47645
47646 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
47647 the grub.cfg header message.
47648
47649 2007-05-11 Robert Millan <rmh@aybabtu.com>
47650
47651 * util/update-grub.in: Create device.map if it doesn't already exist,
47652 before attempting to run grub-probe.
47653 Check for grub-probe and grub-mkdevicemap with the same code
47654 grub-install is using.
47655 Remove test mode.
47656
47657 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
47658
47659 * Makefile.in: Add the datarootdir autoconf variable.
47660
47661 2007-05-09 Robert Millan <rmh@aybabtu.com>
47662
47663 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
47664 fail gracefully if dev->disk->partition == NULL.
47665
47666 2007-05-07 Robert Millan <rmh@aybabtu.com>
47667
47668 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
47669 determine partition map module.
47670 * util/i386/pc/grub-install.in: Use this feature to decide which
47671 partition module to load, instead of hardcoding pc and gpt.
47672
47673 2007-05-07 Robert Millan <rmh@aybabtu.com>
47674
47675 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
47676 source directory differs from build directory.
47677
47678 2007-05-05 Robert Millan <rmh@aybabtu.com>
47679
47680 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
47681 initialisation.
47682
47683 2007-05-05 Robert Millan <rmh@aybabtu.com>
47684
47685 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
47686
47687 2007-05-05 Robert Millan <rmh@aybabtu.com>
47688
47689 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
47690 command-line arguments via ${GRUB_CMDLINE_LINUX}.
47691
47692 2007-05-05 Robert Millan <rmh@aybabtu.com>
47693
47694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
47695 (grub_probe_SOURCES): Likewise.
47696 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
47697 GPT and initialize dos_part and bsd_part accordingly.
47698 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
47699 install_bsd_part.
47700 (main): Activate gpt module for use during partition identification,
47701 and deactivate it afterwards.
47702 * util/i386/pc/grub-install.in: Add gpt module to core.img.
47703 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
47704 partition identification, and deactivate it afterwards.
47705
47706 2007-05-05 Robert Millan <rmh@aybabtu.com>
47707
47708 * term/i386/pc/console.c (grub_console_fini): Call
47709 grub_term_set_current() before grub_term_unregister().
47710
47711 2007-05-04 Robert Millan <rmh@aybabtu.com>
47712
47713 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
47714 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
47715 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
47716 and update-grub_DATA.
47717 * conf/common.rmk: Build and install update-grub components.
47718 * conf/common.mk: Regenerate.
47719 * util/update-grub.in: New. Core of update-grub.
47720 * util/grub.d/00_header.in: New. Generates grub.cfg header.
47721 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
47722 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
47723 * util/grub.d/README: New. Document grub.d directory layout.
47724
47725 2007-05-01 Robert Millan <rmh@aybabtu.com>
47726
47727 * util/grub-emu.c: Move initialization functions
47728 grub_util_biosdisk_init() and grub_init_all() before
47729 grub_util_biosdisk_get_grub_dev(), which relies on them.
47730
47731 2007-04-19 Robert Millan <rmh@aybabtu.com>
47732
47733 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
47734 it is used later.
47735
47736 2007-04-18 Jerone Young <jerone@gmail.com>
47737
47738 * kernel/elf.c: Add missing parenthesis for conditional statement
47739 stanza.
47740
47741 2007-04-10 Jerone Young <jerone@gmail.com>
47742
47743 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
47744 continue on and look for device node with real device name.
47745
47746 2007-04-10 Jerone Young <jerone@gmail.com>
47747
47748 * configure.ac: Add argument for autoconf to use transformation
47749 ability.
47750 * Makefile.in: Add autoconf package transformation code.
47751 * util/i386/pc/grub-install.in: Likewise.
47752 * util/powerpc/ieee1275/grub-install.in: Likewise.
47753
47754 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47755
47756 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
47757 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
47758 (EXT2_REVISION): Likewise.
47759 (EXT2_INODE_SIZE): Likewise.
47760 (struct grub_ext2_block_group): Added a missing member
47761 "used_dirs".
47762 (grub_ext2_read_inode): Divide by the inode size in a superblock
47763 instead of 128 to obtain INODES_PER_BLOCK.
47764 Use the macro EXT2_INODE_SIZE instead of directly using
47765 SBLOCK->INODE_SIZE.
47766
47767 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47768
47769 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
47770 superblock instead of the structure size to compute an
47771 offset. This fixes the problem that GRUB could not read a
47772 filesystem when inode size is different from 128-byte.
47773
47774 2007-03-05 Marco Gerards <marco@gnu.org>
47775
47776 * normal/main.c (read_config_file): When "menu" is not set, create
47777 an initial context.
47778
47779 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47780
47781 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47782 (HEAP_LIMIT): New macro.
47783 (grub_claim_heap): Claim memory up to `heaplimit'.
47784
47785 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47786
47787 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47788 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47789 (_start): Likewise.
47790 (grub_arch_modules_addr): Return address after `_end'.
47791 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47792 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47793 (add_segments): Calculate `_end' from phdr size and location.
47794 (ALIGN_UP): Moved to ...
47795 * include/grub/misc.h: here.
47796 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47797 New macro.
47798 (GRUB_IEEE1275_MODULE_BASE): Removed.
47799
47800 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47801
47802 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47803 loop boundary.
47804
47805 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47806
47807 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47808 All users updated.
47809 (grub_elf64_load_hook_t): Likewise.
47810 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47811 debug output.
47812
47813 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47814
47815 * kern/mm.c: Update copyright.
47816 (grub_mm_debug): Correct syntax error.
47817 (grub_mm_dump_free): New function.
47818 (grub_debug_free): Call `grub_free'.
47819 * include/grub/mm.h: Update copyright.
47820 (grub_mm_dump_free): Add declaration.
47821
47822 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47823
47824 * include/grub/ieee1275/ieee1275.h: Update copyright.
47825 * kern/powerpc/ieee1275/init.c: Likewise.
47826 * kern/powerpc/ieee1275/openfw.c: Likewise.
47827
47828 * loader/powerpc/ieee1275/linux.c: Likewise.
47829 * include/grub/elfload.h: Likewise.
47830 * kern/elf.c: Likewise.
47831 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47832 callers.
47833 (grub_elf64_load): Likewise.
47834 (grub_elf32_load_segment): Move to a nested function.
47835 (grub_elf64_load_segment): Likewise.
47836
47837 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47838
47839 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47840 prototype.
47841 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47842 (grub_heap_len): Likewise.
47843 (HEAP_SIZE): New macro.
47844 (grub_claim_heap): New function.
47845 (grub_machine_init): Don't claim heap directly. Call
47846 `grub_claim_heap'.
47847 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47848 (grub_available_iterate): New function.
47849
47850 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47851
47852 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47853 * configure.ac: Use it for testing the HOST and TARGET compilers.
47854
47855 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47856
47857 * Makefile.in (enable_grub_emu): New variable.
47858 * configure.ac (--enable-grub-emu): New option.
47859 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47860 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47861 * conf/i386-pc.rmk: Likewise.
47862 * conf/powerpc-ieee1275.rmk: Likewise.
47863 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47864
47865 2006-12-12 Marco Gerards <marco@gnu.org>
47866
47867 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47868
47869 * kern/env.c (grub_env_unset): Don't free the member `value' when
47870 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47871 pointer.
47872
47873 * normal/main.c (current_menu): Removed.
47874 (free_menu): Unset the `menu' environment variable.
47875 (grub_normal_menu_addentry): Make use of the environment variable
47876 `menu', instead of using the global `current_menu'. Allocate
47877 memory for the sourcecode of this entry.
47878 (read_config_file): New argument `nested', changed all callers.
47879 Only in the case of a new context, initialize a new menu. Set the
47880 `menu' environment variable.
47881 (grub_normal_execute): Don't set and unset the environment
47882 variable `menu' here anymore. Only free the menu when leaving the
47883 context.
47884
47885 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47886 leak.
47887
47888 2006-12-11 Marco Gerards <marco@gnu.org>
47889
47890 * normal/menu_entry.c (run): Fix off by one bug so the last line
47891 is executed. Move the loader check to outside the loop.
47892
47893 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47894
47895 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47896
47897 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47898
47899 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47900 the number of sectors. Reported by Andrey Shuvikov
47901 <mr_hyro@yahoo.com>.
47902
47903 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47904
47905 * kern/disk.c (grub_disk_read): When there is a read error, always
47906 try to read only the necessary data.
47907
47908 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47909 disk/raid.c.
47910 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47911 prototype.
47912 [GRUB_UTIL] (grub_raid_fini): Likewise.
47913 [GRUB_UTIL] (grub_lvm_init): Likewise.
47914 [GRUB_UTIL] (grub_lvm_fini): Likewise.
47915 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47916 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47917 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47918 and grub_raid_fini().
47919
47920 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47921
47922 * include/grub/types.h (__unused): Rename to UNUSED.
47923 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47924 (grub_elf64_size): Likewise.
47925
47926 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47927
47928 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47929 grub_error_push and grub_error_pop in the error-handling path.
47930 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47931 length.
47932
47933 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47934
47935 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47936 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47938 (kernel_elf_SOURCES): Likewise.
47939 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47940 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47941 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47942 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47943 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47944 (elf_mod_SOURCES): New variable.
47945 (elf_mod_CFLAGS): Likewise.
47946 (elf_mod_LDFLAGS): Likewise.
47947 * include/grub/types.h (__unused): New macro.
47948 * include/grub/elfload.h: New file.
47949 * kern/elf.c: Likewise.
47950 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47951 (ELF32_LOADMASK): New macro.
47952 (ELF64_LOADMASK): Likewise.
47953 (vmlinux): Removed.
47954 (grub_linux_load32): New function.
47955 (grub_linux_load64): Likewise.
47956 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47957 Use grub_elf_t instead of grub_file_t.
47958
47959 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47960
47961 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47962 `catch_result' to struct set_color_args.
47963
47964 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47965
47966 * normal/menu.c: Include grub/script.h.
47967 * normal/menu_entry.c: Likewise.
47968 * include/grub/normal.h: Do not include grub/script.h.
47969
47970 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47971
47972 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47973
47974 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47975
47976 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47977 disk.
47978 (grub_disk_close): Print debug messages when closing a disk.
47979 (grub_disk_read): Print debug messages when disk read fails.
47980 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47981 filesystem type.
47982 * kern/partition.c: Include misc.h.
47983 (grub_partition_iterate): Print debug messages when detecting
47984 partition type.
47985
47986 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47987
47988 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47989 is negative.
47990 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47991
47992 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47993
47994 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47995 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47996
47997 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47998
47999 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48000 instead of sizeof(lv). Patch by Michael Guntsche.
48001
48002 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48003
48004 * disk/lvm.c: Rename VGS to VG_LIST.
48005 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48006 (grub_lvm_open): Likewise.
48007 Thanks to Michael Guntsche for finding this bug.
48008
48009 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48010
48011 * configure.ac (AC_INIT): Bumped to 1.95.
48012
48013 2006-10-14 Robert Millan <rmh@aybabtu.com>
48014
48015 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48016 with "/dev/.static/dev/md".
48017
48018 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48019
48020 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48021 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48022 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48023 DRIVE_NAME are always freed.
48024
48025 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48026 DOS_PART, as a DOS partition is counted from one instead of zero
48027 now. Reported by Robert Millan.
48028
48029 2006-10-14 Robert Millan <rmh@aybabtu.com>
48030
48031 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48032 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48033 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48034 string returned by grub_guess_root_device.
48035 * util/i386/pc/grub-setup.c: Likewise.
48036 * util/i386/pc/grub-probefs.c: Likewise.
48037
48038 * util/i386/pc/grub-probefs.c: Rename to ...
48039 * util/i386/pc/grub-probe.c: ... this.
48040 * DISTLIST: Remove grub-probefs, add grub-probe.
48041 * conf/i386-efi.rmk: Likewise.
48042 * conf/i386-pc.rmk: Likewise.
48043 * util/i386/pc/grub-install.in: Likewise.
48044
48045 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48046 choose which information we want to print.
48047
48048 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48049
48050 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48051 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48052 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48053 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48054 video/readers/tga.c and video/i386/pc/vbeutil.c.
48055
48056 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48057
48058 Added support for RAID and LVM.
48059
48060 * disk/lvm.c: New file.
48061 * disk/raid.c: Likewise.
48062 * include/grub/lvm.h: Likewise.
48063 * include/grub/raid.h: Likewise.
48064 * include/grub/util/lvm.h: Likewise.
48065 * include/grub/util/raid.h: Likewise.
48066 * util/lvm.c: Likewise.
48067 * util/raid.c: Likewise.
48068
48069 * include/grub/disk.h (grub_disk_dev_id): Add
48070 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48071 (grub_disk_get_size): New prototype.
48072 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48073 returns a partition.
48074 (grub_disk_get_size): New function.
48075
48076 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48077 verbatim if grub_install_dos_part is -2.
48078
48079 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48080 and LVM devices.
48081
48082 * util/i386/pc/grub-setup.c (setup): New argument
48083 MUST_EMBED. Force embedding of GRUB when the argument is
48084 true. Close FILE before returning.
48085 (main): Add support for RAID and LVM.
48086
48087 * conf/common.rmk: Add RAID and LVM modules.
48088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48089 util/lvm.c.
48090 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48091
48092 * kern/misc.c (grub_strstr): New function.
48093 * include/grub/misc.h (grub_strstr): New prototype.
48094
48095 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48096
48097 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48098
48099 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48100
48101 * kern/misc.c (grub_strtoull): Guess the base only if not
48102 specified.
48103
48104 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48105
48106 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48107 PowerMac support.
48108
48109 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48110
48111 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48112
48113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48114 Remove `flags' argument. All callers changed.
48115 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48116 (IEEE1275_IHANDLE_INVALID): New variable.
48117 (IEEE1275_CELL_INVALID): New variable.
48118 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48119 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48120 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48121 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48122 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48123 codes from Open Firmware. All callers updated.
48124 (grub_ieee1275_next_property): Directly return Open Firmware return
48125 code.
48126 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48127 Standardize error checking from `grub_ieee1275_get_property'.
48128 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48129 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48130
48131 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48132
48133 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48134 `instance_to_package_args' to `instance_to_path_args'.
48135
48136 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48137 `grub_ieee1275_chosen'.
48138
48139 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48140 `grub_ieee1275_interpret'.
48141
48142 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48143
48144 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48145
48146 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48147
48148 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48149 (__cmpdi): Likewise.
48150
48151 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48152 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48153 `grub_ssize_t'.
48154
48155 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48156
48157 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48158 to type `grub_ssize_t'.
48159 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48160
48161 2006-09-22 Marco Gerards <marco@gnu.org>
48162
48163 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48164 newlines.
48165
48166 2006-09-22 Marco Gerards <marco@gnu.org>
48167
48168 * commands/echo.c: New file.
48169
48170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48171
48172 * conf/common.rmk (echo_mod_SOURCES): New variable.
48173 (echo_mod_CFLAGS): Likewise.
48174 (echo_mod_LDFLAGS): Likewise.
48175
48176 2006-09-22 Marco Gerards <marco@gnu.org>
48177
48178 * normal/main.c (get_line): Malloc memory instead of using
48179 preallocated memory. Removed the arguments `cmdline' and
48180 `max_len'. Updated all callers.
48181
48182 2006-09-22 Marco Gerards <marco@gnu.org>
48183
48184 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48185 (normal_mod_DEPENDENCIES): Likewise.
48186
48187 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48188 (normal_mod_DEPENDENCIES): Likewise.
48189
48190 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48191
48192 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48193
48194 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48195 programs.
48196 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48197 (normal_mod_DEPENDENCIES): Likewise.
48198 * conf/i386-pc.mk: Regenerate.
48199 * conf/i386-efi.mk: Likewise
48200 * conf/common.mk: Likewise.
48201 * conf/powerpc-ieee1275.mk: Likewise.
48202 * conf/sparc64-ieee1275.mk: Likewise.
48203
48204 2006-09-22 Robert Millan <rmh@aybabtu.com>
48205
48206 Sync with i386 version.
48207 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48208 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48209
48210 2006-09-21 Robert Millan <rmh@aybabtu.com>
48211
48212 Import from GRUB Legacy (lib/device.c):
48213 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48214 (init_device_map) [__linux__]: Add support for I2O devices.
48215
48216 2006-09-14 Marco Gerards <marco@gnu.org>
48217
48218 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48219 `-melf_i386'.
48220
48221 2006-09-14 Robert Millan <rmh@aybabtu.com>
48222
48223 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48224 /boot/grub/*.lst.
48225
48226 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48227
48228 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48229 before adding it to device.map.
48230
48231 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48232
48233 * genmk.rb: Let GCC generate dependencies the first time it
48234 compiles a file; using the -MD option.
48235 * conf/common.mk: Regenerate.
48236 * conf/i386-pc.mk: Likewise.
48237 * conf/i386-efi.mk: Likewise.
48238 * conf/powerpc-ieee1275.mk: Likewise.
48239 * conf/sparc64-ieee1275.mk: Likewise.
48240
48241 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48242
48243 Move the prototypes of grub_setjmp and grub_longjmp to
48244 cpu/setjmp.h, so that each architecture may specify different
48245 attributes.
48246
48247 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48248 (grub_longjmp): Likewise.
48249 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48250 (grub_longjmp): Likewise.
48251 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48252 (grub_longjmp): Likewise.
48253
48254 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48255 [!GRUB_UTIL] (grub_longjmp): Removed.
48256
48257 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48258
48259 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48260 "color!" method does not return any value.
48261
48262 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48263
48264 * include/grub/bitmap.h: New file.
48265
48266 * include/grub/i386/pc/vbeutil.h: Likewise.
48267
48268 * video/bitmap.c: Likewise.
48269
48270 * video/readers/tga.c: Likewise.
48271
48272 * video/i386/pc/vbeutil.c: Likewise.
48273
48274 * commands/videotest.c: Code cleanup and updated to reflect to new
48275 video API.
48276
48277 * term/gfxterm.c: Likewise.
48278
48279 * video/video.c: Likewise.
48280
48281 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48282 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48283 (bitmap_mod_SOURCES): New entry.
48284 (bitmap_mod_CFLAGS): Likewise.
48285 (bitmap_mod_LDFLAGS): Likewise.
48286 (tga_mod_SOURCES): Likewise.
48287 (tga_mod_CFLAGS): Likewise.
48288 (tga_mod_LDFLAGS): Likewise.
48289
48290 * include/grub/video.h (grub_video_blit_operators): New enum type.
48291 (grub_video_render_target): Changed as forward declaration and moved
48292 actual definition to be video driver specific.
48293 (grub_video_adapter.blit_bitmap): Added blitting operator.
48294 (grub_video_adapter.blit_render_target): Likewise.
48295 (grub_video_blit_bitmap): Likewise.
48296 (grub_video_blit_render_target): Likewise.
48297
48298 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48299 driver specific render target definition.
48300 (grub_video_vbe_map_rgba): Added driver internal helper.
48301 (grub_video_vbe_unmap_color): Updated to use
48302 grub_video_i386_vbeblit_info.
48303 (grub_video_vbe_get_video_ptr): Likewise.
48304
48305 * include/grub/i386/pc/vbeblit.h
48306 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48307 grub_video_i386_vbeblit_info.
48308 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48309 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48310 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48312 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48313 (grub_video_i386_vbeblit_index_index): Likewise.
48314 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48315 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48316 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48317 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48318 operator.
48319 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48320 operator.
48321
48322 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48323 include/grub/i386/pc/vbeblit.h.
48324
48325 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48326 Updated to use grub_video_i386_vbeblit_info.
48327 (grub_video_i386_vbefill_R8G8B8): Likewise.
48328 (grub_video_i386_vbefill_index): Likewise.
48329 (grub_video_i386_vbefill): Added generic filler.
48330
48331 * video/i386/pc/vbefill.c: Updated to reflect changes on
48332 include/grub/i386/pc/vbefill.h.
48333
48334 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48335 grub_video_i386_vbeblit_info.
48336 (grub_video_vbe_unmap_color): Likewise.
48337 (grub_video_vbe_blit_glyph): Likewise.
48338 (grub_video_vbe_scroll): Likewise.
48339 (grub_video_vbe_draw_pixel): Removed function.
48340 (grub_video_vbe_get_pixel): Likewise.
48341 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48342 updated code to use it.
48343 (common_blitter): Added common blitter for render target and bitmap.
48344 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48345 (grub_video_vbe_blit_render_target): Likewise.
48346
48347 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48348
48349 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48350 is in text mode if there is no console control protocol instance
48351 available.
48352
48353 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48354
48355 * include/grub/video.h: Code cleanup.
48356
48357 * include/grub/i386/pc/vbe.h: Likewise.
48358
48359 * video/i386/pc/vbe.c: Likewise.
48360
48361 * video/i386/pc/vbeblit.c: Likewise.
48362
48363 * video/i386/pc/vbefill.c: Likewise.
48364
48365 * video/video.c: Likewise. Also added more comments.
48366
48367 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48368
48369 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48370 (struct grub_biosdisk_dap): Likewise.
48371
48372 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48373 linkage settings for all functions.
48374
48375 2006-07-12 Marco Gerards <marco@gnu.org>
48376
48377 * configure.ac (--enable-mm-debug): Fix typo.
48378
48379 * genkernsyms.sh.in: Use proper quoting for `CC'.
48380
48381 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48382
48383 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48384 (normal_mod_ASFLAGS): Remove "-m32".
48385
48386 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48387
48388 * util/misc.c: Include config.h.
48389 [!HAVE_MEMALIGN]: Do not include malloc.h.
48390 (grub_memalign): Use posix_memalign, if present. Then, use
48391 memalign, if present. Otherwise, emit an error.
48392
48393 * util/grub-emu.c: Do not include malloc.h.
48394
48395 * include/grub/util/misc.h: Include unistd.h. This is required for
48396 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48397 D. Eades III <hde@foobar-qux.org>.
48398
48399 * configure.ac (AC_GNU_SOURCE): Added.
48400 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48401 type.
48402
48403 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48404
48405 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48406 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48407
48408 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48409
48410 * include/grub/types.h (grub_host_addr_t): Rename to
48411 grub_target_addr_t.
48412 (grub_host_off_t): Rename to grub_target_off_t.
48413 (grub_host_size_t): Rename to grub_target_size_t.
48414 (grub_host_ssize_t): Rename to grub_target_ssize_t.
48415 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
48416
48417 * include/grub/kernel.h (struct grub_module_header): Change type
48418 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
48419 (grub_module_info): Likewise.
48420
48421 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48422
48423 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
48424 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
48425 Velazquez <jesus.velazquez@gmail.com>.
48426
48427 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
48428
48429 Count partitions from 1 instead of 0 in the string representation
48430 of partitions. Still use 0-based internally.
48431
48432 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
48433 (sun_partition_map_iterate): Use grub_partition_t instead of
48434 struct grub_partition *. Cast DESC->START_CYLINDER to
48435 grub_uint64_t after converting the endian.
48436 (sun_partition_map_probe): Subtract 1 for PARTNUM.
48437 (sun_partition_map_get_name): Add 1 to P->INDEX.
48438
48439 * partmap/pc.c (grub_partition_parse): Subtract 1 for
48440 PCDATA->DOS_PART.
48441 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
48442
48443 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
48444 zero instead of one.
48445 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
48446 (gpt_partition_map_get_name): Add 1 into P->INDEX.
48447
48448 * partmap/apple.c (apple_partition_map_iterate): Change the type
48449 of POS to unsigned.
48450 (apple_partition_map_probe): Subtract 1 for PARTNUM.
48451 (apple_partition_map_get_name): Add 1 into P->INDEX.
48452
48453 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
48454 of POS to unsigned.
48455 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
48456 calculate the offset of a partition.
48457 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
48458 (amiga_partition_map_get_name): Add 1 into P->INDEX.
48459
48460 * partmap/acorn.c (acorn_partition_map_find): Change the type of
48461 SECTOR to grub_disk_addr_t.
48462 (acorn_partition_map_iterate): Likewise.
48463 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
48464 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
48465 top.
48466 (acorn_partition_map_get_name): Add 1 into P->INDEX.
48467
48468 * kern/i386/pc/init.c (make_install_device): Add 1 into
48469 GRUB_INSTALL_DOS_PART.
48470
48471 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
48472 conditional.
48473
48474 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48475
48476 Clean up the code to support 64-bit addressing in disks and
48477 files. This change is not enough for filesystems yet.
48478
48479 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
48480 type of "start" to grub_uint64_t.
48481 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
48482 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
48483 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
48484 convert addresses.
48485
48486 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
48487 to grub_disk_addr_t.
48488
48489 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
48490 string.
48491
48492 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48493
48494 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
48495 to char *.
48496
48497 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
48498
48499 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
48500
48501 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
48502
48503 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
48504 to grub_off_t, to detect an error from grub_file_seek.
48505 (grub_multiboot_load_elf32): Likewise.
48506
48507 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
48508 maximum unsigned long value when an overflow is detected.
48509 (grub_strtoull): New function.
48510 (grub_divmod64): Likewise.
48511 (grub_lltoa): use grub_divmod64.
48512
48513 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
48514 grub_disk_addr_t.
48515 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
48516 the pointer to next character. Use grub_strtoull instead of
48517 grub_strtoul.
48518 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
48519 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
48520 respectively.
48521
48522 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
48523 return value is signed.
48524 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
48525 test if OFFSET is less than zero, as OFFSET is unsigned now.
48526
48527 * kern/disk.c (struct grub_disk_cache): Change the type of
48528 "sector" to grub_disk_addr_t.
48529 (grub_disk_cache_get_index): Change the type of SECTOR to
48530 grub_disk_addr_t. Calculate the hash with SECTOR casted to
48531 unsigned after shifting.
48532 (grub_disk_cache_invalidate): Change the type of SECTOR to
48533 grub_disk_addr_t.
48534 (grub_disk_cache_unlock): Likewise.
48535 (grub_disk_cache_store): Likewise.
48536 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
48537 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
48538 grub_disk_addr_t and grub_uint64_t, respectively.
48539 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
48540 body, as the value of OFFSET is tweaked by
48541 grub_disk_check_range. Change the types of START_SECTOR, LEN and
48542 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
48543 respectively.
48544 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
48545 body, as the value of OFFSET is tweaked by
48546 grub_disk_check_range. Change the types of LEN and N to
48547 grub_size_t.
48548
48549 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
48550 and "saved_offset" to grub_off_t.
48551 (test_header): Cast BUF to char *.
48552 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
48553 to char *.
48554 (grub_gzio_read): Change the types of OFFSET and SIZE to
48555 grub_off_t and grub_size_t, respectively.
48556
48557 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
48558 Removed.
48559 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
48560 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
48561 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
48562 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
48563 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
48564
48565 * include/grub/types.h (grub_off_t): Unconditionally set to
48566 grub_uint64_t.
48567 (grub_disk_addr_t): Changed to grub_uint64_t.
48568
48569 * include/grub/partition.h (struct grub_partition): Change the
48570 types of "start", "len" and "offset" to grub_disk_addr_t,
48571 grub_uint64_t and grub_disk_addr_t, respectively.
48572 (grub_partition_get_start): Return grub_disk_addr_t.
48573 (grub_partition_get_len): Return grub_uint64_t.
48574
48575 * include/grub/misc.h (grub_strtoull): New prototype.
48576 (grub_divmod64): Likewise.
48577
48578 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
48579 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
48580 grub_off_t, respectively.
48581 All callers and references changed.
48582
48583 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
48584 grub_size_t in "read".
48585 All callers and references changed.
48586
48587 * include/grub/file.h (struct grub_file): Change the types of
48588 "offset" and "size" to grub_off_t and grub_off_t,
48589 respectively. Change the type of SECTOR to grub_disk_addr_t in
48590 "read_hook".
48591 (grub_file_read): Change the type of LEN to grub_size_t.
48592 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
48593 grub_off_t.
48594 (grub_file_size): Return grub_off_t.
48595 (grub_file_tell): Likewise.
48596 All callers and references changed.
48597
48598 * include/grub/disk.h (struct grub_disk_dev): Change the types of
48599 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
48600 "write".
48601 (struct grub_disk): Change the type of "total_sectors" to
48602 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
48603 "read_hook".
48604 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
48605 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
48606 (grub_disk_write): Likewise.
48607 All callers and references changed.
48608
48609 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
48610 char * for grub_strncmp to silence gcc.
48611 (grub_iso9660_mount): Likewise.
48612 (grub_iso9660_mount): Likewise.
48613 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
48614 return statement.
48615 (grub_iso9660_iterate_dir): Likewise.
48616 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
48617
48618 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
48619 LEN to grub_disk_addr_t and grub_size_t, respectively.
48620
48621 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
48622
48623 * fs/jfs.c (grub_jfs_read_file): Likewise.
48624
48625 * fs/minix.c (grub_jfs_read_file): Likewise.
48626
48627 * fs/sfs.c (grub_jfs_read_file): Likewise.
48628
48629 * fs/ufs.c (grub_jfs_read_file): Likewise.
48630
48631 * fs/xfs.c (grub_jfs_read_file): Likewise.
48632
48633 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
48634 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
48635 respectively.
48636
48637 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
48638 BLKNR to -1 instead of returning GRUB_ERRNO.
48639 (grub_ext2_read_file): Change the types of SECTOR and
48640 LEN to grub_disk_addr_t and grub_size_t, respectively.
48641
48642 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
48643 LEN to grub_disk_addr_t and grub_size_t, respectively.
48644
48645 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
48646 grub_file_read.
48647
48648 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
48649 string. Do not cast SECTOR explicitly.
48650
48651 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
48652 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
48653 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
48654 grub_disk_addr_t and grub_size_t, respectively. If the sector is
48655 over 2TB and LBA mode is not supported, raise an error.
48656 (get_safe_sectors): New function.
48657 (grub_biosdisk_read): Use get_safe_sectors.
48658 (grub_biosdisk_write): Likewise.
48659
48660 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
48661 (grub_efidisk_write): Likewise.
48662
48663 * disk/loopback.c (delete_loopback): Cosmetic changes.
48664 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
48665 correctly.
48666 (grub_loopback_open): Likewise.
48667 (grub_loopback_read): Likewise. Also, change the type of POS to
48668 grub_off_t, and fix the usage of grub_memset.
48669
48670 * commands/i386/pc/play.c: Include grub/machine/time.h.
48671
48672 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
48673 print FILE->SIZE.
48674
48675 * commands/configfile.c: Include grub/env.h.
48676
48677 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
48678 GRUB_ERRNO directly instead. Change the type of POS to
48679 grub_off_t. Follow the coding standard.
48680
48681 * commands/blocklist.c: Include grub/partition.h.
48682 (grub_cmd_blocklist): Return an error if the underlying device is
48683 not a disk. Take the starting sector of a partition into account,
48684 if a partition is used.
48685
48686 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
48687 a length field.
48688 (lba_mode): Support 64-bit addresses.
48689 (chs_mode): Likewise.
48690 (copy_buffer): Adapted to the new offsets of a length field and a
48691 segment field.
48692 (blocklist_default_start): Allocate 64-bit space.
48693
48694 * boot/i386/pc/boot.S (force_lba): Removed.
48695 (boot_drive): Moved to under KERNEL_SECTOR.
48696 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
48697 space.
48698 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
48699 is useless.
48700 (lba_mode): Refactored to support a 64-bit address. More size
48701 optimization.
48702 (setup_sectors): Likewise.
48703
48704 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
48705
48706 * DISTLIST: Added include/grub/i386/linux.h. Removed
48707 include/grub/i386/pc/linux.h
48708
48709 * configure.ac (AC_INIT): Bumped to 1.94.
48710
48711 * config.guess: Updated from gnulib.
48712 * config.sub: Likewise.
48713 * install-sh: Likewise.
48714 * mkinstalldirs: Likewise.
48715
48716 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48717
48718 * conf/common.rmk (grub_modules_init.lst): Depended on
48719 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
48720 MODSRCFILES.
48721
48722 * genmk.rb (PModule::rule): Reverted the previous change.
48723
48724 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
48725
48726 * conf/common.rmk (grub_modules_init.lst): Depends on
48727 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
48728 that the target does not exist before producing.
48729 (grub_modules_init.h): Remove the target before generating.
48730 (grub_emu_init.c): Likewise.
48731
48732 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
48733
48734 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
48735
48736 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
48737 for the target-specific tests. Make sure that we also have the
48738 up-to-date target variables for those tests.
48739
48740 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48741
48742 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
48743 (PModule::rule): Likewise.
48744
48745 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
48746
48747 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
48748 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
48749 target-specific flags should be prefixed.
48750 (PModule::rule): Likewise.
48751
48752 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
48753
48754 * configure.ac (CMP): Check if cmp is available explicitly.
48755
48756 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
48757
48758 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
48759 (target_cpu): New variable.
48760 (pkglibdir): Use target_cpu instead of host_cpu.
48761
48762 * util/i386/pc/grub-install.in (host_cpu): Removed.
48763 (target_cpu): New variable.
48764 (pkglibdir): Use target_cpu instead of host_cpu.
48765
48766 * util/genmoddep.c: Removed.
48767
48768 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
48769 instead of GRUB_HOST_SIZEOF_VOID_P.
48770 * kern/dl.c: Likewise.
48771
48772 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
48773 ...
48774 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48775 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48776 (GRUB_TARGET_SIZEOF_LONG): ... this.
48777 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48778 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48779 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48780 to ...
48781 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48782 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48783 (GRUB_TARGET_SIZEOF_LONG): ... this.
48784 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48785 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48786 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48787 to ...
48788 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48789 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48790 (GRUB_TARGET_SIZEOF_LONG): ... this.
48791 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48792 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48793
48794 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48795 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48796 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48797 instead of GRUB_HOST_SIZEOF_LONG.
48798 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48799 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48800 GRUB_CPU_WORDS_BIGENDIAN.
48801 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48802 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48803 grub_host_ssize_t.
48804
48805 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48806 (genmoddep_SOURCES): Likewise.
48807 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48808 (genmoddep_SOURCES): Likewise.
48809 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48810 (genmoddep_SOURCES): Likewise.
48811 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48812 Likewise.
48813 (genmoddep_SOURCES): Likewise.
48814
48815 * genmoddep.awk: New file.
48816
48817 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48818 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48819 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48820 (PModule::rule): Likewise.
48821 (Program::rule): Likewise.
48822 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48823 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48824 respectively.
48825
48826 * configure.ac: Rewritten intensively to use host and target
48827 instead of build and host, respectively.
48828
48829 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48830 (host_cpu): Removed.
48831 (target_cpu): New variable.
48832 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48833 (BUILD_CC): Removed.
48834 (BUILD_CFLAGS): Likewise.
48835 (BUILD_CPPFLAGS): Likewise.
48836 (TARGET_CC): New variable.
48837 (TARGET_CFLAGS): Likewise.
48838 (TARGET_CPPFLAGS): Likewise.
48839 (TARGET_LDFLAGS): Likewise.
48840 (AWK): Likewise.
48841 (include): Use target_cpu instead of host_cpu.
48842 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
48843
48844 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48845
48846 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48847
48848 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48849 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48850 field 'false' to 'exec_on_false'.
48851 (grub_script_create_cmdif): Renamed argument names to reflect above
48852 changes.
48853
48854 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48855
48856 * normal/script.c (grub_script_create_cmdif): Likewise.
48857
48858 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48859
48860 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48861 top.
48862 (grub_hfsplus_btree_recptr): Likewise.
48863 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48864 FILEBLOCK both to pass a block number and store next block
48865 number.
48866 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48867 overflow file correctly. Specify errors appropriately, because
48868 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48869 grub_hfsplus_btree_recptr to get the pointer to a found key.
48870 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48871 is found.
48872
48873 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48874 linux.mod.
48875 (_linux_mod_SOURCES): New variable.
48876 (_linux_mod_CFLAGS): Likewise.
48877 (_linux_mod_LDFLAGS): Likewise.
48878 (linux_mod_SOURCES): Likewise.
48879 (linux_mod_CFLAGS): Likewise.
48880 (linux_mod_LDFLAGS): Likewise.
48881
48882 * DISTLIST: Added loader/i386/efi/linux.c,
48883 loader/i386/efi/linux_normal.c and
48884 include/grub/i386/efi/loader.h.
48885
48886 * loader/i386/efi/linux.c: New file.
48887 * loader/i386/efi/linux_normal.c: Likewise.
48888 * include/grub/i386/efi/loader.h: Likewise.
48889
48890 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48891
48892 * commands/blocklist.c: New file.
48893
48894 * DISTLIST: Added commands/blocklist.c.
48895
48896 * term/efi/console.c (grub_console_highlight_color): Use a lighter
48897 color for the background, and a darker color for the foreground.
48898 (grub_console_checkkey): Return READ_KEY.
48899 (grub_console_cls): Set the background to
48900 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48901
48902 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48903
48904 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48905 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48906
48907 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48908 prototype.
48909
48910 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48911 BG. The spec is wrong again.
48912
48913 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48914 prototype.
48915 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48916
48917 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48918 commands/blocklist.c.
48919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48920
48921 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48922 (blocklist_mod_SOURCES): New variable.
48923 (blocklist_mod_CFLAGS): Likewise.
48924 (blocklist_mod_LDFLAGS): Likewise.
48925
48926 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48927
48928 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48929 duplication.
48930 (lba_mode): Use %eax more intensively to reduce the code size.
48931
48932 2006-05-20 Marco Gerards <marco@gnu.org>
48933
48934 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48935
48936 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48937 for `menuentry'.
48938 (script): Accept leading newlines.
48939 (newlines): New rule to describe 0 or more newlines.
48940 (commands): Accept `command' with trailing newline. Fixed the
48941 order in which arguments were passed to `grub_script_add_cmd'.
48942 Accept commands separated by newlines.
48943 (function): Changed to accept newlines.
48944 (menuentry) Rewritten.
48945
48946 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48947 front of the list, instead of to the end.
48948
48949 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48950
48951 * util/i386/pc/grub-install.in (bindir): New variable.
48952 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48953 Shaver <lbgwjl@gmail.com>.
48954
48955 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48956
48957 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48958 grub/machine/linux.h
48959 * loader/i386/pc/linux.c: Likewise.
48960
48961 * include/grub/i386/pc/linux.h: Moved to ...
48962 * include/grub/i386/linux.h: ... here.
48963
48964 * include/grub/i386/linux.h (struct linux_kernel_params): New
48965 struct.
48966
48967 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48968
48969 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48970 checking.
48971 (grub_video_vbe_blit_glyph): Likewise.
48972 (grub_video_vbe_blit_bitmap): Likewise.
48973 (grub_video_vbe_blit_render_target): Likewise.
48974
48975 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48976
48977 * configure.ac (--with-platform): Properly quote the square
48978 brackets.
48979
48980 2006-05-08 Marco Gerards <marco@gnu.org>
48981
48982 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48983 this...
48984 (kernel_elf_HEADERS): ...to this. Updated all users.
48985 (grubof_symlist.c): Renamed from this...
48986 (kernel_elf_symlist.c): ...to this. Updated all users.
48987 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48988 (grubof_SOURCES): Renamed from this...
48989 (kernel_elf_SOURCES): ...to this.
48990 (grubof_HEADERS): Renamed from this...
48991 (kernel_elf_HEADERS): ...to this.
48992 (grubof_CFLAGS): Renamed from this...
48993 (kernel_elf_CFLAGS): ...to this.
48994 (grubof_ASFLAGS): Renamed from this...
48995 (kernel_elf_ASFLAGS): ...to this.
48996 (grubof_LDFLAGS): Renamed from this...
48997 (kernel_elf_LDFLAGS): ...to this.
48998
48999 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49000 this...
49001 (kernel_elf_HEADERS): ...to this. Updated all users.
49002 (grubof_symlist.c): Renamed from this...
49003 (kernel_elf_symlist.c): ...to this. Updated all users.
49004 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49005 (grubof_SOURCES): Renamed from this...
49006 (kernel_elf_SOURCES): ...to this.
49007 (grubof_HEADERS): Renamed from this...
49008 (kernel_elf_HEADERS): ...to this.
49009 (grubof_CFLAGS): Renamed from this...
49010 (kernel_elf_CFLAGS): ...to this.
49011 (grubof_ASFLAGS): Renamed from this...
49012 (kernel_elf_ASFLAGS): ...to this.
49013 (grubof_LDFLAGS): Renamed from this...
49014 (kernel_elf_LDFLAGS): ...to this.
49015
49016 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49017 `kernel.elf' instead of `grubof'.
49018
49019 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49020
49021 Add --with-platform to configure. Use pkglibdir instead of
49022 pkgdatadir. This is reported by Roger Leigh.
49023
49024 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49025 (host_vendor): Likewise.
49026 (host_os): Likewise.
49027 (pkgdatadir): Likewise.
49028 (platform): New variable.
49029 (pkglibdir): Likewise.
49030 Use PKGLIBDIR instead of PKGDATADIR.
49031
49032 * util/i386/pc/grub-install.in (datadir): Removed.
49033 (host_vendor): Likewise.
49034 (host_os): Likewise.
49035 (pkgdatadir): Likewise.
49036 (platform): New variable.
49037 (pkglibdir): Likewise.
49038 Use PKGLIBDIR instead of PKGDATADIR.
49039
49040 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49041 instead of GRUB_DATADIR.
49042 (main): Likewise.
49043 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49044 (main): Likewise.
49045 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49046 (main): Likewise.
49047
49048 * configure.ac (--with-platform): New option.
49049 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49050
49051 * Makefile.in: Include a makefile based on PLATFORM instead of
49052 HOST_VENDOR.
49053 (pkgdatadir): Not appended by the machine type.
49054 (pkglibdir): Appended by the machine type.
49055 (host_vendor): Removed.
49056 (platform): New variable.
49057 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49058 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49059 (uninstall): Likewise.
49060
49061 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49062
49063 Use the environment context in the menu. Remove the commands
49064 "default" and "timeout", and use variables instead.
49065
49066 * normal/menu.c: Include grub/env.h.
49067 (print_entry): Cast TITLE to silence gcc.
49068 (get_timeout): New function.
49069 (set_timeout): Likewise.
49070 (get_entry_number): Likewise.
49071 (run_menu): Use a default entry, a fallback entry and a timeout
49072 in the environment variables "default", "fallback" and
49073 "timeout". Also, tweak the default entry if it is not within the
49074 current menu entries.
49075 (grub_menu_run): Use a fallback entry in the environment variable
49076 "fallback".
49077
49078 * normal/main.c (read_config_file): Do not initialize
49079 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49080 NEWMENU->TIMEOUT.
49081 (grub_normal_execute): Use a data slot to store the menu.
49082
49083 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49084 fallback_entry and timeout.
49085 (struct grub_menu_list): Removed.
49086 (grub_menu_list_t): Likewise.
49087 (struct grub_context): Likewise.
49088 (grub_context_t): Likewise.
49089 (grub_context_get): Likewise.
49090 (grub_context_get_current_menu): Likewise.
49091 (grub_context_push_menu): Likewise.
49092 (grub_context_pop_menu): Likewise.
49093 (grub_default_init): Likewise.
49094 (grub_default_fini): Likewise.
49095 (grub_timeout_init): Likewise.
49096 (grub_timeout_fini): Likewise.
49097
49098 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49099 and timeout.mod.
49100 (normal_mod_SOURCES): Removed normal/context.c.
49101
49102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49103 commands/default.c, commands/timeout.c and normal/context.c.
49104 (normal_mod_SOURCES): Removed normal/context.c.
49105
49106 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49107 commands/timeout.c and normal/context.c.
49108 (normal_mod_SOURCES): Removed normal/context.c.
49109
49110 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49111 commands/default.c, commands/timeout.c and normal/context.c.
49112 (normal_mod_SOURCES): Removed normal/context.c.
49113
49114 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49115 timeout.mod.
49116 (default_mod_SOURCES): Removed.
49117 (default_mod_CFLAGS): Likewise.
49118 (default_mod_LDFLAGS): Likewise.
49119 (timeout_mod_SOURCES): Removed.
49120 (timeout_mod_CFLAGS): Likewise.
49121 (timeout_mod_LDFLAGS): Likewise.
49122
49123 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49124 normal/context.c.
49125
49126 * commands/default.c: Removed.
49127 * commands/timeout.c: Likewise.
49128 * normal/context.c: Likewise.
49129
49130 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49131
49132 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49133
49134 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49135
49136 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49137 "next" to "prev" for readability.
49138 (struct grub_env_sorted_var): New struct.
49139 (grub_env_context): Renamed to ...
49140 (initial_context): ... this.
49141 (grub_env_var_context): Renamed to ...
49142 (current_context): ... this.
49143 (grub_env_find): Look only at CURRENT_CONTEXT.
49144 (grub_env_context_open): Rewritten to copy exported variables from
49145 previous context.
49146 (grub_env_context_close): Rewritten according to the new
49147 scheme. Also, add an assertion to prevent the initial context from
49148 removed.
49149 (grub_env_insert): Removed the code for the sorted list.
49150 (grub_env_remove): Likewise.
49151 (grub_env_export): Simply mark the variable with
49152 GRUB_ENV_VAR_GLOBAL.
49153 (grub_env_set): A cosmetic change for naming consistency.
49154 (grub_env_get): Likewise.
49155 (grub_env_unset): Likewise.
49156 (grub_env_iterate): Rewritten to sort variables within this
49157 function.
49158 (grub_register_variable_hook): Fixed for naming consistency. Call
49159 grub_env_find again, only if NAME is not found at the first time.
49160 (mangle_data_slot_name): New function.
49161 (grub_env_set_data_slot): Likewise.
49162 (grub_env_get_data_slot): Likewise.
49163 (grub_env_unset_data_slot): Likewise.
49164
49165 * include/grub/env.h (grub_env_var_type): New enum.
49166 (GRUB_ENV_VAR_LOCAL): New constant.
49167 (GRUB_ENV_VAR_GLOBAL): Likewise.
49168 (GRUB_ENV_VAR_DATA): Likewise.
49169 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49170 "type".
49171 (grub_env_set): Replace VAR with NAME for consistency.
49172 (grub_register_variable_hook): Likewise.
49173 (grub_env_export): Specify the name of the argument.
49174 (grub_env_set_data_slot): New prototype.
49175 (grub_env_get_data_slot): Likewise.
49176 (grub_env_unset_data_slot): Likewise.
49177
49178 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49179
49180 Extend the loader so that GRUB can accept a loader which comes
49181 back to GRUB when a loaded image exits. Also, this change adds
49182 support for a chainloader on EFI.
49183
49184 * term/efi/console.c: Include grub/misc.h.
49185 (grub_console_checkkey): Display a scan code on the top for
49186 debugging. This will be removed once the EFI port gets stable.
49187 Correct the scan code mapping.
49188
49189 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49190 allocate memory from larger regions, in order to reduce the number
49191 of allocated regions. Otherwise, the MacOSX loader panics.
49192 (filter_memory_map): Avoid less than 1MB for compatibility with
49193 other loaders.
49194 (add_memory_regions): Allocate from the tail of a region, if
49195 possible, to avoid allocating a region near to 1MB, for the MacOSX
49196 loader.
49197
49198 * kern/efi/init.c (grub_efi_set_prefix): Specify
49199 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49200
49201 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49202 argument IMAGE_HANDLE and specify it to get a loaded image.
49203 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49204 grub_efi_get_loaded_image.
49205 (grub_efi_get_filename): Divide the length by the size of
49206 grub_efi_char16_t.
49207 (grub_efi_get_device_path): New function.
49208 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49209 the length by the size of grub_efi_char16_t for a file path device
49210 path node.
49211
49212 * kern/loader.c (grub_loader_noreturn): New variable.
49213 (grub_loader_set): Accept a new argument NORETURN. Set
49214 GRUB_LOADER_NORETURN to NORETURN.
49215 All callers changed.
49216 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49217 grub_machine_fini.
49218
49219 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49220 prototype.
49221 (grub_efi_get_loaded_image): Take an argument to specify an image
49222 handle.
49223
49224 * include/grub/loader.h (grub_loader_set): Added one more argument
49225 NORETURN.
49226
49227 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49228 instead of grub_efi_open_protocol.
49229 (grub_efidisk_get_device_name): Likewise.
49230 (grub_efidisk_close): Print a newline.
49231 (grub_efidisk_get_device_handle): Fixed to use
49232 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49233 GRUB_EFI_DEVICE_PATH_TYPE.
49234
49235 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49236 * kern/efi/efi.c (device_path_guid): ... here.
49237
49238 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49239 chain.mod.
49240 (kernel_mod_HEADERS): Added efi/disk.h.
49241 (_chain_mod_SOURCES): New variable.
49242 (_chain_mod_CFLAGS): Likewise.
49243 (_chain_mod_LDFLAGS): Likewise.
49244 (chain_mod_SOURCES): Likewise.
49245 (chain_mod_CFLAGS): Likewise.
49246 (chain_mod_LDFLAGS): Likewise.
49247
49248 * DISTLIST: Added include/grub/efi/chainloader.h,
49249 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49250
49251 * include/grub/efi/chainloader.h: New file.
49252 * loader/efi/chainloader.c: Likewise.
49253 * loader/efi/chainloader_normal.c: Likewise.
49254
49255 2006-04-30 Marco Gerards <marco@gnu.org>
49256
49257 * commands/configfile.c (grub_cmd_source): New function.
49258 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49259 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49260
49261 2006-04-30 Marco Gerards <marco@gnu.org>
49262
49263 * normal/execute.c (grub_script_execute_cmd): Change the return
49264 type to `grub_err_t'. Correctly return the error.
49265 (grub_script_execute_cmdline): In case a command line is not a
49266 command or a function, try to interpret it as an assignment.
49267
49268 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49269
49270 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49271 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49272 skip a node whose name is obviously invalid as UTF-16,
49273 i.e. contains a NUL character. Stop the iteration when the last
49274 directory entry is found. Instead of using the return value of
49275 grub_hfsplus_btree_iterate_node, store the value in RET and use
49276 it, because the iterator can be stopped by the last directory
49277 entry.
49278
49279 2006-04-30 Marco Gerards <marco@gnu.org>
49280
49281 * include/grub/env.h (grub_env_export): New prototype. Reported
49282 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49283
49284 2006-04-30 Marco Gerards <marco@gnu.org>
49285
49286 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49287 size of the extents in a catalog file record.
49288
49289 2006-04-29 Marco Gerards <marco@gnu.org>
49290
49291 * commands/configfile.c (grub_cmd_configfile): Execute the
49292 configfile within its own context.
49293
49294 * include/grub/env.h (grub_env_context_open): New prototype.
49295 (grub_env_context_close): Likewise.
49296
49297 * kern/env.c (grub_env): Removed.
49298 (grub_env_sorted): Likewise.
49299 (grub_env_context): New variable.
49300 (grub_env_var_context): Likewise.
49301 (grub_env_find): Search both the active context and the global
49302 context.
49303 (grub_env_context_open): New function.
49304 (grub_env_context_close): Likewise.
49305 (grub_env_insert): Likewise.
49306 (grub_env_remove): Likewise.
49307 (grub_env_export): Likewise.
49308 (grub_env_set): Changed to use helper functions to avoid code
49309 duplication.
49310 (grub_env_iterate): Rewritten so both the current context and the
49311 global context are being used.
49312
49313 * normal/command.c (export_command): New function.
49314 (grub_command_init): Register the `export' function.
49315
49316 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49317
49318 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49319 explicitly to suppress gcc's warnings.
49320 * fs/fat.c (grub_fat_find_dir): Likewise.
49321 (grub_fat_label): Likewise.
49322 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49323 (grub_xfs_mount): Likewise.
49324 (grub_xfs_label): Likewise.
49325 * fs/affs.c (grub_affs_mount): Likewise.
49326 (grub_affs_label): Likewise.
49327 (grub_affs_iterate_dir): Likewise.
49328 * fs/sfs.c (grub_sfs_mount): Likewise.
49329 (grub_sfs_iterate_dir): Likewise.
49330 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49331 * fs/hfs.c (grub_hfs_mount): Likewise.
49332 (grub_hfs_cmp_catkeys): Likewise.
49333 (grub_hfs_find_dir): Likewise.
49334 (grub_hfs_dir): Likewise.
49335 (grub_hfs_label): Likewise.
49336 * fs/jfs.c (grub_jfs_mount): Likewise.
49337 (grub_jfs_opendir): Likewise.
49338 (grub_jfs_getent): Likewise.
49339 (grub_jfs_lookup_symlink): Likewise.
49340 (grub_jfs_label): Likewise.
49341 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49342 (grub_hfsplus_iterate_dir): Likewise.
49343 (grub_hfsplus_btree_iterate_node): Made static.
49344
49345 * util/grub-emu.c (prefix): New variable.
49346 (grub_machine_set_prefix): New function.
49347 (main): Do not set the environment variable "prefix" here. Only
49348 set PREFIX, which is used later by grub_machine_set_prefix.
49349
49350 * include/grub/video.h: Do not include grub/symbol.h.
49351 (grub_video_register): Not exported. This symbol is not defined in
49352 the kernel.
49353 (grub_video_unregister): Likewise.
49354 (grub_video_iterate): Likewise.
49355 (grub_video_setup): Likewise.
49356 (grub_video_restore): Likewise.
49357 (grub_video_get_info): Likewise.
49358 (grub_video_get_blit_format): Likewise.
49359 (grub_video_set_palette): Likewise.
49360 (grub_video_get_palette): Likewise.
49361 (grub_video_set_viewport): Likewise.
49362 (grub_video_get_viewport): Likewise.
49363 (grub_video_map_color): Likewise.
49364 (grub_video_map_rgb): Likewise.
49365 (grub_video_map_rgba): Likewise.
49366 (grub_video_fill_rect): Likewise.
49367 (grub_video_blit_glyph): Likewise.
49368 (grub_video_blit_bitmap): Likewise.
49369 (grub_video_blit_render_target): Likewise.
49370 (grub_video_scroll): Likewise.
49371 (grub_video_swap_buffers): Likewise.
49372 (grub_video_create_render_target): Likewise.
49373 (grub_video_delete_render_target): Likewise.
49374 (grub_video_set_active_render_target): Likewise.
49375
49376 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49377 Undefined.
49378 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49379
49380 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49381 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49382 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49383 instead of $(srcdir)/genkernsyms.sh.
49384
49385 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49386 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49387 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49388 instead of $(srcdir)/genkernsyms.sh.
49389
49390 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49391 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49392 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49393 instead of $(srcdir)/genkernsyms.sh.
49394
49395 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49396 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49397 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49398 instead of $(srcdir)/genkernsyms.sh.
49399
49400 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49401 genkernsyms.sh.
49402
49403 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49404 genkernsyms.sh.
49405 (gensymlist.sh): New target.
49406 (genkernsyms.sh): Likewise.
49407
49408 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49409 genkernsyms.sh.in and gensymlist.sh.in.
49410
49411 * genkernsyms.sh: Removed.
49412 * gensymlist.sh: Likewise.
49413
49414 * genkernsyms.sh.in: New file.
49415 * gensymlist.sh.in: Likewise.
49416
49417 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49418
49419 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
49420 clobber "prefix", since we may have already set it manually.
49421
49422 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
49423
49424 * kern/misc.c (abort): New alias for grub_abort.
49425
49426 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
49427
49428 A new machine-specific function "grub_machine_set_prefix" is
49429 defined. This is called after loading modules, so that a prefix
49430 initialization can use modules. Also, this change adds an
49431 intensive debugging feature for the memory manager via the
49432 configure option "--enable-mm-debug".
49433
49434 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
49435 PART.LEN.
49436
49437 * kern/sparc64/ieee1275/init.c (abort): Removed.
49438 (grub_stop): Likewise.
49439 (grub_exit): New function.
49440 (grub_set_prefix): Renamed to ...
49441 (grub_machine_set_prefix): ... this.
49442 (grub_machine_init): Do not call grub_set_prefix.
49443
49444 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
49445 (grub_machine_set_prefix): ... this.
49446 (grub_machine_init): Do not call grub_set_prefix.
49447
49448 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
49449 (grub_machine_init): Do not set the prefix here.
49450
49451 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
49452
49453 * kern/efi/init.c: Include grub/mm.h.
49454 (grub_efi_set_prefix): New function.
49455
49456 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
49457 (grub_efi_get_filename): New function.
49458 (grub_print_device_path): Renamed to ...
49459 (grub_efi_print_device_path): ... this.
49460
49461 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
49462 [MM_DEBUG] (grub_realloc): Likewise.
49463 [MM_DEBUG] (grub_free): Likewise.
49464 [MM_DEBUG] (grub_memalign): Likewise.
49465 [MM_DEBUG] (grub_mm_debug): New variable.
49466 [MM_DEBUG] (grub_debug_malloc): New function.
49467 [MM_DEBUG] (grub_debug_free): New function.
49468 [MM_DEBUG] (grub_debug_realloc): New function.
49469 [MM_DEBUG] (grub_debug_memalign): New function.
49470
49471 * kern/misc.c (grub_abort): Print a newline to distinguish
49472 the message.
49473
49474 * kern/main.c (grub_main): Call grub_machine_set_prefix and
49475 grub_set_root_dev after loading modules. This is necessary when
49476 setting a prefix depends on modules.
49477
49478 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
49479 (grub_efi_print_device_path): ... this.
49480 (grub_efi_get_filename): New prototype.
49481 (grub_efi_set_prefix): Likewise.
49482
49483 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
49484 and grub/disk.h.
49485 (grub_efidisk_get_device_handle): New prototype.
49486 (grub_efidisk_get_device_name): Likewise.
49487
49488 * include/grub/mm.h: Include config.h.
49489 (MM_DEBUG): Removed.
49490 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
49491 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
49492 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
49493 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
49494 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
49495 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
49496 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
49497 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
49498 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
49499
49500 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
49501
49502 * disk/efi/efidisk.c: Include grub/partition.h.
49503 (iterate_child_devices): New function.
49504 (add_device): First, compare only last device path nodes, so that
49505 devices are sorted by the types.
49506 (grub_efidisk_get_device_handle): New function.
49507 (grub_efidisk_get_device_name): Likewise.
49508
49509 * configure.ac (--enable-mm-debug): New option to enable the
49510 memory manager debugging feature. This makes the binary much
49511 bigger, so is disabled by default.
49512
49513 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
49514
49515 Use grub_abort instead of grub_stop, and grub_exit must be
49516 define in each architecture now. Also, this change adds support
49517 for EFI disks.
49518
49519 * util/i386/pc/grub-probefs.c: Include grub/term.h.
49520 (grub_getkey): New function.
49521 (grub_term_get_current): Likewise.
49522
49523 * util/i386/pc/grub-setup.c: Include grub/term.h.
49524 (grub_getkey): New function.
49525 (grub_term_get_current): Likewise.
49526
49527 * util/misc.c (grub_stop): Renamed to ...
49528 (grub_exit): ... this.
49529
49530 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
49531 (grub_exit): ... this.
49532 (grub_machine_init): Use grub_abort instead of abort.
49533 (grub_stop): Removed.
49534
49535 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
49536 abort.
49537
49538 * kern/i386/pc/startup.S (grub_exit): New function.
49539 (cold_reboot): New label.
49540
49541 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
49542 (grub_efi_init): Call grub_efidisk_init.
49543 (grub_efi_fini): Call grub_efidisk_fini.
49544
49545 * kern/efi/efi.c: Include grub/mm.h.
49546 (grub_efi_console_control_guid): Renamed to ...
49547 (console_control_guid): ... this.
49548 (grub_efi_loaded_image_guid): Renamed to ...
49549 (loaded_image_guid): ... this.
49550 (grub_efi_locate_handle): New function.
49551 (grub_efi_open_protocol): Likewise.
49552 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
49553 GRUB_EFI_CONSOLE_CONTROL_GUID.
49554 (grub_efi_exit): Removed.
49555 (grub_stop): Likewise.
49556 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
49557 (grub_exit): New function.
49558 (grub_print_device_path): Likewise.
49559
49560 * kern/rescue.c (grub_rescue_cmd_exit): New function.
49561 (grub_enter_rescue_mode): Register "exit".
49562
49563 * kern/misc.c (grub_real_dprintf): A cosmetic change.
49564 (grub_abort): New function.
49565
49566 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
49567
49568 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
49569
49570 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
49571
49572 * include/grub/efi/efi.h (grub_efi_exit): Removed.
49573 (grub_print_device_path): New prototype.
49574 (grub_efi_locate_handle): Likewise.
49575 (grub_efi_open_protocol): Likewise.
49576
49577 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
49578 * disk/efi/efidisk.c: Likewise.
49579
49580 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
49581
49582 * include/grub/efi/console_control.h
49583 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
49584
49585 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
49586 last 8 bytes as an array.
49587 (GRUB_EFI_DISK_IO_GUID): New macro.
49588 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
49589 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
49590 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
49591 grub_uint8_t.
49592 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
49593 (struct grub_efi_device_path): Rename the member "sub_type" to
49594 "subtype".
49595 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
49596 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
49597 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
49598 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
49599 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
49600 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
49601 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
49602 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
49603 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
49604 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
49605 (struct grub_efi_pci_device_path): New structure.
49606 (grub_efi_pci_device_path_t): New type.
49607 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
49608 (struct grub_efi_pccard_device_path): New structure.
49609 (grub_efi_pccard_device_path_t): New type.
49610 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
49611 (struct grub_efi_memory_mapped_device_path): New structure.
49612 (grub_efi_memory_mapped_device_path_t): New type.
49613 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
49614 (struct grub_efi_vendor_device_path): New structure.
49615 (grub_efi_vendor_device_path_t): New type.
49616 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
49617 (struct grub_efi_controller_device_path): New structure.
49618 (grub_efi_controller_device_path_t): New type.
49619 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
49620 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
49621 (struct grub_efi_acpi_device_path): New structure.
49622 (grub_efi_acpi_device_path_t): New type.
49623 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
49624 (struct grub_efi_expanded_acpi_device_path): New structure.
49625 (grub_efi_expanded_acpi_device_path_t): New type.
49626 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
49627 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
49628 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
49629 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
49630 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
49631 (struct grub_efi_atapi_device_path): New structure.
49632 (grub_efi_atapi_device_path_t): New type.
49633 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
49634 (struct grub_efi_fibre_channel_device_path): New structure.
49635 (grub_efi_fibre_channel_device_path_t): New type.
49636 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
49637 (struct grub_efi_1394_device_path): New structure.
49638 (grub_efi_1394_device_path_t): New type.
49639 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
49640 (struct grub_efi_usb_device_path): New structure.
49641 (grub_efi_usb_device_path_t): New type.
49642 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
49643 (struct grub_efi_usb_class_device_path): New structure.
49644 (grub_efi_usb_class_device_path_t): New type.
49645 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
49646 (struct grub_efi_i2o_device_path): New structure.
49647 (grub_efi_i2o_device_path_t): New type.
49648 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
49649 (struct grub_efi_mac_address_device_path): New structure.
49650 (grub_efi_mac_address_device_path_t): New type.
49651 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
49652 (struct grub_efi_ipv4_device_path): New structure.
49653 (grub_efi_ipv4_device_path_t): New type.
49654 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
49655 (struct grub_efi_ipv6_device_path): New structure.
49656 (grub_efi_ipv6_device_path_t): New type.
49657 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
49658 (struct grub_efi_infiniband_device_path): New structure.
49659 (grub_efi_infiniband_device_path_t): New type.
49660 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
49661 (struct grub_efi_uart_device_path): New structure.
49662 (grub_efi_uart_device_path_t): New type.
49663 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
49664 (struct grub_efi_vendor_messaging_device_path): New structure.
49665 (grub_efi_vendor_messaging_device_path_t): New type.
49666 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
49667 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
49668 (struct grub_efi_hard_drive_device_path): New structure.
49669 (grub_efi_hard_drive_device_path_t): New type.
49670 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
49671 (struct grub_efi_cdrom_device_path): New structure.
49672 (grub_efi_cdrom_device_path_t): New type.
49673 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
49674 (struct grub_efi_vendor_media_device_path): New structure.
49675 (grub_efi_vendor_media_device_path_t): New type.
49676 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
49677 (struct grub_efi_file_path_device_path): New structure.
49678 (grub_efi_file_path_device_path_t): New type.
49679 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
49680 (struct grub_efi_protocol_device_path): New structure.
49681 (grub_efi_protocol_device_path_t): New type.
49682 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
49683 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
49684 (struct grub_efi_bios_device_path): New structure.
49685 (grub_efi_bios_device_path_t): New type.
49686 (struct grub_efi_disk_io): New structure.
49687 (grub_efi_disk_io_t): New type.
49688 (struct grub_efi_block_io_media): New structure.
49689 (grub_efi_block_io_media_t): New type.
49690 (struct grub_efi_block_io): New structure.
49691 (grub_efi_block_io_t): New type.
49692
49693 * include/grub/misc.h (grub_stop): Removed.
49694 (grub_exit): New prototype.
49695 (grub_abort): Likewise.
49696
49697 * include/grub/disk.h (enum grub_disk_dev_id): Added
49698 GRUB_DISK_DEVICE_EFIDISK_ID.
49699
49700 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
49701 disk/efi/efidisk.c.
49702 (kernel_syms.lst): Remove the target if an error occurs.
49703
49704 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
49705
49706 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
49707 as it was simply too buggy.
49708
49709 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
49710
49711 * kern/misc.c (grub_lltoa): New function.
49712 (grub_vsprintf): Added support for the long long suffix,
49713 i.e. "ll".
49714
49715 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
49716
49717 * Makefile.in (LDFLAGS): Add variable.
49718 (LD): Remove variable.
49719 * configure.ac: Add -m32 to LDFLAGS.
49720 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
49721 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
49722 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
49723 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
49724 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
49725 variables.
49726 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
49727 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
49728 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
49729
49730 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
49731
49732 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
49733 length for unknown glyph.
49734
49735 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49736
49737 Add support for pre-loaded modules into the EFI port.
49738
49739 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
49740 completely. Accept one more argument DIR. The caller has changed.
49741
49742 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
49743
49744 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
49745 (grub_efi_loaded_image_guid): New variable.
49746 (grub_efi_get_loaded_image): New function.
49747 (grub_arch_modules_addr): Likewise.
49748
49749 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
49750 prototype.
49751
49752 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
49753 (struct grub_efi_loaded_image): New structure.
49754 (grub_efi_loaded_image_t): New type.
49755
49756 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
49757
49758 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
49759 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
49760 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
49761
49762 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
49763
49764 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
49765
49766 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
49767
49768 * DISTLIST: Added include/grub/efi/console.h,
49769 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
49770 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49771
49772 * include/grub/efi/console.h: New file.
49773 * include/grub/efi/time.h: Likewise.
49774 * include/grub/i386/efi/kernel.h: Likewise.
49775 * kern/efi/init.c: Likewise.
49776 * kern/efi/mm.c: Likewise.
49777 * term/efi/console.c: Likewise.
49778
49779 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49780 (grub_stop): Removed.
49781 (grub_get_rtc): Likewise.
49782 (grub_machine_init): Simply call grub_efi_init.
49783 (grub_machine_fini): Call grub_efi_fini.
49784
49785 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49786 (grub_efi_output_string): Removed.
49787 (grub_efi_stall): New function.
49788 (grub_stop): Likewise.
49789 (grub_get_rtc): Likewise.
49790
49791 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49792 (grub_efi_stall): New prototype.
49793 (grub_efi_allocate_pages): Likewise.
49794 (grub_efi_free_pages): Likewise.
49795 (grub_efi_get_memory_map): Likewise.
49796 (grub_efi_mm_init): Likewise.
49797 (grub_efi_mm_fini): Likewise.
49798 (grub_efi_init): Likewise.
49799 (grub_efi_fini): Likewise.
49800
49801 * include/grub/i386/efi/time.h: Do not include
49802 grub/symbol.h. Include grub/efi/time.h.
49803 (GRUB_TICKS_PER_SECOND): Removed.
49804 (grub_get_rtc): Likewise.
49805
49806 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49807 Added padding. The EFI spec is buggy.
49808 (GRUB_EFI_BLACK): New macro.
49809 (GRUB_EFI_BLUE): Likewise.
49810 (GRUB_EFI_GREEN): Likewise.
49811 (GRUB_EFI_CYAN): Likewise.
49812 (GRUB_EFI_RED): Likewise.
49813 (GRUB_EFI_MAGENTA): Likewise.
49814 (GRUB_EFI_BROWN): Likewise.
49815 (GRUB_EFI_LIGHTGRAY): Likewise.
49816 (GRUB_EFI_BRIGHT): Likewise.
49817 (GRUB_EFI_DARKGRAY): Likewise.
49818 (GRUB_EFI_LIGHTBLUE): Likewise.
49819 (GRUB_EFI_LIGHTGREEN): Likewise.
49820 (GRUB_EFI_LIGHTCYAN): Likewise.
49821 (GRUB_EFI_LIGHTRED): Likewise.
49822 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49823 (GRUB_EFI_YELLOW): Likewise.
49824 (GRUB_EFI_WHITE): Likewise.
49825 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49826 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49827 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49828 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49829 (GRUB_EFI_BACKGROUND_RED): Likewise.
49830 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49831 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49832 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49833 (GRUB_EFI_TEXT_ATTR): Likewise.
49834
49835 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49836 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49837 (kernel_mod_HEADERS): Added efi/time.h.
49838
49839 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49840
49841 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49842 include/grub/efi/api.h, include/grub/efi/console_control.h,
49843 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49844 include/grub/i386/efi/time.h, kern/efi/efi.c,
49845 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49846 and util/i386/efi/grub-mkimage.c.
49847
49848 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49849
49850 * genmk.rb (PModule#rule): Do not export symbols if
49851 #{prefix}_EXPORTS is set to "no".
49852
49853 * conf/i386-efi.mk: New file.
49854 * conf/i386-efi.rmk: Likewise.
49855 * include/grub/efi/api.h: Likewise.
49856 * include/grub/efi/console_control.h: Likewise.
49857 * include/grub/efi/efi.h: Likewise.
49858 * include/grub/efi/pe32.h: Likewise.
49859 * include/grub/i386/efi/time.h: Likewise.
49860 * kern/efi/efi.c: Likewise.
49861 * kern/i386/efi/init.c: Likewise.
49862 * kern/i386/efi/startup.S: Likewise.
49863 * util/i386/efi/grub-mkimage.c: Likewise.
49864
49865 2006-04-17 Marco Gerards <marco@gnu.org>
49866
49867 * include/grub/script.h: Include <grub/parser.h> and
49868 "grub_script.tab.h".
49869 (struct grub_lexer_param): New struct.
49870 (struct grub_parser_param): Likewise.
49871 (grub_script_create_arglist): Pass the state in an argument.
49872 (grub_script_add_arglist): Likewise.
49873 (grub_script_create_cmdline): Likewise.
49874 (grub_script_create_cmdblock): Likewise.
49875 (grub_script_create_cmdif): Likewise.
49876 (grub_script_create_cmdmenu): Likewise.
49877 (grub_script_add_cmd): Likewise.
49878 (grub_script_arg_add): Likewise.
49879 (grub_script_lexer_ref): Likewise.
49880 (grub_script_lexer_deref): Likewise.
49881 (grub_script_lexer_record_start): Likewise.
49882 (grub_script_lexer_record_stop): Likewise.
49883 (grub_script_mem_record): Likewise.
49884 (grub_script_mem_record_stop): Likewise.
49885 (grub_script_malloc): Likewise.
49886 (grub_script_yylex): Likewise.
49887 (grub_script_yyparse): Likewise.
49888 (grub_script_yyerror): Likewise.
49889 (grub_script_yylex): Likewise.
49890 (grub_script_lexer_init): Return the state.
49891
49892 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49893 (grub_script_lexer_done): Likewise.
49894 (grub_script_lexer_getline): Likewise.
49895 (grub_script_lexer_refs): Likewise.
49896 (script): Likewise.
49897 (newscript): Likewise.
49898 (record): Likewise.
49899 (recording): Likewise.
49900 (recordpos): Likewise.
49901 (recordlen): Likewise.
49902 (grub_script_lexer_init): Return the state instead of setting
49903 global variables.
49904 (grub_script_lexer_ref): Use the newly added argument for state
49905 instead of globals.
49906 (grub_script_lexer_deref): Likewise.
49907 (grub_script_lexer_record_start): Likewise.
49908 (grub_script_lexer_record_stop): Likewise.
49909 (recordchar): Likewise.
49910 (nextchar): Likewise.
49911 (grub_script_yylex2): Likewise.
49912 (grub_script_yylex): Likewise.
49913 (grub_script_yyerror): Likewise.
49914
49915 * normal/parser.y (func_mem): Removed variable.
49916 (menu_entry): Likewise.
49917 (err): Likewise.
49918 (%lex-param): New parser option.
49919 (%parse-param): Likewise.
49920 (script): Always return the AST.
49921 (argument): Pass the state around.
49922 (arguments): Likewise.
49923 (grubcmd): Likewise.
49924 (commands): Likewise.
49925 (function): Likewise.
49926 (menuentry): Likewise.
49927 (if_statement): Likewise.
49928 (if): Likewise.
49929
49930 * normal/script.c (grub_script_memused): Removed variable.
49931 (grub_script_parsed): Likewise.
49932 (grub_script_malloc): Added a state argument. Use that instead of
49933 global variables.
49934 (grub_script_mem_record): Likewise.
49935 (grub_script_mem_record_stop): Likewise.
49936 (grub_script_arg_add): Likewise.
49937 (grub_script_add_arglist): Likewise.
49938 (grub_script_create_cmdline): Likewise.
49939 (grub_script_create_cmdif): Likewise.
49940 (grub_script_create_cmdmenu): Likewise.
49941 (grub_script_add_cmd): Likewise.
49942 (grub_script_parse): Setup the state before calling the parser.
49943
49944 2006-04-16 Marco Gerards <marco@gnu.org>
49945
49946 * normal/command.c (grub_command_init): Remove the title command.
49947
49948 * normal/lexer.c (grub_script_yylex): Renamed from this...
49949 (grub_script_yylex2): ... to this.
49950 (grub_script_yylex): New function. Temporary
49951 introduced to filter some tokens.
49952 (grub_script_yyerror): Print a newline.
49953
49954 * normal/main.c (read_config_file): Output information about the
49955 lines that contain errors. Wait for a key after all lines have
49956 been processed. Don't return an empty menu.
49957
49958 * normal/parser.y (func_mem): Don't initialize.
49959 (menu_entry): Likewise.
49960 (err): New variable.
49961 (script): Don't return anything when an error was encountered.
49962 (ws, returns): Removed rules.
49963 (argument): Disabled concatenated variable support.
49964 (arguments): Remove explicit separators.
49965 (grubcmd): Likewise.
49966 (function): Likewise.
49967 (menuentry): Likewise.
49968 (if): Likewise.
49969 (commands): Likewise. Add error handling.
49970
49971 * normal/script.c (grub_script_create_cmdline): If
49972 `grub_script_parsed' is 0, assume the parser encountered an error.
49973
49974 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49975
49976 * configure.ac: Add support for EFI. Fix the typo
49977 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49978
49979 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49980
49981 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49982 foreign multibyte characters should be shown correctly.
49983
49984 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49985
49986 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49987 calculation.
49988 (read_config_file): Made it to close file before returning.
49989
49990 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49991
49992 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49993 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49994 video/i386/pc/vbefill.c.
49995
49996 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49997 video/i386/pc/vbefill.c.
49998
49999 * include/grub/video.h (grub_video_blit_format): New enum.
50000 (grub_video_mode_info): Added new member blit_format.
50001 (grub_video_get_blit_format): New function prototype.
50002
50003 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50004 function prototype.
50005 (grub_video_vbe_map_rgb): Likewise.
50006 (grub_video_vbe_unmap_color): Likewise.
50007
50008 * include/grub/i386/pc/vbeblit.h: New file.
50009
50010 * include/grub/i386/pc/vbefill.h: New file.
50011
50012 * video/video.c (grub_video_get_blit_format): New function.
50013 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50014 (grub_video_vbe_map_rgb): Likewise.
50015 (grub_video_vbe_unmap_color): Likewise.
50016
50017 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50018 optimized fills.
50019 (grub_video_vbe_blit_render_target): Changed to use more optimized
50020 blits.
50021 (grub_video_vbe_setup): Added detection for optimized settings.
50022 (grub_video_vbe_create_render_target): Likewise.
50023
50024 * video/i386/pc/vbeblit.c: New file.
50025
50026 * video/i386/pc/vbefill.c: New file.
50027
50028 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50029
50030 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50031 here...
50032
50033 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50034 parsing to support both hex and dec ranges. If filename was missing
50035 show usage information.
50036
50037 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50038
50039 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50040 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50041
50042 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50043 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50044 (video_mod_SOURCES): Added.
50045 (video_mod_CFLAGS): Likewise.
50046 (video_mod_LDFLAGS): Likewise.
50047 (gfxterm_mod_SOURCES): Likewise.
50048 (gfxterm_mod_CFLAGS): Likewise.
50049 (gfxterm_mod_LDFLAGS): Likewise.
50050 (videotest_mod_SOURCES): Likewise.
50051 (videotest_mod_CFLAGS): Likewise.
50052 (videotest_mod_LDFLAGS): Likewise.
50053 (vesafb_mod_SOURCES): Removed.
50054 (vesafb_mod_CFLAGS): Likewise.
50055 (vesafb_mod_LDFLAGS): Likewise.
50056 (vga_mod_SOURCES): Likewise.
50057 (vga_mod_CFLAGS): Likewise.
50058 (vga_mod_LDFLAGS): Likewise.
50059
50060 * commands/videotest.c: New file.
50061
50062 * font/manager.c (fill_with_default_glyph): Modified to use
50063 grub_font_glyph.
50064 (grub_font_get_glyph): Likewise.
50065 (fontmanager): Renamed from this...
50066 (font_manager): ... to this.
50067
50068 * include/grub/font.h (grub_font_glyph): Added new structure.
50069 (grub_font_get_glyph): Modified to use grub_font_glyph.
50070
50071 * include/grub/misc.h (grub_abs): Added as inline function.
50072
50073 * include/grub/video.h: New file.
50074
50075 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50076 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50077 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50078 (grub_vbe_get_controller_info): Renamed from this...
50079 (grub_vbe_bios_get_controller_info): ... to this.
50080 (grub_vbe_get_mode_info): Renamed from this...
50081 (grub_vbe_bios_get_mode_info): ... to this.
50082 (grub_vbe_set_mode): Renamed from this...
50083 (grub_vbe_bios_set_mode): ... to this.
50084 (grub_vbe_get_mode): Renamed from this...
50085 (grub_vbe_bios_get_mode): ... to this.
50086 (grub_vbe_set_memory_window): Renamed from this...
50087 (grub_vbe_bios_set_memory_window): ... to this.
50088 (grub_vbe_get_memory_window): Renamed from this...
50089 (grub_vbe_bios_get_memory_window): ... to this.
50090 (grub_vbe_set_scanline_length): Renamed from this...
50091 (grub_vbe_set_scanline_length): ... to this.
50092 (grub_vbe_get_scanline_length): Renamed from this...
50093 (grub_vbe_bios_get_scanline_length): ... to this.
50094 (grub_vbe_set_display_start): Renamed from this...
50095 (grub_vbe_bios_set_display_start): ... to this.
50096 (grub_vbe_get_display_start): Renamed from this...
50097 (grub_vbe_bios_get_display_start): ... to this.
50098 (grub_vbe_set_palette_data): Renamed from this...
50099 (grub_vbe_bios_set_palette_data): ... to this.
50100 (grub_vbe_set_pixel_rgb): Removed.
50101 (grub_vbe_set_pixel_index): Likewise.
50102
50103 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50104 from this...
50105 (grub_vbe_bios_get_controller_info): ... to this.
50106 (grub_vbe_get_mode_info): Renamed from this...
50107 (grub_vbe_bios_get_mode_info): ... to this.
50108 (grub_vbe_set_mode): Renamed from this...
50109 (grub_vbe_bios_set_mode): ... to this.
50110 (grub_vbe_get_mode): Renamed from this...
50111 (grub_vbe_bios_get_mode): ... to this.
50112 (grub_vbe_set_memory_window): Renamed from this...
50113 (grub_vbe_bios_set_memory_window): ... to this.
50114 (grub_vbe_get_memory_window): Renamed from this...
50115 (grub_vbe_bios_get_memory_window): ... to this.
50116 (grub_vbe_set_scanline_length): Renamed from this...
50117 (grub_vbe_set_scanline_length): ... to this.
50118 (grub_vbe_get_scanline_length): Renamed from this...
50119 (grub_vbe_bios_get_scanline_length): ... to this.
50120 (grub_vbe_set_display_start): Renamed from this...
50121 (grub_vbe_bios_set_display_start): ... to this.
50122 (grub_vbe_get_display_start): Renamed from this...
50123 (grub_vbe_bios_get_display_start): ... to this.
50124 (grub_vbe_set_palette_data): Renamed from this...
50125 (grub_vbe_bios_set_palette_data): ... to this.
50126 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50127 getting corrupted after calling it. Added more pushes and pops.
50128 (grub_vbe_bios_set_mode): Likewise.
50129 (grub_vbe_bios_get_mode): Likewise.
50130 (grub_vbe_bios_get_memory_window): Likewise.
50131 (grub_vbe_bios_set_scanline_length): Likewise.
50132 (grub_vbe_bios_get_scanline_length): Likewise.
50133 (grub_vbe_bios_get_display_start): Likewise.
50134 (grub_vbe_bios_set_palette_data): Likewise.
50135
50136 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50137 (cl_insert): Likewise.
50138 (cl_delete): Likewise.
50139
50140 * term/gfxterm.c: New file.
50141
50142 * term/i386/pc/vesafb.c: Removed file.
50143
50144 * video/video.c: New file.
50145
50146 * video/i386/pc/vbe.c (real2pm): Added new function.
50147 (grub_video_vbe_draw_pixel): Likewise.
50148 (grub_video_vbe_get_video_ptr): Likewise.
50149 (grub_video_vbe_get_pixel): Likewise
50150 (grub_video_vbe_init): Likewise.
50151 (grub_video_vbe_fini): Likewise.
50152 (grub_video_vbe_setup): Likewise.
50153 (grub_video_vbe_get_info): Likewise.
50154 (grub_video_vbe_set_palette): Likewise.
50155 (grub_video_vbe_get_palette): Likewise.
50156 (grub_video_vbe_set_viewport): Likewise.
50157 (grub_video_vbe_get_viewport): Likewise.
50158 (grub_video_vbe_map_color): Likewise.
50159 (grub_video_vbe_map_rgb): Likewise.
50160 (grub_video_vbe_map_rgba): Likewise.
50161 (grub_video_vbe_unmap_color): Likewise.
50162 (grub_video_vbe_fill_rect): Likewise.
50163 (grub_video_vbe_blit_glyph): Likewise.
50164 (grub_video_vbe_blit_bitmap): Likewise.
50165 (grub_video_vbe_blit_render_target): Likewise.
50166 (grub_video_vbe_scroll): Likewise.
50167 (grub_video_vbe_swap_buffers): Likewise.
50168 (grub_video_vbe_create_render_target): Likewise.
50169 (grub_video_vbe_delete_render_target): Likewise.
50170 (grub_video_vbe_set_active_render_target): Likewise.
50171 (grub_vbe_set_pixel_rgb): Remove function.
50172 (grub_vbe_set_pixel_index): Likewise.
50173 (index_color_mode): Remove static variable.
50174 (active_mode): Likewise.
50175 (framebuffer): Likewise.
50176 (bytes_per_scan_line): Likewise.
50177 (grub_video_vbe_adapter): Added new static variable.
50178 (framebuffer): Likewise.
50179 (render_target): Likewise.
50180 (initial_mode): Likewise.
50181 (mode_in_use): Likewise.
50182 (mode_list): Likewise.
50183
50184 2006-03-10 Marco Gerards <marco@gnu.org>
50185
50186 * configure.ac (AC_INIT): Bumped to 1.93.
50187
50188 * DISTLIST: Added `include/grub/hfs.h'.
50189
50190 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50191
50192 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50193 18H, which might help the BIOS falling back to next boot media.
50194
50195 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50196
50197 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50198 Poe Chen <poe.poechen@gmail.com>.
50199
50200 2006-01-17 Marco Gerards <marco@gnu.org>
50201
50202 * include/grub/normal.h: Include <grub/script.h>.
50203 (grub_command_list): Removed struct.
50204 (grub_command_list_t): Removed type.
50205 (grub_menu_entry): Remove members `num' and `command_list'. Add
50206 members `commands' and `sourcecode'.
50207 * include/grub/script.h: Add inclusion guards.
50208 (grub_script_cmd_menuentry): New struct.
50209 (grub_script_execute_menuentry): New prototype.
50210 (grub_script_lexer_record_start): Likewise.
50211 (grub_script_lexer_record_stop): Likewise.
50212 * normal/execute.c (grub_script_execute_menuentry): New function.
50213 * normal/lexer.c (record, recording, recordpos, recordlen): New
50214 variables.
50215 (grub_script_lexer_record_start): New function.
50216 (grub_script_lexer_record_stop): Likewise.
50217 (recordchar): Likewise.
50218 (nextchar): Likewise.
50219 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50220 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50221 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50222 (current_menu): New variable.
50223 (free_menu): Mainly rewritten.
50224 (grub_normal_menu_addentry): New function.
50225 (read_config_file): Rewritten.
50226 * normal/menu.c (run_menu_entry): Mainly rewritten.
50227 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50228 the menu entry.
50229 (run): Mainly rewritten.
50230 * normal/parser.y (menu_entry): New variable.
50231 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50232 (menuentry): New rule.
50233 (command): Add `menuentry'.
50234 (if_statement): Allow additional returns before `fi'.
50235 * normal/script.c (grub_script_create_cmdmenu): New function.
50236
50237 2006-01-03 Marco Gerards <marco@gnu.org>
50238
50239 * INSTALL: GNU Bison is required.
50240 * configure.ac: Rewritten the test to detect Bison.
50241 * Makefile.in (YACC): New variable. Reported by Xun Sun
50242 <xun.sun.cn@gmail.com>.
50243
50244 2006-01-03 Marco Gerards <marco@gnu.org>
50245
50246 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50247 the HFS+ filesystem to filesystem blocks.
50248 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50249 GCC warning is silenced.
50250
50251 2006-01-03 Marco Gerards <marco@gnu.org>
50252
50253 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50254 read from disk from big endian to host byte order.
50255
50256 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50257
50258 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50259 documentation.
50260 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50261 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50262 embedded HFS+ filesystem.
50263 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50264 (grub_hfs_sblock): Move from here...
50265 * include/grub/hfs.h: To here... New file.
50266 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50267 documentation.
50268 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50269 New macros.
50270 (grub_hfsplus_volheader): Change type of member `magic' to
50271 `grub_uint16_t'.
50272 (grub_hfsplus_data): Add new member `embedded_offset'.
50273 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50274 returned block.
50275 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50276 Calculate the offset.
50277
50278 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50279
50280 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50281 Removed.
50282 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50283
50284 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50285
50286 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50287 ENV->NAME is NULL after allocating ENV->VALUE.
50288
50289 2005-12-25 Marco Gerards <marco@gnu.org>
50290
50291 * kern/env.c (grub_env_set): Rewritten the error handling code.
50292
50293 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50294
50295 * geninit.sh: Made more robust, and more portable.
50296
50297 2005-12-25 Marco Gerards <marco@gnu.org>
50298
50299 Add support for Apple HFS+ filesystems.
50300
50301 * fs/hfsplus.c: New file.
50302
50303 * DISTLIST: Added `fs/hfsplus.c'.
50304
50305 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50306 (hfsplus_mod_SOURCES): New variable.
50307 (hfsplus_mod_CFLAGS): Likewise.
50308 (hfsplus_mod_LDFLAGS): Likewise.
50309 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50310 (grub_setup_SOURCES): Likewise.
50311 (grub_mkdevicemap_SOURCES): Likewise.
50312 (grub_emu_SOURCES): Likewise.
50313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50314
50315 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50316
50317 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50318
50319 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50320
50321 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50322 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50323 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50324 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50325 normal/lexer.c, normal/parser.y, normal/script.c, and
50326 partmap/gpt.c.
50327 Removed kern/sparc64/cache.c.
50328
50329 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50330 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50331 grub_emu_init.c.
50332
50333 * configure.ac (AC_INIT): Bumped to 1.92.
50334
50335 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50336
50337 * kern/err.c (grub_error_push): Added new function to support error
50338 stacks.
50339 (grub_error_pop): Likewise.
50340 (grub_error_stack_items): New local variable to support error stacks.
50341 (grub_error_stack_pos): Likewise.
50342 (grub_error_stack_assert): Likewise.
50343 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50344 stack depth.
50345 (grub_print_error): Added support to print errors from error stack.
50346
50347 * include/grub/err.h (grub_error_push): Added function prototype.
50348 (grub_error_pop): Likewise.
50349
50350 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50351
50352 * configure.ac: Accept `powerpc64' as host_cpu.
50353 (amd64): Rename to `biarch32'.
50354
50355 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50356 non-cacheline-aligned addresses.
50357
50358 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50359 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50360 if `size' is non-zero.
50361
50362 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50363
50364 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50365 and `cd' to make sure the filename is not prefixed with a
50366 directory name.
50367 (pkgdata_MODULES): Add `gpt.mod'.
50368 (gpt_mod_SOURCES): New variable.
50369 (gpt_mod_CFLAGS): Likewise.
50370 (gpt_mod_LDFLAGS): Likewise.
50371
50372 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50373
50374 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50375 New macro.
50376
50377 * partmap/gpt.c: New file.
50378
50379 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50380 GPT partition map is detected.
50381
50382 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50383
50384 * commands/i386/pc/play.c: New file.
50385 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50386 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50387 macros.
50388
50389 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50390
50391 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50392 ((unused))' to silence gcc warning.
50393
50394 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50395
50396 * configure.ac: Correct `AC_PROG_YACC' test.
50397
50398 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50399
50400 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50401 check before installing files.
50402
50403 2005-11-22 Mike Small <smallm@panix.com>
50404
50405 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50406 number regex so multidigit numbers are recognized correctly.
50407
50408 2005-11-22 Mike Small <smallm@panix.com>
50409
50410 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
50411 debugging message before attempting to claim memory.
50412 (grub_rescue_cmd_initrd): Add a claim debugging message and try
50413 multiple addresses in case of failure.
50414
50415 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50416
50417 * term/tparm.c (get_space): Remove empty `if' statement.
50418
50419 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
50420
50421 * kern/parser.c (check_varstate): Rename `state' to 's'.
50422
50423 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50424
50425 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
50426 variable definitions to the beginning of each function. Sort stack
50427 variables by size.
50428 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
50429 `buf' argument to `char *'.
50430
50431 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50432
50433 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
50434 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50435 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50436 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50437 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50438 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50439 configfile.mod, search.mod, gzio.mod and test.mod.
50440 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50441 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50442 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50443 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50444 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50445 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50446 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50447 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50448 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50449 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50450 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50451 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50452 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50453 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50454 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50455 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50456 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50457 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50458 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50459 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50460 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50461 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50462 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
50463
50464 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
50465 `grep --include'.
50466 (pkgdata_MODULES): Add test.mod.
50467
50468 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50469
50470 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
50471 appending to variables with "+=".
50472 (PModule): Use full pathname to generate *.lst filenames.
50473
50474 * Makefile.in: Fixed list rules moved from genmk.rb.
50475 (.DELETE_ON_ERROR): New special target.
50476 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
50477
50478 * conf/i386-pc.rmk: Include conf/common.mk.
50479 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
50480 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
50481 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
50482 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
50483 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
50484 configfile.mod, search.mod, gzio.mod and test.mod.
50485 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
50486 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
50487 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
50488 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
50489 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
50490 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
50491 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
50492 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
50493 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
50494 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
50495 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50496 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50497 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
50498 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
50499 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
50500 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
50501 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50502 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
50503 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
50504 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
50505 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
50506 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
50507 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
50508 here...
50509 * conf/common.rmk: ... to here. New file.
50510
50511 * conf/common.mk: New file.
50512
50513 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
50514
50515 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
50516 (grub_script.tab.c): ... here.
50517
50518 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
50519 (grub_script.tab.c): ... here.
50520
50521 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
50522 (grub_script.tab.c): ... here.
50523
50524 * normal/command.c (grub_command_find): Fixed a memory leak of
50525 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
50526
50527 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50528
50529 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
50530 "@" which marks the start of a comment on ARM.
50531 (VARIABLE): Likewise.
50532
50533 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50534
50535 Add support for Linux/ADFS partition tables.
50536
50537 * partmap/acorn.c: New file.
50538
50539 * include/grub/acorn_filecore.h: Likewise.
50540
50541 * DISTLIST: Added `partmap/acorn.c' and
50542 `include/grub/acorn_filecore.h'.
50543
50544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50545 `partmap/acorn.c'.
50546 (pkgdata_MODULES): Add `acorn.mod'.
50547 (acorn_mod_SOURCES): New variable.
50548 (acorn_mod_CFLAGS): Likewise.
50549
50550 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50551 `partmap/acorn.c'.
50552 (pkgdata_MODULES): Add `acorn.mod'.
50553 (acorn_mod_SOURCES): New variable.
50554 (acorn_mod_CFLAGS): Likewise.
50555
50556 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
50557 (pkgdata_MODULES): Add `acorn.mod'.
50558 (acorn_mod_SOURCES): New variable.
50559 (acorn_mod_CFLAGS): Likewise.
50560 (acorn_mod_LDFLAGS): Likewise.
50561
50562 * include/types.h (grub_disk_addr_t): New typedef.
50563
50564 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
50565
50566 * geninit.sh: New file.
50567
50568 * geninitheader.sh: Likewise.
50569
50570 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
50571 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
50572 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
50573 * commands/configfile.c (grub_configfile_init)
50574 (grub_configfile_fini): Likewise.
50575 * commands/default.c (grub_default_init, grub_default_fini):
50576 Likewise.
50577 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
50578 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
50579 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
50580 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
50581 Likewise.
50582 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
50583 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
50584 Likewise.
50585 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
50586 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
50587 Likewise.
50588 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
50589 Likewise.
50590 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
50591 Likewise.
50592 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
50593 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
50594 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
50595 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
50596 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
50597 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
50598 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
50599 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
50600 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
50601 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
50602 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
50603 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
50604 * partmap/amiga.c (grub_amiga_partition_map_init)
50605 (grub_amiga_partition_map_fini): Likewise.
50606 * partmap/apple.c (grub_apple_partition_map_init)
50607 (grub_apple_partition_map_fini): Likewise.
50608 * partmap/pc.c (grub_pc_partition_map_init)
50609 (grub_pc_partition_map_fini): Likewise.
50610 * partmap/sun.c (grub_sun_partition_map_init,
50611 grub_sun_partition_map_fini): Likewise.
50612 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
50613 Likewise.
50614
50615 * util/grub-emu.c: Include <grub_modules_init.h>.
50616 (main): Don't initialize and de-initialize any modules directly,
50617 use `grub_init_all' and `grub_fini_all' instead.
50618
50619 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
50620 `grub_vesafb_mod_init'.
50621 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
50622 all users.
50623 * term/i386/pc/vga.c (grub_vga_init): Renamed to
50624 `grub_vga_mod_init'. Updated all users.
50625 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
50626
50627 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
50628 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
50629 rules.
50630
50631 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
50632 Generate a function to initialize the module in utilities.
50633 Updated all callers.
50634 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
50635 initialize the module in utilities. Updated all callers.
50636
50637 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50638
50639 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
50640 escape sequence and a literal ^L to clear the screen.
50641
50642 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
50643 when returning from Open Firmware.
50644
50645 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
50646
50647 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
50648 (grub_ofconsole_height): Likewise.
50649 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
50650 manually insert a '\n'.
50651 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
50652 `grub_ofconsole_height'. Return early if these are already set.
50653
50654 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
50655
50656 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
50657 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
50658 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
50659 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
50660 and `normal/script.c'.
50661 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50662 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50663 (test_mod_SOURCES): New variable.
50664 (test_mod_CFLAGS): Likewise.
50665 (test_mod_LDFLAGS): Likewise.
50666 (pkgdata_MODULES): Add `test.mod'.
50667 (grub_script.tab.c): New rule.
50668 (grub_script.tab.h): Likewise.
50669
50670 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
50671
50672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50673 `commands/test.c', `normal/execute.c', `normal/lexer.c',
50674 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50675 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50676 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50677 (test_mod_SOURCES): New variable.
50678 (test_mod_CFLAGS): Likewise.
50679 (pkgdata_MODULES): Add `test.mod'.
50680 (grub_script.tab.c): New rule.
50681 (grub_script.tab.h): Likewise.
50682
50683 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
50684
50685 Add initial scripting support.
50686
50687 * commands/test.c: New file.
50688 * include/grub/script.h: Likewise.
50689 * normal/execute.c: Likewise.
50690 * normal/function.c: Likewise.
50691 * normal/lexer.c: Likewise.
50692 * normal/parser.y: Likewise.
50693 * normal/script.c: Likewise.
50694
50695 * configure.ac: Add `AC_PROG_YACC' test.
50696
50697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
50698 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
50699 `normal/function.c' and `normal/script.c'.
50700 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
50701 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
50702 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
50703 variables.
50704 (pkgdata_MODULES): Add `test.mod'.
50705 (grub_script.tab.c): New rule.
50706 (grub_script.tab.h): Likewise.
50707
50708 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
50709
50710 * include/grub/normal.h (grub_test_init): New prototype.
50711 (grub_test_fini): Likewise.
50712
50713 * normal/command.c: Include <grub/script.h>.
50714 (grub_command_execute): Rewritten.
50715
50716 * util/grub-emu.c (main): Call `grub_test_init' and
50717 `grub_test_fini'.
50718
50719 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50720
50721 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
50722 to 0.
50723 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
50724 there are no pending characters.
50725
50726 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50727
50728 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
50729 `grub_strndup' to drop device arguments. Replace unnecessary
50730 `grub_strndup' with `grub_strdup'.
50731
50732 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
50733
50734 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
50735 `debug' environment variable has been set.
50736
50737 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
50738
50739 * Makefile.in (install-local): Use $(DATA).
50740 (uninstall): Likewise.
50741 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
50742 (sbin_UTILITIES): ... to here.
50743 (sbin_SCRIPTS): New variable.
50744 (grub_install_SOURCES): New variable.
50745 * util/powerpc/ieee1275/grub-install.in: New file.
50746 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
50747 variable.
50748 (add_segments): Call `grub_util_get_path'.
50749
50750 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
50751
50752 From Timothy Baldwin:
50753 * commands/ls.c (grub_ls_list_files): Close FILE with
50754 grub_file_close.
50755 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
50756
50757 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
50758
50759 * include/grub/parser.h: New file.
50760
50761 * kern/parser.c: Likewise.
50762
50763 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
50764 (grub_setup_SOURCES): Likewise.
50765 (grub_probefs_SOURCES): Likewise.
50766 (grub_emu_SOURCES): Likewise.
50767 (kernel_img_HEADERS): Add `parser.h'.
50768
50769 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50770 (grub_emu_SOURCES): Add `kern/parser.c'.
50771 (grubof_SOURCES): Likewise.
50772
50773 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
50774 (grubof_SOURCES): Add `kern/parser.c'.
50775
50776 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50777
50778 * kern/misc.c (grub_split_cmdline): Removed function.
50779
50780 * kern/rescue.c: Include <grub/parser.h>.
50781 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50782 of `grub_split_cmdline'.
50783
50784 * normal/command.c: Include <grub/parser.h>.
50785 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50786 of `grub_split_cmdline'.
50787
50788 * normal/completion.c: Include <grub/parser.h>.
50789 (cmdline_state): New variable.
50790 (iterate_dir): End the filename with a quote depending on the
50791 command line state.
50792 (get_state): new function.
50793 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50794 split the arguments and determine the current argument. When the
50795 argument string is not quoted, escape all spaces.
50796
50797 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50798
50799 * normal/sparc64/setjmp.S: New file.
50800
50801 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50802
50803 * include/grub/sparc64/libgcc.h: New file.
50804 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50805 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50806 normal/sparc64/setjmp.c.
50807
50808 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50809
50810 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50811 * kern/sparc64/cache.S: New file.
50812 * kern/sparc64/cache.c: Removed.
50813 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50814 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50815 -mtune=ultrasparc.
50816 (COMMON_LDFLAGS): Add -melf64_sparc.
50817 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50818 (grubof_SOURCES): Use cache.S instead of cache.c.
50819 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50820 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50821 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50822 commented though.
50823 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50824 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50825 (linux_mod_CFLAGS): Commented out.
50826 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50827 out because module isn't built.
50828 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50829 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50830 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50831 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50832 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50833 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50834 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50835 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50836 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50837 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50838 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50839 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50840 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50841 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50842
50843 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50844
50845 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50846 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50847 longer, because HFS should not be used on PC.
50848
50849 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50850
50851 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50852 consistently within the loop.
50853
50854 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
50855
50856 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50857 directory can not be read.
50858
50859 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50860
50861 * configure.ac (AC_INIT): Increase the version number to 1.91.
50862
50863 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50864 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50865 term/i386/pc/serial.c.
50866
50867 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50868
50869 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50870 file size must be permitted.
50871
50872 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50873 between %ah and %al.
50874
50875 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50876
50877 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50878 grub_uint64_t.
50879 Call the hook with a NUL-terminated filename.
50880 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50881 grub_cpu_to_be32.
50882
50883 * kern/term.c (cursor_state): New variable.
50884 (grub_term_set_current): Reset the cursor state on a new
50885 terminal.
50886 (grub_setcursor): Rewritten to use CURSOR_STATE.
50887 (grub_getcursor): New function.
50888
50889 * include/grub/term.h (grub_getcursor): New prototype.
50890
50891 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50892 integers on ARM. Reported by Timothy Baldwin
50893 <T.E.Baldwin99@members.leeds.ac.uk>.
50894
50895 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
50896
50897 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50898 allocated.
50899 (grub_sfs_dir): Likewise.
50900
50901 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
50902
50903 Add support for the SFS filesystem.
50904
50905 * fs/sfs.c: New file.
50906
50907 * DISTLIST: Added `fs/sfs.c'.
50908
50909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50910 (grub_probefs_SOURCES): Likewise.
50911 (grub_emu_SOURCES): Likewise.
50912 (pkgdata_MODULES): Add `sfs.mod'.
50913 (sfs_mod_SOURCES): New variable.
50914 (sfs_mod_CFLAGS): Likewise.
50915 (sfs_mod_LDFLAGS): Likewise.
50916
50917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50918 (pkgdata_MODULES): Add `sfs.mod'.
50919 (sfs_mod_SOURCES): New variable.
50920 (sfs_mod_CFLAGS): Likewise.
50921
50922 * util/grub-emu.c (main): Call `grub_sfs_init' and
50923 `grub_sfs_fini'.
50924
50925 * include/grub/fs.h (grub_sfs_init): New prototype.
50926 (grub_sfs_fini): Likewise.
50927
50928 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
50929
50930 Add support for the AFFS filesystem.
50931
50932 * fs/affs.c: New file.
50933
50934 * DISTLIST: Added `fs/affs.c'.
50935
50936 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50937 (grub_probefs_SOURCES): Likewise.
50938 (grub_emu_SOURCES): Likewise.
50939 (pkgdata_MODULES): Add `affs.mod'.
50940 (affs_mod_SOURCES): New variable.
50941 (affs_mod_CFLAGS): Likewise.
50942 (affs_mod_LDFLAGS): Likewise.
50943
50944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50945 (pkgdata_MODULES): Add `affs.mod'.
50946 (affs_mod_SOURCES): New variable.
50947 (affs_mod_CFLAGS): Likewise.
50948
50949 * util/grub-emu.c (main): Call `grub_affs_init' and
50950 `grub_affs_fini'.
50951
50952 * include/grub/fs.h (grub_affs_init): New prototype.
50953 (grub_affs_fini): Likewise.
50954
50955 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50956
50957 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50958
50959 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
50960
50961 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50962 `-m32' to CFLAGS.
50963
50964 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50965 linking.
50966
50967 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50968 (COMMON_LDFLAGS): New variable.
50969 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50970 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50971 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50972 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50973 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50974 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50975 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50976 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50977 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50978 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50979 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50980 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50981 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50982 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50983 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50984 variables.
50985 (normal_mod_ASFLAGS): Add `-m32'.
50986
50987 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50988 (grub_host_size_t, grub_host_ssize_t): New types.
50989 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
50990 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
50991 `GRUB_HOST_SIZEOF_VOID_P'.
50992
50993 * include/grub/kernel.h (struct grub_module_header): Type of
50994 member offset changed to `grub_host_off_t'. Type of member size
50995 changed to `grub_host_size_t'.
50996 (struct grub_module_info): Type of member offset changed to
50997 `grub_host_off_t'. Type of member size changed to
50998 `grub_host_size_t'.
50999
51000 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51001
51002 Make GRUB's kernel compliant to Multiboot Specification.
51003
51004 * kern/i386/pc/startup.S (multiboot_header): New label.
51005 (multiboot_entry): Likewise.
51006 (multiboot_trampoline): Likewise.
51007
51008 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51009 Increased to 0x4A0.
51010
51011 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51012 put parentheses after a question mark.
51013 [!GRUB_UTIL] (my_mod): New variable.
51014
51015 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51016
51017 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51018
51019 Adds support for the XFS filesystem. Btrees are not supported
51020 yet.
51021
51022 * fs/xfs.c: New file.
51023
51024 * DISTLIST: Added `fs/xfs.c'.
51025
51026 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51027 (grub_probefs_SOURCES): Likewise.
51028 (grub_emu_SOURCES): Likewise.
51029 (pkgdata_MODULES): Add `xfs.mod'.
51030 (xfs_mod_SOURCES): New variable.
51031 (xfs_mod_CFLAGS): Likewise.
51032
51033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51034 (pkgdata_MODULES): Add `xfs.mod'.
51035 (xfs_mod_SOURCES): New variable.
51036 (xfs_mod_CFLAGS): Likewise.
51037
51038 * util/grub-emu.c (main): Call `grub_xfs_init' and
51039 `grub_xfs_fini'.
51040
51041 * include/grub/fs.h (grub_xfs_init): New prototype.
51042 (grub_xfs_fini): Likewise.
51043
51044
51045 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51046
51047 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51048 color modes, allow greater than 16 colors to be configured as
51049 a default palette.
51050
51051 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51052
51053 * normal/completion.c (complete_arguments): Add the qualifier
51054 const into OPTIONS.
51055
51056 From Omniflux <omniflux+lists@omniflux.com>:
51057 * include/grub/terminfo.h: New file.
51058 * include/grub/tparm.h: Likewise.
51059 * include/grub/i386/pc/serial.h: Likewise.
51060 * term/terminfo.c: Likewise.
51061 * term/tparm.c: Likewise.
51062 * term/i386/pc/serial.c: Likewise.
51063 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51064 serial.mod.
51065 (terminfo_mod_SOURCES): New variable.
51066 (terminfo_mod_CFLAGS): Likewise.
51067 (serial_mod_SOURCES): Likewise.
51068 (serial_mod_CFLAGS): Likewise.
51069
51070 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51071
51072 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51073 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51074 and kern/powerpc/ieee1275/cmain.c, respectively.
51075
51076 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51077 * kern/powerpc/ieee1275/crt0.S: ... here.
51078
51079 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51080 * kern/powerpc/ieee1275/cmain.c: ... here.
51081
51082 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51083 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51084 instead of boot/powerpc/ieee1275/crt0.S and
51085 boot/powerpc/ieee1275/cmain.c, respectively.
51086
51087 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51088 sectors. It was not used anyway.
51089
51090 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51091
51092 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51093 `unused parameter' warning.
51094
51095 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51096
51097 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51098 function.
51099 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51100 getcharwidth.
51101
51102 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51103
51104 * include/grub/normal.h (enum grub_completion_type): Added
51105 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51106
51107 * normal/cmdline.c (print_completion): Handle
51108 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51109 * normal/menu_entry.c (store_completion): Likewise.
51110
51111 * normal/completion.c (complete_arguments): New function.
51112 (grub_normal_do_completion): Call `complete_arguments' when the
51113 current words start with a dash.
51114
51115 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51116
51117 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51118 `gzio.mod' instead of `io.mod').
51119
51120 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51121
51122 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51123 (DISTDIRS): Added io and video.
51124 Rewrite the search routine to make an output consistently.
51125
51126 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51127 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51128 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51129 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51130 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51131 util/powerpc/ieee1275/misc.c.
51132
51133 * include/grub/gzio.h: New file.
51134 * io/gzio.c: Likewise.
51135
51136 * kern/file.c (grub_file_close): Call grub_device_close only if
51137 FILE->DEVICE is not NULL.
51138
51139 * include/grub/mm.h [!NULL] (NULL): New macro.
51140
51141 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51142
51143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51144 (pkgdata_MODULES): Added gzio.mod.
51145 (gzio_mod_SOURCES): New variable.
51146 (gzio_mod_CFLAGS): Likewise.
51147
51148 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51149 (pkgdata_MODULES): Added gzio.mod.
51150 (gzio_mod_SOURCES): New variable.
51151 (gzio_mod_CFLAGS): Likewise.
51152
51153 * commands/cat.c: Include grub/gzio.h.
51154 (grub_cmd_cat): Use grub_gzfile_open instead of
51155 grub_file_open.
51156
51157 * commands/cmp.c: Include grub/gzio.h.
51158 (grub_cmd_cmp): Use grub_gzfile_open instead of
51159 grub_file_open.
51160
51161 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51162 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51163 grub_file_open.
51164 (grub_rescue_cmd_module): Likewise.
51165
51166 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51167
51168 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51169 kern/sparc64/ieee1275/init.c because it contains _start.
51170 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51171
51172 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51173
51174 * configure.ac: Add support for sparc64 host with ieee1275
51175 firmware.
51176 * configure: Generated from configure.ac.
51177 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51178 instead of int.
51179 (grub_ofdisk_read): Likewise.
51180 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51181 pointers as (void *) to remove a warning.
51182 (grub_ofdisk_close): Likewise.
51183 (grub_ofdisk_read): Likewise.
51184 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51185 returns, so make it return void to remove a warning.
51186 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51187 Corresponding prototype change.
51188 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51189 values, and cast the pointers as (void *) to remove a warning.
51190 (grub_mm_dump): Likewise.
51191 * conf/sparc64-ieee1275.mk: New file.
51192 * conf/sparc64-ieee1275.rmk: Likewise.
51193 * include/grub/sparc64/setjmp.h: Likewise.
51194 * include/grub/sparc64/types.h: Likewise.
51195 * include/grub/sparc64/ieee1275/console.h: Likewise.
51196 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51197 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51198 * include/grub/sparc64/ieee1275/time.h: Likewise.
51199 * kern/sparc64/cache.c: Likewise.
51200 * kern/sparc64/dl.c: Likewise.
51201 * kern/sparc64/ieee1275/init.c: Likewise.
51202 * kern/sparc64/ieee1275/openfw.c: Likewise.
51203
51204 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51205
51206 * util/console.c (grub_ncurses_putchar): If C is greater than
51207 0x7f, set C to a question mark.
51208 (grub_ncurses_getcharwidth): New function.
51209 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51210 getcharwidth.
51211
51212 * normal/menu.c (print_entry): Made aware of Unicode. First,
51213 convert TITLE to UCS-4, and predict the cursor position by
51214 grub_getcharwidth.
51215
51216 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51217 const to SRC.
51218 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51219
51220 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51221
51222 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51223 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51224 grub_strcat.
51225
51226 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51227 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51228 grub_strcpy and grub_strlen. Take it into account that a space
51229 character is inserted as a delimiter.
51230
51231 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51232
51233 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51234 invalid magic in the error.
51235
51236 * commands/search.c: New file.
51237
51238 * util/grub-emu.c (main): Call grub_search_init and
51239 grub_search_fini.
51240
51241 * kern/rescue.c (grub_rescue_print_disks): Removed.
51242 (grub_rescue_print_devices): New function.
51243 (grub_rescue_cmd_ls): Use grub_device_iterate with
51244 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51245 grub_rescue_print_disks.
51246
51247 * kern/partition.c (grub_partition_iterate): Return the result of
51248 PARTMAP->ITERATE instead of GRUB_ERRNO.
51249
51250 * kern/device.c: Include grub/partition.h.
51251 (grub_device_iterate): New function.
51252
51253 * include/grub/partition.h (grub_partition_iterate): Return int
51254 instead of grub_err_t.
51255
51256 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51257 prototype.
51258 [GRUB_UTIL] (grub_search_fini): Likewise.
51259
51260 * include/grub/device.h (grub_device_iterate): New prototype.
51261
51262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51263 commands/search.c.
51264 (pkgdata_MODULES): Added search.mod.
51265 (search_mod_SOURCES): New variable.
51266 (search_mod_CFLAGS): Likewise.
51267
51268 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51269 (pkgdata_MODULES): Added search.mod.
51270 (search_mod_SOURCES): New variable.
51271 (search_mod_CFLAGS): Likewise.
51272
51273 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51274 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51275 All callers changed.
51276
51277 * DISTLIST: Added commands/search.c.
51278
51279 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51280
51281 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51282 conversion.
51283 (grub_getcharwidth): New function.
51284
51285 * kern/misc.c (grub_utf8_to_ucs4): New function.
51286
51287 * include/grub/term.h (struct grub_term): Added a new member
51288 "getcharwidth".
51289 (grub_getcharwidth): New prototype.
51290
51291 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51292
51293 * term/i386/pc/console.c (map_char): New function. Segregated from
51294 grub_console_putchar.
51295 (grub_console_putchar): Use map_char.
51296 (grub_console_getcharwidth): New function.
51297 (grub_console_term): Specified grub_console_getcharwidth as
51298 getcharwidth.
51299
51300 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51301 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51302
51303 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51304 GRUB_ERRNO.
51305 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51306 on grub_strtoul completely.
51307 (write_char): Declare local variables in the beginning of the
51308 function.
51309 (grub_vesafb_getcharwidth): New function.
51310 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51311 getcharwidth.
51312
51313 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51314
51315 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51316 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51317 commands/i386/pc/vbetest.c.
51318
51319 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51320 call grub_vbe_get_controller_info again, because the returned
51321 information is volatile.
51322 (grub_vbe_set_video_mode): Mostly rewritten.
51323 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51324 grub_vbe_status_t correctly.
51325 (grub_vbe_get_video_mode_info): Likewise.
51326 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51327 several if statements.
51328
51329 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51330 * commands/i386/pc/vbeinfo.c: ... this.
51331
51332 * commands/i386/pc/vbe_test.c: Renamed to ...
51333 * commands/i386/pc/vbetest.c: ... this.
51334
51335 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51336 ...
51337 (grub_cmd_vbeinfo): ... this. Save video modes before
51338 iterating. Skip a video mode, if it is not available, not enough
51339 information is given or it is monochrome. Show the memory
51340 model. Leave the interpretation of MODEVAR to grub_strtoul
51341 completely.
51342 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51343 (GRUB_MOD_FINI): Likewise.
51344
51345 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51346 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51347 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51348 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51349 grub_strtoul completely.
51350 (real2pm): Removed.
51351 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51352 (GRUB_MOD_FINI): Likewise.
51353
51354 * normal/misc.c: Include grub/mm.h.
51355
51356 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51357 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51358 (vbe_list_modes_mod_SOURCES): Removed.
51359 (vbe_list_modes_mod_CFLAGS): Likewise.
51360 (vbe_test_mod_SOURCES): Likewise.
51361 (vbe_test_mod_CFLAGS): Likewise.
51362 (vbeinfo_mod_SOURCES): New variable.
51363 (vbeinfo_mod_CFLAGS): Likewise.
51364 (vbetest_mod_SOURCES): Likewise.
51365 (vbetest_mod_CFLAGS): Likewise.
51366
51367 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51368
51369 * normal/misc.c: New file.
51370
51371 * DISTLIST: Added normal/misc.c.
51372
51373 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51374 DISK to HOOK. Call HOOK with DISK.
51375 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51376 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51377 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51378
51379 * normal/menu_entry.c (struct screen): Added a new member
51380 "completion_shown".
51381 (completion_buffer): New global variable.
51382 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51383 (store_completion): New function.
51384 (complete): Likewise.
51385 (clear_completions): Likewise.
51386 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51387 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51388 a tab, call complete.
51389
51390 * normal/completion.c (disk_dev): Removed.
51391 (print_simple_completion): Likewise.
51392 (print_partition_completion): Likewise.
51393 (print_func): New global variable.
51394 (add_completion): Do not take the arguments WHAT or PRINT any
51395 longer. Added a new argument TYPE. Instead of printing directly,
51396 call PRINT_FUNC if not NULL.
51397 All callers changed.
51398 (complete_device): Use a local variable DEV instead of
51399 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51400 (grub_normal_do_completion): Take a new argument HOOK. Do not
51401 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51402 empty string, return NULL instead.
51403 All callers changed.
51404
51405 * normal/cmdline.c (print_completion): New function.
51406
51407 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51408 to HOOK.
51409 All callers changed.
51410
51411 * kern/disk.c (grub_print_partinfo): Removed.
51412
51413 * include/grub/partition.h (struct grub_partition_map): Add a new
51414 argument DISK into HOOK of ITERATE.
51415 (grub_partition_iterate): Add a new argument DISK to HOOK.
51416
51417 * include/grub/normal.h (enum grub_completion_type): New enum.
51418 (grub_completion_type_t): New type.
51419 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
51420 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
51421 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
51422 (GRUB_COMPLETION_TYPE_FILE): Likewise.
51423 (grub_normal_do_completion): Added a new argument HOOK.
51424 (grub_normal_print_device_info): New prototype.
51425
51426 * include/grub/disk.h (grub_print_partinfo): Removed.
51427
51428 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
51429 (normal_mod_SOURCES): Likewise.
51430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51431 (normal_mod_SOURCES): Likewise.
51432
51433 * commands/ls.c (grub_ls_list_disks): Use
51434 grub_normal_print_device_info instead of grub_print_partinfo. Free
51435 PNAME.
51436 (grub_ls_list_files): Use grub_normal_print_device_info instead of
51437 duplicating the code.
51438
51439 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51440
51441 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
51442 follow GCS more precisely.
51443 * commands/i386/pc/vbe_test.c: Likewise.
51444 * include/grub/i386/pc/vbe.h: Likewise.
51445 * term/i386/pc/vesafb.c: Likewise.
51446 * video/i386/pc/vbe.c: Likewise.
51447
51448 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
51449
51450 * DISTLIST: Added term/i386/pc/vesafb.c
51451 DISTLIST: Added video/i386/pc/vbe.c
51452 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
51453 DISTLIST: Added commands/i386/pc/vbe_test.c.
51454 * commands/i386/pc/vbe_list_modes.c: New file.
51455 * commands/i386/pc/vbe_test.c: Likewise.
51456 * term/i386/pc/vesafb.c: Likewise.
51457 * video/i386/pc/vbe.c: Likewise.
51458 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
51459 (grub_vbe_probe) Added prototype.
51460 (grub_vbe_set_video_mode) Likewise.
51461 (grub_vbe_get_video_mode) Likewise.
51462 (grub_vbe_get_video_mode_info) Likewise.
51463 (grub_vbe_set_pixel_rgb) Likewise.
51464 (grub_vbe_set_pixel_index) Likewise.
51465 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
51466 (pkgdata_MODULES): Added vesafb.mod.
51467 (pkgdata_MODULES): Added vbe_list_modes.mod.
51468 (pkgdata_MODULES): Added vbe_test.mod.
51469 (vbe_mod_SOURCES): Added.
51470 (vbe_mod_CFLAGS): Likewise.
51471 (vesafb_mod_SOURCES): Likewise.
51472 (vesafb_mod_CFLAGS): Likewise.
51473 (vbe_list_modes_mod_SOURCES): Likewise.
51474 (vbe_list_modes_mod_CFLAGS): Likewise.
51475 (vbe_test_mod_SOURCES): Likewise.
51476 (vbe_test_mod_CFLAGS): Likewise.
51477
51478 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
51479
51480 * normal/command.c (grub_command_execute): If INTERACTIVE is
51481 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
51482 CMDLINE. Disable the pager if INTERACTIVE is true.
51483 All callers are changed.
51484
51485 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
51486 before reading a config file.
51487 * normal/main.c (read_config_file): Even if a command is not
51488 found, register it if it is within an entry.
51489
51490 * util/grub-emu.c: Include sys/types.h and unistd.h.
51491 (options): Added --hold.
51492 (struct arguments): Added a new member "hold".
51493 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
51494 missing.
51495 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
51496 cleared by a debugger, if it is not zero.
51497
51498 * include/grub/normal.h (grub_command_execute): Add an argument
51499 INTERACTIVE.
51500
51501 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
51502
51503 * DISTLIST: Added include/grub/i386/pc/vbe.h.
51504
51505 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
51506
51507 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
51508 program with another one, because the old one didn't detect a bug
51509 in gcc-3.4. Always use regparm 2, because the new test is still
51510 not enough for gcc-4.0. Someone must investigate a simple test
51511 case which detects a bug in gcc-4.0.
51512
51513 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
51514
51515 * DISTLIST: Added normal/completion.c.
51516
51517 * normal/completion.c: New file.
51518
51519 * term/i386/pc/console.c (grub_console_getwh): New function.
51520 (grub_console_term): Assign grub_console_getwh to getwh.
51521
51522 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
51523 function is defined in normal/completion.c as
51524 grub_normal_do_completion.
51525 (grub_cmdline_get): Use grub_normal_do_completion instead of
51526 grub_tab_complete.
51527
51528 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
51529 returns non-zero, otherwise return 0.
51530 (grub_partition_iterate): First, probe the partition map. Then,
51531 call ITERATE only for this partition map.
51532
51533 * kern/misc.c (grub_strncmp): Rewritten.
51534
51535 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
51536 returns non-zero. Otherwise return 0.
51537
51538 * include/grub/partition.h (grub_partition_map_iterate): Return
51539 int instead of void.
51540
51541 * include/grub/normal.h (grub_normal_do_completion): New prototype.
51542
51543 * include/grub/misc.h (grub_strncmp): Change the type of N to
51544 grub_size_t.
51545
51546 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
51547 of void.
51548
51549 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
51550 unsigned explicitly before comparing it with I.
51551
51552 * kern/main.c (grub_env_write_root): Add the attribute unused into
51553 VAR.
51554
51555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51556 normal/completion.c.
51557 (normal_mod_SOURCES): Likewise.
51558 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
51559 (normal_mod_SOURCES): Likewise.
51560
51561 * normal/command.c (grub_iterate_commands): If ITERATE returns
51562 non-zero, return one immediately.
51563
51564 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
51565
51566 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
51567 * kern/i386/pc/startup.S: Updated Global Descriptor table's
51568 descriptions.
51569 (grub_vbe_get_controller_info): New function.
51570 (grub_vbe_get_mode_info): Likewise.
51571 (grub_vbe_set_mode): Likewise.
51572 (grub_vbe_get_mode): Likewise.
51573 (grub_vbe_set_memory_window): Likewise.
51574 (grub_vbe_get_memory_window): Likewise.
51575 (grub_vbe_set_scanline_length): Likewise.
51576 (grub_vbe_get_scanline_length): Likewise.
51577 (grub_vbe_set_display_start): Likewise.
51578 (grub_vbe_get_display_start): Likewise.
51579 (grub_vbe_set_palette_data): Likewise.
51580 * include/grub/i386/pc/vbe.h: New file.
51581
51582 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51583
51584 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51585 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
51586 * DISTLIST: Likewise.
51587 * kern/ieee1275/of.c: Moved to ...
51588 * kern/ieee1275/ieee1275.c: ... here.
51589
51590 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51591
51592 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
51593 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
51594 Pass 0 as `end' parameter to grub_strtoul().
51595
51596 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
51597
51598 * include/grub/powerpc/ieee1275/console.h: Do not include
51599 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
51600 ifdef.
51601 (grub_console_cur_color): Remove i386-specific prototype.
51602 (grub_console_real_putchar): Likewise.
51603 (grub_console_checkkey): Likewise.
51604 (grub_console_getkey): Likewise.
51605 (grub_console_getxy): Likewise.
51606 (grub_console_gotoxy): Likewise.
51607 (grub_console_cls): Likewise.
51608 (grub_console_setcursor): Likewise.
51609 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
51610 Include <grub/machine/console.h>.
51611 * term/ieee1275/ofconsole.c: Likewise.
51612
51613 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
51614
51615 * Makefile.in (LIBLZO): New variable.
51616
51617 * configure.ac: Check for LZO version 2.
51618
51619 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
51620 lzo/lzo1x.h instead of lzo1x.h.
51621
51622 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
51623 of -llzo.
51624
51625 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
51626 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
51627
51628 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
51629 copying the data from PARTITION to P.
51630
51631 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51632
51633 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
51634 negative, unload the module.
51635
51636 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
51637 map is "pc_partition_map" but not "pc".
51638 (usage): Fix the description. The options are --boot-image and
51639 --core-image but not --boot-file or --core-file.
51640 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
51641 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
51642 DEFAULT_DIRECTORY.
51643
51644 * util/i386/pc/grub-install.in: Do not specify --boot-file or
51645 --core-file. Specify INSTALL_DEVICE as an argument.
51646
51647 * util/console.c: Include config.h.
51648 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
51649 [HAVE_NCURSES_H]: Include ncurses.h.
51650 [HAVE_CURSES_H]: Include curses.h.
51651 [!A_NORMAL] (A_NORMAL): Defined as zero.
51652 [!A_STANDOUT] (A_STANDOUT): Likewise.
51653
51654 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
51655 -lncurses.
51656 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
51657
51658 * configure.ac: Check for curses libraries and headers.
51659
51660 * Makefile.in (LIBCURSES): New variable.
51661
51662 * genmk.rb (Script::rule): Set the executable bits.
51663
51664 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
51665 name of the PC partition map is "pc_partition_map" but not "pc".
51666
51667 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51668
51669 * util/i386/pc/grub-install.in (grub_probefs): New variable.
51670 (modules): Likewise.
51671 (usage): Added descriptions for --modules and --grub-probefs.
51672 Handle --modules and --grub-probefs. Save the arguments in MODULES
51673 and GRUB_PROBEFS, respectively.
51674 Auto-detect a filesystem module against GRUBDIR. If the result is
51675 empty and modules are not specified explicitly, abort the
51676 installation. Add the result to MODULES.
51677
51678 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
51679 disk/powerpc/ieee1275/ofdisk.c,
51680 include/grub/powerpc/ieee1275/init.h and
51681 term/powerpc/ieee1275/ofconsole.c.
51682 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
51683 term/ieee1275/ofconsole.c.
51684
51685 * include/grub/powerpc/ieee1275/console.h: Resurrected.
51686
51687 * COPYING: Upgraded to the latest version. Only the address of the
51688 FSF office has changed.
51689
51690 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
51691
51692 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
51693 kern/ieee1275.c with kern/ieee1275/of.c.
51694
51695 * kern/ieee1275.c: Moved to ...
51696 * kern/ieee1275/of.c: ... here.
51697
51698 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
51699
51700 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
51701 readability.
51702
51703 * config.guess: Updated to the latest version from gnulib.
51704 * config.sub: Likewise.
51705 * install.sh: Likewise.
51706 * mkinstalldirs: Likewise.
51707
51708 * include/grub/console.h: Removed. This file is arch-specific. Do
51709 not put this in include/grub.
51710
51711 * include/grub/i386/pc/console.h: Resurrected.
51712
51713 * util/console.c: Include grub/machine/console.h instead of
51714 grub/console.h.
51715 * util/grub-emu.c: Likewise.
51716
51717 2005-08-04 Marco Gerards <metgerards@student.han.nl>
51718
51719 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
51720 hardcoded value.
51721
51722 From Vincent Pelletier <subdino2004@yahoo.fr>
51723 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
51724 Redefined to use grub_getwh.
51725 (grub_term): New member named getwh.
51726 (grub_getwh): New prototype.
51727 * kern/term.c (grub_getwh): New function.
51728 * term/i386/pc/console.c (grub_console_getwh): New function.
51729 (grub_console_term): New member `getwh'.
51730 * term/i386/pc/vga.c (grub_vga_getwh): New function.
51731 (grub_vga_term): New member `getwh'.
51732 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
51733 grub_ssize_t.
51734 (grub_ofconsole_getw): New function.
51735 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
51736 (grub_ofconsole_term): New field named getwh and new initial
51737 value.
51738
51739 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
51740
51741 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
51742 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
51743 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
51744 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
51745 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
51746 of <grub/machine/ieee1275.h>.
51747 * commands/ieee1275/reboot.c: Likewise.
51748 * boot/powerpc/ieee1275/ieee1275.c: Move ...
51749 * kern/ieee1275.c: ... to here. All users updated. Change all
51750 parameter structs to use new type `grub_ieee1275_cell_t'.
51751 * term/powerpc/ieee1275/ofconsole.c: Move ...
51752 * term/ieee1275/ofconsole.c: ... to here. All users updated.
51753 * disk/powerpc/ieee1275/ofdisk.c: Move ...
51754 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
51755 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
51756 to return int.
51757 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
51758 Remove unused prototypes. All users updated.
51759 * include/grub/powerpc/ieee1275/console.h: Removed.
51760 * include/grub/powerpc/ieee1275/ieee1275.h: Define
51761 `grub_ieee1275_cell_t'.
51762 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
51763 Cast comparisons with -1 to the correct type.
51764 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
51765 type to match `grub_ieee1275_entry_fn'.
51766
51767 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
51768
51769 * DISTLIST: Added util/i386/pc/grub-probefs.c.
51770
51771 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
51772 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
51773 partmap/sun.c.
51774 (grub_probefs_SOURCES): New variable.
51775
51776 * util/i386/pc/grub-probefs.c: New file.
51777
51778 * util/i386/pc/grub-setup.c (main): Call
51779 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51780 grub_hfs_init and grub_jfs_init to initialize the system. Call
51781 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51782 grub_pc_partition_map_fini to finish the system.
51783
51784 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51785
51786 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51787 function.
51788 (grub_multiboot_load_elf32): Likewise.
51789 (grub_multiboot_is_elf64): Likewise.
51790 (grub_multiboot_load_elf64): Likewise.
51791 (grub_multiboot_load_elf): Likewise.
51792 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51793 an ELF32 or ELF64 file.
51794 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51795
51796 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51797 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51798 NULL before calling FS->LABEL.
51799 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51800 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51801 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51802 before calling FS->LABEL.
51803
51804 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51805
51806 * util/i386/pc/grub-install.in (datadir): New variable.
51807 (libdir): Removed.
51808 (pkgdatadir): New variable.
51809 (pkglibdir): Removed.
51810
51811 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51812
51813 * DISTLIST: Added util/i386/pc/grub-install.in.
51814
51815 * util/i386/pc/grub-install.in: New file.
51816
51817 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51818 (grub_install_SOURCES): Likewise.
51819
51820 * genmk.rb: Added support for scripts.
51821 (Script): New class.
51822 (scripts): New variable.
51823
51824 * Makefile.in (install-local): Install sbin_SCRIPTS by
51825 INSTALL_SCRIPT.
51826 (uninstall): Remove sbin_SCRIPTS.
51827
51828 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51829 device, try to get a GRUB device by
51830 grub_util_biosdisk_get_grub_dev.
51831 Free DEST_DEV.
51832
51833 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51834 description for --device-map.
51835
51836 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51837
51838 Change the semantics of variable hooks. They now return strings
51839 instead of error values.
51840
51841 * util/i386/pc/grub-setup.c: Include grub/env.h.
51842 (setup): Use grub_device_set_root instead of grub_env_set.
51843
51844 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51845 grub_env_get instead of grub_device_set_root and
51846 grub_device_get_root, respectively.
51847
51848 * kern/main.c (grub_env_write_root): New function.
51849 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51850 grub_env_set instead of grub_device_set_root.
51851
51852 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51853 many variables.
51854 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51855 rather than calling ENV->WRITE_HOOK afterwards.
51856 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51857 passing a pointer of a pointer.
51858 (grub_register_variable_hook): Change the types of "read_hook" and
51859 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51860 respectively.
51861 Allocate the default empty string on the heap, because this string
51862 may be freed later.
51863
51864 * kern/device.c: Include grub/env.h.
51865 (grub_device_set_root): Removed.
51866 (grub_device_get_root): Likewise.
51867 (grub_device_open): Use grub_env_get instead of
51868 grub_device_get_root.
51869
51870 * include/grub/env.h (grub_env_read_hook_t): New type.
51871 (grub_env_write_hook_t): Likewise.
51872 (grub_env_var): Change the types of "read_hook" and "write_hook"
51873 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51874 (grub_register_variable_hook): Likewise.
51875
51876 * include/grub/device.h (grub_device_set_root): Removed.
51877 (grub_device_set_root): Likewise.
51878
51879 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51880 make sure that DIRNAME terminates with '/', so that
51881 grub_fat_find_dir will fail if PATH is not a directory.
51882
51883 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51884 from DIRNAME.
51885 Use the qualifier auto for print_files and print_files_long.
51886 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51887 as a regular file.
51888 Put a newline only if there is no error.
51889 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51890 used.
51891
51892 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51893
51894 * kern/partition.c (grub_partition_probe): Initialize PART to
51895 NULL. Otherwise, when no partition map is registered, this returns
51896 a garbage.
51897
51898 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51899
51900 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51901 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51902 valid.
51903
51904 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51905
51906 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51907 information on each device, if it does not have partitions. Print
51908 "Device" instead of "Disk", because this function is not specific
51909 to disk devices.
51910
51911 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51912 static to ensure that it is put on the memory rather than a
51913 register.
51914
51915 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51916
51917 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51918 (grub_cat_init): Likewise.
51919 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51920 (options): Likewise.
51921 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51922 (grub_configfile_init): Likewise.
51923 * font/manager.c (GRUB_MOD_INIT): Likewise.
51924 * commands/help.c (GRUB_MOD_INIT): Likewise.
51925 (grub_help_init): Likewise.
51926 * normal/command.c (grub_command_init): Likewise.
51927 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51928 * disk/loopback.c (grub_loop_init): Likewise.
51929 (GRUB_MOD_INIT): Likewise.
51930 * commands/ls.c (grub_ls_init): Likewise.
51931 (GRUB_MOD_INIT): Likewise.
51932 (options): Likewise.
51933 * commands/boot.c (grub_boot_init): Likewise.
51934 (GRUB_MOD_INIT): Likewise.
51935 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51936 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51937 (GRUB_MOD_INIT): Likewise.
51938 * commands/cmp.c (grub_cmp_init): Likewise.
51939 (GRUB_MOD_INIT): Likewise.
51940
51941 * normal/arg.c: Use <> instead of "" to include header files.
51942 (SHORT_ARG_HELP): New macro.
51943 (SHORT_ARG_USAGE): Likewise.
51944 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51945 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51946 descriptions.
51947 (find_short): Check if C is 'h' or 'u' explicitly.
51948 (grub_arg_show_help): Use space characters instead of tabs. Treat
51949 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51950 are shown with --help and --usage only if they are not used for
51951 the command itself.
51952 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51953 'h' and 'u'.
51954
51955 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51956 const into "longarg". Change the type of "shortarg" to int.
51957
51958 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51959
51960 * boot/i386/pc/boot.S (boot_drive_check): New label.
51961
51962 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51963 macro.
51964
51965 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51966 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51967
51968 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51969
51970 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51971 When turning off Gate A20, skip the check and return immediately,
51972 because this is not fatal usually.
51973
51974 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
51975
51976 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51977 be 0x7C00 instead of 0x8000.
51978
51979 * boot/i386/pc/pxeboot.S: Rewritten.
51980
51981 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51982 EXT_C.
51983 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51984 result.
51985
51986 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51987
51988 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51989 robustness. This routine now supports a BIOS call and System
51990 Control Port A to modify the gate A20.
51991
51992 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51993 Increased to 0x440.
51994
51995 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51996
51997 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51998 device path and resulting ihandle.
51999 (grub_ofdisk_close): dprintf the ihandle being closed.
52000 (grub_ofdisk_read): dprintf function parameters.
52001 * kern/mm.c (grub_mm_init_region): Likewise.
52002 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52003 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52004 size, and boot arguments.
52005 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52006 before loading into memory.
52007 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52008 before loading into memory.
52009
52010 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52011
52012 * kern/mm.c: Added much documentation.
52013 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52014 8, set to 5 instead of 8.
52015
52016 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52017
52018 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52019
52020 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52021 (grub_mkdevicemap_SOURCES): New variable.
52022
52023 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52024 lib/device.c of GRUB Legacy.
52025
52026 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52027
52028 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52029 instead of PATH is NULL.
52030
52031 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52032
52033 * commands/cmp.c (BUFFER_SIZE): New macro.
52034 (grub_cmd_cmp): Close the right file at the right time. Compare
52035 only data just read. Don't report files of different size as
52036 identical. Dynamically allocate buffers. Move variable
52037 declarations at the beginning of function.
52038
52039 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52040
52041 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52042 reverse.
52043
52044 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52045
52046 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52047 when backspace is pressed at beginning of line.
52048
52049 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52050
52051 * DISTLIST: Added genfslist.sh.
52052
52053 * normal/main.c (fs_module_list): New variable.
52054 (autoload_fs_module): New function.
52055 (read_fs_list): Likewise.
52056 (grub_normal_execute): Call read_fs_list.
52057
52058 * kern/fs.c (grub_fs_autoload_hook): New variable.
52059 (grub_fs_probe): Added support for auto-loading.
52060
52061 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52062 (grub_fs_module_list_t): New type.
52063
52064 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52065 (grub_fs_autoload_hook): New prototype.
52066
52067 * genfslist.sh: New file.
52068
52069 * genmk.rb: Added a rule to generate a filesystem list.
52070
52071 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52072
52073 * configure.ac: Fix the test for cross-compiling.
52074
52075 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52076 define GRUB_UTIL anymore.
52077
52078 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52079 so this function works on other systems than just big endian.
52080 (load_modules): Likewise.
52081 (add_segments): Likewise.
52082
52083 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52084
52085 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52086 contains `l' modifier, get a long from va_arg().
52087
52088 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52089
52090 * kern/mm.c (grub_free): If the next free block which is being
52091 merged is the first free block, set the first block to the block
52092 being freed.
52093 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52094
52095 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52096
52097 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52098 `grub_ieee1275_chosen'.
52099
52100 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52101
52102 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52103 (grub_ieee1275_chosen): New variable.
52104 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52105 `chosen'.
52106 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52107 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52108 Rename first argument to `phandle' for consistency.
52109 (grub_ieee1275_get_property_length): Likewise.
52110 (grub_ieee1275_next_property): Likewise. Change type of first argument
52111 to grub_ieee1275_phandle_t.
52112 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52113 Move export next to declaration.
52114 (grub_ieee1275_chosen): New variable.
52115 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52116 Correct cosmetic typo.
52117 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52118 `grub_ieee1275_chosen'.
52119 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52120 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52121 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52122 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52123 `grub_ieee1275_chosen'.
52124
52125 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52126
52127 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52128 /chosen/bootargs.
52129 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52130 /chosen/bootargs as "variable=value" pairs.
52131
52132 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52133
52134 * include/grub/misc.h (grub_dprintf): New macro.
52135 (grub_real_dprintf): New prototype.
52136 (grub_strword): Likewise.
52137 (grub_iswordseparator): Likewise.
52138 * kern/misc.c (grub_real_dprintf): New function.
52139 (grub_strword): Likewise.
52140 (grub_iswordseparator): Likewise.
52141
52142 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52143
52144 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52145 (roundup): Remove macro.
52146 (grub_ieee1275_flags): Make static.
52147 (grub_ieee1275_realmode): Remove.
52148 (grub_ieee1275_test_flag): New function.
52149 (grub_ieee1275_set_flag): Likewise.
52150 (find_options): Rename to `grub_ieee1275_find_options'; update
52151 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52152 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52153 (cmain): New prototype.
52154 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52155 `grub_ieee1275_flags' directly.
52156 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52157 machine/biosdisk.h.
52158 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52159 Don't include grub/machine/init.h.
52160 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52161 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52162 Remove prototype.
52163 (grub_ieee1275_realmode): Likewise.
52164 (grub_ieee1275_flag): New enum.
52165 (grub_ieee1275_test_flag): New prototype.
52166 (grub_ieee1275_set_flag): New prototype.
52167 * include/grub/powerpc/ieee1275/init.h: Remove file.
52168 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52169 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52170 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52171 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52172 comment.
52173 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52174 `grub_ieee1275_test_flag'.
52175 (grub_ieee1275_encode_devname): Likewise.
52176
52177 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52178
52179 * include/grub/powerpc/ieee1275/ieee1275.h
52180 (grub_ieee1275_encode_devname): New prototype.
52181 (grub_ieee1275_get_filename): Likewise.
52182 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52183 function.
52184 (grub_set_prefix): Likewise.
52185 (grub_machine_init): Call grub_set_prefix.
52186 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52187 (grub_parse_type): New enum.
52188 (grub_ieee1275_get_devargs): New function.
52189 (grub_ieee1275_get_devname): Likewise.
52190 (grub_ieee1275_parse_args): Likewise.
52191 (grub_ieee1275_get_filename): Likewise.
52192 (grub_ieee1275_encode_devname): Likewise.
52193
52194 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52195
52196 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52197 `grub_loader_unset'.
52198
52199 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52200
52201 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52202 instead of grub_ieee1275_interpret.
52203 (grub_halt_init): New function.
52204 (grub_halt_fini): Likewise.
52205 (GRUB_MOD_INIT): Correct message grammar.
52206 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52207 instead of grub_ieee1275_interpret.
52208 (grub_reboot_init): New function.
52209 (grub_reboot_fini): Likewise.
52210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52211 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52212 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52213 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52214 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52215 function.
52216 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52217 Add prototype.
52218 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52219 prototype.
52220 (grub_halt): Likewise.
52221 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52222 (cmain): Remove __attribute__((unused)).
52223 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52224 (grub_heap_len): Likewise.
52225 (grub_machine_fini): New function.
52226 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52227 (grub_halt): Likewise.
52228 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52229 function.
52230 * util/powerpc/ieee1275/misc.c: New file.
52231
52232 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52233
52234 * DISTLIST: New file.
52235 * gendistlist.sh: Likewise.
52236
52237 * Makefile.in (COMMON_DISTFILES): Removed.
52238 (BOOT_DISTFILES): Likewise.
52239 (CONF_DISTFILES): Likewise.
52240 (DISK_DISTFILES): Likewise.
52241 (FS_DISTFILES): Likewise.
52242 (INCLUDE_DISTFILES): Likewise.
52243 (KERN_DISTFILES): Likewise.
52244 (LOADER_DISTFILES): Likewise.
52245 (TERM_DISTFILES): Likewise.
52246 (UTIL_DISTFILES): Likewise.
52247 (DISTFILES): Likewise.
52248 (uninstall): Uninstall files in $(pkgdata_DATA).
52249 (DISTLIST): New target.
52250 (distdir): Use the contents of the file DISTLIST to get a list of
52251 distributed files.
52252
52253 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52254
52255 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52256 descriptor. This is ported from GRUB Legacy.
52257
52258 * gencmdlist.sh: Added an extra semicolon to make it work with
52259 old sed versions. Reported by Robert Bihlmeyer
52260 <robbe@orcus.priv.at>.
52261
52262 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52263
52264 Automatic loading of commands is supported.
52265
52266 * normal/main.c (read_command_list): New function.
52267 (grub_normal_execute): Call read_command_list.
52268
52269 * normal/command.c (grub_register_command): Return zero or CMD.
52270 Allocate CMD->NAME from the heap.
52271 Initialize CMD->MODULE_NAME to zero.
52272 Find the same name as well. If the same command is found and it is
52273 a dummy command, overwrite members. If it is not a dummy command,
52274 return zero.
52275 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52276 (grub_command_find): If a dummy command is found, load a module
52277 and retry to find a command only once.
52278
52279 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52280 make sure that each command is loaded.
52281
52282 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52283 macro.
52284 (struct grub_command): Remove const from the member `name'.
52285 Add a new member `module_name'.
52286 (grub_register_command): Return grub_command_t.
52287
52288 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52289 sure that each command is loaded.
52290
52291 * genmk.rb (PModule::rule): Specify a module name without the
52292 suffix ".mod" to gencmdlist.sh.
52293
52294 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52295
52296 * gencmdlist.sh: New file.
52297
52298 * genmk.rb (PModule::rule): Generate a rule for a command list.
52299 Clean command.lst.
52300 Generate command.lst from $(COMMANDFILES).
52301
52302 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52303 (DATA): Added $(pkgdata_DATA).
52304 (install-local): Install files in $(pkgdata_DATA).
52305
52306 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52307
52308 * term/i386/pc/vga.c (debug_command): Removed.
52309 (GRUB_MOD_INIT): Do not register the command "debug".
52310
52311 From Hollis Blanchard:
52312 * commands/configfile.c: New file.
52313 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52314 commands/configfile.c.
52315 (pkgdata_MODULES): Added configfile.mod.
52316 (configfile_mod_SOURCES): New variable.
52317 (configfile_mod_CFLAGS): Likewise.
52318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52319 commands/configfile.c.
52320 (pkgdata_MODULES): Added configfile.mod.
52321 (configfile_mod_SOURCES): New variable.
52322 (configfile_mod_CFLAGS): Likewise.
52323 * util/grub-emu.c (main): Call grub_configfile_init and
52324 grub_configfile_fini.
52325 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52326 prototype.
52327 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52328
52329 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52330
52331 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52332 address.
52333
52334 * commands/help.c (grub_cmd_help): Do not print newlines after
52335 the last command in print_command_help.
52336
52337 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52338
52339 * commands/default.h: New file.
52340 * commands/timeout.h: Likewise.
52341 * normal/context.c: Likewise.
52342
52343 * util/misc.c: Do not include sys/times.h.
52344 Include sys/time.h and grub/machine/time.h.
52345 (grub_get_rtc): Rewritten with gettimeofday.
52346
52347 * util/grub-emu.c (main): Call grub_default_init and
52348 grub_timeout_init before grub_normal_init, and call
52349 grub_timeout_fini and grub_default_fini after grub_main.
52350
52351 * util/console.c (grub_ncurses_checkkey): Return the read
52352 character or -1.
52353
52354 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52355 timeouts.
52356
52357 * normal/main.c (read_config_file): Push MENU. If this fails,
52358 print an error and wait for a user input.
52359 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52360 If a menu is empty or an error occurs, pop MENU.
52361 (grub_normal_execute): Pop and free MENU after grub_menu_run
52362 returns.
52363
52364 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52365
52366 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52367 include time.h.
52368 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52369 without GRUB_UTIL.
52370 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52371 time.h.
52372 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52373 without GRUB_UTIL.
52374
52375 * include/grub/normal.h (struct grub_menu_list): New struct.
52376 (grub_menu_list_t): New type.
52377 (struct grub_context): New struct.
52378 (grub_context_t): New type.
52379 (grub_register_command): Got rid of EXPORT_FUNC.
52380 (grub_unregister_command): Likewise.
52381 (grub_context_get): New prototype.
52382 (grub_context_get_current_menu): Likewise.
52383 (grub_context_push_menu): Likewise.
52384 (grub_context_pop_menu): Likewise.
52385 [GRUB_UTIL] (grub_default_init): Likewise.
52386 [GRUB_UTIL] (grub_default_fini): Likewise.
52387 [GRUB_UTIL] (grub_timeout_init): Likewise.
52388 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52389
52390 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52391 commands/timeout.c and normal/context.c.
52392 (pkgdata_MODULES): Added default.mod and timeout.mod.
52393 (normal_mod_SOURCES): Added normal/context.c.
52394 (default_mod_SOURCES): New variable.
52395 (default_mod_CFLAGS): Likewise.
52396 (timeout_mod_SOURCES): Likewise.
52397 (timeout_mod_CFLAGS): Likewise.
52398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52399 conf/i386-pc.rmk.
52400 (pkgdata_MODULES): Added default.mod and timeout.mod.
52401 (normal_mod_SOURCES): Added normal/context.c.
52402 (default_mod_SOURCES): New variable.
52403 (default_mod_CFLAGS): Likewise.
52404 (timeout_mod_SOURCES): Likewise.
52405 (timeout_mod_CFLAGS): Likewise.
52406
52407 * Makefile.in (all-local): Added $(MKFILES).
52408
52409 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
52410
52411 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
52412 (grub_emu_SOURCES): Likewise.
52413 (pkgdata_MODULES): Add `sun.mod'.
52414 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52416 `partmap/sun.c'.
52417 (pkgdata_MODULES): Add `sun.mod'.
52418 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
52419 * include/grub/partition.h (grub_sun_partition_map_init): New
52420 prototype.
52421 (grub_sun_partition_map_fini): Likewise.
52422 * partmap/sun.c: New file.
52423 * util/grub-emu.c (main): Initialize and de-initialize the sun
52424 partitionmap support.
52425
52426 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
52427
52428 This implements an Emacs-like menu entry editor.
52429
52430 * normal/menu_entry.c: New file.
52431
52432 * util/console.c (grub_ncurses_putchar): Translate some Unicode
52433 characters to ASCII.
52434 (saved_char): New variable.
52435 (grub_ncurses_checkkey): Rewritten completely.
52436 (grub_ncurses_getkey): Likewise.
52437 (grub_ncurses_init): Call raw instead of cbreak.
52438
52439 * normal/menu.c (print_entry): Do not put a space.
52440 (init_page): Renamed to ...
52441 (grub_menu_init_page): ... this. All callers changed.
52442 (edit_menu_entry): Removed.
52443 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
52444
52445 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
52446
52447 * kern/misc.c (grub_vprintf): Call grub_refresh.
52448
52449 * normal/menu.c (DISP_LEFT): Renamed to ...
52450 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
52451 * normal/menu.c (DISP_UP): Renamed to ...
52452 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
52453 * normal/menu.c (DISP_RIGHT): Renamed to ...
52454 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
52455 * normal/menu.c (DISP_DOWN): Renamed to ...
52456 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
52457 * normal/menu.c (DISP_HLINE): Renamed to ...
52458 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
52459 * normal/menu.c (DISP_VLINE): Renamed to ...
52460 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
52461 * normal/menu.c (DISP_UL): Renamed to ...
52462 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
52463 * normal/menu.c (DISP_UR): Renamed to ...
52464 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
52465 * normal/menu.c (DISP_LL): Renamed to ...
52466 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
52467 * normal/menu.c (DISP_LR): Renamed to ...
52468 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
52469 * normal/menu.c (TERM_WIDTH): Renamed to ...
52470 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
52471 * normal/menu.c (TERM_HEIGHT): Renamed to ...
52472 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
52473 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
52474 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
52475 * normal/menu.c (TERM_MARGIN): Renamed to ...
52476 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
52477 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
52478 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
52479 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
52480 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
52481 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
52482 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
52483 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
52484 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
52485 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
52486 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
52487 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
52488 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
52489 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
52490 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
52491 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
52492 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
52493 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
52494 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
52495 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
52496 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
52497 All callers changed.
52498
52499 * include/grub/normal.h: New prototype.
52500
52501 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52502 normal/menu_entry.c.
52503 (normal_mod_SOURCES): Likewise.
52504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52505 (normal_mod_SOURCES): Likewise.
52506
52507 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
52508
52509 * include/grub/normal.h (grub_halt_init): New prototype.
52510 (grub_halt_fini): Likewise.
52511 (grub_reboot_init): Likewise.
52512 (grub_reboot_fini): Likewise.
52513
52514 * util/grub-emu.c: Include signal.h.
52515 (main_env): New global variable.
52516 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
52517 catch C-c.
52518 (grub_machine_fini): New function.
52519 (main): Call grub_halt_init and grub_reboot_init before
52520 grub_main, and grub_reboot_fini and grub_halt_fini after it.
52521 Call setjmp with MAIN_ENV to go back afterwards.
52522 Call grub_machine_fini right before return.
52523
52524 * include/grub/util/misc.h: Include setjmp.h.
52525 (main_env): New prototype.
52526
52527 * include/grub/kernel.h (grub_machine_fini): New prototype.
52528 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
52529 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
52530
52531 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
52532 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
52533 * term/i386/pc/console.c (grub_console_fini): Likewise.
52534
52535 * util/i386/pc/misc.c: New file.
52536
52537 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52538 util/i386/pc/misc.c, commands/i386/pc/halt.c and
52539 commands/i386/pc/reboot.c.
52540
52541 2005-02-14 Guillem Jover <guillem@hadrons.org>
52542
52543 * include/grub/dl.h (grub_dl_check_header): New prototype.
52544 (grub_arch_dl_check_header): Change return type to grub_err_t,
52545 remove size parameter and export function. Update all callers.
52546 * kern/dl.c (grub_dl_check_header): New function.
52547 (grub_dl_load_core): Use `grub_dl_check_header' instead of
52548 `grub_arch_dl_check_header'. Check ELF type. Check if sections
52549 are inside the core.
52550 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
52551 independent ELF header checks.
52552 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52553 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
52554 `grub_dl_check_header' instead of explicit checks. Check for the
52555 ELF type.
52556 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
52557 `grub_dl_check_header' instead of explicit checks. Remove arch
52558 specific ELF header checks.
52559
52560 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
52561 argument SIZE.
52562
52563 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
52564
52565 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
52566 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
52567
52568 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
52569
52570 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
52571 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
52572 (part_map_iterate): Clear `grub_errno' and return 0 if
52573 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
52574 * partmap/amiga.c (amiga_partition_map_iterate): Return
52575 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
52576 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52577
52578 2005-02-01 Guillem Jover <guillem@hadrons.org>
52579
52580 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
52581 help info.
52582
52583 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52584
52585 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
52586 Removed prototype.
52587 (grub_rescue_cmd_linux): New prototype.
52588 (grub_rescue_cmd_initrd): Likewise.
52589 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
52590 `bi_rec'.
52591 (grub_linux_release_mem): Release the memory for the initrd.
52592 (grub_load_linux): Renamed from this...
52593 (grub_rescue_cmd_linux): ...To this. Changed all callers.
52594 Changed `entry' not to be static. Loop over memory regions to
52595 find another one when the default fails.
52596 (grub_rescue_cmd_initrd): New function.
52597 (grub_linux_init): Remove function.
52598 (grub_linux_fini): Likewise.
52599 (GRUB_MOD_INIT): Register `initrd'.
52600 (GRUB_MOD_FINI): Unregister `initrd'.
52601 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
52602 Function removed.
52603 (grub_linux_normal_fini): Likewise.
52604 (GRUB_MOD_INIT): Register `initrd'.
52605 (GRUB_MOD_FINI): Unregister `initrd'.
52606
52607 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52608
52609 * commands/help.c: New file.
52610 * normal/arg.c (show_help): Renamed to...
52611 (grub_arg_show_help): ... this.
52612 * commands/i386/pc/halt.c: New file.
52613 * commands/i386/pc/reboot.c: Likewise.
52614 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
52615 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
52616 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
52617 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
52618 variables.
52619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52620 `commands/help.c'.
52621 (pkgdata_MODULES): Add `help.mod'.
52622 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
52623 * grub/i386/pc/init.h (grub_reboot): New prototype.
52624 (grub_halt): Likewise.
52625 * include/grub/normal.h (grub_arg_show_help): New prototype.
52626 (grub_help_init): Likewise.
52627 (grub_help_fini): Likewise.
52628 * util/grub-emu.c (main): Initialize and deinitialize the help
52629 command.
52630
52631 * normal/cmdline.c (grub_cmdline_get): Doc fix.
52632
52633 * normal/command.c (grub_command_init): Fixed the description of
52634 the `set' and `unset' commands.
52635
52636 2005-01-31 Marco Gerards <metgerards@student.han.nl>
52637
52638 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
52639 function.
52640 * commands/ieee1275/halt.c: New file.
52641 * commands/ieee1275/reboot.c: Likewise.
52642 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
52643 `__attribute__ ((unused))'. Some GCS related fixed.
52644 (grub_suspend_init) [GRUB_UTIL]: Function removed.
52645 (grub_suspend_fini): Likewise.
52646 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
52647 and `halt.mod'.
52648 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
52649 (halt_mod_CFLAGS): New variables.
52650 * include/grub/powerpc/ieee1275/ieee1275.h
52651 (grub_ieee1275_interpret): New prototype.
52652
52653 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
52654
52655 * include/grub/misc.h (memmove): New prototype.
52656 (memcpy): Likewise.
52657
52658 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
52659
52660 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
52661 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
52662
52663 2005-01-22 Marco Gerards <metgerards@student.han.nl>
52664
52665 * kern/misc.c (grub_strndup): Function rewritten.
52666
52667 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
52668
52669 * normal/menu.c (TERM_WIDTH): Macro redefined.
52670 (TERM_TOP_BORDER_Y): Likewise.
52671 (draw_border): Replaced while-loop by a for-loop. Make the number
52672 of lines consistent with the number of lines displayed in
52673 print_entries. Added a margin below the rectangle.
52674 (print_entry): Make the entry fit in the rectangle.
52675 (print_entries): Display the scroll arrows next to the right
52676 border.
52677
52678 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52679
52680 * fs/minix.c (grub_minix_find_file): Reserve more space for
52681 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
52682 `grub_strncpy' to copy `path' into it.
52683
52684 2005-01-21 Marco Gerards <metgerards@student.han.nl>
52685
52686 Add the loopback device, a device via which files can be accessed
52687 as devices.
52688
52689 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
52690 (pkgdata_MODULES): Add loopback.mod.
52691 (loopback_mod_SOURCES): New variable.
52692 (loopback_mod_CFLAGS): Likewise.
52693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
52694 `disk/loopback.c'.
52695 (pkgdata_MODULES): Add loopback.mod.
52696 (loopback_mod_SOURCES): New variable.
52697 (loopback_mod_CFLAGS): Likewise.
52698 * disk/loopback.c: new file.
52699 * include/grub/normal.h (grub_loop_init): New prototype.
52700 (grub_loop_fini): New prototype.
52701 * util/grub-emu.c (main): Initialize and de-initialize loopback
52702 support.
52703 * include/grub/disk.h (grub_disk_dev_id): Add
52704 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
52705
52706 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
52707
52708 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
52709 function.
52710 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
52711 (suspend_mod_SOURCES): New variable.
52712 (suspend_mod_CFLAGS): Likewise.
52713 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
52714 New prototype.
52715 * commands/ieee1275/suspend.c: New file.
52716
52717 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
52718
52719 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
52720 ((unused))' to `__attribute__ ((used))'.
52721 (GRUB_MOD_FINI): Likewise.
52722 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
52723 * genmk.rb (PModule): Assign space to common symbols when linking
52724 modules.
52725
52726 2005-01-20 Marco Gerards <metgerards@student.han.nl>
52727
52728 * include/grub/mm.h (grub_mm_init_region): Change the type of the
52729 `unsigned' arguments to `grub_size_t'.
52730 (grub_malloc): Likewise.
52731 (grub_realloc): Likewise.
52732 (grub_memalign): Likewise.
52733 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
52734 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
52735 * util/misc.c (grub_malloc): Likewise.
52736 (grub_realloc): Likewise.
52737 * kern/mm.c (get_header_from_pointer): Change the casts to
52738 `unsigned' into a cast to `grub_size_t'.
52739
52740 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
52741 point to `currnode' when `currnode' is changed.
52742
52743 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
52744 Schottelius <nico-linux@schottelius.org>.
52745
52746 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
52747
52748 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
52749 (note_path): Remove variable.
52750 (GRUB_IEEE1275_NOTE_NAME): New macro.
52751 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
52752 (grub_ieee1275_note_hdr): New structure.
52753 (grub_ieee1275_note_desc): Likewise.
52754 (grub_ieee1275_note): Likewise.
52755 (load_note): Remove `dir' argument. All callers updated. Remove
52756 `note_img' and `path'. Do not load a file from `note_path'.
52757 Initialize a struct grub_ieee1275_note and write that to `out'.
52758 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
52759
52760 2005-01-05 Marco Gerards <metgerards@student.han.nl>
52761
52762 * util/misc.c (grub_util_read_image): Revert last change. It
52763 called `grub_util_read_at', which seeks from the beginning of the
52764 file.
52765
52766 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
52767
52768 * TODO: Add note about endianness in grub-mkimage.
52769 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
52770 section.
52771 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
52772 (grub_mkimage_SOURCES): New target.
52773 * include/grub/kernel.h (grub_start_addr): Remove variable.
52774 (grub_end_addr): Likewise.
52775 (grub_total_module_size): Likewise.
52776 (grub_kernel_image_size): Likewise.
52777 (GRUB_MODULE_MAGIC): New constant.
52778 (grub_module_info): New structure.
52779 (grub_arch_modules_addr): New prototype.
52780 (grub_get_end_addr): Remove prototype.
52781 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52782 * include/grub/powerpc/ieee1275/kernel.h: New file.
52783 * include/grub/util/misc.h (grub_util_get_fp_size): New
52784 prototype.
52785 (grub_util_read_at): Likewise.
52786 (grub_util_write_image_at): Likewise.
52787 * kern/main.c (grub_get_end_addr): Remove function.
52788 (grub_load_modules): Call grub_arch_modules_addr instead of using
52789 grub_end_addr. Look for a grub_module_info struct in memory. Use
52790 the grub_module_info fields instead of calling grub_get_end_addr
52791 as loop conditions. Move grub_add_unused_region code here.
52792 (grub_add_unused_region): Remove function.
52793 * kern/i386/pc/init.c: Include grub/cache.h.
52794 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52795 one call to add_mem_region.
52796 (grub_arch_modules_addr): New function.
52797 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52798 (grub_total_module_size): Likewise.
52799 Include grub/machine/kernel.h.
52800 (grub_arch_modules_addr): New function.
52801 * util/grub-emu.c (grub_end_addr): Remove variable.
52802 (grub_total_module_size): Likewise.
52803 (grub_arch_modules_addr): New function.
52804 * util/misc.c: Include unistd.h.
52805 (grub_util_get_fp_size): New function.
52806 (grub_util_read_at): Likewise.
52807 (grub_util_write_image_at): Likewise.
52808 (grub_util_read_image): Call grub_util_read_at.
52809 (grub_util_write_image): Call grub_util_write_image_at.
52810 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52811 additional memory in kernel_img for a struct grub_module_info.
52812 Fill in that grub_module_info.
52813 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52814
52815 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52816
52817 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52818 New function.
52819 * include/grub/powerpc/ieee1275/ieee1275.h
52820 (grub_ieee1275_milliseconds): New prototype.
52821 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52822 Change to 1000.
52823 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52824 grub_ieee1275_milliseconds.
52825
52826 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52827
52828 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52829 variable.
52830 (find_options): New function.
52831 (cmain): Call find_options.
52832 * include/grub/powerpc/ieee1275/ieee1275.h
52833 (grub_ieee1275_realmode): New extern variable.
52834 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52835 grub_map if grub_ieee1275_realmode is false.
52836
52837 2004-12-29 Marco Gerards <metgerards@student.han.nl>
52838
52839 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52840 lines are inserted and make it work like readline. Reported by
52841 Vincent Pelletier <subdino2004@yahoo.fr>.
52842
52843 2004-12-28 Marco Gerards <metgerards@student.han.nl>
52844
52845 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52846
52847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52848 `kern/powerpc/cache.S'.
52849
52850 2004-12-27 Marco Gerards <metgerards@student.han.nl>
52851
52852 * genmk.rb: Handle the `Program' class in the main loop. Written
52853 by Johan Rydberg <jrydberg@gnu.org>.
52854 (Program): New class.
52855 (programs): New variable.
52856 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52857 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52858 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52859 (help_arch): Function removed.
52860 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52861 `powerpc/libgcc.h' and `loader.h'.
52862 (pkgdata_PROGRAMS): New variable.
52863 (sbin_UTILITIES): Variable removed.
52864 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52865 (grubof_SOURCES): Variable re-defined so it only includes the
52866 core functionality.
52867 (grubof_CFLAGS): Remove `-DGRUBOF'.
52868 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52869 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52870 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52871 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52872 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52873 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52874 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52875 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52876 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52877 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52878 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52879 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52880 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52881 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52882 (pc_mod_CFLAGS): New variables.
52883 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52884 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52885 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52886 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52887 Moved from here...
52888 * include/grub/i386/pc/init.h (grub_os_area_addr)
52889 (rub_os_area_size): ... to here.
52890 * include/grub/powerpc/ieee1275/ieee1275.h
52891 (grub_ieee1275_entry_fn): Export symbol.
52892 * include/grub/powerpc/ieee1275/init.h: New file.
52893 * include/grub/powerpc/libgcc.h: Likewise.
52894 * include/grub/cache.h: Likewise.
52895 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52896 <hollis@penguinppc.org>.
52897 * kern/dl.c: Include <grub/cache.h>.
52898 (grub_dl_flush_cache): New function.
52899 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52900 for this module.
52901 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52902 (grub_console_init): Removed prototypes.
52903 (grub_machine_init): Don't initialize the modules anymore.
52904 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52905 static.
52906 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52907 Macro undef removed.
52908 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52909 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52910 relocation `R_PPC_REL32'. Return an error when the relocation is
52911 unknown.
52912 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52913 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52914 * util/misc.c (grub_arch_sync_caches): Likewise.
52915
52916 2004-12-19 Marco Gerards <metgerards@student.han.nl>
52917
52918 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52919 `symlist.c', add `grubof_symlist.c'.
52920 (symlist.c): Variable removed.
52921 (grubof_HEADERS): Variable added.
52922 (grubof_symlist.c): New target.
52923 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52924 `kernel_img_HEADERS'.
52925 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52926 * kern/powerpc/dl.c: New file.
52927 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52928 Function removed.
52929 (grub_arch_dl_relocate_symbols): Likewise.
52930 (grub_register_exported_symbols): Likewise.
52931
52932 2004-12-13 Marco Gerards <metgerards@student.han.nl>
52933
52934 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52935 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52936 to fail instead. Reported by Vincent Pelletier
52937 <subdino2004@yahoo.fr>.
52938
52939 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52940 it is not allocated. Reported by Vincent Pelletier
52941 <subdino2004@yahoo.fr>.
52942
52943 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52944 output so the output looks better.
52945
52946 2004-12-04 Marco Gerards <metgerards@student.han.nl>
52947
52948 Modulize the partition map support and add support for the amiga
52949 partition map.
52950
52951 * commands/ls.c: Include <grub/partition.h> instead of
52952 <grub/machine/partition.h>.
52953 * kern/disk.c: Likewise.
52954 * kern/rescue.c: Likewise.
52955 * loader/i386/pc/chainloader.c: Likewise.
52956 * normal/cmdline.c: Likewise.
52957 * kern/powerpc/ieee1275/init.c: Likewise.
52958 (grub_machine_init): Call `grub_pc_partition_map_init',
52959 `grub_amiga_partition_map_init' and
52960 `grub_apple_partition_map_init'.
52961 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52962 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52963 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52964 `partition.h' and `pc_partition.h'.
52965 (grub_setup_SOURCES): Remove
52966 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52967 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52968 (grub_emu_SOURCES): Likewise.
52969 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52970 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52971 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52973 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52974 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52975 (grubof_SOURCES): Likewise.
52976 * disk/i386/pc/partition.c: File removed.
52977 * disk/powerpc/ieee1275/partition.c: Likewise.
52978 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52979 * include/grub/i386/pc/partition.h: Likewise.
52980 * kern/partition.c: New file.
52981 * partmap/amiga.c: Likewise.
52982 * partmap/apple.c: Likewise.
52983 * partmap/pc.c: Likewise.
52984 * include/grub/partition.h: Likewise..
52985 * include/grub/pc_partition.h: Likewise.
52986 * util/grub-emu.c: Include <grub/partition.h> instead of
52987 <grub/machine/partition.h>.
52988 (main): Call `grub_pc_partition_map_init',
52989 `grub_amiga_partition_map_init' and
52990 `grub_apple_partition_map_init' and deinitialize afterwards.
52991 * util/i386/pc/biosdisk.c: Include `#include
52992 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52993 `<grub/machine/partition.h>'.
52994 * util/i386/pc/grub-setup.c: Likewise.
52995 * util/i386/pc/biosdisk.c: Likewise.
52996 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52997 partition information in case of a PC partition.
52998 * util/i386/pc/grub-setup.c: Include `#include
52999 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53000 `<grub/machine/partition.h>'.
53001 (setup): Only access the PC specific partition information in case
53002 of a PC partition.
53003
53004 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53005
53006 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53007 (grub_longjmp): Likewise.
53008 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53009 20.
53010 * normal/powerpc/setjmp.S: New file.
53011 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53012 `normal/powerpc/setjmp.S'.
53013 (grubof_CFLAGS): Add `-DGRUBOF'.
53014 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53015 [GRUB_UTIL && !GRUBOF].
53016
53017 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53018
53019 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53020 property named `name'. Correctly handle the error returned by
53021 `grub_ieee1275_finddevice' if a device can not be opened.
53022
53023 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53024
53025 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53026 `actual' for negativity.
53027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53028 kern/fshelp.c.
53029
53030 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53031
53032 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53033 (PAGE_OFFSET): New macro.
53034 (CRTC_ADDR_PORT): Likewise.
53035 (CRTC_DATA_PORT): Likewise.
53036 (START_ADDR_HIGH_REGISTER): Likewise.
53037 (START_ADDR_LOW_REGISTER): Likewise.
53038 (GRAPHICS_ADDR_PORT): Likewise.
53039 (GRAPHICS_DATA_PORT): Likewise.
53040 (READ_MAP_REGISTER): Likewise.
53041 (INPUT_STATUS1_REGISTER): Likewise.
53042 (INPUT_STATUS1_VERTR_BIT): Likewise.
53043 (page): New variable.
53044 (wait_vretrace): New function.
53045 (set_read_map): Likewise.
53046 (set_start_address): Likewise.
53047 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53048 the right page.
53049 (check_vga_mem): Take the page into account.
53050 (write_char): Likewise.
53051 (write_cursor): Likewise.
53052 (scroll_up): Likewise. Copy the page to the page that is not
53053 shown and switch between both pages.
53054 (grub_vga_putchar): Fix off by one error.
53055 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53056 account.
53057
53058 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53059
53060 Add support for iso9660 (including rockridge).
53061
53062 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53063 (iso9660_mod_SOURCES): New variable.
53064 (iso9660_mod_CFLAGS): Likewise.
53065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53066 * include/grub/fs.h (grub_iso9660_init): New prototype.
53067 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53068 * fs/iso9660.c: New file.
53069
53070 * include/grub/misc.h (grub_strncat): New prototype.
53071 * kern/misc.c (grub_strncat): New function.
53072
53073 * fs/hfs.c (grub_hfs_mount): Translate the error
53074 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53075 * fs/jfs.c (grub_jfs_mount): Likewise.
53076 * fs/ufs.c (grub_ufs_mount): Likewise.
53077
53078 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53079
53080 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53081 which initialized BAT registers.
53082 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53083 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53084 Move from here...
53085 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53086 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53087 ... to here.
53088 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53089 (grub_mapclaim): Likewise.
53090 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53091 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53092 hand.
53093
53094 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53095
53096 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53097 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53098 -ffreestanding and -msoft-float.
53099
53100 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53101
53102 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53103 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53104 set in grub_ieee1275_flags.
53105
53106 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53107
53108 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53109 prototype.
53110 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53111 grub_console_init first.
53112 Change the memory range used for grub_ieee1275_claim and
53113 grub_mm_init_region.
53114 Print an error message if the claim fails.
53115 Include <grub/misc.h>.
53116
53117 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53118
53119 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53120 Call grub_children_iterate for device nodes of type `scsi',
53121 `ide', or `ata'.
53122 (grub_ofdisk_open): Remove manual device alias resolution.
53123 Fix memory leak when device cannot be opened.
53124 * include/grub/powerpc/ieee1275/ieee1275.h
53125 (grub_children_iterate): New prototype.
53126 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53127 New function.
53128 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53129 Return -1 if args.size was -1.
53130
53131 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53132
53133 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53134 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53135 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53136 Open Firmware's memory for it; claim memory from _start to _end.
53137 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53138 (_end): New extern.
53139 (_start): Zero BSS from __bss_start to _end.
53140 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53141 New extern.
53142 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53143
53144 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53145
53146 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53147 -1 if args.base was -1.
53148
53149 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53150
53151 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53152 escape sequence instead of a literal ^L. Also call
53153 grub_ofconsole_gotoxy.
53154
53155 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53156
53157 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53158 void * arguments to grub_addr_t. All callers updated. Also make
53159 the `result' argument optional.
53160 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53161 All callers updated.
53162
53163 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53164
53165 * commands/ls.c (grub_ls_list_files): Use the string following the
53166 initial ')', if present, as the filesystem path.
53167 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53168
53169 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53170
53171 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53172
53173 Make the source code of the menu interface more readable.
53174
53175 * normal/menu.c: Include grub/mm.h.
53176 (TERM_WIDTH): New macro.
53177 (TERM_HEIGHT): Likewise.
53178 (TERM_INFO_HEIGHT): Likewise.
53179 (TERM_MARGIN): Likewise.
53180 (TERM_SCROLL_WIDTH): Likewise.
53181 (TERM_TOP_BORDER_Y): Likewise.
53182 (TERM_LEFT_BORDER_X): Likewise.
53183 (TERM_BORDER_WIDTH): Likewise.
53184 (TERM_MESSAGE_HEIGHT): Likewise.
53185 (TERM_BORDER_HEIGHT): Likewise.
53186 (TERM_NUM_ENTRIES): Likewise.
53187 (TERM_FIRST_ENTRY_Y): Likewise.
53188 (TERM_ENTRY_WIDTH): Likewise.
53189 (TERM_CURSOR_X): Likewise.
53190 (draw_border): Use macros instead of magic numbers.
53191 (print_entry): Likewise.
53192 (print_entries): Likewise.
53193 (run_menu): Likewise. Also, handle the key 'e'.
53194 (run_menu_entry): Ignore empty command lines.
53195 (print_message): Added a new argument EDIT. If EDIT is true,
53196 print a different message.
53197 (init_page): Likewise.
53198 (edit_menu_entry): New function. Not implemented yet.
53199
53200 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53201
53202 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53203 can be loaded from normal mode.
53204
53205 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53206 `multiboot.mod'.
53207 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53208 (multiboot_mod_CFLAGS): New variables.
53209 * loader/i386/pc/linux_normal.c: New file.
53210 * loader/i386/pc/multiboot_normal.c: Likewise.
53211
53212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53213 attribute `unused'.
53214
53215 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53216 `fdiro' to read the mode information from instead of `diro'.
53217
53218 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53219 looking up a symlink.
53220
53221 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53222 macro.
53223 * normal/command.c (grub_command_execute): Don't parse the
53224 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53225 flags of the command.
53226
53227 * normal/menu.c (grub_menu_run): Fix typo.
53228
53229 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53230
53231 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53232
53233 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53234 `y + 1' instead of `y - 1'.
53235
53236 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53237
53238 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53239
53240 From Hollis Blanchard <hollis@penguinppc.org>:
53241 * kern/misc.c (memmove): New alias for grub_memmove.
53242 (memcmp): New alias for grub_memcmp.
53243 (memset): New alias for grub_memset.
53244 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53245 Change "int handle" to "grub_ieee1275_phandle_t handle".
53246 * include/grub/powerpc/ieee1275/ieee1275.h
53247 (grub_ieee1275_get_property): Likewise.
53248
53249 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53250
53251 Added normal mode command `chainloader' as module chain.mod, which
53252 depends on normal.mod and _chain.mod.
53253
53254 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53255 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53256 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53257 Deleted prototype.
53258 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53259 but arguments parsing moved to ...
53260 (grub_chainloader_cmd): ... here. New function.
53261 * include/grub/i386/pc/chainloader.h: New file.
53262 * loader/i386/pc/chainloader_normal.c: Likewise.
53263
53264 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53265
53266 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53267 (grub_mkimage_LDFLAGS): Likewise.
53268 (grub_emu_SOURCES): Likewise.
53269 (kernel_img_HEADERS): Added fshelp.h.
53270 * fs/ext2.c: Include <grub/fshelp.h>.
53271 (FILETYPE_REG): New macro.
53272 (FILETYPE_INO_REG): Likewise.
53273 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53274 Changed all users.
53275 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53276 all users.
53277 (grub_fshelp_node): New struct.
53278 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53279 to a pointer.
53280 (grub_ext2_get_file_block): Removed function.
53281 (grub_ext2_read_block): New function.
53282 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53283 This function was written.
53284 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53285 (grub_ext2_find_file): Removed function.
53286 (grub_ext2_read_symlink): New function.
53287 (grub_ext2_iterate_dir): Likewise.
53288 (grub_ext2_open): Rewritten.
53289 (grub_ext2_dir): Rewritten.
53290 * include/grub/fshelp.h: New file.
53291 * fs/fshelp.c: Likewise.
53292
53293 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53294
53295 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53296 (print_message): Add a missing newline.
53297 (run_menu): Added timeout support.
53298 (run_menu_entry): New local function.
53299 (grub_menu_run): Added support for booting.
53300
53301 * kern/loader.c (grub_loader_is_loaded): New function.
53302
53303 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53304 (grub_get_rtc): Exported.
53305
53306 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53307 (grub_get_rtc): Exported.
53308
53309 * include/grub/normal.h (struct grub_command_list): Remove
53310 constant from the member `command'.
53311
53312 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53313
53314 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53315
53316 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53317
53318 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53319
53320 Add support for the JFS filesystem.
53321
53322 * fs/jfs.c: New file.
53323 * include/grub/fs.h (grub_jfs_init): New prototype.
53324 (grub_jfs_fini): New prototype.
53325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53326 (grub_emu_SOURCES): Likewise.
53327 (pkgdata_MODULES): Add jfs.mod.
53328 (jfs_mod_SOURCES): New variable.
53329 (jfs_mod_CFLAGS): Likewise.
53330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53331 (grubof_SOURCES): Likewise.
53332 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53333
53334 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53335 endian to the host endian.
53336 (grub_fat_utf16_to_utf8): Move function from there...
53337 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53338 the endianness of the source string anymore.
53339 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53340
53341 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53342
53343 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53344 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53345 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53346 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53347
53348 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53349 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53350 for `node_found' and `it_dir'.
53351 (grub_hfs_dir): Add prototype for `dir_hook'.
53352
53353 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53354 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53355 and `indir32' to silence a gcc warning.
53356
53357 * include/grub/fs.h (grub_hfs_init): New prototype.
53358 (grub_hfs_fini): Likewise.
53359
53360
53361 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53362
53363 Each disk device has its own id now. This is useful to make use
53364 of multiple disk devices.
53365
53366 * include/grub/disk.h (grub_disk_dev_id): New enum.
53367 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53368 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53369
53370 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53371 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53372
53373 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53374 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53375
53376 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53377 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53378
53379 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53380 "id" which is used by the cache manager.
53381
53382 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53383 of just "GRUB".
53384
53385 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53386
53387 * fs/hfs.c: New file.
53388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53389 (grub_emu_SOURCES): Likewise.
53390 (pkgdata_MODULES): Add hfs.mod.
53391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53392 (grubof_SOURCES): Likewise.
53393 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53394
53395 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53396 * kern/misc.c (grub_strncasecmp): Add function.
53397
53398 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53399
53400 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53401 with parentheses.
53402
53403 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53404 (grub_ext2_dir): In case the directory entry type is unknown, read
53405 it from the inode.
53406
53407 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53408
53409 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
53410 grub_load_linux instead of grub_rescue_cmd_linux as second
53411 argument of grub_rescue_register_command.
53412
53413 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
53414
53415 2004-07-27 Marco Gerards <metgerards@student.han.nl>
53416
53417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
53418 function.
53419 * commands/boot.c: Remove the check for `GRUB_UTIL'.
53420 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53421 `loader/powerpc/ieee1275/linux.c',
53422 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
53423 * include/grub/powerpc/ieee1275/ieee1275.h
53424 (grub_ieee1275_release): New prototype.
53425 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
53426 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
53427 normal, boot, linux and linux_normal.
53428 * loader/powerpc/ieee1275/linux.c: New file.
53429 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
53430
53431 2004-07-12 Marco Gerards <metgerards@student.han.nl>
53432
53433 * normal/arg.c (grub_arg_parse): Correct error handling after
53434 reallocating the argumentlist (check if `argl' is not null instead
53435 of checking if `args' is not null).
53436 * kern/mm.c (grub_realloc): Return the same pointer when using the
53437 same region, instead of returning the header address.
53438
53439 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53440
53441 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
53442 one block instead of two when looking for the initial partition.
53443 (grub_partition_probe): Initialize the local variable `p' with 0.
53444 Use base 10 for the grub_strtoul call.
53445 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
53446 need for one local variable.
53447 (grub_strtoul): Don't add the new value to `num', instead of that
53448 just assign it.
53449
53450 2004-07-11 Marco Gerards <metgerards@student.han.nl>
53451
53452 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
53453 (pxeboot_img_SOURCES): New variable.
53454 (pxeboot_img_ASFLAGS): Likewise.
53455 (pxeboot_img_LDFLAGS): Likewise.
53456 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
53457 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
53458 <lode_leroy@hotmail.com>.
53459
53460 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53461
53462 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
53463 there was no input.
53464
53465 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53466
53467 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
53468 the history buffer logic.
53469
53470 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
53471
53472 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
53473 (FILETYPE_INO_SYMLINK): New macros.
53474 (grub_ext2_find_file): Check if the node is a directory using the
53475 inode stat information instead of using the filetype in the
53476 dirent. Exclude the first character of an absolute symlink.
53477 (grub_ext2_dir): Mask out the filetype part of the mode member of
53478 the inode.
53479
53480 2004-05-24 Marco Gerards <metgerards@student.han.nl>
53481
53482 Add support for UFS version 1 and 2. Add support for the minix
53483 filesystem version 1 and 2, both the variants with 14 and 30 long
53484 filenames.
53485
53486 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
53487 fs/minix.c.
53488 (grub_emu_SOURCES): Likewise.
53489 (pkgdata_MODULES): Add ufs.mod and minix.mod.
53490 (ufs_mod_SOURCES): New variable.
53491 (ufs_mod_CFLAGS): Likewise.
53492 (minix_mod_SOURCES): Likewise.
53493 (minix_mod_CFLAGS): Likewise.
53494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
53495 fs/minix.c.
53496 (grubof_SOURCES): Likewise.
53497 * fs/ufs.c: New file.
53498 * fs/minix.c: New file.
53499 * include/grub/fs.h (grub_ufs_init): New prototype.
53500 (grub_ufs_fini): Likewise.
53501 (grub_minix_init): Likewise.
53502 (grub_minix_fini): Likewise.
53503 * util/grub-emu.c (main): Initialize and deinitialize UFS and
53504 minix fs.
53505
53506 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
53507
53508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
53509 commands/ls.c, commands/terminal.c, commands/boot.c,
53510 commands/cmp.c and commands/cat.c.
53511 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
53512
53513 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
53514 "env.h"
53515
53516 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53517
53518 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
53519 and grub_, respectively. Because the conversion is trivial and
53520 mechanical, I omit the details here. Please refer to the CVS
53521 if you need more information.
53522
53523 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
53524
53525 * include/pupa: Renamed to ...
53526 * include/grub: ... this.
53527 * util/i386/pc/pupa-mkimage.c: Renamed to ...
53528 * util/i386/pc/grub-mkimage.c: ... this.
53529 * util/i386/pc/pupa-setup.c: Renamed to ...
53530 * util/i386/pc/grub-setup.c: ... this.
53531 * util/pupa-emu.c: Renamed to ...
53532 * util/grub-emu.c: ... this.
53533
53534 2004-03-29 Marco Gerards <metgerards@student.han.nl>
53535
53536 Add support for the newworld apple macintosh (PPC). This has been
53537 tested on the powerbook 2000 only. It only adds support for
53538 generic ieee1275 functions, console and disk support. This should
53539 be easy to port to other architectures with support for Open
53540 Firmware.
53541
53542 * configure.ac: Accept the powerpc as host_cpu. In the case of
53543 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
53544 specific tests are only executed while building for the i386.
53545 Inverse test for crosscompile.
53546 * genmk.rb (Utility): Allow assembler files.
53547 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
53548 * conf/powerpc-ieee1275.rmk: New file.
53549 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
53550 * disk/powerpc/ieee1275/partition.c: Likewise.
53551 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
53552 * include/pupa/powerpc/ieee1275/console.h: Likewise.
53553 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
53554 * include/pupa/powerpc/ieee1275/time.h: Likewise.
53555 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
53556 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
53557 * include/pupa/powerpc/ieee1275/loader.h
53558 * include/pupa/powerpc/setjmp.h: Likewise.
53559 * include/pupa/powerpc/types.h: Likewise.
53560 * kern/powerpc/ieee1275/init.c: Likewise.
53561 * kern/powerpc/ieee1275/openfw.c: Likewise.
53562 * term/powerpc/ieee1275/ofconsole.c: Likewise.
53563
53564 These files were written by Johan Rydberg
53565 (jrydberg@night.trouble.net) and I only modified them slightly.
53566
53567 * boot/powerpc/ieee1275/cmain.c: New file.
53568 * boot/powerpc/ieee1275/crt0.S: Likewise.
53569 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
53570 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
53571
53572 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
53573
53574 * Makefile.in: Update copyright.
53575 * genmodsrc.sh: Likewise.
53576 * gensymlist.sh: Likewise.
53577 * term/i386/pc/vga.c: Indent correctly.
53578
53579 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
53580 bugreporting address.
53581 * util/i386/pc/pupa-setup.c (usage): Likewise,
53582 (main): Call pupa_ext2_init and pupa_ext2_fini.
53583
53584 * fs/fat.c (log2): Renamed to ...
53585 (fat_log2): ... this.
53586 All callers changed.
53587 * kern/misc.c (memcpy): Alias to pupa_memmove.
53588 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
53589 lvalue cast.
53590 * util/console.c (pupa_ncurses_fini): Return 0.
53591
53592 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
53593 Move fail label here.
53594 [__GNU__]: Don't warn when using stat.
53595 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
53596 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
53597 long int. Use strtol instead of strtoul.
53598
53599 2004-03-14 Marco Gerards <metgerards@student.han.nl>
53600
53601 * commands/boot.c: New file.
53602 * commands/cat.c: Likewise.
53603 * commands/cmp.c: Likewise.
53604 * commands/ls.c: Likewise.
53605 * commands/terminal.c: Likewise.
53606 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
53607 (pupa_register_command): Changed interface to match the new
53608 argument parser.
53609 (pupa_command_execute): Changed (almost rewritten) so it uses
53610 pupa_split_command. Added support for setting variables using the
53611 syntax `foo=bar'.
53612 (rescue_command): Changed to work with the new argument parser.
53613 (terminal_command): Moved from here to commands/terminal.c.
53614 (set_command): New function.
53615 (unset_command): New function.
53616 (insmod_command): New function.
53617 (rmmod_command): New function.
53618 (lsmod_command): New function.
53619 (pupa_command_init): Don't initialize the command terminal
53620 anymore. Initialize the commands set, unset, insmod, rmmod and
53621 lsmod.
53622 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
53623 (kernel_img_HEADERS): Add arg.h and env.h.
53624 (pupa_mkimage_LDFLAGS): Add kern/env.c.
53625 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
53626 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
53627 normal/arg.c.
53628 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
53629 terminal.mod.
53630 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
53631 (boot_mod_SOURCES): New variable.
53632 (terminal_mod_SOURCES): Likewise.
53633 (ls_mod_SOURCES): Likewise.
53634 (cmp_mod_SOURCES): Likewise.
53635 (cat_mod_SOURCES): Likewise.
53636
53637 * normal/arg.c: New file.
53638 * kern/env.c: Likewise.
53639 * include/pupa/arg.h: Likewise.
53640 * include/pupa/env.h: Likewise.
53641 * font/manager.c (font_command): Changed to match argument parsing
53642 interface changes.
53643 (PUPA_MOD_INIT): Likewise.
53644 * hello/hello.c (pupa_cmd_hello): Likewise.
53645 (PUPA_MOD_INIT): Likewise.
53646 * include/pupa/disk.h: Include <pupa/device.h>.
53647 (pupa_print_partinfo): New prototype.
53648 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
53649 (pupa_dl_get_prefix): Likewise.
53650 * include/pupa/misc.h: Include <pupa/err.h>.
53651 (pupa_isgraph): New prototype.
53652 (pupa_isdigit): Likewise.
53653 (pupa_split_cmdline): Likewise.
53654 * include/pupa/normal.h: Include <pupa/arg.h>.
53655 (pupa_command): Changed the prototype of the member `func' to
53656 match the argument parsing interface. Added member `options'.
53657 (pupa_register_command): Updated to match function.
53658 (pupa_arg_parse): New prototype.
53659 (pupa_hello_init) [PUPA_UTIL]: New prototype.
53660 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
53661 (pupa_ls_init) [PUPA_UTIL]: Likewise.
53662 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
53663 (pupa_cat_init) [PUPA_UTIL]: Likewise.
53664 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
53665 (pupa_boot_init) [PUPA_UTIL]: Likewise.
53666 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
53667 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
53668 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
53669 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
53670 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
53671 * kern/disk.c: Include <pupa/file.h>.
53672 (pupa_print_partinfo): New function.
53673 * kern/dl.c: Include <pupa/env.h>.
53674 (pupa_dl_dir): Variable removed.
53675 (pupa_dl_load): Use the environment variable `prefix' instead of
53676 the variable pupa_dl_dir.
53677 (pupa_dl_set_prefix): Function removed.
53678 (pupa_dl_get_prefix): Likewise.
53679 * kern/i386/pc/init.c: Include <pupa/env.h>.
53680 (pupa_machine_init): Use the environment variable `prefix' instead of
53681 using pupa_dl_set_prefix to set the prefix.
53682 * kern/main.c: Include <pupa/env.h>.
53683 (pupa_set_root_dev): Use the environment variable `prefix' instead of
53684 using pupa_dl_get_prefix to get the prefix.
53685 * kern/misc.c: Include <pupa/env.h>.
53686 (pupa_isdigit): New function.
53687 (pupa_isgraph): Likewise.
53688 (pupa_ftoa): Likewise.
53689 (pupa_vsprintf): Added support for printing values of the type
53690 `double'. Make it possible to format variable output when using
53691 formatting like `%1.2%f'.
53692 (pupa_split_cmdline): New function.
53693 * kern/rescue.c: Include <pupa/env.h>.
53694 (next_word): Removed function.
53695 (pupa_rescue_cmd_prefix): Likewise.
53696 (pupa_rescue_cmd_set): New function.
53697 (pupa_rescue_cmd_unset): New function.
53698 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
53699 split the command line instead of splitting it here. Added
53700 support for setting variables using the syntax `foo=bar'. Don't
53701 initialize the prefix command anymore. Initialized the set and
53702 unset commands.
53703 * normal/cmdline.c: Include <pupa/env.h>.
53704 (pupa_tab_complete): Added prototypes for print_simple_completion,
53705 print_partition_completion, add_completion, iterate_commands,
53706 iterate_dev, iterate_part and iterate_dir. Moved code to print
53707 partition information from here to kern/disk.c.
53708 (pupa_cmdline_run): Don't check if the function exists anymore.
53709 * normal/main.c: Include <pupa/env.h>.
53710 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
53711 instead of using pupa_dl_get_prefix to get the prefix.
53712 * term/i386/pc/vga.c: Include <pupa/arg.h>.
53713 (check_vga_mem): Cast pointers to `void *' to silence a gcc
53714 warning.
53715 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
53716 (pupa_vga_setcolor): Declare unused variables with `__attribute__
53717 ((unused))' to silence a gcc warning.
53718 (pupa_vga_setcolor): Likewise.
53719 (debug_command): Changed to match argument parsing
53720 interface changes.
53721 * util/pupa-emu.c: Include <pupa/env.h>.
53722 (options): Added 0's for unused fields to silence a gcc warning.
53723 (argp): Likewise.
53724 (main): Use the environment variable `prefix' instead of using
53725 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
53726 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
53727 and terminal.
53728
53729 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
53730 * util/misc.c: Include <malloc.h>.
53731 (pupa_malloc): Rewritten so errors are correctly reported.
53732 (pupa_realloc): Likewise.
53733 (pupa_memalign): Likewise.
53734 (pupa_mm_init_region): Declare unused variables with
53735 `__attribute__ ((unused))' to silence a gcc warning.
53736 * normal/i386/setjmp.S: Remove tab at the end of the file to
53737 silence a gcc warning.
53738 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
53739 variables with `__attribute__ ((unused))' to silence a gcc
53740 warning.
53741 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
53742 local variable i unsigned to silence a gcc warning.
53743
53744 * kern/term.c: Include <pupa/misc.h>.
53745 (pupa_more_lines): New variable.
53746 (pupa_more): Likewise.
53747 (pupa_putcode): When the pager is active pause at the end of every
53748 screen.
53749 (pupa_set_more): New function.
53750 * include/pupa/term.h (pupa_set_more): New prototype.
53751
53752
53753 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
53754
53755 Now this project is GRUB 2 rather than PUPA. The location of
53756 the CVS repository was moved to GRUB's.
53757
53758 * configure.ac: Use bug-grub as the reporting address.
53759 Use GRUB instead of PUPA.
53760 Change the version number to 1.90.
53761
53762 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
53763
53764 * genkernsyms.sh: Updated copyright information.
53765 * genmk.rb: Likewise.
53766 * genmodsrc.sh: Likewise.
53767 * gensymlist.sh: Likewise.
53768 * boot/i386/pc/boot.S: Likewise.
53769 * boot/i386/pc/diskboot.S: Likewise.
53770 * disk/i386/pc/biosdisk.c: Likewise.
53771 * disk/i386/pc/partition.c: Likewise.
53772 * font/manager.c: Likewise.
53773 * fs/ext2.c: Likewise.
53774 * fs/fat.c: Likewise.
53775 * include/pupa/boot.h: Likewise.
53776 * include/pupa/device.h: Likewise.
53777 * include/pupa/disk.h: Likewise.
53778 * include/pupa/dl.h: Likewise.
53779 * include/pupa/elf.h: Likewise.
53780 * include/pupa/err.h: Likewise.
53781 * include/pupa/file.h: Likewise.
53782 * include/pupa/font.h: Likewise.
53783 * include/pupa/fs.h: Likewise.
53784 * include/pupa/kernel.h: Likewise.
53785 * include/pupa/loader.h: Likewise.
53786 * include/pupa/misc.h: Likewise.
53787 * include/pupa/mm.h: Likewise.
53788 * include/pupa/net.h: Likewise.
53789 * include/pupa/normal.h: Likewise.
53790 * include/pupa/rescue.h: Likewise.
53791 * include/pupa/setjmp.h: Likewise.
53792 * include/pupa/symbol.h: Likewise.
53793 * include/pupa/term.h: Likewise.
53794 * include/pupa/types.h: Likewise.
53795 * include/pupa/i386/setjmp.h: Likewise.
53796 * include/pupa/i386/types.h: Likewise.
53797 * include/pupa/i386/pc/biosdisk.h: Likewise.
53798 * include/pupa/i386/pc/boot.h: Likewise.
53799 * include/pupa/i386/pc/console.h: Likewise.
53800 * include/pupa/i386/pc/init.h: Likewise.
53801 * include/pupa/i386/pc/kernel.h: Likewise.
53802 * include/pupa/i386/pc/linux.h: Likewise.
53803 * include/pupa/i386/pc/loader.h: Likewise.
53804 * include/pupa/i386/pc/memory.h: Likewise.
53805 * include/pupa/i386/pc/multiboot.h: Likewise.
53806 * include/pupa/i386/pc/partition.h: Likewise.
53807 * include/pupa/i386/pc/time.h: Likewise.
53808 * include/pupa/i386/pc/vga.h: Likewise.
53809 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53810 * include/pupa/util/getroot.h: Likewise.
53811 * include/pupa/util/misc.h: Likewise.
53812 * include/pupa/util/resolve.h: Likewise.
53813 * kern/device.c: Likewise.
53814 * kern/disk.c: Likewise.
53815 * kern/dl.c: Likewise.
53816 * kern/err.c: Likewise.
53817 * kern/file.c: Likewise.
53818 * kern/fs.c: Likewise.
53819 * kern/loader.c: Likewise.
53820 * kern/main.c: Likewise.
53821 * kern/misc.c: Likewise.
53822 * kern/mm.c: Likewise.
53823 * kern/rescue.c: Likewise.
53824 * kern/term.c: Likewise.
53825 * kern/i386/dl.c: Likewise.
53826 * kern/i386/pc/init.c: Likewise.
53827 * kern/i386/pc/lzo1x.S: Likewise.
53828 * kern/i386/pc/startup.S: Likewise.
53829 * loader/i386/pc/chainloader.c: Likewise.
53830 * loader/i386/pc/linux.c: Likewise.
53831 * loader/i386/pc/multiboot.c: Likewise.
53832 * normal/cmdline.c: Likewise.
53833 * normal/command.c: Likewise.
53834 * normal/main.c: Likewise.
53835 * normal/menu.c: Likewise.
53836 * normal/i386/setjmp.S: Likewise.
53837 * term/i386/pc/console.c: Likewise.
53838 * term/i386/pc/vga.c: Likewise.
53839 * util/console.c: Likewise.
53840 * util/genmoddep.c: Likewise.
53841 * util/misc.c: Likewise.
53842 * util/pupa-emu.c: Likewise.
53843 * util/resolve.c: Likewise.
53844 * util/unifont2pff.rb: Likewise.
53845 * util/i386/pc/biosdisk.c: Likewise.
53846 * util/i386/pc/getroot.c: Likewise.
53847 * util/i386/pc/pupa-mkimage.c: Likewise.
53848 * util/i386/pc/pupa-setup.c: Likewise.
53849
53850 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53851
53852 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53853 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53854 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53855 reading and reset it after reading.
53856 (pupa_ext2_close): Return PUPA_ERR_NONE.
53857
53858 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53859 Correct value.
53860 (struct linux_kernel_header): Add kernel_version and
53861 initrd_addr_max.
53862 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53863 pupa_file_read succeeds.
53864 (pupa_rescue_cmd_initrd): Implement.
53865
53866 2003-12-03 Marco Gerards <metgerards@student.han.nl>
53867
53868 * fs/ext2.c (pupa_ext2_label): New function.
53869 (pupa_ext2_fs): Added label.
53870 * fs/fat.c (pupa_fat_label): New function.
53871 (pupa_fat_fs): Added label.
53872 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53873
53874 * kern/misc.c (pupa_strndup): New function.
53875 * include/pupa/misc.h (pupa_strndup): New prototype.
53876
53877 * include/pupa/normal.h: Include <pupa/err.h>.
53878 (pupa_set_history): New prototype.
53879 (pupa_iterate_commands): New prototype.
53880 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53881 <pupa/disk.h>, <pupa/file.h>.
53882 (hist_size): New variable.
53883 (hist_lines): Likewise.
53884 (hist_end): Likewise.
53885 (hist_used): Likewise.
53886 (pupa_set_history): New function.
53887 (pupa_history_get): Likewise.
53888 (pupa_history_add): Likewise.
53889 (pupa_history_replace): Likewise.
53890 (pupa_tab_complete): Likewise.
53891 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53892 completion shows partitionnames while completing partitions, this
53893 feature was suggested by Jeff Bailey.
53894 * normal/command.c (pupa_iterate_commands): New function.
53895 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53896 (pupa_normal_init): Initialize history buffer.
53897 (PUPA_MOD_INIT): Likewise.
53898 (pupa_normal_fini): Free the history buffer.
53899 (PUPA_MOD_FINI): Likewise.
53900
53901 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53902 key.
53903
53904 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53905 * configure.ac [i386]: Check for regparam bug.
53906 (NESTED_FUNC_ATTR) [! i386]: Defined.
53907
53908 2003-11-17 Marco Gerards <metgerards@student.han.nl>
53909
53910 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53911 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53912 (pupa_emu_SOURCES): New variable.
53913 (pupa_emu_LDFLAGS): Likewise.
53914 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53915 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53916 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53917 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53918 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53919 (pupa_jmp_buf): New typedef.
53920 (pupa_setjmp) [PUPA_UTIL]: New macro.
53921 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53922 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53923 (pupa_refresh): New prototype.
53924 * include/pupa/util/getroot.h: New file.
53925 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53926 it.
53927 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53928 (pupa_rescue_cmd_cat): Likewise.
53929 (pupa_rescue_cmd_ls): Likewise.
53930 (pupa_rescue_cmd_testload): Likewise.
53931 (pupa_rescue_cmd_lsmod): Likewise.
53932 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53933 * normal/menu.c (run_menu): Likewise.
53934 * kern/term.c (pupa_cls): Likewise.
53935 (pupa_refresh): New function.
53936 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53937 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53938 * util/console.c: New file.
53939
53940 * util/i386/pc/getroot.c: New file.
53941 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53942 (pupa_putchar): New function.
53943 (pupa_refresh): Likewise.
53944 (xgetcwd): Function moved to ...
53945 (strip_extra_slashes): Likewise.
53946 (get_prefix): Likewise.
53947 * util/i386/pc/getroot.c: ... here.
53948 (find_root_device): Function moved and renamed to...
53949 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53950 Changed all callers.
53951 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53952 and renamed to...
53953 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53954 Changed all callers.
53955 * util/misc.c (pupa_memalign): New function.
53956 (pupa_mm_init_region): Likewise.
53957 (pupa_register_exported_symbols): Likewise.
53958 (pupa_putchar): Function removed.
53959 * util/pupa-emu.c: New file.
53960
53961 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53962
53963 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53964 (_multiboot_mod_SOURCES): New variable.
53965 (_multiboot_mod_CFLAGS): Likewise.
53966 * loader/i386/pc/multiboot.c: New file.
53967 * include/pupa/i386/pc/multiboot.h: Likewise.
53968 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53969 (pupa_multiboot_real_boot): New function.
53970 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53971 (pupa_multiboot_real_boot): New prototype.
53972 (pupa_rescue_cmd_multiboot): Likewise
53973 (pupa_rescue_cmd_module): Likewise.
53974
53975 * kern/loader.c (pupa_loader_set): Continue when
53976 pupa_loader_unload_func() fails.
53977 (pupa_loader_unset): New function.
53978 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53979
53980 * kern/misc.c (pupa_stpcpy): New function.
53981 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53982
53983 2003-11-12 Marco Gerards <metgerards@student.han.nl>
53984
53985 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53986 for available extensions.
53987
53988 * include/pupa/i386/pc/time.h: New file.
53989 * kern/disk.c: Include <pupa/machine/time.h>.
53990 (PUPA_CACHE_TIMEOUT): New macro.
53991 (pupa_last_time): New variable.
53992 (pupa_disk_open): Flush the cache when there was a timeout.
53993 (pupa_disk_close): Reset the timer.
53994 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53995 pupa_currticks.
53996 * util/misc.c: Include <sys/times.h>
53997 (pupa_get_rtc): New function.
53998
53999 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54000
54001 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54002 as blocks.
54003 (pupa_ext2_get_file_block): Use blocks member.
54004
54005 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54006 first block. Return -1 instead of pupa_errno on error.
54007
54008 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54009
54010 * README: In the pupa-mkimage example use _chain instead of chain
54011 and ext2 instead of fat.
54012 * TODO: Replace ext2fs with jfs as an example. Add an item for
54013 adding journal playback for ext2fs.
54014 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54015 (pkgdata_MODULES): Added ext2.mod.
54016 (ext2_mod_SOURCES): New variable.
54017 (ext2_mod_CFLAGS): Likewise.
54018 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54019 * include/pupa/misc.h (pupa_strncpy): New prototype.
54020 (pupa_strcat): Likewise.
54021 (pupa_strncmp): Likewise.
54022 * kern/misc.c (pupa_strcat): Enable function.
54023 (pupa_strncpy): New function.
54024 (pupa_strncmp): Likewise.
54025 * fs/ext2.c: New file.
54026
54027 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54028 when the read failed before retrying.
54029 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54030 (_FILE_OFFSET_BITS): Likewise.
54031 * configure.ac: Added AC_SYS_LARGEFILE.
54032
54033 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54034
54035 * genmk.rb (PModule#rule): Make sure to get only symbol names
54036 from the output of nm.
54037 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54038
54039 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54040
54041 I forgot to check in these changes for a long time. This adds
54042 incomplete support for VGA console, and this is still very
54043 buggy. Also, a lot of consideration is required for I18N,
54044 UNICODE, and VGA font issues. Therefore, assume that this is
54045 such that "better than nothing".
54046
54047 * font/manager.c: New file.
54048 * include/pupa/font.h: Likewise.
54049 * include/pupa/i386/pc/vga.h: Likewise.
54050 * term/i386/pc/vga.c: Likewise.
54051 * util/unifont2pff.rb: Likewise.
54052
54053 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54054 (pkgdata_MODULES): Added vga.mod and font.mod.
54055 (vga_mod_SOURCES): New variables.
54056 (vga_mod_CFLAGS): Likewise.
54057 (font_mod_SOURCES): Likewise.
54058 (font_mod_CFLAGS): Likewise.
54059
54060 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54061
54062 * include/pupa/term.h: Include pupa/err.h.
54063 (struct pupa_term): Added init and fini.
54064 Changed the argument of putchar to pupa_uint32_t.
54065
54066 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54067 (pupa_console_real_putchar): New prototype.
54068 (pupa_console_putchar): Removed.
54069 (pupa_console_checkkey): Exported.
54070 (pupa_console_getkey): Likewise.
54071
54072 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54073 characters.
54074
54075 * kern/term.c (pupa_term_set_current): Rewritten.
54076 (pupa_putchar): Likewise.
54077 (pupa_putcode): New function.
54078
54079 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54080 (pupa_console_real_putchar): ... this.
54081 (pupa_vga_set_mode): New function.
54082 (pupa_vga_get_font): Likewise.
54083
54084 * normal/command.c: Include pupa/term.h.
54085 (terminal_command): New function.
54086 (pupa_command_init): Register the command "terminal".
54087
54088 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54089 (DISP_UP): Likewise.
54090 (DISP_RIGHT): Likewise.
54091 (DISP_DOWN): Likewise.
54092 (DISP_HLINE): Likewise.
54093 (DISP_VLINE): Likewise.
54094 (DISP_UL): Likewise.
54095 (DISP_UR): Likewise.
54096 (DISP_LL): Likewise.
54097 (DISP_LR): Likewise.
54098
54099 * term/i386/pc/console.c (pupa_console_putchar): New function.
54100
54101 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54102
54103 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54104 FIX. Reverse the path_list.
54105
54106 * include/pupa/normal.h: Export pupa_register_command and
54107 pupa_unregister_command.
54108
54109 * hello/hello.c (pupa_cmd_hello): New module.
54110 * conf/i386-pc.rmk: Added hello.mod.
54111
54112 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54113
54114 * kern/i386/pc/lzo1x.S: New file.
54115
54116 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54117 (compress_kernel): New variable.
54118 (generate_image): Heavily modified to support compressing a
54119 large part of the core image.
54120
54121 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54122 leak.
54123 (pupa_util_load_image): New function.
54124
54125 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54126 (pupa_compressed_size): New variable.
54127 (codestart): Enable Gate A20 here.
54128 Decompress the compressed part of the core image.
54129 Rearrange the code to put functions and variables which are
54130 required for initialization in the non-compressed part.
54131 Include lzo1x.S.
54132
54133 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54134 here.
54135
54136 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54137
54138 * include/pupa/i386/pc/kernel.h
54139 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54140 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54141 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54142 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54143 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54144
54145 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54146
54147 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54148 (Utility#rule): Likewise.
54149
54150 * configure.ac: Check if LZO is available.
54151
54152 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54153
54154 * include/pupa/normal.h: New file.
54155 * include/pupa/setjmp.h: Likewise.
54156 * include/pupa/i386/setjmp.h: Likewise.
54157 * normal/cmdline.c: Likewise.
54158 * normal/command.c: Likewise.
54159 * normal/main.c: Likewise.
54160 * normal/menu.c: Likewise.
54161 * normal/i386/setjmp.S: Likewise.
54162
54163 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54164 (pupa_rescue_cmd_initrd): Likewise.
54165
54166 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54167 Likewise.
54168
54169 * kern/i386/pc/startup.S (translation_table): New variable.
54170 (translate_keycode): New function.
54171 (pupa_console_getkey): Call translate_keycode.
54172
54173 * kern/rescue.c (attempt_normal_mode): New function.
54174 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54175 it failed, print a message.
54176
54177 * kern/mm.c (pupa_real_malloc): Print more information when a
54178 free magic is broken.
54179 (pupa_free): If the first free header is not free actually, set
54180 it to P.
54181
54182 * kern/main.c (pupa_load_normal_mode): Just load the module
54183 "normal".
54184 (pupa_main): Don't print the message
54185 "Entering into rescue mode..." here.
54186
54187 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54188 Declared.
54189 (pupa_rescue_cmd_initrd): Likewise.
54190 (pupa_rescue_cmd_initrd): Likewise.
54191
54192 * include/pupa/symbol.h (FUNCTION): Specify the type.
54193 (VARIABLE): Likewise.
54194
54195 * include/pupa/err.h (pupa_err_t): Added
54196 PUPA_ERR_UNKNOWN_COMMAND.
54197
54198 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54199 (pupa_dl_get_prefix): Likewise.
54200
54201 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54202 Added _chain.mod and _linux.mod instead of chain.mod and
54203 linux.mod.
54204 (chain_mod_SOURCES): Renamed to ...
54205 (_chain_mod_SOURCES): ... this.
54206 (chain_mod_CFLAGS): Renamed to ...
54207 (_chain_mod_CFLAGS): ... this.
54208 (linux_mod_SOURCES): Renamed to ...
54209 (_linux_mod_SOURCES): ... this.
54210 (linux_mod_CFLAGS): Renamed to ...
54211 (_linux_mod_CFLAGS): ... this.
54212 (normal_mod_SOURCES): New variable.
54213 (normal_mod_CFLAGS): Likewise.
54214 (normal_mod_ASFLAGS): Likewise.
54215
54216 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54217
54218 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54219 possible.
54220
54221 * kern/dl.c (pupa_dl_ref): Refer depending modules
54222 recursively.
54223 (pupa_dl_unref): Unrefer depending modules recursively.
54224 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54225 a module is unloaded before one depending on that module is
54226 unloaded.
54227 (pupa_dl_unload): Unload depending modules explicitly,
54228 if possible.
54229
54230 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54231
54232 * include/pupa/i386/pc/linux.h: New file.
54233 * loader/i386/pc/linux.c: Likewise.
54234
54235 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54236 Removed.
54237 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54238 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54239 of PUPA_CHAINLOADER_BOOT_SECTOR.
54240
54241 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54242 (pupa_linux_prot_size): New variable.
54243 (pupa_linux_tmp_addr): Likewise.
54244 (pupa_linux_real_addr): Likewise.
54245 (pupa_linux_boot_zimage): New function.
54246 (pupa_linux_boot_bzimage): Likewise.
54247
54248 * kern/i386/pc/init.c (struct mem_region): New structure.
54249 (MAX_REGIONS): New macro.
54250 (mem_regions): New variable.
54251 (num_regions): Likewise.
54252 (pupa_os_area_addr): Likewise.
54253 (pupa_os_area_size): Likewise.
54254 (pupa_lower_mem): Likewise.
54255 (pupa_upper_mem): Likewise.
54256 (add_mem_region): New function.
54257 (compact_mem_regions): Likewise.
54258 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54259 the size of the conventional memory and that of so-called upper
54260 memory (before the first memory hole).
54261 Instead of adding each found region to free memory, use
54262 add_mem_region and add them after removing overlaps.
54263 Also, add only 1/4 of the upper memory to free memory. The rest
54264 is used for loading OS images. Maybe this is ad hoc, but this
54265 makes it much easier to relocate OS images when booting.
54266
54267 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54268 (pupa_enter_rescue_mode): Don't register initrd and module.
54269
54270 * kern/mm.c: Include pupa/dl.h.
54271
54272 * kern/main.c: Include pupa/file.h and pupa/device.h.
54273
54274 * kern/loader.c (pupa_loader_load_module_func): Removed.
54275 (pupa_loader_load_module): Likewise.
54276
54277 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54278 ``.o''.
54279
54280 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54281 (pupa_linux_tmp_addr): Likewise.
54282 (pupa_linux_real_addr): Likewise.
54283 (pupa_linux_boot_zimage): Likewise.
54284 (pupa_linux_boot_bzimage): Likewise.
54285
54286 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54287 (pupa_upper_mem): Likewise.
54288 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54289 module is too dangerous.
54290
54291 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54292 (pupa_os_area_size): Likewise.
54293 (pupa_loader_set): Remove the first argument. Loader doesn't
54294 manage modules or initrd any longer.
54295 (pupa_loader_load_module): Removed.
54296
54297 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54298 (linux_mod_SOURCES): New variable.
54299 (linux_mod_CFLAGS): Likewise.
54300
54301 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54302
54303 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54304 the length of a blocklist correctly.
54305
54306 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54307 Use ioctl only if the OS file is a block device.
54308 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54309 not very useful for normal files.
54310
54311 * kern/main.c (pupa_set_root_dev): New function.
54312 (pupa_load_normal_mode): Likewise.
54313 (pupa_main): Call those above.
54314
54315 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54316 pupa_uint16_t.
54317
54318 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54319
54320 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54321
54322 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54323 (setup): Configure the installed partition information and the
54324 dl prefix.
54325
54326 * loader/i386/pc/chainloader.c (my_mod): New variable.
54327 (pupa_chainloader_unload): New function.
54328 (pupa_rescue_cmd_chainloader): Refer itself.
54329 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54330
54331 * kern/i386/pc/startup.S (install_partition): Removed.
54332 (version_string): Likewise.
54333 (config_file): Likewise.
54334 (pupa_install_dos_part): New variable.
54335 (pupa_install_bsd_part): Likewise.
54336 (pupa_prefix): Likewise.
54337 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54338
54339 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54340 and pupa/misc.h.
54341 (make_install_device): New function.
54342 (pupa_machine_init): Set the dl prefix.
54343
54344 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54345 (buf): Renamed to ...
54346 (linebuf): ... this.
54347 (pupa_rescue_cmd_prefix): New function.
54348 (pupa_rescue_cmd_insmod): Likewise.
54349 (pupa_rescue_cmd_rmmod): Likewise.
54350 (pupa_rescue_cmd_lsmod): Likewise.
54351 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54352 rmmod and lsmod.
54353
54354 * kern/mm.c (pupa_memalign): If failed even after invalidating
54355 disk caches, unload unneeded modules and retry.
54356
54357 * kern/misc.c (pupa_memmove): New function.
54358 (pupa_memcpy): Removed.
54359 (pupa_strcpy): New function.
54360 (pupa_itoa): Made static.
54361
54362 * kern/dl.c (pupa_dl_iterate): New function.
54363 (pupa_dl_ref): Likewise.
54364 (pupa_dl_unref): Likewise.
54365 (pupa_dl_unload): Return if succeeded or not.
54366 (pupa_dl_unload_unneeded): New function.
54367 (pupa_dl_unload_all): Likewise.
54368 (pupa_dl_init): Renamed to ...
54369 (pupa_dl_set_prefix): ... this.
54370 (pupa_dl_get_prefix): New function.
54371
54372 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54373 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54374 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54375 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54376 (pupa_install_dos_part): Declared.
54377 (pupa_install_bsd_part): Likewise.
54378 (pupa_prefix): Likewise.
54379 (pupa_boot_drive): Likewise.
54380
54381 * include/pupa/types.h: Fix a typo.
54382
54383 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54384 pupa_memmove.
54385 (pupa_memmove): Declared.
54386 (pupa_strcpy): Likewise.
54387
54388 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54389 pupa_mod_init takes one argument, its own module.
54390 (pupa_dl_unload_unneeded): Declared.
54391 (pupa_dl_unload_all): Likewise.
54392 (pupa_dl_ref): Likewise.
54393 (pupa_dl_unref): Likewise.
54394 (pupa_dl_iterate): Likewise.
54395 (pupa_dl_init): Renamed to ...
54396 (pupa_dl_set_prefix): ... this.
54397 (pupa_dl_get_prefix): Declared.
54398
54399 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54400 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54401 unloaded.
54402 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54403 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54404
54405 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54406 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54407
54408 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54409
54410 * util/i386/pc/pupa-setup.c (setup): Define the internal
54411 function find_first_partition_start at the top level, because GCC
54412 3.0.x cannot compile internal functions in deeper scopes
54413 correctly.
54414 (find_root_device): Use lstat instead of stat.
54415 Don't follow symbolic links.
54416 Fix the path-constructing code.
54417
54418 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
54419 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
54420 by a BLKGETSIZE ioctl first, because block devices don't fill
54421 the member st_mode of the structure stat on Linux.
54422 [__linux__] (linux_find_partition): Use a temporary buffer
54423 REAL_DEV for the working space. Copy it to DEV before returning.
54424 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
54425 buffer cache consistent.
54426 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
54427 strncmp. The previous value was merely wrong.
54428 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
54429
54430 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
54431 FAT size is 12. The previous value was merely wrong.
54432
54433 * kern/main.c (pupa_main): Don't split the starting message from
54434 newlines.
54435
54436 * kern/term.c (pupa_putchar): Put CR after LF instead of before
54437 LF, because BIOS goes crazy about character attributes in this
54438 case.
54439
54440 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54441
54442 * include/i386/pc/util/biosdisk.h: New file.
54443 * util/i386/pc/biosdisk.c: Likewise.
54444 * util/i386/pc/pupa-setup.c: Likewise.
54445
54446 * Makefile.in (INCLUDE_DISTFILES): Added
54447 include/pupa/i386/pc/util/biosdisk.h.
54448 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
54449 directory util/i386/pc.
54450 (install-local): Added a rule for sbin_UTILITIES.
54451 (uninstall): Likewise.
54452
54453 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
54454
54455 * util/misc.c (xrealloc): New function.
54456 (pupa_malloc): Likewise.
54457 (pupa_free): Likewise.
54458 (pupa_realloc): Likewise.
54459 (pupa_stop): Likewise.
54460 (pupa_putchar): Likewise.
54461
54462 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
54463
54464 * include/pupa/util/misc.h (xrealloc): Declared.
54465
54466 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
54467 macro.
54468 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
54469 (PUPA_BOOT_MACHINE_BPB_END): ... this.
54470
54471 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
54472 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54473
54474 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
54475 way should be implemented.
54476 [PUPA_UTIL] (pupa_fat_fini): Likewise.
54477
54478 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
54479 the size of NAME for safety.
54480 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
54481 0x88.
54482
54483 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
54484 (pupa_setup_SOURCES): Likewise.
54485
54486 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
54487
54488 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54489
54490 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
54491 bunch of pushl's from pusha, because this destroys the return
54492 value.
54493
54494 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
54495
54496 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
54497 This means that any missing prototypes could be fatal. Also, you
54498 must take care when writing assembly code. See the comments at
54499 the beginning of startup.S, for more details.
54500
54501 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
54502 compilation mechanism.
54503 (pupa_chainloader_real_boot): Likewise.
54504 (pupa_biosdisk_rw_int13_extensions): Likewise.
54505 (pupa_biosdisk_rw_standard): Likewise.
54506 (pupa_biosdisk_check_int13_extensions): Likewise.
54507 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
54508 (pupa_biosdisk_get_diskinfo_standard): Likewise.
54509 (pupa_get_memsize): Likewise.
54510 (pupa_get_mmap_entry): Likewise.
54511 (pupa_console_putchar): Likewise.
54512 (pupa_console_setcursor): Likewise.
54513 (pupa_getrtsecs): Use pushl instead of push.
54514
54515 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
54516 memory instead of the stack for a mmap entry, because some
54517 BIOSes may ignore the maximum size and overflow.
54518
54519 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
54520
54521 * genmk.rb (PModule#rule): Compile automatically generated
54522 sources with module-specific CFLAGS as well as other sources.
54523
54524 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54525
54526 * configure.ac: Check ld.
54527 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
54528 respectively, before checking endianness and sizes.
54529
54530 * Makefile.in (LD): New variable.
54531
54532 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54533
54534 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
54535
54536 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
54537
54538 * Changelog: New file.
54539